1 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3 * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
4 (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
5 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
6 Remove useless support code for packed array types and assert its
8 <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
9 adjust for TYPE_RM_SIZE change.
10 <all> Fix nits in comments. Use Original_Array_Type accessor instead
11 of Associated_Node_For_Itype accessor for packed array types.
12 (make_packable_type): Likewise.
13 (maybe_pad_type): Likewise.
14 (set_rm_size): Likewise. Rework conditional statement. Adjust for
16 (make_type_from_size): Adjust for TYPE_RM_SIZE change.
17 (rm_size): Fix nits in comments. Rework conditional statements.
18 * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
20 * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
21 * gcc-interface/utils.c (gnat_init_decl_processing): Use more
22 appropriate function to initialize the size_type_node. Adjust for
25 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
27 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
28 for imported subprograms.
30 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
32 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
33 constant objects covered by 13.3(19) volatile.
35 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
37 * gcc-interface/utils.c (create_type_decl): Do not pass declarations
38 of dummy fat pointer types to the debug back-end.
40 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
42 * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
43 <E_Signed_Integer_Subtype>: Set the RM size on the integer type
44 before wrapping it up in the record type. Do not overwrite the
45 Ada size of the record type with the Esize.
47 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
49 * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
50 (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
51 if the conversion is on the LHS of an assignment and a no-op.
52 <all> Do not convert the result to the result type if the Parent
53 node is such a conversion.
55 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
57 * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
58 * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
59 of types with unknown discriminants.
60 (substitute_in_type): Rewrite and restrict to formal substitutions.
61 * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
62 (update_pointer_to): Update comment.
64 2009-04-20 Ed Schonberg <schonberg@adacore.com>
66 * sem_ch8.adb (Use_One_Package): In an instance, if two
67 potentially_use_visible and non-overloadable homonyms are available
68 from the actuals of distinct formal packages, retain the current one,
69 which was visible in the generic, to prevent spurious visibility
71 (End_Use_Package): Restore use_visibility when needed.
73 2009-04-20 Sergey Rybin <rybin@adacore.com>
75 * gnat_ugn.texi, vms_data.ads: Update doc.
77 2009-04-20 Arnaud Charlet <charlet@adacore.com>
79 * gcc-interface/Make-lang.in: Update dependencies
81 * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
84 2009-04-20 Robert Dewar <dewar@adacore.com>
86 * checks.ads: Fix documentation of range check handling
88 2009-04-20 Ed Schonberg <schonberg@adacore.com>
90 * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
91 a redundant use_type clause.
93 2009-04-20 Robert Dewar <dewar@adacore.com>
95 * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
96 this attribute can be evaluated at compile time.
97 (Eval_Attribute, case Range_Length): Same improvement
99 * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
101 2009-04-20 Ed Schonberg <schonberg@adacore.com>
103 * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
104 for better handling of null procedures.
105 (Check_Overriding_Indicator): Do not emit a warning on a missing
106 overriding indicator on an operator when the type of which the operator
107 is a primitive is private.
109 2009-04-20 Bob Duff <duff@adacore.com>
111 * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
114 2009-04-20 Robert Dewar <dewar@adacore.com>
116 * sem_attr.adb: Minor reformatting
118 * gnatcmd.adb: Minor reformatting
120 2009-04-20 Ed Schonberg <schonberg@adacore.com>
122 * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
123 overloaded and one interpretation matches the context, label the
124 operand with the type of first formal.
126 2009-04-20 Bob Duff <duff@adacore.com>
128 * debug.ads: Minor comment fix.
130 * debug.adb: Minor comment fixes.
132 2009-04-20 Javier Miranda <miranda@adacore.com>
134 * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
136 * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
138 * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
139 is expanded into a call to Raise_Exception, avoid passing the
140 exception-name'identity in runtimes in which this argument
143 2009-04-20 Jerome Lambourg <lambourg@adacore.com>
145 * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
146 generated bindings for cil.
148 2009-04-20 Ed Schonberg <schonberg@adacore.com>
150 * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
151 discriminants, collect components from the Underlying_Record_View,
152 which will be used in the expansion of the aggregate into assignments.
154 * sem_ch3.adb: Do not label derived type with unknown discriminants as
155 having a private declaration.
157 2009-04-20 Ed Schonberg <schonberg@adacore.com>
159 * exp_util.adb (Expand_Subtype_From_Expr): use the
160 underlying_record_view when available, to create the proper constrained
161 subtype for an object of a derived type with unknown discriminants.
163 2009-04-20 Javier Miranda <miranda@adacore.com>
165 * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
166 formals that have pragma unreferenced.
168 2009-04-20 Pascal Obry <obry@adacore.com>
170 * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
171 Remove all calls to To_Lower_If_Case_Insensitive to preserve
172 the pathname original casing.
174 2009-04-20 Robert Dewar <dewar@adacore.com>
176 * g-trasym.adb: Minor reformatting
178 * s-os_lib.adb: Minor reformatting
180 * sem.adb: Minor reformatting
181 Minor code reorganization
183 * sem_ch3.adb: Minor reformatting
185 * sem_ch4.adb: Minor reformatting
187 * sem_ch8.adb: Minor reformatting
189 * sem_type.adb: Minor reformatting
191 2009-04-20 Javier Miranda <miranda@adacore.com>
193 * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
194 generated by derivations of tagged types use the aliased subprogram a
195 reference to locate their controlling type.
197 2009-04-20 Tristan Gingold <gingold@adacore.com>
199 * g-trasym.adb: Set size of result buffer before calling
202 2009-04-20 Ed Schonberg <schonberg@adacore.com>
204 * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
205 to a function returning an array can be interpreted as a call with
206 defaulted parameters whose result is indexed, take into account the
207 types of all the indices of the array result type.
209 2009-04-20 Pascal Obry <obry@adacore.com>
211 * a-direct.adb, s-os_lib.adb: Minor reformatting.
213 2009-04-20 Ed Schonberg <schonberg@adacore.com>
215 * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
216 null exclusion qualifiers for object renaming declarations.
218 2009-04-20 Nicolas Roche <roche@adacore.com>
220 * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
221 unsigned long long. So compare local_time and utc_time before computing
224 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
226 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
227 of the Underlying_Record_View before that of the derived type.
229 * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
230 with unknown discriminants with regard to the parent subtype.
232 2009-04-20 Bob Duff <duff@adacore.com>
234 * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
235 that are not included. This is necessary if the main unit is a generic
238 * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
239 because it doesn't work if -gnatn is used.
241 2009-04-20 Ed Schonberg <schonberg@adacore.com>
243 * rtsfind.adb (RTE, RTE_Record_Component): In
244 Configurable_Run_Time_Mode, do not enable front-end inlining.
246 2009-04-20 Thomas Quinot <quinot@adacore.com>
248 * g-socthi-vms.adb: Remove now unnecessary WITH clause on
249 System.Address_To_Access_Conversions.
251 2009-04-20 Ed Schonberg <schonberg@adacore.com>
253 * sem.adb: Guard against ill-formed subunits.
255 2009-04-20 Bob Duff <duff@adacore.com>
257 * output.adb (Flush_Buffer): Do not indent blank lines.
258 (Ignore_Output): New procedure for output suppression.
260 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
262 * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
263 when it is positive. This avoids a potential constraint error raised
264 by the conversion to Natural.
266 2009-04-20 Gary Dismukes <dismukes@adacore.com>
268 * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
269 involves a target that has a specified address, don't set Forward_OK
270 and Backward_OK to False if the rhs is an aggregate, since overlap
273 2009-04-20 Ed Schonberg <schonberg@adacore.com>
275 * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
276 in an object renaming declaration when the expected type is an
277 anonymous access type.
279 * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
280 ambiguity when one interpretation is an anonymous access type and the
281 other is a named access type, and the context itself is anonymous
283 2009-04-20 Thomas Quinot <quinot@adacore.com>
285 * einfo.ads: Minor comment rewording
287 * sem_aggr.adb: Minor comment rewording
289 * sem_ch3.adb, sem_ch6.adb: Minor reformatting
291 2009-04-20 Pascal Obry <obry@adacore.com>
293 * adaint.c (__gnat_is_readable_file): Check for file existence
294 when not using ACL (always the case on remote drives).
296 2009-04-20 Robert Dewar <dewar@adacore.com>
298 * sinfo.ads: Minor comment fixes
300 * exp_disp.adb: Minor reformatting
302 * gnat1drv.adb: Minor reformatting
304 * output.adb: Minor reformatting
306 * s-vxwext-kernel.ads: Minor reformatting
308 * sem.ads: Minor reformatting
310 * sem.adb: Minor reformatting
312 * sem_elim.adb: Minor reformatting
314 * uname.ads: Minor reformatting
316 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
318 * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
319 a small dope of 4 words to the adjustment to the stack pointer.
321 2009-04-20 Thomas Quinot <quinot@adacore.com>
323 * xoscons.adb: generate C header s-oscons.h in
324 addition to s-oscons.ads.
326 * socket.c: On VMS, use s-oscons.h.
328 * sem_ch3.adb: Minor reformatting
330 * exp_ch9.adb: Minor reformatting
332 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
334 * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
335 (Attribute_to_gnu): Do not call check_for_eliminated_entity.
336 (call_to_gnu): Likewise.
338 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
340 * gcc-interface/trans.c (gigi): Declare the name of the compilation
341 unit as the first global name at the very beginning.
343 2009-04-20 Thomas Quinot <quinot@adacore.com>
345 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
346 s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
347 g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
348 since HP-UX supports neither inet_aton nor inet_pton (altough the
349 latter is part of the Single UNIX Specification!).
350 So reorganize code, and share C implementation based on inet_addr(3)
351 with VMS (instead of having a VMS specific Ada implementation in
354 2009-04-20 Gary Dismukes <dismukes@adacore.com>
356 * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
357 to return the object file name saved by Set_Object_Output_File_Name.
359 2009-04-20 Emmanuel Briot <briot@adacore.com>
361 * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
362 for the standard command line, when argc has been modified since the
363 start of the application.
365 2009-04-20 Thomas Quinot <quinot@adacore.com>
367 * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
368 WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
370 2009-04-20 Bob Duff <duff@adacore.com>
372 * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
375 2009-04-20 Ed Schonberg <schonberg@adacore.com>
377 * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
378 subprogram as Eliminated when source operation is.
379 (Expand_N_Protected_Type_Declaration): Generate protected and
380 unprotected specs for the internal operations, even if the source
381 operation is eliminated.
383 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
385 * exp_ch3.adb (Make_Predefined_Primitive_Specs,
386 Predefined_Primitive_Bodies): Do not create the declarations and bodies
387 of the primitive subprograms associated with dispatching select
388 statements when the runtime is in configurable mode.
390 2009-04-20 Ed Falis <falis@adacore.com>
392 * s-vxwext-kernel.ads (tickGet): Use tick64Get.
394 2009-04-20 Thomas Quinot <quinot@adacore.com>
396 * s-oscons-tmplt.c: Add support for generating a dummy version of
397 s-oscons.ads providing all possible constants.
399 * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
401 * socket.c (__gnat_inet_pton): On Windows make sure we always use the
402 ANSI version (not the UNICODE version) of WSAStringToAddress.
404 2009-04-20 Pascal Obry <obry@adacore.com>
406 * adaint.c (__gnat_set_OWNER_ACL): properly free memory
407 allocated for the security descriptor and make sure all
408 handles are closed before leaving this procedure.
410 2009-04-20 Javier Miranda <miranda@adacore.com>
412 * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
413 (Set_Is_Underlying_Record_View): New subprogram
415 * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
416 private types with unknown discriminants use the underlying record view
419 * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
420 underlying record view in the full view of private types whose parent
421 has unknown discriminants.
422 (Build_Derived_Record_Type): Avoid generating the class-wide entity
423 associated with an underlying record view.
424 (Derived_Type_Declaration): Avoid deriving parent primitives in
425 underlying record views.
427 * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
428 records with unknown discriminants.
430 * sem_type.adb (Covers): Handle underlying record views.
431 (Is_Ancestor): Add support for underlying record views.
433 * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
434 dispatching call if the type of the target object is tagged and has
435 unknown discriminants.
437 * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
438 unknown discriminants.
440 * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
441 tables for internally built underlying record views.
443 * sprint.adb (sprint_node_actual): Improve output of aggregates with an
444 empty list of component associations.
446 2009-04-20 Thomas Quinot <quinot@adacore.com>
448 * sem_ch10.adb: Minor reformatting
450 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
451 g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
452 (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
453 standard inet_pton API (and emulate it on platforms that do not
455 (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
456 DECC$INET_ADDR, imported in Ada.
457 (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
458 implementation provided by GNAT runtime.
459 (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
462 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
464 * gnat_ugn.texi: Add documentation for -fno-ivopts.
466 2009-04-20 Ed Schonberg <schonberg@adacore.com>
468 * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
469 with_clause if it is the main unit.
471 2009-04-20 Thomas Quinot <quinot@adacore.com>
473 * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
474 (no behaviour change): Use Append instead of Increment_Last followed
477 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
479 * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
480 declarations of all primitives associated with dispatching asynchronous,
481 conditional and timed selects when dispaching calls are forbidden and
482 select statements are not allowed (such as in Ravenscar).
483 (Predefined_Primitive_Bodies): Ditto for bodies.
485 * exp_disp.ad (Make_DT): Do not create and populate the
486 Select_Specific_Data of the dispatch table when dispatching calls are
487 forbidden and select statements are not allowed (such as in Ravenscar).
489 2009-04-20 Robert Dewar <dewar@adacore.com>
491 * a-tifiio.adb: Minor reformatting
493 2009-04-20 Thomas Quinot <quinot@adacore.com>
495 * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
496 other C library functions, report *failure* with a zero status, and
497 success with a non-zero status.
499 2009-04-20 Bob Duff <duff@adacore.com>
501 * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
502 (Semantics): After analyzing each unit, Append it to the
503 Comp_Unit_List, if appropriate.
505 * gnat1drv.adb (Check_Library_Items): New procedure for debugging
507 (Gnat1drv): Correct comment regarding Back_End_Mode.
509 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
511 * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
513 2009-04-20 Thomas Quinot <quinot@adacore.com>
515 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
516 output.adb, output.ads, s-taprop-hpux-dce.adb,
517 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
520 2009-04-20 Thomas Quinot <quinot@adacore.com>
522 * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
523 g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
524 (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
525 (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
526 except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
527 (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
529 * debug.adb: Fix typo
531 * gnat_rm.texi: Minor doc fix.
533 * sem_ch7.adb, freeze.adb: Minor reformatting
535 2009-04-20 Thomas Quinot <quinot@adacore.com>
537 * g-socket.ads: Add new constants:
539 Unspecified_Group_Inet_Addr
540 All_Hosts_Group_Inet_Addr
541 All_Routers_Group_Inet_Addr
543 * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
544 ERANGE (Result too large).
545 (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
546 propagation of errno to caller.
548 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
550 * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
551 to 24. Increment Leap_Seconds_Count and add an entry to aggregate
554 2009-04-20 Gary Dismukes <dismukes@adacore.com>
556 * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
557 checking for references to eliminated subprograms that should be
559 (Eliminate_Error_Message): Update comment to say "references" rather
560 than "calls" (since attribute cases are handled here as well).
562 * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
563 checking for references to eliminated subprograms that should be
564 flagged. Add with and use of Sem and Sem_Util.
566 * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
567 Add with and use of Sem_Elim.
569 * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
570 applied to eliminated subprograms.
571 (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
572 eliminated subprograms.
573 Add with and use of Sem_Elim.
575 * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
576 to eliminated subprograms, now handled during Resolve_Call.
577 Remove with and use of Sem_Elim.
579 * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
580 testing Is_Eliminated, for proper handling of primitive derived from
581 eliminated subprograms.
583 2009-04-20 Vincent Celier <celier@adacore.com>
585 * mlib-prj.adb (Build_Library): Use the shared library linker, if one
586 has been declared (Library_GCC or Linker'Driver), for the driver name.
588 * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
589 Linker'Driver is, use Linker'Driver as the shared library linker.
590 (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
591 Library_GCC is declared.
592 (Check_Library_Attributes): Set up the shared linker driver: either
593 Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
596 2009-04-20 Thomas Quinot <quinot@adacore.com>
598 * g-socket.ads (Send_Socket): Fix misleading comment.
600 2009-04-20 Arnaud Charlet <charlet@adacore.com>
602 * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
605 2009-04-20 Geert Bosch <bosch@adacore.com>
607 * a-tifiio.adb (Put): Avoid generating too many digits for certain
608 fixed types with smalls that are neither integer or the reciprocal
611 2009-04-20 Bob Duff <duff@adacore.com>
613 * uname.ads: Minor comment fix.
615 * types.ads: Minor comment fix.
617 2009-04-20 Pascal Obry <obry@adacore.com>
619 * adaint.c (__gnat_get_libraries_from_registry): Fix code to
620 avoid warning. At the same time fix a memory leak.
622 * osint.adb (Get_Libraries_From_Registry): Properly free memory
623 returned by the above routine.
625 2009-04-20 Robert Dewar <dewar@adacore.com>
627 * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
628 s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
629 s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
630 s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
632 * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
634 2009-04-20 Pascal Obry <obry@adacore.com>
636 * initialize.c (__gnat_initialize): Add braces to kill warning.
638 * adaint.c: Minor reformatting, remove trailing spaces.
640 2009-04-17 Arnaud Charlet <charlet@adacore.com>
642 * gcc-interface/Make-lang.in: Update dependencies.
644 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
646 * adaint.h (__gnat_lwp_self): Declare on Linux.
648 * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
650 2009-04-20 Robert Dewar <dewar@adacore.com>
652 * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
653 front-end part of -fpreserve-control-flow switch.
655 2009-04-20 Bob Duff <duff@adacore.com>
657 * rtsfind.adb: Minor comment fix
659 2009-04-20 Robert Dewar <dewar@adacore.com>
661 * exp_aggr.adb: Minor reformatting
662 Minor code reorganization (use Nkind_In)
664 * g-socket.adb: Minor reformatting
666 * g-socket.ads: Minor comment fix
668 * s-auxdec.ads: Minor comment and organization update.
670 * s-auxdec-vms_64.ads: Minor comment and organization update.
672 * sem_ch10.adb: Minor addition of ??? comment
674 * sem_disp.adb: Minor reformatting
676 2009-04-20 Ed Schonberg <schonberg@adacore.com>
678 * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
679 list a caller of an inlined subprogram, if the caller itself is not
682 2009-04-20 Pascal Obry <obry@adacore.com>
684 * adaint.c: Disable use of ACL on network drives.
686 2009-04-20 Arnaud Charlet <charlet@adacore.com>
688 * gnat_ugn.texi: Add examples.
690 2009-04-20 Thomas Quinot <quinot@adacore.com>
692 * g-socket.ads (Abort_Selector): Clarify documentation.
694 2009-04-20 Arnaud Charlet <charlet@adacore.com>
696 * opt.ads (Inspector_Mode): Update documentation of this flag.
698 2009-04-20 Thomas Quinot <quinot@adacore.com>
700 * g-socket.ads: Minor reformatting
702 * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
703 consider S_resolvLib error codes since we only use the hostLib wrappers.
705 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
707 * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
708 of the Underlying_Record_View after that of the derived type.
710 2009-04-20 Arnaud Charlet <charlet@adacore.com>
712 * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
715 2009-04-20 Javier Miranda <miranda@adacore.com>
717 * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
719 * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
722 * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
725 (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
726 in internally built overriding subprograms.
728 2009-04-20 Doug Rupp <rupp@adacore.com>
730 * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
732 * s-auxdec.ads: Likewise
734 2009-04-20 Ed Schonberg <schonberg@adacore.com>
736 * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
737 type by an interface.
739 * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
740 minimze difference in expanded tree when compiled as spec of the main
741 unit, or as a spec in the context of another unit.
743 2009-04-20 Hristian Kirtchev <kirtchev@adacore.com>
745 * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
746 (localtime_tzoff): This routine no longer accepts an actual of type
748 (UTC_Time_Offset): Remove local variable Secs_TM.
750 * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
751 actual of type struct tm*. Add local variable of type struct tm for all
752 targets that provide localtime_r and need to invoke it.
754 2009-04-20 Thomas Quinot <quinot@adacore.com>
756 * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
757 (GNAT.Sockets.Resolve_Error): Add case of EPIPE
758 Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
760 2009-04-20 Robert Dewar <dewar@adacore.com>
762 * sem_ch3.adb: Minor reformatting
764 * lib-load.adb: Minor reformatting
766 * sem_ch4.adb: Minor reformatting
768 2009-04-20 Robert Dewar <dewar@adacore.com>
770 * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
771 (equal values => False).
773 2009-04-20 Ed Schonberg <schonberg@adacore.com>
775 * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
776 to null procedures can be inlined unconditionally.
778 2009-04-20 Eric Botcazou <ebotcazou@adacore.com>
780 * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
781 non-addressable parameter passed by reference, do not convert the
782 actual if its type is already the nominal type, unless it is of
783 self-referential size.
785 2009-04-20 Arnaud Charlet <charlet@adacore.com>
787 * gnat_ugn.texi: Fix typos.
789 2009-04-20 Robert Dewar <dewar@adacore.com>
791 * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
792 Validate_Unchecked_Warnings to suppress warnings about size or
793 alignment or extra bits if either type involved has pragma Warnings
794 (Off) set for the type entity.
796 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
798 * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
799 a builtin type and give it a name.
801 2009-04-17 Diego Novillo <dnovillo@google.com>
803 * gcc-interface/misc.c (gnat_expand_expr): Remove.
804 (LANG_HOOKS_EXPAND_EXPR): Remove.
806 2009-04-17 Robert Dewar <dewar@adacore.com>
808 * sem_ch3.adb: Minor reformatting
810 2009-04-17 Pascal Obry <obry@adacore.com>
812 * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
814 2009-04-17 Ed Schonberg <schonberg@adacore.com>
816 * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
817 illegal constraints on type derived from formal discrete types.
819 2009-04-17 Thomas Quinot <quinot@adacore.com>
823 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
824 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
825 g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
826 g-socket.ads (GNAT.Sockets.Thin.C_Send,
827 GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
828 Replace calls to send(2) with equivalent sendto(2) calls.
829 (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
830 (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
831 report an error in that case. Factor code common to the two versions
832 (datagram and stream) in common routine Stream_Write.
834 2009-04-17 Robert Dewar <dewar@adacore.com>
836 * exp_disp.adb: Minor reformatting
837 Minor code reorganization (use Nkind_In)
839 * prepcomp.adb: Minor reformatting
841 * sem_ch3.adb: Minor reformatting
843 * sem_res.adb: Minor comment addition
845 * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
848 * lib-xref.adb (Generate_Reference): Exclude recursive calls from
849 setting Is_Referenced
851 * types.ads: Minor reformatting
853 2009-04-17 Arnaud Charlet <charlet@adacore.com>
855 * gnat_ugn.texi: Initial documentation on binding generator.
857 2009-04-17 Ed Schonberg <schonberg@adacore.com>
859 * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
860 type extensions whose parent is a type with unknown discriminants.
862 * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
863 aggregate has unknown discriminants, use the Underlying_Record_View to
864 obtain the discriminants of the ancestor part.
866 * exp_disp.adb (Build_Dispatch_Tables): Types that are
867 Underlying_Record_Views share the dispatching information of the
868 original record extension.
870 * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
871 discriminants, propagate dispach table information to the
872 Underlying_Record_View.
874 * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
875 discriminants and declaration is not a completion, generate
876 Underlying_Record_View to provide proper discriminant information to
877 the front-end and to gigi.
879 2009-04-17 Robert Dewar <dewar@adacore.com>
881 * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
882 s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
883 s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
884 g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
885 s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
886 s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
887 g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
888 s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
889 g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
890 s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
891 s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
892 s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
893 s-conca3.ads: Remove unneeded pragma Warnings
895 2009-04-17 Robert Dewar <dewar@adacore.com>
897 * g-moreex.adb: Add comments.
899 * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
901 * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
904 * prepcomp.adb: Add ??? comment
906 * a-tasatt.adb: Minor reformatting
908 * g-trasym-vms-alpha.adb: Add ??? comment
910 * g-trasym-vms-ia64.adb: Add ??? comment
912 * xoscons.adb: Minor reformatting
914 * s-tassta.adb: Minor reformatting
916 * s-scaval.adb: Add ??? comment
918 * stand.ads: Minor code clean up (remove junk with of Namet)
920 * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
921 s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
922 s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
923 s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
924 s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
925 s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
926 s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
927 s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
928 Warnings off pragmas.
930 2009-04-17 Pascal Obry <obry@adacore.com>
932 * initialize.c: Fix test for reallocating the arguments array.
934 2009-04-17 Geert Bosch <bosch@adacore.com>
936 * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
937 conversion truncate only for decimal fixed point types.
939 2009-04-17 Jerome Lambourg <lambourg@adacore.com>
941 * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
944 2009-04-17 Robert Dewar <dewar@adacore.com>
946 * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
947 Backwards_OK if either operand has an address clause.
949 2009-04-17 Pascal Obry <obry@adacore.com>
951 * initialize.c: Code clean up, use realloc.
953 2009-04-17 Pascal Obry <obry@adacore.com>
955 * initialize.c: Do not get Unicode command line if Unicode support not
957 Add support for wildcard expansion for Unicode parameters on Win32.
959 * mingw32.h: Add missing macros when Unicode support not activated.
961 2009-04-17 Javier Miranda <miranda@adacore.com>
963 * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
964 avoid generating code that references the Current_Master
965 when compiling without tasks.
967 2009-04-17 Vincent Celier <celier@adacore.com>
969 * prj-attr.adb: New project level attribute Target
971 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
974 * prj.ads (Project_Configuration): New component Target
976 2009-04-17 Thomas Quinot <quinot@adacore.com>
978 * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
979 case for the case of an aggregate component, the attach call for the
980 result is actually needed.
982 * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
983 an array aggregate must be disabled if the component type requires
986 * exp_ch3.adb: Minor reformatting
988 2009-04-17 Bob Duff <duff@adacore.com>
990 * output.ads (Indent,Outdent): New procedures for indenting the output.
991 (Write_Char): Correct comment -- LF _is_ allowed.
993 * output.adb (Indent,Outdent): New procedures for indenting the output.
994 Keep track of the indentation level, and make sure it doesn't get too
996 (Flush_Buffer): Insert spaces at the beginning of each line, if
997 indentation level is nonzero.
998 (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
1000 (Set_Standard_Error,Set_Standard_Output): Remove superfluous
1001 "Next_Col := 1;". Flush_Buffer does that.
1003 * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
1004 controlled by the -gnatdc switch. It now occurs on entry/exit to the
1005 relevant analysis routines, and calls Indent/Outdent to make the
1006 indentation reflect the nesting level. Add "helper" routines, since
1007 otherwise lots of "return;" statements would skip the debugging output.
1009 2009-04-17 Arnaud Charlet <charlet@adacore.com>
1011 * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
1012 s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
1013 s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
1015 2009-04-17 Thomas Quinot <quinot@adacore.com>
1017 * exp_aggr.adb: Minor code reorganization, no behaviour change.
1019 2009-04-17 Ed Schonberg <schonberg@adacore.com>
1021 * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
1022 clause in a unit that is a package body or a subunit, when the previous
1023 clause appears in a spec or a parent.
1025 2009-04-17 Thomas Quinot <quinot@adacore.com>
1027 * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
1029 * exp_ch7.adb: Minor reformatting
1031 2009-04-17 Bob Duff <duff@adacore.com>
1033 * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
1034 allocator, check that the expression of the qualified expression obeys
1035 the constraints of the subtype of the qualified expression.
1037 2009-04-17 Thomas Quinot <quinot@adacore.com>
1039 * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
1041 2009-04-17 Ed Schonberg <schonberg@adacore.com>
1043 * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
1044 aggregate, using context imposed by subtype mark in allocator.
1046 2009-04-17 Pascal Obry <obry@adacore.com>
1048 * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
1050 2009-04-17 Nicolas Roche <roche@adacore.com>
1052 * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
1055 2009-04-17 Gary Dismukes <dismukes@adacore.com>
1057 * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
1058 cover both calls and attribute references ("call" => "reference").
1060 2009-04-17 Ed Schonberg <schonberg@adacore.com>
1062 * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
1063 type for which Storage_Size is set to 0 is legal in a pure unit.
1065 2009-04-17 Thomas Quinot <quinot@adacore.com>
1067 * exp_ch7.adb: Minor reformatting
1069 2009-04-17 Robert Dewar <dewar@adacore.com>
1071 * restrict.adb (Check_Restriction_No_Dependence): Don't check
1072 restriction if outside main extended source unit.
1074 * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
1075 for parents of child units as well as the child unit itself.
1077 2009-04-17 Bob Duff <duff@adacore.com>
1079 * checks.ads: Minor comment fix
1081 * exp_aggr.ads: Minor comment fix
1083 2009-04-17 Nicolas Roche <roche@adacore.com>
1085 * adaint.c: Improve cross compiler detection and handling.
1087 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
1089 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
1091 2009-04-17 Pascal Obry <obry@adacore.com>
1093 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
1096 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
1097 value when no encoding form paramter is set on Text_IO services.
1099 * adaint.c: CurrentCodePage new variable on Windows.
1100 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
1103 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
1106 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
1107 environment variable value. Default is UTF-8.
1109 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
1110 fopen and freopen encoding parameter is now set to Unspecified.
1111 The default value is in this case UTF-8 (as it was before) but
1112 use the new macros that convert to/from the code page set
1113 at runtime (CurrentCodePage).
1115 * s-fileio.adb: When no encoding specified use Unspecified value.
1117 2009-04-17 Ed Schonberg <schonberg@adacore.com>
1119 * atree.adb, atree.ads: Remove dead code.
1121 2009-04-17 Arnaud Charlet <charlet@adacore.com>
1123 * gcc-interface/Make-lang.in: Update dependencies.
1125 2009-04-17 Ed Schonberg <schonberg@adacore.com>
1127 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
1128 illegal uses of incomplete types in formal parts and return types.
1130 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
1131 access to subprograms.
1133 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
1134 Taft-amendment types as the return type of an access_to_function type.
1136 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
1137 type for access_to_subprograms. The check is performed on package exit.
1139 2009-04-17 Ed Schonberg <schonberg@adacore.com>
1141 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
1143 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
1145 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
1147 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
1148 semantic units, because the handling of itypes in the copied tree
1149 requires semantic information that does not belong in atree.
1151 2009-04-17 Robert Dewar <dewar@adacore.com>
1153 * par-ch6.adb: Minor reformatting
1155 * prj.adb: Minor reformatting
1157 2009-04-17 Gary Dismukes <dismukes@adacore.com>
1159 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
1160 on protected subprogram bodies, so exclude the case where Pf_Flags is
1161 Pf_Decl_Pbod from the error check.
1163 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
1164 indicators on subprograms in protected bodies, and proceed with parsing
1167 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
1168 subprograms from the check for primitiveness on subprograms with
1169 overriding indicators.
1170 (Check_Overriding_Indicator): Include protected subprograms in the
1171 style check for missing overriding indicators.
1173 2009-04-17 Tristan Gingold <gingold@adacore.com>
1175 * init.c: Fix stack checking for x86 Darwin.
1177 2009-04-17 Vincent Celier <celier@adacore.com>
1179 * prj-attr.adb: New project level attribute Object_File_Suffix
1182 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
1184 (Process_Compiler): Process attribute Object_File_Suffix
1186 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
1187 platform suffix, when specified.
1189 * prj.ads (Language_Config): New component Object_File_Suffix,
1190 defaulted to No_Name.
1191 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
1193 * snames.ads-tmpl: New standard name Object_File_Suffix
1195 2009-04-17 Robert Dewar <dewar@adacore.com>
1197 * gnat_rm.texi: Add documentation about No_Streams restriction
1199 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
1200 attributes when checking No_Streams restriction.
1202 2009-04-17 Thomas Quinot <quinot@adacore.com>
1204 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
1206 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
1207 missing calls to RE_Request_Destroy to deallocate request objects after
1210 2009-04-17 Nicolas Setton <setton@adacore.com>
1212 * link.c: Fix support for passing a response file under Darwin.
1214 2009-04-17 Emmanuel Briot <briot@adacore.com>
1216 * prj.adb (Free): new subprogram.
1218 2009-04-17 Ed Schonberg <schonberg@adacore.com>
1220 * sem_ch3.adb: additional initialization on incomplete subtypes.
1222 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
1223 part and one of the formals is an incomplete tagged type, attach to
1224 list of private dependends of the type for later validation.
1226 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
1227 primitive operations of a Taft-amendmment type.
1229 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
1230 type. The check is performed on package exit, possibly after the
1231 subprogram is frozen.
1233 2009-04-17 Vincent Celier <celier@adacore.com>
1235 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
1236 before looking for source directories, but make sure that there are nil
1237 if they are not explicitely declared and there is explicitely no
1238 sources in the project.
1240 2009-04-17 Pascal Obry <obry@adacore.com>
1242 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
1244 * init.c: Fix minor typo and style fix.
1246 2009-04-17 Robert Dewar <dewar@adacore.com>
1248 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
1250 * sem_attr.adb (Analyze_Attribute, case Address): Use
1251 PE_Address_Of_Intrinsic.
1253 * types.ads: Add PE_Address_Of_Intrinsic
1255 * types.h: Add PE_Address_Of_Intrinsic
1257 2009-04-17 Nicolas Setton <setton@adacore.com>
1259 * gcc-interface/Makefile.in: Under darwin, build shared libraries
1260 with install_name starting with "@rpath/".
1262 2009-04-17 Nicolas Setton <setton@adacore.com>
1264 * link.c: Add darwin section
1266 2009-04-16 Robert Dewar <dewar@adacore.com>
1268 * g-pehage.adb: Minor reformatting
1270 * sem_ch12.adb: Minor reformatting
1272 * exp_dist.adb: Minor reformatting
1274 * bindgen.adb: Minor style fixes.
1276 2009-04-16 Ed Schonberg <schonberg@adacore.com>
1278 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
1279 indexed components to the case where the prefix is a static string
1282 2009-04-16 Javier Miranda <miranda@adacore.com>
1284 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
1285 objects avoid any further expansion of the expression initializing the
1288 2009-04-16 Ed Schonberg <schonberg@adacore.com>
1290 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
1291 that hides an outer homograph, make that homograph invisible when
1292 analyzing the actuals, to to prevent illegal direct visibility on it.
1294 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
1296 * g-pehage.adb (Initialize): Fix off-by-one error.
1298 2009-04-16 Tristan Gingold <gingold@adacore.com>
1300 * init.c: Detect real stack overflow on Darwin.
1302 * system-darwin-x86.ads: Use stack probing on darwin x86.
1304 2009-04-16 Ed Schonberg <schonberg@adacore.com>
1306 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
1307 take the address of an intrinsic subprogram.
1309 2009-04-16 Arnaud Charlet <charlet@adacore.com>
1311 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
1312 for the targets where GNAT.Traceback.Symbolic is not supported.
1314 2009-04-16 Vincent Celier <celier@adacore.com>
1316 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
1318 * g-trasym.ads: Update comments.
1320 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
1322 * tracebak.c (STOP_FRAME): Verify validity of the current address
1323 before dereferencing.
1325 2009-04-16 Ed Schonberg <schonberg@adacore.com>
1327 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
1328 the original location of the index expressions and the index subtypes,
1329 to prevent spurious out-of-scope references in gigi.
1331 2009-04-16 Tristan Gingold <gingold@adacore.com>
1333 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
1334 Add support for stack checking on darwin.
1336 2009-04-16 Vincent Celier <celier@adacore.com>
1338 * prj-attr.adb: New attribute Runtime_Source_Dir
1340 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
1341 attribute Runtime_Source_Dir.
1342 (Check_Naming_Schemes): Give default values to out parameters to avoid
1345 * prj.ads (Language_Config): New component Runtime_Source_Dir
1347 * snames.ads-tmpl: New standard name Runtime_Source_Dir
1349 2009-04-16 Pascal Obry <obry@adacore.com>
1351 * adaint.h, adaint.c (__gnat_rmdir): New routine.
1352 Simple wrapper routines used to convert to proper encoding on
1355 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
1357 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
1360 2009-04-16 Pascal Obry <obry@adacore.com>
1362 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
1364 2009-04-16 Thomas Quinot <quinot@adacore.com>
1366 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
1367 integrated preprocessor.
1369 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
1370 (Initialize): Split into two subprograms, Initialize (to be called
1371 prior to compiler command line processing) and Setup_Hooks (to be called
1372 later on when the first source file is loaded).
1374 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
1375 Add call to Prep.Initialize.
1377 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
1378 to Prep.Setup_Hooks.
1380 2009-04-16 Pascal Obry <obry@adacore.com>
1382 * adaint.h, adaint.c (__gnat_chdir): New routine.
1383 Simple wrapper routines used to convert to proper encoding on
1386 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
1388 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
1390 2009-04-16 Quentin Ochem <ochem@adacore.com>
1392 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
1395 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
1397 * a-convec.ads (Is_Empty): Mark inline.
1399 2009-04-16 Nicolas Roche <roche@adacore.com>
1401 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
1403 2009-04-16 Thomas Quinot <quinot@adacore.com>
1405 * prepcomp.adb: Minor reformatting
1407 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
1409 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
1410 Access_Subprogram types can also be imported.
1411 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
1414 2009-04-16 Ed Schonberg <schonberg@adacore.com>
1416 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
1417 preserve homonym chain when the declaration is rewritten into a
1418 renaming declaration, in order to preserve visibility structure.
1420 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
1422 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
1423 taken into account for VM targets.
1425 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
1427 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
1429 (Year_Week_In_Year): New routine which contains the original code from
1430 Week_In_Year. Add the missing special case for January 1st falling on
1433 2009-04-16 Thomas Quinot <quinot@adacore.com>
1435 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
1436 actual type, use the base type to build the To_Any function.
1437 (Build_From_Any_Function): Remove junk, useless subtype conversion.
1439 2009-04-16 Thomas Quinot <quinot@adacore.com>
1441 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
1442 restrict.adb: Minor code reorganization (use
1443 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
1445 2009-04-16 Bob Duff <duff@adacore.com>
1447 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
1450 2009-04-16 Thomas Quinot <quinot@adacore.com>
1452 * sem_ch4.adb: Minor reformatting
1454 * adaint.c: Remove junk duplicated code.
1456 * sem_ch3.adb: Minor reformatting
1458 * exp_dist.adb: Minor comment rewording
1460 2009-04-16 Robert Dewar <dewar@adacore.com>
1462 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
1465 2009-04-16 Ed Schonberg <schonberg@adacore.com>
1467 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
1468 usable before calling Add_One_Interp, to resolve spurious ambiguities.
1470 2009-04-16 Robert Dewar <dewar@adacore.com>
1472 * Make-lang.in: Add entries for s-conca?.o
1474 * Makefile.rtl: Add entries for s-conca?
1476 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
1477 of concatenation expansion
1479 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
1480 string cases instead of expanding assignments inline.
1482 * opt.ads (Optimize_Size): New flag
1484 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
1485 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
1486 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
1487 s-conca9.adb, s-conca9.ads: New file.
1489 2009-04-16 Robert Dewar <dewar@adacore.com>
1491 * exp_ch6.adb: Add comments
1493 * rtsfind.ads: Add entries for s-conca? routines
1495 2009-04-16 Arnaud Charlet <charlet@adacore.com>
1497 * gcc-interface/Make-lang.in: Update dependencies.
1499 * gcc-interface/Makefile.in: Update translation for vms.
1501 2009-04-16 Ed Schonberg <schonberg@adacore.com>
1503 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
1504 and made global, to be used when installing parents of a child
1505 instance, to provide mappings for entities declared in formal packages
1506 of ancestor units. Now called from Install_Formal_Packages.
1508 2009-04-16 Doug Rupp <rupp@adacore.com>
1510 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
1511 notation for clarity.
1513 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1514 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
1515 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
1516 (Initialize): Initialize Known_Tasks with Environment task.
1518 * s-taskin.ads (Task_States): Move new states to end for the sake of
1521 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
1523 2009-04-16 Ed Schonberg <schonberg@adacore.com>
1525 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
1526 operation has an inline pragma, propagate the flag to the internal
1527 unprotected subprogram.
1529 2009-04-16 Doug Rupp <rupp@adacore.com>
1531 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
1532 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
1533 s-taprop-hpux-dce.adb, s-taprop-posix.adb
1534 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
1536 * s-taprop-vms.adb (Enter_Task): Likewise.
1537 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
1539 * s-tassta.adb (Activate_Tasks): After task creation set state to
1540 Activating, vice Runnable. Initialize Known_Tasks, moved here from
1541 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
1542 Set state to Runnable after above.
1543 (Task_Wrapper): Set Debug_Event_Run. In exception block set
1544 Debug_Event_Terminated.
1546 * s-taskin.ads (Task_States): Add new states Activiting and
1547 Activator_Delay_Sleep.
1548 (Bit_Array, Debug_Event_Array): New types.
1549 (Global_Task_Debug_Event_Set: New flag.
1550 (Common_ATCB): New field Debug_Events.
1552 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
1554 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
1557 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
1558 Activating and when Acceptor_Delay_Sleep.
1560 * s-tasdeb.ads: Add constants for Debug_Events.
1561 (Debug_Event_Kind_Type): New subtype.
1562 (Signal_Debug_Event): New subprogram.
1564 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
1566 2009-04-16 Thomas Quinot <quinot@adacore.com>
1568 * sem_elim.adb: Minor reformatting
1570 * freeze.adb: Minor reformatting
1572 * exp_ch4.adb: Minor reformatting
1574 2009-04-16 Emmanuel Briot <briot@adacore.com>
1576 * prj-nmsc.adb (Path_Name_Of): fix memory leak
1578 2009-04-16 Robert Dewar <dewar@adacore.com>
1580 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
1582 2009-04-16 Vincent Celier <celier@adacore.com>
1584 * fmap.adb (Initialize): Show the current line when the mapping file
1585 is detected as "incorrectly formatted".
1587 2009-04-16 Robert Dewar <dewar@adacore.com>
1589 * sem_ch12.adb: Minor reformatting
1591 * sem_ch5.adb: Minor comment addition
1593 * sem_util.adb: Minor reformatting
1595 * sinput-p.adb: Minor reformatting
1596 Add missing pragma Warnings (On)
1598 2009-04-16 Ed Falis <falis@adacore.com>
1600 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
1602 2009-04-16 Vincent Celier <celier@adacore.com>
1604 * ali-util.adb: Minor comment spelling error fix
1606 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
1608 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
1609 generate an assignment loop in case of overlap.
1611 2009-04-16 Olivier Hainque <hainque@adacore.com>
1613 * gnat_ugn.texi (gnatmem description): Make it explicit that
1614 gnatmem is designed to work in association with static runtime
1617 2009-04-16 Thomas Quinot <quinot@adacore.com>
1619 * sem_type.adb: Minor reformatting
1621 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
1623 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
1624 concerning return codes of gettimeofday and return value check.
1626 2009-04-16 Ed Falis <falis@adacore.com>
1628 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
1629 body can be renaming of imported routines.
1631 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
1633 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
1636 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
1638 * exp_ch9.adb: Comment improvements.
1639 (Build_Entry_Family_Name): Add parentheses around the index of a entry
1642 2009-04-15 Bob Duff <duff@adacore.com>
1644 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
1645 "while X /= null loop" where X is unchanged inside the loop. We were
1646 not warning in this case, because of the pointers -- we feared that the
1647 loop variable could be updated via a pointer, if there are any pointers
1648 around the place. But that is impossible in this case.
1650 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
1651 the case of dereferences. In X.all, X cannot be an l-value. We now
1652 catch that case (and implicit dereferences, too).
1654 2009-04-15 Vincent Celier <celier@adacore.com>
1656 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
1658 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1660 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
1662 (Analyze_Package_Instantiation): If generic unit in child instance is
1663 the same as generic unit in parent instance, look for an outer homonym
1664 to locate the desired generic.
1666 2009-04-15 Bob Duff <duff@adacore.com>
1668 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
1669 warnings unless the loop comes from source, because checking generated
1670 loops is a waste of time, and makes it harder to debug
1671 Check_Infinite_Loop_Warning.
1673 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
1674 tested in the while loop is a renaming, do not warn. Otherwise, we get
1675 false alarms, because it's usually renaming something that we can't
1676 deal with (an indexed component, a global variable, ...).
1678 * gnat_rm.texi: Fix typo
1680 2009-04-15 Thomas Quinot <quinot@adacore.com>
1682 * sem_ch6.adb: Minor reformatting
1684 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
1686 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
1687 immediate parent of the controlled function call is a component
1690 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1692 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
1693 corresponding class-wide type is also in use.
1695 2009-04-15 Thomas Quinot <quinot@adacore.com>
1697 * frontend.adb: Minor comment fix
1699 2009-04-15 Robert Dewar <dewar@adacore.com>
1701 * gnatchop.adb (BOM_Length): New global variable
1702 (Write_Unit): Add new parameter Write_BOM
1703 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
1706 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
1708 2009-04-15 Geert Bosch <bosch@adacore.com>
1710 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
1711 (Backend_Overflow_Checks): Set to True.
1713 2009-04-15 Gary Dismukes <dismukes@adacore.com>
1715 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
1716 keyword is given in a record extension.
1718 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
1720 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
1721 of a controlled function call in the context of a record aggregate.
1722 This does not apply to array aggregates since the call will be expanded
1725 2009-04-15 Ed Falis <falis@adacore.com>
1727 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
1728 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
1729 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
1730 s-osinte-vxworks* and s-vxwext*.
1732 2009-04-15 Arnaud Charlet <charlet@adacore.com>
1734 * gcc-interface/Make-lang.in: Update dependencies.
1736 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
1739 2009-04-15 Robert Dewar <dewar@adacore.com>
1741 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
1742 of node for location for warning messages.
1744 * gnatchop.adb: Minor reformatting
1746 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1748 * exp_ch6.adb: additional guard for renaming declarations for in
1749 parameters of an array type.
1751 2009-04-15 Robert Dewar <dewar@adacore.com>
1753 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
1754 in case they were rewritten by expander (Force_Evaluation).
1756 * targparm.adb (Get_Target_Parameters): Correct check for
1757 Suppress_Exception_Locations.
1759 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1761 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
1762 inlined is of an array type that is not bit-packed, use a renaming
1763 declaration to capture its value, rather than a constant declaration.
1765 2009-04-15 Robert Dewar <dewar@adacore.com>
1767 * rtsfind.adb: Minor reformatting.
1769 2009-04-15 Emmanuel Briot <briot@adacore.com>
1771 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
1772 Restore, and free the saved context.
1774 2009-04-15 Gary Dismukes <dismukes@adacore.com>
1776 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
1777 for illegal private extension from a synchronized interface parent in
1778 front of check for illegal limited extension so that limited extension
1779 from a synchronized interface will be rejected.
1780 (Check_Ifaces): Check that a private extension that has a synchronized
1781 interface as a progenitor must be explicitly declared synchronized.
1782 Also check that a record extension cannot derive from a synchronized
1785 2009-04-15 Pascal Obry <obry@adacore.com>
1787 * adaint.h (__gnat_unlink): Add spec.
1788 (__gnat_rename): Likewise.
1790 2009-04-15 Vincent Celier <celier@adacore.com>
1792 * prj-nmsc.adb: Minor spelling error corrections in error messages
1794 2009-04-15 Robert Dewar <dewar@adacore.com>
1796 * sinfo.ads: Minor comment update
1798 * opt.ads: Minor comment updates
1800 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
1803 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1805 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
1806 that generates the code needed to update a dispatch table when a
1807 primitive operation is declared with a subprogram body without previous
1808 spec. Insertion of the generated code is responsibility of the caller.
1809 (Make_DT): When building static tables, append the code created by
1810 Register_Primitive to update a secondary table after it has been
1813 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
1815 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
1816 on an overriding operation that implements an interface operation only
1817 if not building static dispatch tables.
1819 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
1821 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
1822 does not cause overflow when converted to Duration. Use the safe value
1823 as the maximum allowable time delay..
1825 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
1827 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
1828 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
1829 translated to "-j 2".
1831 2009-04-15 Bob Duff <duff@adacore.com>
1833 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
1834 with_clauses, to avoid code duplication. Change this processing so we
1835 always add a with_clause on the main unit if needed.
1837 2009-04-15 Pascal Obry <obry@adacore.com>
1839 Add support for Win32 native encoding for delete/rename routines.
1841 * adaint.c (__gnat_unlink): New routine.
1842 (__gnat_rename): New routine.
1843 Simple wrapper routines used to convert to proper encoding on
1846 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
1847 call to the C library.
1849 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
1851 2009-04-15 Robert Dewar <dewar@adacore.com>
1853 * s-tassta.adb: Minor reformatting
1855 2009-04-15 Robert Dewar <dewar@adacore.com>
1857 * frontend.adb (Frontend): Set proper default for
1858 Warn_On_Non_Local_Exception.
1860 * opt.ads (Exception_Handler_Encountered): New flag
1861 (No_Warn_On_Non_Local_Exception): New flag
1863 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
1865 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
1866 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
1868 2009-04-15 Cyrille Comar <comar@adacore.com>
1870 * s-tassta.adb, a-exextr.adb, a-elchha.adb
1871 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
1872 message when exception traces are active since it would generate
1873 redundant information.
1874 (Exception_Traces.Notify_Exception): put message output by a critical
1875 section to avoid unsynchronized output.
1876 (Trace_Unhandled_Exception_In_Task): put message output by a critical
1877 section to avoid unsynchronized output.
1879 2009-04-15 Emmanuel Briot <briot@adacore.com>
1881 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
1882 (Free): New subprogram.
1884 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
1886 * a-calend.adb: Add new constant Nanos_In_Four_Years.
1887 (Formatting_Operations.Time_Of): Change the way four year chunks of
1888 nanoseconds are added to the intermediate result.
1890 2009-04-15 Nicolas Setton <setton@adacore.com>
1892 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
1893 does not need to wait for a carriage return.
1895 2009-04-15 Tristan Gingold <gingold@adacore.com>
1897 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
1900 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1902 * freeze.adb (Freeze_Entity): improve error message for improper use of
1904 Diagnose additional illegal uses of incomplete types in formal parts.
1905 appearing in formal parts.
1907 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
1909 2009-04-15 Robert Dewar <dewar@adacore.com>
1911 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
1913 2009-04-15 Nicolas Roche <roche@adacore.com>
1915 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
1918 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
1920 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
1922 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1924 * sem_ch4.adb: improve error message on exponentiation.
1926 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
1928 * a-calend.adb: Move constant Epoch_Offset from package
1929 Conversion_Operations to top level.
1930 (Delay_Operations.To_Duration): Define a constant which represents
1931 "end of time" and use it as a guard against very distant delay dates.
1932 Protect the code against overflow when performing the origin shift to
1935 2009-04-15 Robert Dewar <dewar@adacore.com>
1937 * sem_prag.adb: Minor reformatting.
1939 * sem_type.adb: Minor reformatting
1941 2009-04-15 Javier Miranda <miranda@adacore.com>
1943 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
1944 support to check eliminated subprograms.
1946 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
1948 * sem_elim.adb (Set_Eliminated): Add support for elimination of
1949 dispatching subprograms.
1951 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
1952 operations. Initialize with "null" the slots of eliminated dispaching
1954 (Write_DT): Add output for eliminated primitives.
1956 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
1958 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1960 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
1961 the second is redundant, regardless of scopes.
1963 2009-04-15 Vincent Celier <celier@adacore.com>
1965 * prj-nmsc.adb (Get_Directories): Check for sources before checking
1966 the object directory as when there are no sources, they may not be any
1969 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
1970 directory, when there are no exec directory.
1972 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1974 * sem_type.adb (Remove_Conversions): In order to resolve spurious
1975 ambiguities, refine removal of universal interpretations from complex
1976 expressions with literal arguments, when some numeric operators have
1977 been declared abstract.
1979 2009-04-15 Ed Falis <falis@adacore.com>
1981 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
1982 and backward compatibility for targets using probing for stack overflow
1984 2009-04-15 Ed Schonberg <schonberg@adacore.com>
1986 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
1987 after any declaration, including renaming declarations.
1989 2009-04-15 Arnaud Charlet <charlet@adacore.com>
1991 * gcc-interface/Make-lang.in: Update dependencies.
1993 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
1994 Update xenomai target pairs.
1996 2009-04-15 Javier Miranda <miranda@adacore.com>
1998 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
2000 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
2001 functions returning anonymous access to class-wide limited types. Mark
2002 also the containing scope as a task master.
2004 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
2005 limited-withed packages. Required to restore their visibility after
2006 processing packages associated with implicit with-clauses.
2008 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
2009 associated with return statements because this work is now done by
2010 Check_Anonymous_Return.
2011 (Build_Master): Code cleanup.
2013 2009-04-15 Thomas Quinot <quinot@adacore.com>
2015 * sem_warn.ads: Minor reformatting
2017 2009-04-15 Ed Schonberg <schonberg@adacore.com>
2019 * sem_ch3.adb: better error message for illegal interfaces
2021 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
2022 formal is an incomplete type from a limited_with clause.
2024 2009-04-15 Vincent Celier <celier@adacore.com>
2026 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
2027 Externally_Built indicating if the project is externally built. If it
2028 is, and --subdirs is specified, but the subdir does not exist, look
2029 for the specified directory, without the subdir.
2031 2009-04-15 Gary Dismukes <dismukes@adacore.com>
2033 * a-tasatt.adb: Fix typo, plus minor reformatting
2035 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
2037 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
2039 2009-04-15 Ed Schonberg <schonberg@adacore.com>
2041 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
2042 private extension whose parent is a synchronized interface carries an
2043 explicit synchronized keyword.
2045 2009-04-15 Thomas Quinot <quinot@adacore.com>
2047 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
2048 instantiate generic shared object package with the corresponding
2051 2009-04-15 Arnaud Charlet <charlet@adacore.com>
2053 * system-linux-sparc.ads: Remove obsolete entries.
2055 2009-04-15 Thomas Quinot <quinot@adacore.com>
2057 * s-tasuti.ads: Add ??? comment
2059 2009-04-15 Ed Schonberg <schonberg@adacore.com>
2061 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
2062 type even if the designated type comes from a limited_with clause, to
2063 ensure that the symbol for the finalization list of the access type is
2066 2009-04-10 Robert Dewar <dewar@adacore.com>
2068 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
2069 for warning suppression.
2071 2009-04-10 Ed Schonberg <schonberg@adacore.com>
2073 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
2074 identical, there is no redudancy to check.
2076 2009-04-10 Gary Dismukes <dismukes@adacore.com>
2078 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
2079 calls initializing SS_Allocator (which is initialized in following
2081 (Expand_Simple_Function_Return): Add comment about False value for
2082 Comes_From_Source on secondary-stack allocator.
2084 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
2085 (Build_Entry_Name): Add comment.
2087 2009-04-10 Robert Dewar <dewar@adacore.com>
2089 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
2091 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
2092 bound tested, since this is now done more generally in Sem_Res.
2094 * sem_res.adb (Resolve_Comparison_Op): Add call to
2095 Check_Lower_Bound_Tested.
2096 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
2098 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
2099 (Low_Bound_Tested): New name for Low_Bound_Known flag
2101 * exp_ch5.adb: Minor reformatting
2104 Add comments on copying the Comes_From_Source flag for allocators
2107 Add comments on copying the Comes_From_Source flag for allocators
2109 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
2110 Comes_From_Source flag from old allocator to new one.
2112 2009-04-10 Ed Schonberg <schonberg@adacore.com>
2114 * sem_ch6.ads: Address missing documentation query
2116 2009-04-10 Vincent Celier <celier@adacore.com>
2119 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
2120 and Response_File_Switches.
2122 * prj-nmsc.adb (Process_Linker): Process new attributes
2123 Max_Command_Line_Length, Response_File_Format and
2124 Response_File_Switches.
2126 * prj.ads (Response_File_Format): New enumeration type
2127 (Project_Configuration): New componants Max_Command_Line_Length,
2128 Resp_File_Format and Resp_File_Options.
2130 * snames.ads-tmpl: Add new standard names for linking response files
2131 for gprbuild: GNU, None, Object_List, Option_List,
2132 Max_Command_Line_Length, Response_File_Format and
2133 Response_File_Switches.
2135 2009-04-10 Geert Bosch <bosch@adacore.com>
2137 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
2138 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
2139 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
2140 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
2141 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
2142 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
2143 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
2144 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
2145 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
2146 system-vxworks-arm.ads, system-vxworks-m68k.ads,
2147 system-vxworks-mips.ads, system-vxworks-ppc.ads,
2148 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
2149 (Backend_Overflow_Checks): Set to True.
2151 2009-04-10 Thomas Quinot <quinot@adacore.com>
2153 * exp_attr.adb: Minor reformatting
2155 2009-04-10 Ed Schonberg <schonberg@adacore.com>
2157 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
2158 analyze the expression for a postcondition, even if the compiler mode
2161 2009-04-10 Robert Dewar <dewar@adacore.com>
2163 * sem_aux.adb: Minor reformatting
2165 2009-04-10 Ed Falis <falis@adacore.com>
2167 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
2169 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
2171 2009-04-10 Thomas Quinot <quinot@adacore.com>
2173 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
2174 undocumented formal.
2177 * a-direio.ads: Fix typo in comment
2179 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
2180 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
2181 Use uniform phrasing for comment at start of subprogram body.
2183 * xsnamest.adb: Add note to explain why we use specific names for the
2184 newly generated files instead of generating snames.{ads,adb,h} directly
2186 2009-04-10 Sergey Rybin <rybin@adacore.com>
2189 Add qualifier for new gnatstub option '--no-exception'
2192 Add the description of the new gnatstub option '--no-exception'
2194 2009-04-10 Robert Dewar <dewar@adacore.com>
2196 * rtsfind.adb: Minor reformatting
2198 2009-04-10 Thomas Quinot <quinot@adacore.com>
2200 * sem_disp.adb: Minor reformatting.
2201 Add comment pointing to RM clause for the case of warning against a
2202 (failed) attempt at declaring a primitive operation elsewhere than in a
2205 2009-04-10 Ed Schonberg <schonberg@adacore.com>
2207 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
2208 an actual for a previous formal package of the current instance.
2210 2009-04-10 Bob Duff <duff@adacore.com>
2212 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
2213 them first, rather than on the extended main unit.
2215 2009-04-10 Ed Schonberg <schonberg@adacore.com>
2217 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
2218 specification of full view carries a null exclusion indicator, create
2219 an itype for it, to check for conformance with partial view.
2221 2009-04-10 Bob Duff <duff@adacore.com>
2223 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
2225 * rtsfind.adb: Minor comment changes, and remove useless code.
2227 * sinfo.ads: Add ??? comment.
2229 2009-04-10 Vincent Celier <celier@adacore.com>
2231 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
2233 2009-04-10 Ed Schonberg <schonberg@adacore.com>
2235 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
2236 type is a synchronized type, retrieve tag information from the
2237 corresponding record, which has the dispatch table link.
2239 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
2241 * g-comlin.adb (Group_Analysis): Take care of switches that might be
2242 decomposed afterwards, but are present as-is in the command line
2243 configuration, and thus should be kept as-is.
2245 2009-04-10 Robert Dewar <dewar@adacore.com>
2247 * gnat_rm.texi: Document that postconditions are tested on implicit
2250 * sem_aux.adb: Minor reformatting
2252 2009-04-10 Gary Dismukes <dismukes@adacore.com>
2254 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
2257 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
2258 Null_Exclusion_In_Return_Present when an access-to-function type has a
2259 result type with an explicit not null.
2261 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
2262 given on the result type, then create a null-excluding itype for the
2265 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
2266 the case where a null exclusion is imposed on a named access type.
2267 (Analyze_Subprogram_Specification): Push and pop the scope of the
2268 function around the call to Analyze_Return_Type in the case of no
2269 formals, for consistency with handling when formals are present
2270 (Process_Formals does this). Ensures that any itype created for the
2271 return type will be associated with the proper scope.
2273 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
2274 exclusion is given on a generic function's result type, then create a
2275 null-excluding itype for the generic function.
2276 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
2277 for an actual for a formal in object according to the setting on the
2278 formal. Ensures null exclusion checks are done when the association is
2281 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
2282 N_Access_Function_Definition.
2284 * sinfo.adb: Add Get_ and Set_ operations for
2285 Null_Exclusion_In_Return_Present.
2287 2009-04-10 Bob Duff <duff@adacore.com>
2289 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
2290 call to the _Postconditions procedure in the case of implicit returns
2291 from analysis to expansion. This eliminates some duplicated code. Use
2292 the Postcondition_Proc to find the identity of this procedure during
2295 2009-04-10 Robert Dewar <dewar@adacore.com>
2297 * sem_ch6.adb: Minor code clean up.
2299 * einfo.ads, sem_attr.adb: Minor comment fixes.
2301 2009-04-10 Robert Dewar <dewar@adacore.com>
2303 * sem_ch8.adb: Minor reformatting
2305 2009-04-10 Robert Dewar <dewar@adacore.com>
2307 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
2310 * sem_ch6.adb: Minor code clean up.
2312 2009-04-10 Robert Dewar <dewar@adacore.com>
2314 * mlib-tgt-specific-xi.adb: Minor reformatting
2316 2009-04-10 Bob Duff <duff@adacore.com>
2318 * einfo.ads: Minor comment fixes
2320 2009-04-10 Vincent Celier <celier@adacore.com>
2322 * snames.ads-tmpl: Remove names that are no longer used in the
2324 Mark specifically those that are used only in gprbuild
2326 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
2328 * init.c: Adjust EH support code on Alpha/Tru64.
2330 2009-04-10 Bob Duff <duff@adacore.com>
2332 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
2333 procedure on every path that could return implicitly (not via a return
2334 statement) from a procedure.
2336 2009-04-10 Ed Schonberg <schonberg@adacore.com>
2338 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
2339 valid scope for a task declarations and therefore for a master id.
2341 2009-04-10 Robert Dewar <dewar@adacore.com>
2343 * sem_aux.adb: Minor reformatting
2345 2009-04-10 Vincent Celier <celier@adacore.com>
2347 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
2349 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
2350 (Set_Obsolescent_Check): New procedure to change the value of
2351 Obsolescent_Check_Flag.
2353 * scn.ads (Set_Obsolescent_Check): New procedure to control
2356 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
2357 obsolescent features while preprocessing.
2359 2009-04-10 Thomas Quinot <quinot@adacore.com>
2361 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
2362 generated files on all platforms.
2364 2009-04-10 Robert Dewar <dewar@adacore.com>
2366 * sem_aux.adb: Minor reformatting
2368 2009-04-10 Ed Schonberg <schonberg@adacore.com>
2370 * sem_ch3.adb (Access_Definition): Handle properly the case of a
2371 protected function with formals that returns an anonymous access type.
2373 2009-04-10 Thomas Quinot <quinot@adacore.com>
2375 * sem_disp.adb: Minor reformatting
2377 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
2379 * seh_init.c: Do not use the 32-bit specific implementation of
2380 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
2383 2009-04-10 Jose Ruiz <ruiz@adacore.com>
2385 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
2386 a '/' at the end so we better use the complete target name to determine
2387 whether it is a PowerPC 55xx target.
2389 2009-04-10 Thomas Quinot <quinot@adacore.com>
2391 * sem_eval.adb: Minor reformatting
2393 2009-04-10 Thomas Quinot <quinot@adacore.com>
2395 * snames.h, snames.ads, snames.adb: Remove files, now generated from
2398 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
2401 * xsnamest.adb: New file.
2403 * gcc-interface/Make-lang.in: New target for automated generation of
2404 snames.ads, snames.adb and snames.h
2406 2009-04-10 Tristan Gingold <gingold@adacore.com>
2408 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
2409 avoid compile time warnings.
2410 Do not add gcc/config in include search list while compiling the RTS.
2411 Pragma Thread_Local_Storage is available on any target.
2413 2009-04-10 Bob Duff <duff@adacore.com>
2415 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
2417 2009-04-10 Tristan Gingold <gingold@adacore.com>
2419 * init.c: Install signal handler on Darwin.
2421 2009-04-10 Robert Dewar <dewar@adacore.com>
2423 * sem_prag.adb: Minor reformatting
2425 * exp_util.adb (Make_Non_Empty_Check): New function
2426 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
2427 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
2429 2009-04-10 Arnaud Charlet <charlet@adacore.com>
2431 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
2433 2009-04-10 Jose Ruiz <ruiz@adacore.com>
2435 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
2436 tool prefix for AVR and PowerPC 55xx targets.
2438 2009-04-10 Robert Dewar <dewar@adacore.com>
2440 * sem_warn.adb (Within_Postcondition): New function
2441 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
2443 2009-04-10 Robert Dewar <dewar@adacore.com>
2445 * sem_warn.adb: Minor reformatting
2447 * make.adb: Minor reformatting.
2449 2009-04-10 Gary Dismukes <dismukes@adacore.com>
2451 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
2452 entity and the scope is a subprogram, retrieve the Sloc of the
2453 subprogram's body rather than using the sloc of the spec, for better
2454 line-stepping behavior in gdb.
2455 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
2456 controller, use the Sloc of the first declaration of the containing list
2457 rather than that of the node that triggered creation of the list
2460 2009-04-10 Vincent Celier <celier@adacore.com>
2462 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
2463 to avoid gcc warning.
2465 2009-04-10 Robert Dewar <dewar@adacore.com>
2467 * g-comlin.adb: Add ??? comment
2469 2009-04-10 Ed Schonberg <schonberg@adacore.com>
2471 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
2472 unreferenced entities for a package with no visible declarations.
2474 2009-04-10 Robert Dewar <dewar@adacore.com>
2476 * exp_ch9.adb: Minor reformatting
2478 2009-04-10 Thomas Quinot <quinot@adacore.com>
2480 * sem_prag.adb: Minor reformatting
2482 2009-04-10 Vincent Celier <celier@adacore.com>
2485 (Check_Library_Attributes): For a project qualified as a library project
2486 that is not a library project, indicate in the error message which
2487 attributes are missing (Library_Dir and/or Library_Name).
2489 2009-04-10 Bob Duff <duff@adacore.com>
2491 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
2492 generated nodes, because it might confuse various circuits in the FE.
2494 2009-04-10 Ed Schonberg <schonberg@adacore.com>
2496 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
2497 of pragma. It will be recopied and analyzed when used in call to
2500 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
2501 initialization operations and recognize use of it in procedure calls
2504 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
2505 argument, because it may have side-effects.
2507 * exp_ch2.adb: Remove obsolete comments on default functions
2509 2009-04-10 Jose Ruiz <ruiz@adacore.com>
2511 * adaint.c (RTX section): Do for RTX the same thing as we do for
2512 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
2514 2009-04-10 Robert Dewar <dewar@adacore.com>
2516 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
2518 * sem_res.adb (Resolve_Call): Fix test for
2519 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
2520 a non-dynamic scope).
2522 2009-04-10 Robert Dewar <dewar@adacore.com>
2524 * make.adb: Add comment.
2527 2009-04-10 Nicolas Setton <setton@adacore.com>
2529 * s-osprim-darwin.adb: New file.
2531 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
2533 2009-04-10 Thomas Quinot <quinot@adacore.com>
2535 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
2537 2009-04-09 Nick Clifton <nickc@redhat.com>
2539 * adadecode.h: Change copyright header to refer to version
2540 3 of the GNU General Public License with version 3.1 of the
2541 GCC Runtime Library Exception and to point readers at the
2542 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
2544 * 9drpc.adb: Likewise.
2545 * a-assert.adb: Likewise.
2546 * a-astaco.adb: Likewise.
2547 * a-calari.adb: Likewise.
2548 * a-calcon.adb: Likewise.
2549 * a-calcon.ads: Likewise.
2550 * a-caldel.ads: Likewise.
2551 * a-calend-vms.adb: Likewise.
2552 * a-calend-vms.ads: Likewise.
2553 * a-calend.adb: Likewise.
2554 * a-calend.ads: Likewise.
2555 * a-calfor.adb: Likewise.
2556 * a-catizo.adb: Likewise.
2557 * a-cdlili.adb: Likewise.
2558 * a-cdlili.ads: Likewise.
2559 * a-cgaaso.adb: Likewise.
2560 * a-cgaaso.ads: Likewise.
2561 * a-cgarso.adb: Likewise.
2562 * a-cgcaso.adb: Likewise.
2563 * a-chacon.adb: Likewise.
2564 * a-chacon.ads: Likewise.
2565 * a-chahan.adb: Likewise.
2566 * a-chahan.ads: Likewise.
2567 * a-chlat9.ads: Likewise.
2568 * a-chtgke.adb: Likewise.
2569 * a-chtgke.ads: Likewise.
2570 * a-chtgop.adb: Likewise.
2571 * a-chtgop.ads: Likewise.
2572 * a-chzla1.ads: Likewise.
2573 * a-chzla9.ads: Likewise.
2574 * a-cidlli.adb: Likewise.
2575 * a-cidlli.ads: Likewise.
2576 * a-cihama.adb: Likewise.
2577 * a-cihama.ads: Likewise.
2578 * a-cihase.adb: Likewise.
2579 * a-cihase.ads: Likewise.
2580 * a-ciorma.adb: Likewise.
2581 * a-ciorma.ads: Likewise.
2582 * a-ciormu.adb: Likewise.
2583 * a-ciormu.ads: Likewise.
2584 * a-ciorse.adb: Likewise.
2585 * a-ciorse.ads: Likewise.
2586 * a-clrefi.adb: Likewise.
2587 * a-clrefi.ads: Likewise.
2588 * a-cohama.adb: Likewise.
2589 * a-cohama.ads: Likewise.
2590 * a-cohase.adb: Likewise.
2591 * a-cohase.ads: Likewise.
2592 * a-cohata.ads: Likewise.
2593 * a-coinve.adb: Likewise.
2594 * a-coinve.ads: Likewise.
2595 * a-colien.adb: Likewise.
2596 * a-colien.ads: Likewise.
2597 * a-colire.adb: Likewise.
2598 * a-colire.ads: Likewise.
2599 * a-comlin.adb: Likewise.
2600 * a-comlin.ads: Likewise.
2601 * a-convec.adb: Likewise.
2602 * a-convec.ads: Likewise.
2603 * a-coorma.adb: Likewise.
2604 * a-coorma.ads: Likewise.
2605 * a-coormu.adb: Likewise.
2606 * a-coormu.ads: Likewise.
2607 * a-coorse.adb: Likewise.
2608 * a-coorse.ads: Likewise.
2609 * a-coprnu.adb: Likewise.
2610 * a-coprnu.ads: Likewise.
2611 * a-crbltr.ads: Likewise.
2612 * a-crbtgk.adb: Likewise.
2613 * a-crbtgk.ads: Likewise.
2614 * a-crbtgo.adb: Likewise.
2615 * a-crbtgo.ads: Likewise.
2616 * a-crdlli.adb: Likewise.
2617 * a-crdlli.ads: Likewise.
2618 * a-cwila1.ads: Likewise.
2619 * a-cwila9.ads: Likewise.
2620 * a-decima.adb: Likewise.
2621 * a-decima.ads: Likewise.
2622 * a-diocst.adb: Likewise.
2623 * a-diocst.ads: Likewise.
2624 * a-direct.adb: Likewise.
2625 * a-direct.ads: Likewise.
2626 * a-direio.adb: Likewise.
2627 * a-direio.ads: Likewise.
2628 * a-dirval-mingw.adb: Likewise.
2629 * a-dirval-vms.adb: Likewise.
2630 * a-dirval.adb: Likewise.
2631 * a-dirval.ads: Likewise.
2632 * a-dynpri.adb: Likewise.
2633 * a-einuoc.adb: Likewise.
2634 * a-einuoc.ads: Likewise.
2635 * a-elchha.adb: Likewise.
2636 * a-elchha.ads: Likewise.
2637 * a-envvar.adb: Likewise.
2638 * a-excach.adb: Likewise.
2639 * a-except-2005.adb: Likewise.
2640 * a-except-2005.ads: Likewise.
2641 * a-except.adb: Likewise.
2642 * a-except.ads: Likewise.
2643 * a-excpol-abort.adb: Likewise.
2644 * a-excpol.adb: Likewise.
2645 * a-exctra.adb: Likewise.
2646 * a-exctra.ads: Likewise.
2647 * a-exetim-mingw.adb: Likewise.
2648 * a-exetim-mingw.ads: Likewise.
2649 * a-exexda.adb: Likewise.
2650 * a-exexpr-gcc.adb: Likewise.
2651 * a-exexpr.adb: Likewise.
2652 * a-exextr.adb: Likewise.
2653 * a-exstat.adb: Likewise.
2654 * a-filico.adb: Likewise.
2655 * a-filico.ads: Likewise.
2656 * a-finali.adb: Likewise.
2657 * a-finali.ads: Likewise.
2658 * a-interr.ads: Likewise.
2659 * a-intnam-aix.ads: Likewise.
2660 * a-intnam-darwin.ads: Likewise.
2661 * a-intnam-dummy.ads: Likewise.
2662 * a-intnam-freebsd.ads: Likewise.
2663 * a-intnam-hpux.ads: Likewise.
2664 * a-intnam-irix.ads: Likewise.
2665 * a-intnam-linux.ads: Likewise.
2666 * a-intnam-lynxos.ads: Likewise.
2667 * a-intnam-mingw.ads: Likewise.
2668 * a-intnam-rtems.ads: Likewise.
2669 * a-intnam-solaris.ads: Likewise.
2670 * a-intnam-tru64.ads: Likewise.
2671 * a-intnam-vms.ads: Likewise.
2672 * a-intnam-vxworks.ads: Likewise.
2673 * a-intsig.adb: Likewise.
2674 * a-intsig.ads: Likewise.
2675 * a-ngcefu.adb: Likewise.
2676 * a-ngcoar.adb: Likewise.
2677 * a-ngcoty.adb: Likewise.
2678 * a-ngcoty.ads: Likewise.
2679 * a-ngelfu.adb: Likewise.
2680 * a-ngrear.adb: Likewise.
2681 * a-ngrear.ads: Likewise.
2682 * a-nudira.adb: Likewise.
2683 * a-nudira.ads: Likewise.
2684 * a-nuflra.adb: Likewise.
2685 * a-nuflra.ads: Likewise.
2686 * a-numaux-darwin.adb: Likewise.
2687 * a-numaux-darwin.ads: Likewise.
2688 * a-numaux-libc-x86.ads: Likewise.
2689 * a-numaux-vxworks.ads: Likewise.
2690 * a-numaux-x86.adb: Likewise.
2691 * a-numaux-x86.ads: Likewise.
2692 * a-numaux.ads: Likewise.
2693 * a-rbtgso.adb: Likewise.
2694 * a-rbtgso.ads: Likewise.
2695 * a-reatim.ads: Likewise.
2696 * a-retide.adb: Likewise.
2697 * a-retide.ads: Likewise.
2698 * a-rttiev.adb: Likewise.
2699 * a-rttiev.ads: Likewise.
2700 * a-secain.adb: Likewise.
2701 * a-secain.ads: Likewise.
2702 * a-sequio.adb: Likewise.
2703 * a-sequio.ads: Likewise.
2704 * a-shcain.adb: Likewise.
2705 * a-shcain.ads: Likewise.
2706 * a-siocst.adb: Likewise.
2707 * a-siocst.ads: Likewise.
2708 * a-slcain.adb: Likewise.
2709 * a-slcain.ads: Likewise.
2710 * a-ssicst.adb: Likewise.
2711 * a-ssicst.ads: Likewise.
2712 * a-stboha.adb: Likewise.
2713 * a-stmaco.ads: Likewise.
2714 * a-storio.adb: Likewise.
2715 * a-strbou.adb: Likewise.
2716 * a-strbou.ads: Likewise.
2717 * a-stream.ads: Likewise.
2718 * a-strfix.adb: Likewise.
2719 * a-strhas.adb: Likewise.
2720 * a-strmap.adb: Likewise.
2721 * a-strmap.ads: Likewise.
2722 * a-strsea.adb: Likewise.
2723 * a-strsea.ads: Likewise.
2724 * a-strsup.adb: Likewise.
2725 * a-strsup.ads: Likewise.
2726 * a-strunb.adb: Likewise.
2727 * a-strunb.ads: Likewise.
2728 * a-ststio.adb: Likewise.
2729 * a-ststio.ads: Likewise.
2730 * a-stunau.adb: Likewise.
2731 * a-stunau.ads: Likewise.
2732 * a-stunha.adb: Likewise.
2733 * a-stwibo.adb: Likewise.
2734 * a-stwibo.ads: Likewise.
2735 * a-stwifi.adb: Likewise.
2736 * a-stwiha.adb: Likewise.
2737 * a-stwima.adb: Likewise.
2738 * a-stwima.ads: Likewise.
2739 * a-stwise.adb: Likewise.
2740 * a-stwise.ads: Likewise.
2741 * a-stwisu.adb: Likewise.
2742 * a-stwisu.ads: Likewise.
2743 * a-stwiun.adb: Likewise.
2744 * a-stwiun.ads: Likewise.
2745 * a-stzbou.adb: Likewise.
2746 * a-stzbou.ads: Likewise.
2747 * a-stzfix.adb: Likewise.
2748 * a-stzhas.adb: Likewise.
2749 * a-stzmap.adb: Likewise.
2750 * a-stzmap.ads: Likewise.
2751 * a-stzsea.adb: Likewise.
2752 * a-stzsea.ads: Likewise.
2753 * a-stzsup.adb: Likewise.
2754 * a-stzsup.ads: Likewise.
2755 * a-stzunb.adb: Likewise.
2756 * a-stzunb.ads: Likewise.
2757 * a-suteio.adb: Likewise.
2758 * a-suteio.ads: Likewise.
2759 * a-swbwha.adb: Likewise.
2760 * a-swmwco.ads: Likewise.
2761 * a-swunau.adb: Likewise.
2762 * a-swunau.ads: Likewise.
2763 * a-swuwha.adb: Likewise.
2764 * a-swuwti.adb: Likewise.
2765 * a-swuwti.ads: Likewise.
2766 * a-sytaco.adb: Likewise.
2767 * a-sytaco.ads: Likewise.
2768 * a-szbzha.adb: Likewise.
2769 * a-szmzco.ads: Likewise.
2770 * a-szunau.adb: Likewise.
2771 * a-szunau.ads: Likewise.
2772 * a-szuzha.adb: Likewise.
2773 * a-szuzti.adb: Likewise.
2774 * a-szuzti.ads: Likewise.
2775 * a-tags.adb: Likewise.
2776 * a-tags.ads: Likewise.
2777 * a-tasatt.ads: Likewise.
2778 * a-taside.adb: Likewise.
2779 * a-taside.ads: Likewise.
2780 * a-taster.adb: Likewise.
2781 * a-teioed.adb: Likewise.
2782 * a-teioed.ads: Likewise.
2783 * a-textio.adb: Likewise.
2784 * a-textio.ads: Likewise.
2785 * a-tiboio.adb: Likewise.
2786 * a-ticoau.adb: Likewise.
2787 * a-ticoau.ads: Likewise.
2788 * a-ticoio.adb: Likewise.
2789 * a-ticoio.ads: Likewise.
2790 * a-tideau.adb: Likewise.
2791 * a-tideau.ads: Likewise.
2792 * a-tideio.adb: Likewise.
2793 * a-tideio.ads: Likewise.
2794 * a-tienau.adb: Likewise.
2795 * a-tienau.ads: Likewise.
2796 * a-tienio.adb: Likewise.
2797 * a-tienio.ads: Likewise.
2798 * a-tifiio.adb: Likewise.
2799 * a-tifiio.ads: Likewise.
2800 * a-tiflau.adb: Likewise.
2801 * a-tiflau.ads: Likewise.
2802 * a-tiflio.adb: Likewise.
2803 * a-tiflio.ads: Likewise.
2804 * a-tigeau.adb: Likewise.
2805 * a-tigeau.ads: Likewise.
2806 * a-tiinau.adb: Likewise.
2807 * a-tiinau.ads: Likewise.
2808 * a-tiinio.adb: Likewise.
2809 * a-tiinio.ads: Likewise.
2810 * a-timoau.adb: Likewise.
2811 * a-timoau.ads: Likewise.
2812 * a-timoio.adb: Likewise.
2813 * a-timoio.ads: Likewise.
2814 * a-tiocst.adb: Likewise.
2815 * a-tiocst.ads: Likewise.
2816 * a-titest.adb: Likewise.
2817 * a-wichun.adb: Likewise.
2818 * a-wichun.ads: Likewise.
2819 * a-witeio.adb: Likewise.
2820 * a-witeio.ads: Likewise.
2821 * a-wtcoau.adb: Likewise.
2822 * a-wtcoau.ads: Likewise.
2823 * a-wtcoio.adb: Likewise.
2824 * a-wtcstr.adb: Likewise.
2825 * a-wtcstr.ads: Likewise.
2826 * a-wtdeau.adb: Likewise.
2827 * a-wtdeau.ads: Likewise.
2828 * a-wtdeio.adb: Likewise.
2829 * a-wtdeio.ads: Likewise.
2830 * a-wtedit.adb: Likewise.
2831 * a-wtedit.ads: Likewise.
2832 * a-wtenau.adb: Likewise.
2833 * a-wtenau.ads: Likewise.
2834 * a-wtenio.adb: Likewise.
2835 * a-wtenio.ads: Likewise.
2836 * a-wtfiio.adb: Likewise.
2837 * a-wtfiio.ads: Likewise.
2838 * a-wtflau.adb: Likewise.
2839 * a-wtflau.ads: Likewise.
2840 * a-wtflio.adb: Likewise.
2841 * a-wtflio.ads: Likewise.
2842 * a-wtgeau.adb: Likewise.
2843 * a-wtgeau.ads: Likewise.
2844 * a-wtinau.adb: Likewise.
2845 * a-wtinau.ads: Likewise.
2846 * a-wtinio.adb: Likewise.
2847 * a-wtmoau.adb: Likewise.
2848 * a-wtmoau.ads: Likewise.
2849 * a-wtmoio.adb: Likewise.
2850 * a-wtmoio.ads: Likewise.
2851 * a-wttest.adb: Likewise.
2852 * a-wwboio.adb: Likewise.
2853 * a-zchuni.adb: Likewise.
2854 * a-zchuni.ads: Likewise.
2855 * a-ztcoau.adb: Likewise.
2856 * a-ztcoau.ads: Likewise.
2857 * a-ztcoio.adb: Likewise.
2858 * a-ztcstr.adb: Likewise.
2859 * a-ztcstr.ads: Likewise.
2860 * a-ztdeau.adb: Likewise.
2861 * a-ztdeau.ads: Likewise.
2862 * a-ztdeio.adb: Likewise.
2863 * a-ztdeio.ads: Likewise.
2864 * a-ztedit.adb: Likewise.
2865 * a-ztedit.ads: Likewise.
2866 * a-ztenau.adb: Likewise.
2867 * a-ztenau.ads: Likewise.
2868 * a-ztenio.adb: Likewise.
2869 * a-ztenio.ads: Likewise.
2870 * a-ztexio.adb: Likewise.
2871 * a-ztexio.ads: Likewise.
2872 * a-ztfiio.adb: Likewise.
2873 * a-ztfiio.ads: Likewise.
2874 * a-ztflau.adb: Likewise.
2875 * a-ztflau.ads: Likewise.
2876 * a-ztflio.adb: Likewise.
2877 * a-ztflio.ads: Likewise.
2878 * a-ztgeau.adb: Likewise.
2879 * a-ztgeau.ads: Likewise.
2880 * a-ztinau.adb: Likewise.
2881 * a-ztinau.ads: Likewise.
2882 * a-ztinio.adb: Likewise.
2883 * a-ztmoau.adb: Likewise.
2884 * a-ztmoau.ads: Likewise.
2885 * a-ztmoio.adb: Likewise.
2886 * a-ztmoio.ads: Likewise.
2887 * a-zttest.adb: Likewise.
2888 * a-zzboio.adb: Likewise.
2889 * adadecode.c: Likewise.
2890 * adaint.c: Likewise.
2891 * adaint.h: Likewise.
2892 * alloc.ads: Likewise.
2894 * arit64.c: Likewise.
2895 * atree.adb: Likewise.
2896 * atree.ads: Likewise.
2897 * aux-io.c: Likewise.
2899 * casing.adb: Likewise.
2900 * casing.ads: Likewise.
2902 * csets.adb: Likewise.
2903 * csets.ads: Likewise.
2904 * cstreams.c: Likewise.
2905 * ctrl_c.c: Likewise.
2906 * debug.adb: Likewise.
2907 * debug.ads: Likewise.
2908 * dec.ads: Likewise.
2909 * einfo.adb: Likewise.
2910 * einfo.ads: Likewise.
2911 * elists.adb: Likewise.
2912 * elists.ads: Likewise.
2915 * errno.c: Likewise.
2918 * final.c: Likewise.
2919 * fname.adb: Likewise.
2920 * fname.ads: Likewise.
2921 * g-allein.ads: Likewise.
2922 * g-alleve.adb: Likewise.
2923 * g-alleve.ads: Likewise.
2924 * g-altcon.adb: Likewise.
2925 * g-altcon.ads: Likewise.
2926 * g-altive.ads: Likewise.
2927 * g-alveop.adb: Likewise.
2928 * g-alveop.ads: Likewise.
2929 * g-alvety.ads: Likewise.
2930 * g-alvevi.ads: Likewise.
2931 * g-arrspl.adb: Likewise.
2932 * g-arrspl.ads: Likewise.
2933 * g-calend.ads: Likewise.
2934 * g-comlin.adb: Likewise.
2935 * g-debpoo.adb: Likewise.
2936 * g-debpoo.ads: Likewise.
2937 * g-eacodu-vms.adb: Likewise.
2938 * g-eacodu.adb: Likewise.
2939 * g-excact.adb: Likewise.
2940 * g-excact.ads: Likewise.
2941 * g-locfil.adb: Likewise.
2942 * g-os_lib.ads: Likewise.
2943 * g-rannum.adb: Likewise.
2944 * g-rannum.ads: Likewise.
2945 * g-regist.adb: Likewise.
2946 * g-regist.ads: Likewise.
2947 * g-signal.adb: Likewise.
2948 * g-signal.ads: Likewise.
2949 * g-soccon.ads: Likewise.
2950 * g-string.adb: Likewise.
2951 * g-string.ads: Likewise.
2952 * g-strspl.ads: Likewise.
2953 * g-timsta.adb: Likewise.
2954 * g-timsta.ads: Likewise.
2955 * g-trasym-vms-alpha.adb: Likewise.
2956 * g-trasym-vms-ia64.adb: Likewise.
2957 * g-utf_32.adb: Likewise.
2958 * g-utf_32.ads: Likewise.
2959 * g-wistsp.ads: Likewise.
2960 * g-zstspl.ads: Likewise.
2962 * gnatvsn.adb: Likewise.
2963 * gnatvsn.ads: Likewise.
2964 * gsocket.h: Likewise.
2965 * hostparm.ads: Likewise.
2966 * i-c.adb: Likewise.
2967 * i-cexten.ads: Likewise.
2968 * i-cobol.adb: Likewise.
2969 * i-cobol.ads: Likewise.
2970 * i-cpoint.adb: Likewise.
2971 * i-cpoint.ads: Likewise.
2972 * i-cpp.adb: Likewise.
2973 * i-cpp.ads: Likewise.
2974 * i-cstrea-vms.adb: Likewise.
2975 * i-cstrea.adb: Likewise.
2976 * i-cstrea.ads: Likewise.
2977 * i-cstrin.adb: Likewise.
2978 * i-cstrin.ads: Likewise.
2979 * i-forbla-darwin.adb: Likewise.
2980 * i-forbla-unimplemented.ads: Likewise.
2981 * i-forbla.adb: Likewise.
2982 * i-forbla.ads: Likewise.
2983 * i-forlap.ads: Likewise.
2984 * i-fortra.adb: Likewise.
2985 * i-pacdec.adb: Likewise.
2986 * i-pacdec.ads: Likewise.
2987 * i-vxwoio.adb: Likewise.
2988 * i-vxwoio.ads: Likewise.
2989 * indepsw-aix.adb: Likewise.
2990 * indepsw-gnu.adb: Likewise.
2991 * indepsw-mingw.adb: Likewise.
2992 * indepsw.adb: Likewise.
2993 * indepsw.ads: Likewise.
2995 * initialize.c: Likewise.
2996 * interfac.ads: Likewise.
2997 * krunch.adb: Likewise.
2998 * krunch.ads: Likewise.
2999 * lib-list.adb: Likewise.
3000 * lib-sort.adb: Likewise.
3001 * lib.adb: Likewise.
3002 * lib.ads: Likewise.
3004 * math_lib.adb: Likewise.
3005 * memtrack.adb: Likewise.
3006 * mingw32.h: Likewise.
3007 * mkdir.c: Likewise.
3008 * namet-sp.adb: Likewise.
3009 * namet-sp.ads: Likewise.
3010 * namet.adb: Likewise.
3011 * namet.ads: Likewise.
3012 * nlists.adb: Likewise.
3013 * nlists.ads: Likewise.
3014 * opt.adb: Likewise.
3015 * opt.ads: Likewise.
3016 * output.adb: Likewise.
3017 * output.ads: Likewise.
3018 * raise-gcc.c: Likewise.
3019 * raise.c: Likewise.
3020 * raise.h: Likewise.
3021 * repinfo.adb: Likewise.
3022 * repinfo.ads: Likewise.
3023 * repinfo.h: Likewise.
3024 * rident.ads: Likewise.
3025 * s-addima.adb: Likewise.
3026 * s-addima.ads: Likewise.
3027 * s-addope.adb: Likewise.
3028 * s-addope.ads: Likewise.
3029 * s-arit64.adb: Likewise.
3030 * s-arit64.ads: Likewise.
3031 * s-assert.adb: Likewise.
3032 * s-assert.ads: Likewise.
3033 * s-asthan-vms-alpha.adb: Likewise.
3034 * s-asthan.adb: Likewise.
3035 * s-asthan.ads: Likewise.
3036 * s-atacco.adb: Likewise.
3037 * s-atacco.ads: Likewise.
3038 * s-auxdec-empty.adb: Likewise.
3039 * s-auxdec-empty.ads: Likewise.
3040 * s-auxdec-vms_64.ads: Likewise.
3041 * s-auxdec.adb: Likewise.
3042 * s-auxdec.ads: Likewise.
3043 * s-bitops.adb: Likewise.
3044 * s-bitops.ads: Likewise.
3045 * s-boarop.ads: Likewise.
3046 * s-carsi8.adb: Likewise.
3047 * s-carsi8.ads: Likewise.
3048 * s-carun8.adb: Likewise.
3049 * s-carun8.ads: Likewise.
3050 * s-casi16.adb: Likewise.
3051 * s-casi16.ads: Likewise.
3052 * s-casi32.adb: Likewise.
3053 * s-casi32.ads: Likewise.
3054 * s-casi64.adb: Likewise.
3055 * s-casi64.ads: Likewise.
3056 * s-casuti.ads: Likewise.
3057 * s-caun16.adb: Likewise.
3058 * s-caun16.ads: Likewise.
3059 * s-caun32.adb: Likewise.
3060 * s-caun32.ads: Likewise.
3061 * s-caun64.adb: Likewise.
3062 * s-caun64.ads: Likewise.
3063 * s-chepoo.ads: Likewise.
3064 * s-crc32.adb: Likewise.
3065 * s-crc32.ads: Likewise.
3066 * s-crtl.ads: Likewise.
3067 * s-direio.adb: Likewise.
3068 * s-direio.ads: Likewise.
3069 * s-dsaser.ads: Likewise.
3070 * s-except.adb: Likewise.
3071 * s-except.ads: Likewise.
3072 * s-exctab.adb: Likewise.
3073 * s-exctab.ads: Likewise.
3074 * s-exnint.adb: Likewise.
3075 * s-exnint.ads: Likewise.
3076 * s-exnllf.adb: Likewise.
3077 * s-exnllf.ads: Likewise.
3078 * s-exnlli.adb: Likewise.
3079 * s-exnlli.ads: Likewise.
3080 * s-expint.adb: Likewise.
3081 * s-expint.ads: Likewise.
3082 * s-explli.adb: Likewise.
3083 * s-explli.ads: Likewise.
3084 * s-expllu.adb: Likewise.
3085 * s-expllu.ads: Likewise.
3086 * s-expmod.adb: Likewise.
3087 * s-expmod.ads: Likewise.
3088 * s-expuns.adb: Likewise.
3089 * s-expuns.ads: Likewise.
3090 * s-fatflt.ads: Likewise.
3091 * s-fatgen.adb: Likewise.
3092 * s-fatgen.ads: Likewise.
3093 * s-fatlfl.ads: Likewise.
3094 * s-fatllf.ads: Likewise.
3095 * s-fatsfl.ads: Likewise.
3096 * s-ficobl.ads: Likewise.
3097 * s-fileio.adb: Likewise.
3098 * s-fileio.ads: Likewise.
3099 * s-filofl.ads: Likewise.
3100 * s-finimp.adb: Likewise.
3101 * s-finimp.ads: Likewise.
3102 * s-finroo.adb: Likewise.
3103 * s-finroo.ads: Likewise.
3104 * s-fishfl.ads: Likewise.
3105 * s-fore.adb: Likewise.
3106 * s-fore.ads: Likewise.
3107 * s-fvadfl.ads: Likewise.
3108 * s-fvaffl.ads: Likewise.
3109 * s-fvagfl.ads: Likewise.
3110 * s-gearop.adb: Likewise.
3111 * s-gearop.ads: Likewise.
3112 * s-gecobl.adb: Likewise.
3113 * s-gecobl.ads: Likewise.
3114 * s-gecola.adb: Likewise.
3115 * s-gecola.ads: Likewise.
3116 * s-gerebl.adb: Likewise.
3117 * s-gerebl.ads: Likewise.
3118 * s-gerela.adb: Likewise.
3119 * s-gerela.ads: Likewise.
3120 * s-geveop.adb: Likewise.
3121 * s-geveop.ads: Likewise.
3122 * s-gloloc.adb: Likewise.
3123 * s-gloloc.ads: Likewise.
3124 * s-hibaen.ads: Likewise.
3125 * s-imenne.adb: Likewise.
3126 * s-imenne.ads: Likewise.
3127 * s-imgbiu.adb: Likewise.
3128 * s-imgbiu.ads: Likewise.
3129 * s-imgboo.adb: Likewise.
3130 * s-imgboo.ads: Likewise.
3131 * s-imgcha.adb: Likewise.
3132 * s-imgcha.ads: Likewise.
3133 * s-imgdec.adb: Likewise.
3134 * s-imgdec.ads: Likewise.
3135 * s-imgenu.adb: Likewise.
3136 * s-imgenu.ads: Likewise.
3137 * s-imgint.adb: Likewise.
3138 * s-imgint.ads: Likewise.
3139 * s-imgllb.adb: Likewise.
3140 * s-imgllb.ads: Likewise.
3141 * s-imglld.adb: Likewise.
3142 * s-imglld.ads: Likewise.
3143 * s-imglli.adb: Likewise.
3144 * s-imglli.ads: Likewise.
3145 * s-imgllu.adb: Likewise.
3146 * s-imgllu.ads: Likewise.
3147 * s-imgllw.adb: Likewise.
3148 * s-imgllw.ads: Likewise.
3149 * s-imgrea.adb: Likewise.
3150 * s-imgrea.ads: Likewise.
3151 * s-imguns.adb: Likewise.
3152 * s-imguns.ads: Likewise.
3153 * s-imgwch.adb: Likewise.
3154 * s-imgwch.ads: Likewise.
3155 * s-imgwiu.adb: Likewise.
3156 * s-imgwiu.ads: Likewise.
3157 * s-inmaop-dummy.adb: Likewise.
3158 * s-inmaop-vms.adb: Likewise.
3159 * s-inmaop.ads: Likewise.
3160 * s-interr-hwint.adb: Likewise.
3161 * s-interr-sigaction.adb: Likewise.
3162 * s-interr-vms.adb: Likewise.
3163 * s-interr.adb: Likewise.
3164 * s-interr.ads: Likewise.
3165 * s-intman-dummy.adb: Likewise.
3166 * s-intman-mingw.adb: Likewise.
3167 * s-intman-posix.adb: Likewise.
3168 * s-intman-solaris.adb: Likewise.
3169 * s-intman-vms.adb: Likewise.
3170 * s-intman-vms.ads: Likewise.
3171 * s-intman-vxworks.adb: Likewise.
3172 * s-intman-vxworks.ads: Likewise.
3173 * s-intman.ads: Likewise.
3174 * s-io.adb: Likewise.
3175 * s-io.ads: Likewise.
3176 * s-linux-alpha.ads: Likewise.
3177 * s-linux-hppa.ads: Likewise.
3178 * s-linux.ads: Likewise.
3179 * s-maccod.ads: Likewise.
3180 * s-mantis.adb: Likewise.
3181 * s-mantis.ads: Likewise.
3182 * s-mastop-irix.adb: Likewise.
3183 * s-mastop.adb: Likewise.
3184 * s-mastop.ads: Likewise.
3185 * s-memcop.ads: Likewise.
3186 * s-memory-mingw.adb: Likewise.
3187 * s-memory.adb: Likewise.
3188 * s-memory.ads: Likewise.
3189 * s-os_lib.ads: Likewise.
3190 * s-oscons-tmplt.c: Likewise.
3191 * s-osinte-aix.adb: Likewise.
3192 * s-osinte-darwin.adb: Likewise.
3193 * s-osinte-freebsd.adb: Likewise.
3194 * s-osinte-irix.adb: Likewise.
3195 * s-osinte-lynxos-3.adb: Likewise.
3196 * s-osinte-rtems.ads: Likewise.
3197 * s-osinte-tru64.adb: Likewise.
3198 * s-osinte-vxworks-kernel.adb: Likewise.
3199 * s-osinte-vxworks.adb: Likewise.
3200 * s-osprim-mingw.adb: Likewise.
3201 * s-osprim-posix.adb: Likewise.
3202 * s-osprim-solaris.adb: Likewise.
3203 * s-osprim-unix.adb: Likewise.
3204 * s-osprim-vms.adb: Likewise.
3205 * s-osprim-vms.ads: Likewise.
3206 * s-osprim-vxworks.adb: Likewise.
3207 * s-osprim.ads: Likewise.
3208 * s-pack03.adb: Likewise.
3209 * s-pack03.ads: Likewise.
3210 * s-pack05.adb: Likewise.
3211 * s-pack05.ads: Likewise.
3212 * s-pack06.adb: Likewise.
3213 * s-pack06.ads: Likewise.
3214 * s-pack07.adb: Likewise.
3215 * s-pack07.ads: Likewise.
3216 * s-pack09.adb: Likewise.
3217 * s-pack09.ads: Likewise.
3218 * s-pack10.adb: Likewise.
3219 * s-pack10.ads: Likewise.
3220 * s-pack11.adb: Likewise.
3221 * s-pack11.ads: Likewise.
3222 * s-pack12.adb: Likewise.
3223 * s-pack12.ads: Likewise.
3224 * s-pack13.adb: Likewise.
3225 * s-pack13.ads: Likewise.
3226 * s-pack14.adb: Likewise.
3227 * s-pack14.ads: Likewise.
3228 * s-pack15.adb: Likewise.
3229 * s-pack15.ads: Likewise.
3230 * s-pack17.adb: Likewise.
3231 * s-pack17.ads: Likewise.
3232 * s-pack18.adb: Likewise.
3233 * s-pack18.ads: Likewise.
3234 * s-pack19.adb: Likewise.
3235 * s-pack19.ads: Likewise.
3236 * s-pack20.adb: Likewise.
3237 * s-pack20.ads: Likewise.
3238 * s-pack21.adb: Likewise.
3239 * s-pack21.ads: Likewise.
3240 * s-pack22.adb: Likewise.
3241 * s-pack22.ads: Likewise.
3242 * s-pack23.adb: Likewise.
3243 * s-pack23.ads: Likewise.
3244 * s-pack24.adb: Likewise.
3245 * s-pack24.ads: Likewise.
3246 * s-pack25.adb: Likewise.
3247 * s-pack25.ads: Likewise.
3248 * s-pack26.adb: Likewise.
3249 * s-pack26.ads: Likewise.
3250 * s-pack27.adb: Likewise.
3251 * s-pack27.ads: Likewise.
3252 * s-pack28.adb: Likewise.
3253 * s-pack28.ads: Likewise.
3254 * s-pack29.adb: Likewise.
3255 * s-pack29.ads: Likewise.
3256 * s-pack30.adb: Likewise.
3257 * s-pack30.ads: Likewise.
3258 * s-pack31.adb: Likewise.
3259 * s-pack31.ads: Likewise.
3260 * s-pack33.adb: Likewise.
3261 * s-pack33.ads: Likewise.
3262 * s-pack34.adb: Likewise.
3263 * s-pack34.ads: Likewise.
3264 * s-pack35.adb: Likewise.
3265 * s-pack35.ads: Likewise.
3266 * s-pack36.adb: Likewise.
3267 * s-pack36.ads: Likewise.
3268 * s-pack37.adb: Likewise.
3269 * s-pack37.ads: Likewise.
3270 * s-pack38.adb: Likewise.
3271 * s-pack38.ads: Likewise.
3272 * s-pack39.adb: Likewise.
3273 * s-pack39.ads: Likewise.
3274 * s-pack40.adb: Likewise.
3275 * s-pack40.ads: Likewise.
3276 * s-pack41.adb: Likewise.
3277 * s-pack41.ads: Likewise.
3278 * s-pack42.adb: Likewise.
3279 * s-pack42.ads: Likewise.
3280 * s-pack43.adb: Likewise.
3281 * s-pack43.ads: Likewise.
3282 * s-pack44.adb: Likewise.
3283 * s-pack44.ads: Likewise.
3284 * s-pack45.adb: Likewise.
3285 * s-pack45.ads: Likewise.
3286 * s-pack46.adb: Likewise.
3287 * s-pack46.ads: Likewise.
3288 * s-pack47.adb: Likewise.
3289 * s-pack47.ads: Likewise.
3290 * s-pack48.adb: Likewise.
3291 * s-pack48.ads: Likewise.
3292 * s-pack49.adb: Likewise.
3293 * s-pack49.ads: Likewise.
3294 * s-pack50.adb: Likewise.
3295 * s-pack50.ads: Likewise.
3296 * s-pack51.adb: Likewise.
3297 * s-pack51.ads: Likewise.
3298 * s-pack52.adb: Likewise.
3299 * s-pack52.ads: Likewise.
3300 * s-pack53.adb: Likewise.
3301 * s-pack53.ads: Likewise.
3302 * s-pack54.adb: Likewise.
3303 * s-pack54.ads: Likewise.
3304 * s-pack55.adb: Likewise.
3305 * s-pack55.ads: Likewise.
3306 * s-pack56.adb: Likewise.
3307 * s-pack56.ads: Likewise.
3308 * s-pack57.adb: Likewise.
3309 * s-pack57.ads: Likewise.
3310 * s-pack58.adb: Likewise.
3311 * s-pack58.ads: Likewise.
3312 * s-pack59.adb: Likewise.
3313 * s-pack59.ads: Likewise.
3314 * s-pack60.adb: Likewise.
3315 * s-pack60.ads: Likewise.
3316 * s-pack61.adb: Likewise.
3317 * s-pack61.ads: Likewise.
3318 * s-pack62.adb: Likewise.
3319 * s-pack62.ads: Likewise.
3320 * s-pack63.adb: Likewise.
3321 * s-pack63.ads: Likewise.
3322 * s-parame-ae653.ads: Likewise.
3323 * s-parame-hpux.ads: Likewise.
3324 * s-parame-rtems.adb: Likewise.
3325 * s-parame-vms-alpha.ads: Likewise.
3326 * s-parame-vms-ia64.ads: Likewise.
3327 * s-parame-vms-restrict.ads: Likewise.
3328 * s-parame-vxworks.adb: Likewise.
3329 * s-parame-vxworks.ads: Likewise.
3330 * s-parame.adb: Likewise.
3331 * s-parame.ads: Likewise.
3332 * s-parint.adb: Likewise.
3333 * s-parint.ads: Likewise.
3334 * s-pooglo.adb: Likewise.
3335 * s-pooglo.ads: Likewise.
3336 * s-pooloc.adb: Likewise.
3337 * s-pooloc.ads: Likewise.
3338 * s-poosiz.adb: Likewise.
3339 * s-poosiz.ads: Likewise.
3340 * s-powtab.ads: Likewise.
3341 * s-proinf-irix-athread.adb: Likewise.
3342 * s-proinf-irix-athread.ads: Likewise.
3343 * s-proinf.adb: Likewise.
3344 * s-proinf.ads: Likewise.
3345 * s-purexc.ads: Likewise.
3346 * s-rannum.adb: Likewise.
3347 * s-rannum.ads: Likewise.
3348 * s-restri.adb: Likewise.
3349 * s-restri.ads: Likewise.
3350 * s-rident.ads: Likewise.
3351 * s-rpc.adb: Likewise.
3352 * s-rpc.ads: Likewise.
3353 * s-scaval.adb: Likewise.
3354 * s-scaval.ads: Likewise.
3355 * s-secsta.adb: Likewise.
3356 * s-secsta.ads: Likewise.
3357 * s-sequio.adb: Likewise.
3358 * s-sequio.ads: Likewise.
3359 * s-shasto.adb: Likewise.
3360 * s-shasto.ads: Likewise.
3361 * s-soflin.adb: Likewise.
3362 * s-soflin.ads: Likewise.
3363 * s-solita.adb: Likewise.
3364 * s-solita.ads: Likewise.
3365 * s-sopco3.adb: Likewise.
3366 * s-sopco3.ads: Likewise.
3367 * s-sopco4.adb: Likewise.
3368 * s-sopco4.ads: Likewise.
3369 * s-sopco5.adb: Likewise.
3370 * s-sopco5.ads: Likewise.
3371 * s-stache.adb: Likewise.
3372 * s-stache.ads: Likewise.
3373 * s-stalib.adb: Likewise.
3374 * s-stalib.ads: Likewise.
3375 * s-stausa.adb: Likewise.
3376 * s-stausa.ads: Likewise.
3377 * s-stchop-limit.ads: Likewise.
3378 * s-stchop-rtems.adb: Likewise.
3379 * s-stchop-vxworks.adb: Likewise.
3380 * s-stchop.adb: Likewise.
3381 * s-stchop.ads: Likewise.
3382 * s-stoele.adb: Likewise.
3383 * s-stoele.ads: Likewise.
3384 * s-stopoo.adb: Likewise.
3385 * s-stopoo.ads: Likewise.
3386 * s-stratt.adb: Likewise.
3387 * s-stratt.ads: Likewise.
3388 * s-strcom.adb: Likewise.
3389 * s-strcom.ads: Likewise.
3390 * s-string.adb: Likewise.
3391 * s-string.ads: Likewise.
3392 * s-strops.adb: Likewise.
3393 * s-strops.ads: Likewise.
3394 * s-strxdr.adb: Likewise.
3395 * s-ststop.adb: Likewise.
3396 * s-ststop.ads: Likewise.
3397 * s-taasde.adb: Likewise.
3398 * s-taasde.ads: Likewise.
3399 * s-tadeca.adb: Likewise.
3400 * s-tadeca.ads: Likewise.
3401 * s-tadert.adb: Likewise.
3402 * s-tadert.ads: Likewise.
3403 * s-taenca.adb: Likewise.
3404 * s-taenca.ads: Likewise.
3405 * s-taprob.ads: Likewise.
3406 * s-taprop-dummy.adb: Likewise.
3407 * s-taprop-hpux-dce.adb: Likewise.
3408 * s-taprop-irix.adb: Likewise.
3409 * s-taprop-linux.adb: Likewise.
3410 * s-taprop-lynxos.adb: Likewise.
3411 * s-taprop-mingw.adb: Likewise.
3412 * s-taprop-posix.adb: Likewise.
3413 * s-taprop-solaris.adb: Likewise.
3414 * s-taprop-tru64.adb: Likewise.
3415 * s-taprop-vms.adb: Likewise.
3416 * s-taprop-vxworks.adb: Likewise.
3417 * s-taprop.ads: Likewise.
3418 * s-tarest.adb: Likewise.
3419 * s-tarest.ads: Likewise.
3420 * s-tasdeb.adb: Likewise.
3421 * s-tasdeb.ads: Likewise.
3422 * s-tasinf-irix.ads: Likewise.
3423 * s-tasinf-linux.adb: Likewise.
3424 * s-tasinf-linux.ads: Likewise.
3425 * s-tasinf-mingw.adb: Likewise.
3426 * s-tasinf-mingw.ads: Likewise.
3427 * s-tasinf-solaris.adb: Likewise.
3428 * s-tasinf-solaris.ads: Likewise.
3429 * s-tasinf-tru64.ads: Likewise.
3430 * s-tasinf.adb: Likewise.
3431 * s-tasinf.ads: Likewise.
3432 * s-tasini.adb: Likewise.
3433 * s-tasini.ads: Likewise.
3434 * s-taskin.adb: Likewise.
3435 * s-taskin.ads: Likewise.
3436 * s-taspri-dummy.ads: Likewise.
3437 * s-taspri-hpux-dce.ads: Likewise.
3438 * s-taspri-mingw.ads: Likewise.
3439 * s-taspri-solaris.ads: Likewise.
3440 * s-taspri-tru64.ads: Likewise.
3441 * s-taspri-vms.ads: Likewise.
3442 * s-taspri-vxworks.ads: Likewise.
3443 * s-tasque.adb: Likewise.
3444 * s-tasque.ads: Likewise.
3445 * s-tasren.adb: Likewise.
3446 * s-tasren.ads: Likewise.
3447 * s-tasres.ads: Likewise.
3448 * s-tassta.adb: Likewise.
3449 * s-tassta.ads: Likewise.
3450 * s-tasuti.adb: Likewise.
3451 * s-tasuti.ads: Likewise.
3452 * s-tfsetr-default.adb: Likewise.
3453 * s-tfsetr-vxworks.adb: Likewise.
3454 * s-tpinop.adb: Likewise.
3455 * s-tpinop.ads: Likewise.
3456 * s-tpoben.adb: Likewise.
3457 * s-tpoben.ads: Likewise.
3458 * s-tpobop.adb: Likewise.
3459 * s-tpobop.ads: Likewise.
3460 * s-tpopde-vms.adb: Likewise.
3461 * s-tpopde-vms.ads: Likewise.
3462 * s-tpopsp-lynxos.adb: Likewise.
3463 * s-tpopsp-posix-foreign.adb: Likewise.
3464 * s-tpopsp-posix.adb: Likewise.
3465 * s-tpopsp-solaris.adb: Likewise.
3466 * s-tpopsp-vxworks.adb: Likewise.
3467 * s-tporft.adb: Likewise.
3468 * s-tposen.adb: Likewise.
3469 * s-tposen.ads: Likewise.
3470 * s-traceb.adb: Likewise.
3471 * s-traceb.ads: Likewise.
3472 * s-traces-default.adb: Likewise.
3473 * s-traces.adb: Likewise.
3474 * s-traces.ads: Likewise.
3475 * s-traent-vms.adb: Likewise.
3476 * s-traent-vms.ads: Likewise.
3477 * s-traent.adb: Likewise.
3478 * s-traent.ads: Likewise.
3479 * s-trafor-default.adb: Likewise.
3480 * s-trafor-default.ads: Likewise.
3481 * s-tratas-default.adb: Likewise.
3482 * s-tratas.adb: Likewise.
3483 * s-tratas.ads: Likewise.
3484 * s-unstyp.ads: Likewise.
3485 * s-utf_32.adb: Likewise.
3486 * s-utf_32.ads: Likewise.
3487 * s-vaflop-vms-alpha.adb: Likewise.
3488 * s-vaflop.adb: Likewise.
3489 * s-vaflop.ads: Likewise.
3490 * s-valboo.adb: Likewise.
3491 * s-valboo.ads: Likewise.
3492 * s-valcha.adb: Likewise.
3493 * s-valcha.ads: Likewise.
3494 * s-valdec.adb: Likewise.
3495 * s-valdec.ads: Likewise.
3496 * s-valenu.adb: Likewise.
3497 * s-valenu.ads: Likewise.
3498 * s-valint.adb: Likewise.
3499 * s-valint.ads: Likewise.
3500 * s-vallld.adb: Likewise.
3501 * s-vallld.ads: Likewise.
3502 * s-vallli.adb: Likewise.
3503 * s-vallli.ads: Likewise.
3504 * s-valllu.adb: Likewise.
3505 * s-valllu.ads: Likewise.
3506 * s-valrea.adb: Likewise.
3507 * s-valrea.ads: Likewise.
3508 * s-valuns.adb: Likewise.
3509 * s-valuns.ads: Likewise.
3510 * s-valuti.adb: Likewise.
3511 * s-valuti.ads: Likewise.
3512 * s-valwch.adb: Likewise.
3513 * s-valwch.ads: Likewise.
3514 * s-veboop.adb: Likewise.
3515 * s-veboop.ads: Likewise.
3516 * s-vector.ads: Likewise.
3517 * s-vercon.adb: Likewise.
3518 * s-vercon.ads: Likewise.
3519 * s-vmexta.adb: Likewise.
3520 * s-vmexta.ads: Likewise.
3521 * s-vxwext-kernel.ads: Likewise.
3522 * s-vxwext-rtp.adb: Likewise.
3523 * s-vxwext-rtp.ads: Likewise.
3524 * s-vxwext.ads: Likewise.
3525 * s-vxwork-arm.ads: Likewise.
3526 * s-vxwork-m68k.ads: Likewise.
3527 * s-vxwork-mips.ads: Likewise.
3528 * s-vxwork-ppc.ads: Likewise.
3529 * s-vxwork-sparcv9.ads: Likewise.
3530 * s-vxwork-x86.ads: Likewise.
3531 * s-wchcnv.adb: Likewise.
3532 * s-wchcnv.ads: Likewise.
3533 * s-wchcon.adb: Likewise.
3534 * s-wchcon.ads: Likewise.
3535 * s-wchjis.adb: Likewise.
3536 * s-wchjis.ads: Likewise.
3537 * s-wchstw.adb: Likewise.
3538 * s-wchstw.ads: Likewise.
3539 * s-wchwts.adb: Likewise.
3540 * s-wchwts.ads: Likewise.
3541 * s-widboo.adb: Likewise.
3542 * s-widboo.ads: Likewise.
3543 * s-widcha.adb: Likewise.
3544 * s-widcha.ads: Likewise.
3545 * s-widenu.adb: Likewise.
3546 * s-widenu.ads: Likewise.
3547 * s-widlli.adb: Likewise.
3548 * s-widlli.ads: Likewise.
3549 * s-widllu.adb: Likewise.
3550 * s-widllu.ads: Likewise.
3551 * s-widwch.adb: Likewise.
3552 * s-widwch.ads: Likewise.
3553 * s-win32.ads: Likewise.
3554 * s-winext.ads: Likewise.
3555 * s-wwdcha.adb: Likewise.
3556 * s-wwdcha.ads: Likewise.
3557 * s-wwdenu.adb: Likewise.
3558 * s-wwdenu.ads: Likewise.
3559 * s-wwdwch.adb: Likewise.
3560 * s-wwdwch.ads: Likewise.
3561 * scans.adb: Likewise.
3562 * scans.ads: Likewise.
3563 * seh_init.c: Likewise.
3564 * sfn_scan.adb: Likewise.
3565 * sinfo.adb: Likewise.
3566 * sinfo.ads: Likewise.
3567 * sinput.adb: Likewise.
3568 * sinput.ads: Likewise.
3569 * snames.adb: Likewise.
3570 * snames.ads: Likewise.
3571 * socket.c: Likewise.
3572 * stand.adb: Likewise.
3573 * stand.ads: Likewise.
3574 * stringt.adb: Likewise.
3575 * stringt.ads: Likewise.
3576 * sysdep.c: Likewise.
3577 * system-aix.ads: Likewise.
3578 * system-darwin-ppc.ads: Likewise.
3579 * system-darwin-x86.ads: Likewise.
3580 * system-darwin-x86_64.ads: Likewise.
3581 * system-freebsd-x86.ads: Likewise.
3582 * system-hpux-ia64.ads: Likewise.
3583 * system-hpux.ads: Likewise.
3584 * system-irix-n32.ads: Likewise.
3585 * system-irix-n64.ads: Likewise.
3586 * system-irix-o32.ads: Likewise.
3587 * system-linux-alpha.ads: Likewise.
3588 * system-linux-hppa.ads: Likewise.
3589 * system-linux-ia64.ads: Likewise.
3590 * system-linux-mips.ads: Likewise.
3591 * system-linux-mipsel.ads: Likewise.
3592 * system-linux-ppc.ads: Likewise.
3593 * system-linux-ppc64.ads: Likewise.
3594 * system-linux-s390.ads: Likewise.
3595 * system-linux-s390x.ads: Likewise.
3596 * system-linux-sh4.ads: Likewise.
3597 * system-linux-sparc.ads: Likewise.
3598 * system-linux-sparcv9.ads: Likewise.
3599 * system-linux-x86.ads: Likewise.
3600 * system-linux-x86_64.ads: Likewise.
3601 * system-lynxos-ppc.ads: Likewise.
3602 * system-lynxos-x86.ads: Likewise.
3603 * system-mingw-x86_64.ads: Likewise.
3604 * system-mingw.ads: Likewise.
3605 * system-rtems.ads: Likewise.
3606 * system-solaris-sparc.ads: Likewise.
3607 * system-solaris-sparcv9.ads: Likewise.
3608 * system-solaris-x86.ads: Likewise.
3609 * system-solaris-x86_64.ads: Likewise.
3610 * system-tru64.ads: Likewise.
3611 * system-vms-ia64.ads: Likewise.
3612 * system-vms-zcx.ads: Likewise.
3613 * system-vms.ads: Likewise.
3614 * system-vms_64.ads: Likewise.
3615 * system-vxworks-arm.ads: Likewise.
3616 * system-vxworks-m68k.ads: Likewise.
3617 * system-vxworks-mips.ads: Likewise.
3618 * system-vxworks-ppc.ads: Likewise.
3619 * system-vxworks-sparcv9.ads: Likewise.
3620 * system-vxworks-x86.ads: Likewise.
3621 * system.ads: Likewise.
3622 * table.adb: Likewise.
3623 * table.ads: Likewise.
3624 * targext.c: Likewise.
3625 * targparm.ads: Likewise.
3626 * tree_in.adb: Likewise.
3627 * tree_in.ads: Likewise.
3628 * tree_io.adb: Likewise.
3629 * tree_io.ads: Likewise.
3630 * types.adb: Likewise.
3631 * types.ads: Likewise.
3632 * uintp.adb: Likewise.
3633 * uintp.ads: Likewise.
3634 * uname.adb: Likewise.
3635 * uname.ads: Likewise.
3636 * urealp.adb: Likewise.
3637 * urealp.ads: Likewise.
3638 * vx_stack_info.c: Likewise.
3639 * widechar.adb: Likewise.
3640 * widechar.ads: Likewise.
3641 * exp_attr.adb: Change copyright header to refer to version
3642 3 of the GNU General Public License and to point readers at the
3643 COPYING3 file and the FSF's license web page.
3644 * sem.adb: Likewise.
3645 * sem_attr.ads: Likewise.
3646 * freeze.adb: Likewise.
3647 * freeze.ads: Likewise.
3648 * errout.ads: Likewise.
3649 * erroutc.adb: Likewise.
3650 * exp_ch11.ads: Likewise.
3652 2009-04-09 Jakub Jelinek <jakub@redhat.com>
3654 * config-lang.in: Change copyright header to refer to version
3655 3 of the GNU General Public License and to point readers at the
3656 COPYING3 file and the FSF's license web page.
3657 * gcc-interface/trans.c: Likewise.
3658 * gnathtml.pl: Likewise.
3659 * gcc-interface/ada.h: Likewise. Remove runtime exception.
3660 * gcc-interface/gigi.h: Likewise.
3661 * gcc-interface/misc.c: Likewise.
3662 * gcc-interface/targtyps.c: Likewise.
3664 2009-04-09 Nicolas Setton <setton@adacore.com>
3666 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
3668 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
3671 2009-04-09 Bob Duff <duff@adacore.com>
3673 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
3674 internally-generated nodes related to select statements to avoid
3675 confusing the debugger.
3677 2009-04-09 Pascal Obry <obry@adacore.com>
3679 * make.adb: Ensure that all linker arguments are duplicated.
3681 2009-04-09 Robert Dewar <dewar@adacore.com>
3683 * sem_ch5.adb: Minor reformatting
3685 2009-04-09 Vincent Celier <celier@adacore.com>
3688 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
3689 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
3690 New qualifier /LXDEBUG=nnn for -gnatDnnn
3694 Update documentation for VMS qualifiers equivalent to -gnatGnn and
3697 2009-04-09 Nicolas Setton <setton@adacore.com>
3699 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
3700 to match layout of siginfo_t in sys/signal.h.
3702 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
3704 2009-04-09 Thomas Quinot <quinot@adacore.com>
3706 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
3708 2009-04-09 Nicolas Setton <setton@adacore.com>
3710 * s-oscons-tmplt.c: Allow long lines in the generated spec.
3711 Add generation of Darwin-specific constants needed when binding to the
3714 2009-04-09 Robert Dewar <dewar@adacore.com>
3717 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
3718 when no invalid values exist, Avoid duplicate read of atomic variable.
3720 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
3721 (Standard_Unsigned): Set Is_Known_Valid
3723 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
3724 subtype declaration if no constraint.
3725 (Set_Modular_Size): Set Is_Known_Valid if appropriate
3726 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
3728 2009-04-09 Robert Dewar <dewar@adacore.com>
3730 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
3731 switch.ads: for numeric switches, an optional equal sign is always
3734 2009-04-09 Vincent Celier <celier@adacore.com>
3736 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
3737 the case of file names is not significant.
3739 2009-04-09 Vincent Celier <celier@adacore.com>
3741 * errout.adb: Remove dependency on package Style
3743 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
3746 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
3749 * errutil.adb, par.adb: Import Stylesw
3751 2009-04-09 Arnaud Charlet <charlet@adacore.com>
3753 * opt.ads: Fix typos.
3755 2009-04-09 Robert Dewar <dewar@adacore.com>
3757 * einfo.adb: Minor reformatting
3759 2009-04-09 Robert Dewar <dewar@adacore.com>
3761 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
3764 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
3766 2009-04-09 Robert Dewar <dewar@adacore.com>
3768 * g-comver.adb: Minor reformatting.
3770 2009-04-09 Thomas Quinot <quinot@adacore.com>
3772 * lib-load.ads (Load_Unit): Update documentation.
3774 2009-04-09 Ed Schonberg <schonberg@adacore.com>
3776 * lib-load.adb (Load_Unit): When loading the parent of a child unit
3777 named in a with_clause, retain the with_clause to preserve a
3778 limited_with indication.
3780 2009-04-09 Robert Dewar <dewar@adacore.com>
3782 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
3783 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
3784 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
3785 possible to replace an OR of two separate tests.
3787 2009-04-09 Robert Dewar <dewar@adacore.com>
3789 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
3792 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
3793 warning status as well.
3795 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
3797 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
3800 * bindusg.adb, usage.adb: Update line for -gnatm switch
3802 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
3805 2009-04-09 Robert Dewar <dewar@adacore.com>
3807 * sem_ch10.adb: Minor reformatting.
3809 2009-04-09 Bob Duff <duff@adacore.com>
3811 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
3812 Set Sloc of generated nodes for calls to Undefer_Aborts and
3813 Save_Occurrence to No_Location, so the debugger ignores them and
3814 therefore does not jump back and forth when single stepping.
3816 2009-04-09 Robert Dewar <dewar@adacore.com>
3818 * switch-b.adb: Minor reformatting.
3820 2009-04-09 Robert Dewar <dewar@adacore.com>
3822 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
3823 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
3824 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
3825 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
3826 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
3827 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
3828 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
3829 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
3830 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
3831 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
3832 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
3834 2009-04-09 Robert Dewar <dewar@adacore.com>
3836 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
3838 * atree.h: Add Elist26
3840 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
3843 2009-04-09 Javier Miranda <miranda@adacore.com>
3845 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
3846 retrieve from the Dispatch_Table_Wrappers list the external name.
3847 Addition of documentation.
3848 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
3849 used to export secondary dispatch tables (in the previous version of
3850 the frontend only primary dispatch tables were exported). Addition of
3852 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
3853 dispatch table of a given tagged type.
3854 (Make_Tags): Modified to import secondary dispatch tables.
3856 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
3857 (Constant_Redeclaration): Code cleanup.
3859 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
3860 Dispatch_Table_Wrappers. Update documentation.
3862 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
3863 Renamed to Dispatch_Table_Wrappers.
3865 * sem_util.adb (Collect_Interface_Components): Improve handling of
3868 * atree.ads (Elist26, Set_Elist26): New subprograms
3870 * atree.adb (Elist26, Set_Elist26): New subprograms
3872 2009-04-09 Javier Miranda <miranda@adacore.com>
3874 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
3875 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
3878 2009-04-09 Robert Dewar <dewar@adacore.com>
3880 * s-direio.adb: Minor reformatting
3882 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
3884 2009-04-09 Robert Dewar <dewar@adacore.com>
3886 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
3888 2009-04-09 Pascal Obry <obry@adacore.com>
3890 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
3891 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
3892 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
3893 a-filico.ads: Add some missing overriding keywords.
3895 2009-04-09 Pascal Obry <obry@adacore.com>
3897 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
3898 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
3899 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
3902 2009-04-09 Ed Schonberg <schonberg@adacore.com>
3904 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
3905 missing overriding indicator if the new declaration is not seen as
3908 2009-04-09 Thomas Quinot <quinot@adacore.com>
3910 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
3911 overflows in computation of bounds.
3913 2009-04-09 Pascal Obry <obry@adacore.com>
3915 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
3918 2009-04-09 Robert Dewar <dewar@adacore.com>
3920 * sem_attr.adb (Check_Stream_Attribute): Check violation of
3921 restriction No_Streams
3923 * gnat_rm.texi: Clarify No_Streams restriction
3925 * g-socket.adb: Minor reformatting.
3927 2009-04-09 Thomas Quinot <quinot@adacore.com>
3929 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
3931 2009-04-09 Geert Bosch <bosch@adacore.com>
3933 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
3934 (Set_Result): Likewise.
3935 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
3936 conversion, as required by RM 4.6(31).
3938 2009-04-08 Robert Dewar <dewar@adacore.com>
3940 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
3943 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
3946 2009-04-08 Robert Dewar <dewar@adacore.com>
3948 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
3949 No_Local_Allocators restriction preventing local instantiation.
3951 2009-04-08 Thomas Quinot <quinot@adacore.com>
3953 * sem_eval.adb: Minor comment fix
3955 2009-04-08 Thomas Quinot <quinot@adacore.com>
3957 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
3958 New limited controlled type used to automate the initialization and
3959 finalization of the sockets implementation.
3960 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
3962 2009-04-08 Vincent Celier <celier@adacore.com>
3964 * prj-attr.adb: New read-only project-level attribute Project_Dir
3966 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
3967 read-only attribute of the same name.
3968 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
3969 (Recursive_Process): Ditto
3971 * snames.adb: Add new standard name Project_Dir
3973 * snames.ads: Add new standard name Project_Dir
3975 2009-04-08 Thomas Quinot <quinot@adacore.com>
3977 * checks.adb: Minor reformatting
3979 2009-04-08 Vincent Celier <celier@adacore.com>
3981 * vms_data.ads: Add documentation for new style keyword
3982 OVERRIDING_INDICATORS
3984 2009-04-08 Robert Dewar <dewar@adacore.com>
3986 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
3987 spec is in the current unit.
3989 2009-04-08 Ed Schonberg <schonberg@adacore.com>
3991 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
3994 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
3996 2009-04-08 Vincent Celier <celier@adacore.com>
3998 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
4000 2009-04-08 Thomas Quinot <quinot@adacore.com>
4002 * checks.ads: Minor reformatting
4004 2009-04-08 Robert Dewar <dewar@adacore.com>
4006 * gnat_rm.texi: Update documentation of pragma Obsolescent
4008 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
4009 be omitted, and allow Entity parameter to be omitted.
4011 2009-04-08 Thomas Quinot <quinot@adacore.com>
4013 * exp_util.adb: Minor comment fix
4015 2009-04-08 Robert Dewar <dewar@adacore.com>
4017 * g-socket.ads: Fix bad syntax in pragma Obsolescent
4019 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
4020 argument with no identifier following one that has an identifier. Was
4021 missed in some cases.
4023 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
4025 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
4027 * snames.adb: Add Name_Policy
4029 * snames.ads: Add Name_Policy
4031 2009-04-08 Robert Dewar <dewar@adacore.com>
4033 * gnat_rm.texi: Minor reformatting
4035 * par-ch2.adb: Minor reformatting
4037 2009-04-08 Robert Dewar <dewar@adacore.com>
4039 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
4041 2009-04-08 Robert Dewar <dewar@adacore.com>
4043 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
4044 properly in the presence of Remote_Types or Remote_Call_Interface.
4046 * sem_util.adb: Add comment.
4048 2009-04-08 Robert Dewar <dewar@adacore.com>
4050 * ug_words: Add /ASSUME_VALID for -gnatB
4052 * vms_data.ads: Add /ASSUME_VALID for -gnatB
4054 * sem_cat.adb: Add clarifying commment
4056 * a-direio.ads (Bytes): Make sure value is non-zero
4058 2009-04-08 Ed Schonberg <schonberg@adacore.com>
4060 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
4061 that does not come from source, check for a rewritten function call in
4062 prefixed notation before other forms of rewriting.
4064 2009-04-08 Robert Dewar <dewar@adacore.com>
4066 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
4067 these are now obsolescent units used only for bootrapping with an
4070 2009-04-08 Robert Dewar <dewar@adacore.com>
4072 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
4074 * sem_ch3.adb: Minor comment updates
4076 2009-04-08 Ed Schonberg <schonberg@adacore.com>
4078 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
4079 that come from source.
4081 2009-04-08 Tristan Gingold <gingold@adacore.com>
4083 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
4084 * gcc-interface/decl.c (prepend_attributes): New case
4085 Pragma_Thread_Local_Storage.
4086 * gcc-interface/utils.c (process_attributes): New case
4087 ATTR_THREAD_LOCAL_STORAGE.
4089 2009-04-08 Ed Schonberg <schonberg@adacore.com>
4091 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
4092 by the back-end if it contains a call to a subprogram without a
4093 previous spec that is declared in the same unit.
4095 * errout.ads: Update comments on uses of dirs
4097 2009-04-08 Robert Dewar <dewar@adacore.com>
4099 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
4101 2009-04-08 Tristan Gingold <gingold@adacore.com>
4103 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
4105 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
4107 2009-04-08 Vincent Celier <celier@adacore.com>
4110 (Add_Source): Add the mapping of the unit name to source file name in
4111 the Unit_Sources_HT hash table, if the unit name is not null.
4113 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
4115 * prj.ads (Unit_Sources_Htable): New hash table instantiation
4116 (Project_Tree_Data): New component Unit_Sources_HT
4118 2009-04-08 Thomas Quinot <quinot@adacore.com>
4120 * sem_ch8.adb: Minor reformatting.
4121 Minor code reorganization.
4123 2009-04-08 Robert Dewar <dewar@adacore.com>
4125 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
4126 snames.ads, freeze.adb, par-prag.adb: Add implementation of
4127 pragma Thread_Local_Storage, setting new flag
4128 Has_Pragma_Thread_Local_Storage in corresponding entities.
4130 2009-04-08 Emmanuel Briot <briot@adacore.com>
4132 * prj.ads: Update comment on switches file
4134 * prj-nmsc.adb: Code clean up. Use renaming clauses.
4136 2009-04-08 Robert Dewar <dewar@adacore.com>
4138 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
4140 2009-04-08 Thomas Quinot <quinot@adacore.com>
4142 * ali-util.adb: Minor comment fix
4144 2009-04-08 Ed Schonberg <schonberg@adacore.com>
4146 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
4147 appears in a context clause, and the enclosing package is mentioned in
4148 a limited_with_clause.
4149 (Use_One_Type): Reject clause if type is still incomplete.
4151 2009-04-08 Emmanuel Briot <briot@adacore.com>
4153 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
4154 avoid copies of Source_Data variables when possible, since these
4155 involve calls to memcpy() which are done too many times.
4157 2009-04-08 Robert Dewar <dewar@adacore.com>
4159 * exp_ch4.adb (Expand_Concatenate): Clean up code
4161 2009-04-07 Thomas Quinot <quinot@adacore.com>
4163 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
4164 type for the case of concatenating a constrained array indexed by an
4167 2009-04-07 Ed Schonberg <schonberg@adacore.com>
4169 * sem_ch6.adb (Check_Conformance): when checking conformance of an
4170 operation that overrides an abstract operation inherited from an
4171 interface, return False if only one of the controlling formals is an
4174 2009-04-07 Ed Schonberg <schonberg@adacore.com>
4176 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
4177 mandated by AI05-105.
4179 2009-04-07 Vincent Celier <celier@adacore.com>
4181 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
4183 2009-04-07 Thomas Quinot <quinot@adacore.com>
4185 * usage.adb: Minor fix in usage message.
4187 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
4188 match declaration; the correct subtype is Node_Id, not Entity_Id,
4189 because the expected node kind is an identifier, not a defining
4192 * switch-c.adb: Minor reformatting.
4194 * uintp.adb: Minor reformatting.
4196 2009-04-07 Robert Dewar <dewar@adacore.com>
4198 * exp_ch13.adb: Minor reformatting
4200 2009-04-07 Robert Dewar <dewar@adacore.com>
4202 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
4203 against missing parent.
4205 2009-04-07 Thomas Quinot <quinot@adacore.com>
4207 * xoscons.adb: Minor reformatting
4209 2009-04-07 Robert Dewar <dewar@adacore.com>
4211 * rtsfind.ads: Remove obsolete string concatenation entries
4213 2009-04-07 Robert Dewar <dewar@adacore.com>
4215 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
4217 2009-04-07 Ed Schonberg <schonberg@adacore.com>
4219 * sem_ch10.adb (Check_Body_Required): Handle properly imported
4222 2009-04-07 Gary Dismukes <dismukes@adacore.com>
4224 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
4225 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
4226 is of a scalar or string type then suppress the setting of the
4227 expression to Empty.
4229 * freeze.adb (Warn_Overlay): Also emit the warnings about default
4230 initialization for the cases of scalar and string objects when
4231 Init_Or_Norm_Scalars is True.
4233 2009-04-07 Bob Duff <duff@adacore.com>
4235 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
4237 2009-04-07 Bob Duff <duff@adacore.com>
4239 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
4240 Form parameter of Text_Translation=No allows binary mode for Text_IO
4243 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
4245 2009-04-07 Javier Miranda <miranda@adacore.com>
4247 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
4248 processing the bounds for bit packed arrays or VM target machines.
4250 2009-04-07 Thomas Quinot <quinot@adacore.com>
4252 * g-sothco.ads (Int_Access): Remove extraneous access type (use
4253 anonymous access instead).
4254 (Get_Socket_From_Set): Fix incorrectly reverted formals
4255 Last and Socket to match the underlying C routine.
4257 * g-socket.adb, g-socket.ads
4258 (Get): Use named parameter associations instead of positional ones in
4259 call go Get_Socket_From_Set, since this routine has two formals of the
4261 (Image): New procedure.
4263 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4264 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
4265 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
4266 for type of Arg formal.
4268 * sem_warn.adb: Minor reformatting
4270 2009-04-07 Ed Schonberg <schonberg@adacore.com>
4272 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
4273 over record components.
4275 2009-04-07 Nicolas Roche <roche@adacore.com>
4278 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
4279 has disappeared between VxWorks 6.4 and VxWorks 6.5
4280 In RTP mode use time.h instead of times.h
4282 2009-04-07 Robert Dewar <dewar@adacore.com>
4284 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
4286 2009-04-07 Kevin Pouget <pouget@adacore.com>
4288 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
4289 expanded code for constrained types.
4291 2009-04-07 Ed Schonberg <schonberg@adacore.com>
4293 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
4294 AI05-105: in an object renaming declaration, anonymousness is a name
4297 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
4299 2009-04-07 Arnaud Charlet <charlet@adacore.com>
4301 * g-comlin.adb (Expansion): Fix old regression: also return directory
4302 names when matching.
4304 2009-04-07 Robert Dewar <dewar@adacore.com>
4307 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
4308 (Expand_Concatenate): New name for Expand_Concatenate_String which has
4309 been rewritten to handle all types.
4310 (Expand_Concatenate_Other): Remove
4312 2009-04-07 Ed Schonberg <schonberg@adacore.com>
4314 * lib-xref.adb (Generate_Reference): A default subprogram in an
4315 instance appears within the tree for the instance, but generates an
4316 implicit reference in the ALI.
4318 2009-04-07 Javier Miranda <miranda@adacore.com>
4320 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
4321 derived type that has discriminants, propagate the list of interfaces
4322 to the corresponding new base type. In addition, propagate also
4323 attribute Limited_Present (found working in this patch).
4325 2009-04-07 Robert Dewar <dewar@adacore.com>
4327 * exp_ch4.adb: Rewrite concatenation expansion.
4329 2009-04-07 Ed Schonberg <schonberg@adacore.com>
4331 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
4332 relevant to packages.
4334 2009-04-07 Robert Dewar <dewar@adacore.com>
4336 * sem_attr.adb: Minor reformatting
4338 * sem_ch6.adb: Minor reformatting
4340 2009-04-07 Tristan Gingold <gingold@adacore.com>
4342 * socket.c: Add more protections against S_resolvLib_ macros.
4344 2009-04-07 Thomas Quinot <quinot@adacore.com>
4346 * sem_attr.adb: Minor reformatting
4348 2009-04-07 Ed Schonberg <schonberg@adacore.com>
4350 * sem_ch6.adb (New_Overloaded_Entity): New predicate
4351 Is_Overriding_Alias to handle properly types that inherit two homonym
4352 operations that have distinct dispatch table entries.
4354 2009-04-07 Emmanuel Briot <briot@adacore.com>
4356 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
4357 looking for the end of a parenthesis group
4359 2009-04-07 Tristan Gingold <gingold@adacore.com>
4361 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
4363 * socket.c Don't use resolvLib_ macros if not defined.
4365 2009-04-07 Robert Dewar <dewar@adacore.com>
4367 * g-socket.adb: Minor reformatting.
4369 * g-socthi-mingw.adb: Minor reformatting
4371 * g-sothco.ads: Minor reformatting
4374 (Expand_Concatenate_String): Complete rewrite to generate efficient code
4375 inline instead of relying on external library routines.
4377 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
4378 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
4381 2009-04-07 Ed Schonberg <schonberg@adacore.com>
4384 (Eval_Attribute): for attributes of array objects that are not strings,
4385 attributes are not static if nominal subtype of object is unconstrained.
4387 2009-04-07 Ed Schonberg <schonberg@adacore.com>
4389 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
4390 operations for a type T in an instance do not override each other,
4391 when T is derived from a formal private type, the corresponding
4392 operations inherited by a type derived from T outside
4393 of the instance do not override each other either.
4395 2009-04-07 Robert Dewar <dewar@adacore.com>
4397 (Osint.Fail): Change calling sequence to have one string arg
4398 (Make.Make_Failed): Same change
4399 All callers are adjusted to use concatenation
4401 2009-04-07 Robert Dewar <dewar@adacore.com>
4403 * exp_ch4.adb: Fix documentation typo
4405 2009-04-07 Robert Dewar <dewar@adacore.com>
4407 * tbuild.ads: Minor reformatting
4409 2009-04-07 Javier Miranda <miranda@adacore.com>
4411 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
4412 when compiling under ZFP runtime.
4414 2009-04-07 Robert Dewar <dewar@adacore.com>
4416 * g-comlin.adb: Minor reformatting
4418 2009-04-07 Thomas Quinot <quinot@adacore.com>
4420 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4421 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4422 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
4423 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
4425 2009-04-07 Robert Dewar <dewar@adacore.com>
4427 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
4429 * opt.ads (Sprint_Line_Limit): New parameter
4431 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
4433 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
4435 * usage.adb: Output information for -gnatGnn -gnatDnn
4437 2009-04-07 Robert Dewar <dewar@adacore.com>
4439 * make.adb: Minor reformatting
4441 2009-04-07 Robert Dewar <dewar@adacore.com>
4443 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
4445 2009-04-07 Robert Dewar <dewar@adacore.com>
4447 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
4449 2009-04-07 Robert Dewar <dewar@adacore.com>
4452 Remove Assume_Valid parameter from In_Subrange_Of calls
4455 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
4456 (Is_In_Range): Remove incorrect use of Assume_Valid
4457 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
4460 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
4461 (Is_In_Range): Documentation cleanup
4462 (Is_Out_Of_Range): Documentation cleanup
4465 Add documentation for Assume_No_Invalid_Values pragma
4467 * sem_ch12.adb: Minor reformatting
4469 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
4471 * sem_prag.adb: Improve error message.
4473 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
4474 LF/CR no longer recognized as line terminator
4476 * switch.ads: Minor documentation improvement
4478 * vms_data.ads: Minor reformatting
4480 2009-04-07 Robert Dewar <dewar@adacore.com>
4482 * checks.adb (Determine_Range): Add Assume_Valid parameter
4484 * checks.ads (Determine_Range): Add Assume_Valid parameter
4486 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
4487 Is_Null_Loop to suppress warnings in a loop body.
4490 (Rewrite_Comparison): Major rewrite to accomodate invalid values
4493 (Expand_N_Loop_Statement): Delete loop known not to execute
4496 (Assume_No_Invalid_Values): Now set to False, and as documented, this
4497 fully enables the proper handling of invalid values.
4500 New calling sequence for Is_In_Range
4503 (Analyze_Iteration_Scheme): Accomodate possible invalid values
4504 in determining if a loop range is null.
4507 (Is_In_Range): Add Assume_Valid parameter
4508 (Is_Out_Of_Range): Add Assume_Valid_Parameter
4509 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
4510 also to do more accurate and complete range analysis, catching more
4514 (Is_In_Range): Add Assume_Valid parameter
4515 (Is_Out_Of_Range): Add Assume_Valid_Parameter
4518 New calling sequence for Is_In_Range
4521 (Suppress_Loop_Warnings): New flag
4524 (Is_Null_Loop): Update documentation
4525 (Suppress_Loop_Warnings): New flag
4527 * gnat_ugn.texi: Document -gnatB switch
4529 2009-04-07 Arnaud Charlet <charlet@adacore.com>
4531 * gnatvsn.ads: Bump version number.
4533 2009-04-07 Thomas Quinot <quinot@adacore.com>
4535 * exp_ch3.adb: Minor rewording (comments)
4537 2009-04-07 Robert Dewar <dewar@adacore.com>
4539 * exp_disp.adb: Minor reformatting
4541 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
4543 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
4545 * gcc-interface/trans.c (lvalue_required_p): Likewise.
4547 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
4549 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
4550 Do not convert the result. Remove obsolete comment.
4552 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
4554 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
4556 (Subprogram_Body_to_gnu): Fix pasto.
4558 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
4560 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
4561 (void_type_decl_node): Remove.
4562 (init_gigi_decls): Likewise.
4563 (gnat_install_builtins): Declare.
4564 (record_builtin_type): Likewise.
4565 (create_type_stub_decl): Likewise.
4566 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
4567 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
4569 <E_Array_Subtype>: Use the index types, not only their name, in the
4570 record giving the names of the bounds, if any.
4571 For a packed array type, make it artificial only if the base type
4572 was artificial as well. Remove redundant statement.
4573 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
4575 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
4576 (rest_of_type_decl_compilation_no_defer): Likewise.
4577 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
4578 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
4579 and use create_type_stub_decl to build it.
4580 (gnat_pushdecl): Rewrite condition.
4581 (gnat_install_builtins): Remove bogus declaration.
4582 (record_builtin_type): New function.
4583 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
4585 (create_type_stub_decl): New function.
4586 (create_type_decl): Assert that the type is not dummy. If the type
4587 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
4588 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
4589 (build_vms_descriptor): Likewise.
4590 (init_gigi_decls): Delete and move bulk of code to...
4591 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
4592 (emit_range_check): Add gnat_node parameter.
4593 (emit_index_check): Likewise.
4594 (emit_check): Likewise.
4595 (build_unary_op_trapv): Likewise.
4596 (build_binary_op_trapv): Likewise.
4597 (convert_with_check): Likewise.
4598 (Attribute_to_gnu): Adjust calls for above changes.
4599 (call_to_gnu): Likewise.
4600 (gnat_to_gnu): Likewise.
4601 (assoc_to_constructor): Likewise.
4602 (pos_to_constructor): Likewise.
4603 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
4604 (process_type): Do not create TYPE_DECL for dummy types.
4606 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
4608 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
4609 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
4610 * gcc-interface/utils.c: Fix comments.
4612 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
4614 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
4616 (gnat_to_gnu_type): Move around.
4617 (get_unpadded_type): Likewise.
4618 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
4621 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
4623 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
4624 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
4625 (call_to_gnu): Invoke it instead of manually checking.
4627 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
4629 * gcc-interface/utils.c (finish_record_type): Force structural equality
4630 checks if the record type is discriminated.
4632 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
4634 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
4635 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
4636 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
4637 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
4638 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
4639 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
4640 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
4642 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
4644 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
4645 of TREE_CONSTANT_OVERFLOW.
4647 2009-03-30 Joseph Myers <joseph@codesourcery.com>
4649 PR rtl-optimization/323
4650 * gcc-interface/misc.c (gnat_post_options): Set
4651 flag_excess_precision_cmdline. Give an error for
4652 -fexcess-precision=standard for processors where the option is
4655 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
4658 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
4661 2009-03-11 Olivier Hainque <hainque@adacore.com>
4663 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
4664 checks processing, remove unintended TREE_TYPE walk on index type.
4666 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
4669 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
4670 call make_packable_type on fat pointer types.
4671 <E_Array_Subtype>: Likewise.
4672 <E_Record_Subtype>: Call make_packable_type on all record types
4673 except for fat pointer types.
4674 (make_packable_type): Likewise.
4675 (gnat_to_gnu_field): Likewise.
4677 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
4679 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
4680 EH_MECHANISM change made on 2007-12-06.
4682 2009-02-26 Andreas Schwab <schwab@suse.de>
4685 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
4686 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
4687 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
4689 (target_cpu_default): Substitute.
4691 2009-02-25 Laurent GUERBY <laurent@guerby.net>
4694 * a-teioed.adb (Expand): Fix Result overflow.
4696 2009-02-25 Laurent GUERBY <laurent@guerby.net>
4698 * gcc-interface/Makefile.in: Fix multilib handling for
4701 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4703 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
4705 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
4707 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
4709 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
4711 * gcc-interface/deftarg.c: Remove.
4713 2009-02-10 Olivier Hainque <hainque@adacore.com>
4714 Eric Botcazou <ebotcazou@adacore.com>
4716 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
4717 (copy_alias_set): Rename into...
4718 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
4719 underlying array of unconstrained arrays for the new type as well.
4720 If the old and new alias sets don't conflict, make one a subset of
4721 the other as per the OP parameter.
4722 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
4723 <E_Record_Type>: Do not copy the alias set for derived types.
4724 For all types, make the alias set of derived types a superset of
4725 that of their parent type.
4726 (make_aligning_type): Adjust calls to copy_alias_set.
4727 (make_packable_type): Likewise.
4728 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
4729 Check for alias set conflict instead of strict equality to issue the
4732 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
4734 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
4735 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
4736 (copy_alias_set): Assert that arrays have the same aliasing settings.
4737 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
4739 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
4741 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
4742 Set TYPE_NONALIASED_COMPONENT on the array type.
4744 2009-01-31 Laurent GUERBY <laurent@guerby.net>
4746 * gcc-interface/Makefile.in: Fix mipsel linux handling.
4748 2009-01-16 Jakub Jelinek <jakub@redhat.com>
4750 * gcc-interface/Makefile.in: Fix multilib handling for
4753 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
4755 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
4756 only useless conversions around renamed objects.
4758 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
4760 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
4761 the _Tag field before any discriminants in the field list.
4762 (components_to_record): Remove obsolete comment.
4764 2008-12-09 Jakub Jelinek <jakub@redhat.com>
4767 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
4768 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
4771 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
4774 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
4776 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
4779 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
4781 2008-11-27 Eric Botcazou <ebotcazou@adacore.com>
4783 * gcc-interface/decl.c: Fix various nits.
4785 2008-11-20 Eric Botcazou <ebotcazou@adacore.com>
4787 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
4789 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
4792 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
4793 special-case boolean types. Propagate the name.
4794 * gcc-interface/targtyps.c: Tweak comment.
4796 2008-11-15 Geert Bosch <bosch@adacore.com>
4798 * gcc-interface/trans.c (emit_check): Put back a final save_expr
4799 to prevent exponential expansion during gimplification.
4801 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
4803 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
4805 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
4807 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
4808 initialized to a static constant to be statically allocated even if
4809 they are of a padding type, provided the original type also has
4812 2008-11-15 Laurent Guerby <laurent@guerby.net>
4815 * gcc-interface/Makefile.in: Add multilib handling for x86_64
4817 * system-darwin-x86_64.ads: New file.
4819 2008-11-13 Olivier Hainque <hainque@adacore.com>
4821 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
4822 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
4823 are explicit to the middle-end. Tidy.
4825 2008-11-09 Eric Botcazou <ebotcazou@adacore.com>
4827 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
4828 (MINUS_NOMOD_EXPR): Likewise.
4829 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
4831 <PLUS_NOMOD_EXPR>: New case.
4832 <MINUS_NOMOD_EXPR>: Likewise.
4833 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
4834 assignment statement instead of using an increment operator.
4836 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4838 * system-irix-n64.ads: New file.
4839 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
4842 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4845 * system-solaris-x86_64.ads: New file.
4846 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
4848 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
4849 Eric Botcazou <ebotcazou@adacore.com>
4852 * lib.ads: (Enable_Switch_Storing): Declare.
4853 * lib.adb: (Enable_Switch_Storing): New procedure.
4854 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
4855 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
4856 (Display): Never display -gnatea
4857 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
4859 2008-11-07 Thomas Quinot <quinot@adacore.com>
4861 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
4862 for empty range in original base type, not converted result type.
4864 2008-11-07 Geert Bosch <bosch@adacore.com>
4866 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
4867 and result for call to __gnat_mulv64.
4869 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
4871 * gcc-interface/trans.c: Fix formatting nits.
4873 2008-11-07 Geert Bosch <bosch@adacore.com>
4875 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
4876 overflow check for constant result.
4878 2008-11-07 Geert Bosch <bosch@adacore.com>
4880 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
4881 overflow check for addition/subtraction if neither operand is constant.
4883 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
4885 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
4886 files for the target-dependent part of the runtime.
4887 (SPARC/Linux): Likewise.
4889 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
4891 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
4892 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
4895 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
4897 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
4900 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
4903 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
4904 Generate a call to memmove for an assignment between overlapping
4907 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4910 * gcc-interface/Makefile.in: Add multilib handling for
4911 s390-linux and s390x-linux.
4913 2008-10-24 Jakub Jelinek <jakub@redhat.com>
4915 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
4916 check-acats-subtargets and check-gnat-subtargets.
4917 (check_acats_targets): New variable.
4918 (check-acats-subtargets, check-acats%): New targets.
4919 (check-acats): If -j is used and CHAPTERS is empty, run the testing
4920 in multiple make goals, possibly parallel, and afterwards run
4921 dg-extract-results.sh to merge the sum and log files.
4923 2008-10-17 Geert Bosch <bosch@adacore.com>
4925 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
4926 to use only a single check instead of three, and avoid unnecessary
4928 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
4929 creating more opportunities for optimizations.
4931 2008-10-13 Jakub Jelinek <jakub@redhat.com>
4934 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
4937 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
4939 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
4940 dealing with volatileness to after code dealing with renaming.
4942 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
4944 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
4945 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
4947 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
4949 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
4950 (unchecked_convert): Use it to disable problematic folding with
4951 VIEW_CONVERT_EXPR in the general case. Always disable it for the
4952 special VIEW_CONVERT_EXPR built for integral types and cope with
4953 its addressability issues by preserving the first conversion.
4955 2008-10-01 Andreas Schwab <schwab@suse.de>
4957 * system-linux-ppc64.ads: New file.
4958 * gcc-interface/Makefile.in: Add multilib handling for
4961 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
4963 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
4964 to that of ptr_mode instead of word_mode.
4966 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
4969 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
4971 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
4974 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
4975 instead of deprecated FILE_WRITE_PROPERTIES.
4977 2008-09-22 Olivier Hainque <hainque@adacore.com>
4979 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
4980 are never assigned, volatile entities are not constant for code
4981 generation purposes.
4983 2008-09-21 Laurent Guerby <laurent@guerby.net>
4986 * gcc-interface/Makefile.in: Add multilib handling for x86_64
4988 * system-linux-sparcv9.ads: New file.
4990 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
4992 * exp_dbug.ads: Document new convention for the XVZ variable.
4993 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
4994 debug info if necessary for the type padding the component type.
4995 <E_Array_Subtype>: Likewise.
4996 (maybe_pad_type): Emit the XVZ variable in units.
4997 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
4998 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
4999 on statements generated to initialize the parameter attributes cache.
5000 Set the source line of the end label of the body on the special return
5001 statement built for a procedure with copy-in copy-out parameters.
5003 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
5006 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
5007 inlined external functions if they contain a nested function not
5010 2008-09-18 Jan Hubicka <jh@suse.cz>
5012 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
5013 (end_subprog_body): Do not set DECL_INLINE.
5015 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
5018 * gnat_ugn.texi: Use proper format in direntry.
5020 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
5022 * gcc-interface/trans.c (gigi): Declare the name of the compilation
5023 unit as the first global name.
5025 2008-09-14 Jan Hubicka <jh@suse.cz>
5027 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
5029 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5031 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
5032 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
5033 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
5034 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
5035 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
5036 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
5037 gcc-interface/gigi.h, gcc-interface/trans.c,
5038 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
5039 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
5040 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
5041 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
5042 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
5043 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
5044 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
5045 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
5047 * gnathtml.pl: Fix typos.
5049 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
5051 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
5052 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
5053 layer. RTEMS binds to OS provided adapter routines so there are
5054 no modifications to s-osinte-rtems.adb.
5056 2008-09-09 Arnaud Charlet <charlet@adacore.com>
5057 Joel Sherrill <joel.sherrill@oarcorp.com>
5059 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
5061 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
5063 * s-interr-hwint.adb: New file.
5065 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
5066 needed by s-interr-hwint.adb.
5068 * s-osinte-vxworks-kernel.adb: New file.
5070 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
5072 * s-stchop-rtems.adb: Add file missed in early commit. Already
5073 referenced in gcc-interface/Makefile.in.
5075 2008-08-30 Thomas Quinot <quinot@adacore.com>
5077 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
5078 be built even without a separate libada directory.
5080 2008-08-22 Arnaud Charlet <charlet@adacore.com>
5082 * lib-xref.ads: Fix typo in subprogram reference definition.
5084 2008-08-22 Robert Dewar <dewar@adacore.com>
5086 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
5089 * g-trasym.adb: Ditto
5091 * s-utf_32.adb (Get_Category): Fix obvious typo
5093 * s-wwdcha.adb: Minor code reorganization
5096 2008-08-22 Robert Dewar <dewar@adacore.com>
5098 * checks.adb (Determine_Range): Deal with values that might be invalid
5100 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
5101 configuration switches.
5103 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
5105 * sem_prag.adb: Implement pragma Assume_No_Default_Values
5107 * snames.adb, snames.ads, snames.h:
5108 Add entries for pragma Assume_No_Invalid_Values
5110 * switch-c.adb: Add processing for -gnatB switch
5112 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
5114 2008-08-22 Javier Miranda <miranda@adacore.com>
5116 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
5117 init procedure all the expanded code associated with the spec of
5118 task types and protected types.
5120 2008-08-22 Gary Dismukes <dismukes@adacore.com>
5122 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
5123 component expression copies rather than directly setting Etype and
5124 Is_Static_Expression.
5126 2008-08-22 Gary Dismukes <dismukes@adacore.com>
5128 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
5129 private types to allow for types derived from a private type with
5130 preelaborable initialization, but return False for a private extension
5131 (unless it has the pragma).
5133 2008-08-22 Robert Dewar <dewar@adacore.com>
5135 * opt.ads: Minor code reorganization (put entries in alpha order)
5137 2008-08-22 Pascal Obry <obry@adacore.com>
5139 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
5142 2008-08-22 Geert Bosch <bosch@adacore.com>
5144 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
5145 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
5147 2008-08-22 Doug Rupp <rupp@adacore.com>
5149 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
5150 __gnat_set_features.
5153 (__gnat_set_features): New function.
5154 (__gnat_features_set): New tracking variable.
5155 (__gl_no_malloc_64): New feature global variable
5157 2008-08-22 Ed Schonberg <schonberg@adacore.com>
5159 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
5160 use_type_clause in an instance.
5162 2008-08-22 Bob Duff <duff@adacore.com>
5164 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
5166 2008-08-22 Robert Dewar <dewar@adacore.com>
5168 * exp_ch6.adb: Minor reformatting
5170 * exp_ch7.adb: Minor reformatting
5172 * exp_ch7.ads: Put routines in proper alpha order
5174 * exp_dist.adb: Minor reformatting
5176 2008-08-22 Vincent Celier <celier@adacore.com>
5178 * prj.ads: Minor comment update
5180 2008-08-22 Robert Dewar <dewar@adacore.com>
5182 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
5184 2008-08-22 Ed Schonberg <schonberg@adacore.com>
5187 (Base_Init_Proc): For a protected subtype, use the base type of the
5188 corresponding record to locate the propoer initialization procedure.
5190 2008-08-22 Robert Dewar <dewar@adacore.com>
5193 (In_Subrange_Of): New calling sequence
5194 (Determine_Range): Prepare for new processing using base type
5197 (Compile_Time_Compare): Use new calling sequence
5200 (Compile_Time_Compare): Use new calling sequence
5203 (Compile_Time_Compare): New calling sequence allows dealing with
5205 (In_Subrange_Of): Ditto
5208 (Compile_Time_Compare): New calling sequence allows dealing with
5210 (In_Subrange_Of): Ditto
5212 2008-08-22 Pascal Obry <obry@adacore.com>
5214 * adaint.c: Fix possible race condition on win32_wait().
5216 2008-08-22 Bob Duff <duff@adacore.com>
5218 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
5219 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
5220 exp_intr.adb, exp_ch3.adb: Rename:
5221 Exp_Ch7.Controlled_Type => Needs_Finalization
5222 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
5223 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
5224 Has_Controlled_Parts
5225 (Has_Some_Controlled_Component): Fix bug in array case.
5227 2008-08-22 Robert Dewar <dewar@adacore.com>
5229 * sem_ch8.adb: Minor reformatting
5231 2008-08-22 Kevin Pouget <pouget@adacore.com>
5233 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
5234 Shared_Var_Close procedure specifications from package spec to package body.
5236 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
5237 RE_Shared_Var_WOpen entries.
5239 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
5240 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
5242 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
5244 * init.c: adjust EH support code on Alpha/Tru64 as well.
5246 * raise-gcc.c: Add back a couple of comments.
5248 2008-08-22 Ed Schonberg <schonberg@adacore.com>
5250 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
5251 involved and the return type is class-wide, use the type of the expression
5252 for the generated access type. Suppress useless discriminant checks on the
5255 2008-08-22 Bob Duff <duff@adacore.com>
5257 * exp_ch7.adb: Minor comment fix
5259 * exp_ch6.ads: Minor comment fix
5261 2008-08-22 Thomas Quinot <quinot@adacore.com>
5263 * sem_ch8.adb: Minor reformatting
5264 Minor code reorganization (introduce subprogram to factor duplicated
5267 2008-08-22 Sergey Rybin <rybin@adacore.com>
5269 * gnat_ugn.texi: Change the description of gnatcheck default rule
5272 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
5274 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
5275 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
5276 do not adjust the PC anymore.
5277 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
5278 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
5280 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
5281 instead of _Unwind_GetIP.
5283 2008-08-22 Gary Dismukes <dismukes@adacore.com>
5285 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
5286 with a range is transformed into a positional aggregate, any copied
5287 component literals should be marked Is_Static_Expression.
5289 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
5290 not being known at at compile time when Configurable_Run_Time_Mode is
5293 2008-08-22 Robert Dewar <dewar@adacore.com>
5296 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
5297 Read or Input attribute.
5299 2008-08-22 Ed Schonberg <schonberg@adacore.com>
5301 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
5302 clauses in related units is redundant, if one of the units is a package
5303 instantiation, use its instance_spec to determine which unit is the
5304 ancestor of the other.
5306 2008-08-22 Javier Miranda <miranda@adacore.com>
5308 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
5309 attributes add missing support to handle designated types that come
5310 from the limited view.
5312 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
5314 2008-08-22 Sergey Rybin <rybin@adacore.com>
5316 * vms_data.ads: Add entry for new gnatcheck -mNNN option
5318 * gnat_ugn.texi: Add description for gnatcheck option '-m'
5320 2008-08-22 Sergey Rybin <rybin@adacore.com>
5322 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
5323 acoording to the latest changes in the metric rule interface
5325 2008-08-22 Vincent Celier <celier@adacore.com>
5327 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
5328 (Check): Check if the file names registered in the ALI file for the
5329 spec, the body and each of the subunits are the ones expected.
5331 2008-08-22 Robert Dewar <dewar@adacore.com>
5333 * g-catiio.adb: Code cleanup.
5335 2008-08-20 Vincent Celier <celier@adacore.com>
5337 * make.adb (Gnatmake): Remove extra space in version line
5340 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
5341 as the name may already have been entered in the table by the Project
5344 2008-08-20 Jose Ruiz <ruiz@adacore.com>
5346 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
5347 weak symbols so we use the version provided by MaRTE when available.
5349 2008-08-20 Emmanuel Briot <briot@adacore.com>
5351 * g-catiio.ads, g-catiio.adb:
5352 (Value): Avoid an unnecessary system call to Clock in most cases.
5353 This call is only needed when only the time is provided in the string,
5354 and ignored in all other cases. This is more efficient.
5356 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
5358 * raise-gcc.c: Fix formatting nits.
5360 2008-08-20 Robert Dewar <dewar@adacore.com>
5363 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
5364 non-existing component clause.
5366 * exp_ch5.adb: Minor reformatting
5368 * g-comlin.adb: Minor reformatting
5370 * make.adb: Minor reformatting
5372 * prj-proc.adb: Minor reformatting
5374 * stylesw.ads: Minor reformatting
5376 2008-08-20 Vincent Celier <celier@adacore.com>
5378 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
5379 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
5380 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
5381 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
5382 and a switch is not recognized by gnatmake.
5383 (Gnatmake): Implement new scheme for gnatmake switches and global
5384 compilation switches.
5385 (Switches_Of): Try successively Switches (<file name>),
5386 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
5388 2008-08-20 Ed Schonberg <schonberg@adacore.com>
5390 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
5391 implement style check that overriding operations are explicitly marked
5394 * style.ads (Missing_Overriding): new procedure that provides interface
5397 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
5398 that the declaration or body of overriding operations carries an
5399 explicit overriding indicator.
5402 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
5403 explicit indicator should be present.
5405 * sem_ch6.adb (Verify_Overriding_Indicator,
5406 Check_Overriding_Indicator): If operation is overriding, check whether
5407 declaration and/or body of subprogram should be present
5409 2008-08-20 Vincent Celier <celier@adacore.com>
5411 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
5412 gprbuild when casing is MixedCase, whatever the casing of the letters
5415 2008-08-20 Gary Dismukes <dismukes@adacore.com>
5417 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
5418 creating dummy init proc.
5419 (Requires_Init_Proc): Return False in the case No_Default_Initialization
5420 is in force and the type does not have associated default
5421 initialization. Move test of Is_Public (with tests of restrictions
5422 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
5423 for default initialization.
5425 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
5427 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
5428 of any alias or prefix but having attached parameters (as \"-O2\").
5430 2008-08-20 Robert Dewar <dewar@adacore.com>
5432 * s-fileio.adb: Minor reformatting
5434 2008-08-20 Thomas Quinot <quinot@adacore.com>
5436 * exp_strm.adb (Build_Elementary_Input_Call,
5437 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
5438 selects the stream attribute routines for long float types.
5440 2008-08-20 Vincent Celier <celier@adacore.com>
5442 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
5444 * prj.ads (Array_Data): Add a component Location
5446 2008-08-20 Ed Schonberg <schonberg@adacore.com>
5449 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
5450 argument for ASIS and navigation use.
5452 2008-08-20 Ed Schonberg <schonberg@adacore.com>
5454 * einfo.ads: Add comment.
5456 2008-08-20 Bob Duff <duff@adacore.com>
5458 * sem_eval.ads: Minor comment fix.
5460 2008-08-20 Bob Duff <duff@adacore.com>
5462 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
5463 folding. We were folding things like "False and then ...", but not
5464 "X and then ..." where X is a constant whose value is known at compile
5467 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
5469 * exp_ch5.adb (Controlled_Type): New routine.
5470 (Expand_N_Extended_Return_Statement): When generating a move of the
5471 final list in extended return statements, check the type of the
5472 function and in the case of double expanded return statements, the type
5473 of the returned object.
5474 (Expand_Simple_Function_Return): Perform an interface conversion when
5475 the type of the returned object is an interface and the context is an
5476 extended return statement.
5478 2008-08-20 Ed Schonberg <schonberg@adacore.com>
5480 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
5481 and the full view is visible, set flag on full view as well.
5483 2008-08-20 Thomas Quinot <quinot@adacore.com>
5485 * g-comlin.adb: Minor reformatting
5486 Minor code reorganization.
5488 * freeze.adb: Minor reformatting
5490 2008-08-20 Vincent Celier <celier@adacore.com>
5492 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
5493 source of another project.
5495 2008-08-20 Pascal Obry <obry@adacore.com>
5497 * s-os_lib.ads: Minor reformatting.
5499 2008-08-20 Arnaud Charlet <charlet@adacore.com>
5501 * gnatvsn.ads: Minor reformatting.
5503 2008-08-20 Arnaud Charlet <charlet@adacore.com>
5505 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
5506 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
5507 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
5508 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
5509 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
5510 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
5511 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
5512 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
5513 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
5514 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
5515 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
5516 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
5517 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
5518 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
5519 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
5520 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
5521 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
5522 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
5523 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
5524 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
5525 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
5526 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
5527 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
5528 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
5529 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
5530 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
5531 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
5532 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
5533 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
5534 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
5535 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
5536 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
5537 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
5538 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
5539 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
5540 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
5541 s-poosiz.adb, link.c: Fix copyright notice.
5543 2008-08-20 Arnaud Charlet <charlet@adacore.com>
5545 * g-comlin.ads: Update comments.
5547 2008-08-20 Ed Schonberg <schonberg@adacore.com>
5549 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
5551 2008-08-20 Gary Dismukes <dismukes@adacore.com>
5554 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
5555 Make_Implicit_Exception_Handler when rewriting an exception handler with
5556 a choice parameter, and pass the handler's Sloc instead of that of the
5557 handled sequence of statements. Make_Implicit_Exception_Handler sets the
5558 Sloc to No_Location (unless debugging generated code), which we don't
5559 want for the case of a user handler.
5561 2008-08-20 Robert Dewar <dewar@adacore.com>
5563 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
5566 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
5567 now labeled as info msgs, not warnings.
5569 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
5571 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
5573 * a-textio.adb: Remove redundant test.
5575 * a-witeio.adb: Minor code reorganization
5576 Remove redundant test found working on another issue
5578 * a-ztexio.adb: Minor code reorganization
5579 Remove redundant test found working on another issue
5581 2008-08-20 Thomas Quinot <quinot@adacore.com>
5583 * s-fileio.adb (Open) Use C helper function to determine whether a
5584 given errno value corresponds to a "file not found" error.
5586 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
5588 2008-08-20 Jose Ruiz <ruiz@adacore.com>
5590 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
5591 to get access to the per-task errno variable.
5592 (__set_errno for MaRTE): Do not redefine this function here since it is
5593 already defined in MaRTE.
5595 2008-08-20 Tristan Gingold <gingold@adacore.com>
5597 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
5599 2008-08-20 Robert Dewar <dewar@adacore.com>
5601 * freeze.adb: Minor reformatting
5603 * g-comlin.adb: Minor reformatting
5605 * g-socket.adb: Minor reformatting
5607 * g-socthi-mingw.adb: Minor reformatting
5609 * g-stheme.adb: Minor reformatting
5611 2008-08-20 Ed Schonberg <schonberg@adacore.com>
5613 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
5614 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
5615 confusion between partial and full views of an ancestor of the context
5616 type when the parent is a private extension declared in a parent unit,
5617 and full views are available for the context type.
5619 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
5620 Robert Dewar <dewar@adacore.com>
5623 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
5625 Move comment in the right place.
5626 * g-comver.adb (Version): Look for a zero-termination in
5627 addition to a closing parenthesis.
5629 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
5631 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
5632 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
5633 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
5634 Is_Package_Or_Generic_Package instead of hand-crafted tests.
5636 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
5639 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
5642 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
5644 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
5646 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
5648 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
5649 for back-copy statements in lieu of that of the actual.
5651 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
5654 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
5655 setjmp test consistently. Adjust for new behavior of flag_stack_check.
5656 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
5657 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
5659 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
5662 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
5663 * sem_attr.adb (Check_Type): The current instance of a protected
5664 object is not a type name.
5665 (Analyze_Access_Attribute): Accept instances of protected objects.
5666 (Analyze_Attribute, Attribute_Address clause): Ditto.
5667 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
5668 the prefix as being the current instance if needed.
5670 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
5672 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
5673 Remove duplicate s-win32.o. Add s-winext.o.
5675 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
5677 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
5678 with SOSC.SOCK__STREAM.
5679 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
5682 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
5684 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
5685 * gsocket.h, socket.c: Update to support RTEMS.
5686 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
5688 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
5689 Robert Dewar <dewar@adacore.com>
5691 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
5692 left argument even when right argument is 0.
5693 (Expand_N_Op_Mod): Ditto when right argument is 1.
5694 (Expand_N_Op_Multiply): Ditto when any argument is 0.
5695 (Expand_N_Op_Rem): Ditto when right argument is 1.
5697 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5699 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
5702 2008-08-08 Ed Schonberg <schonberg@adacore.com>
5704 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
5705 from Freeze_Entity. Used to generate cross-reference information for
5706 types declared in generic packages.
5708 2008-08-08 Thomas Quinot <quinot@adacore.com>
5710 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
5713 2008-08-08 Thomas Quinot <quinot@adacore.com>
5716 On Windows, include <errno.h> and redefine only selected errno values
5717 from their <winsock2.h> definitions.
5719 * s-osinte-freebsd.ads: Minor reformatting
5721 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
5723 * g-soccon.ads: New file.
5725 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
5726 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
5727 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
5728 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
5729 unit, to allow building software that depends on this internal unit
5730 with both older and newer compilers.
5732 2008-08-08 Robert Dewar <dewar@adacore.com>
5734 * s-strxdr.adb: Minor reformatting
5736 2008-08-08 Bob Duff <duff@adacore.com>
5738 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
5739 checking for integer operations (including division by zero)", which
5740 is wrong -- divide by zero is not part of overflow checking.
5741 Also added misc clarification about what check-suppression means.
5743 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
5745 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
5747 * g-comlin.adb (Add_Switch): Handle addition of switches at the
5748 begining of the command line.
5749 (Append, Add): Renaming of Append to Add as this now allows addition
5750 at the begining of the list.
5752 * g-comlin.ads (Add_Switch): Handle addition of switches at the
5753 begining of the command line.
5755 2008-08-08 Thomas Quinot <quinot@adacore.com>
5758 (Name): Document application scope (only legacy PC serial ports on
5761 2008-08-08 Thomas Quinot <quinot@adacore.com>
5763 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
5764 previous change, not needed after all.
5766 2008-08-08 Ed Schonberg <schonberg@adacore.com>
5768 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
5769 exclusion indicator is present
5771 2008-08-08 Robert Dewar <dewar@adacore.com>
5773 * g-comlin.adb: Minor code reorganization
5776 * g-comlin.ads: Minor reformatting
5778 * s-fileio.adb: Minor reformatting
5780 * sem_attr.adb: Minor code reorganization (use Nkind_In)
5783 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
5785 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
5786 with s-oscons-tmplt.i.
5788 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
5790 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
5792 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5794 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
5797 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
5798 of a formal parameter of an incomplete type. Improve error message for
5799 other improper uses of incomplete types.
5801 2008-08-06 Robert Dewar <dewar@adacore.com>
5803 * gnat_ugn.texi: Clarify -gnato documentation
5805 2008-08-06 Thomas Quinot <quinot@adacore.com>
5807 * gcc-interface/Makefile.in,
5808 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
5809 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
5810 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
5811 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
5812 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
5813 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
5814 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
5815 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
5816 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
5817 Remove GNAT.Sockets.Constants. This internal package is replaced by
5818 System.OS_Constants.
5820 2008-08-06 Thomas Quinot <quinot@adacore.com>
5822 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
5823 Remove obsolete targets referencing gen-soccon
5824 When generating s-oscons.ads, use a file name that includes the
5825 THREAD_KIND, to ensure that the (potentially different) version from a
5826 previous build with a different threads flavour does not get reused.
5828 2008-08-06 Thomas Quinot <quinot@adacore.com>
5830 * sem_res.adb: Minor reformatting
5832 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
5833 only when the operating system reports a non-existing file or directory
5834 (ENOENT), otherwise raise Name_Error.
5836 * exp_ch11.adb: Minor reformatting
5838 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5840 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
5841 incomplete, add the access_to_subprogram type to the list of private
5842 dependents only if the incomplete type will be completed in the current
5844 (Build_Discriminant_Constraints): If the type of the discriminant is
5845 access_to_variable, reject a constraint that is access_to_constant.
5847 2008-08-06 Thomas Quinot <quinot@adacore.com>
5849 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
5850 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
5851 g-sttsne-dummy.ads: New files.
5853 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
5854 with pragma Unimplemented_Unit for sockets packages on Nucleus.
5856 2008-08-06 Pascal Obry <obry@adacore.com>
5858 * adaint.c: Another fix for ACL support on Windows.
5860 2008-08-06 Javier Miranda <miranda@adacore.com>
5862 * exp_disp (Expand_Interface_Actuals): Adds missing support for
5863 expansion of calls to subprograms using selected components.
5865 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5867 * sem_res.adb (Resolve_Call): Use base type to determine whether a
5868 dereference is needed because a subtype of an access_to_subprogram is
5869 simply an access-subtype
5871 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
5873 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
5874 parameters, always specify the expected separator.
5876 2008-08-06 Thomas Quinot <quinot@adacore.com>
5878 * xnmake.adb: Use new XUtil package for platform independent text
5881 2008-08-06 Vincent Celier <celier@adacore.com>
5883 * gnat_ugn.texi: Document compiler switch -gnateG
5885 2008-08-06 Quentin Ochem <ochem@adacore.com>
5887 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
5888 in the case of an empty pattern size.
5889 (Compute_Result): Do not do any computation in the case of an empty
5891 (Report_Result): Fixed computation of the overflow guard.
5893 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5895 * g-awk.adb (Finalize): Do not use directly objects of the type in the
5896 finalization routine to prevent elaboration order anomalies in new
5897 finalization scheme.
5899 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5901 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
5902 declaration for the same type.
5904 2008-08-06 Thomas Quinot <quinot@adacore.com>
5906 * sem.adb: Minor rewording (comment)
5908 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
5910 * g-comlin.adb (Define_Switch, Get_Switches): New.
5911 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
5912 ungrouping switches.
5913 (For_Each_Simple_Switch): Allow more control over parameters handling.
5914 This generic method now allows ungrouping of switches with parameters
5915 and switches with more than one letter after the prefix.
5916 (Set_Command_Line): Take care of switches that are prefixed with a
5917 switch handling parameters without delimiter (-gnatya and -gnaty3 for
5919 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
5920 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
5922 (Start, Alias_Switches, Group_Switches): Take care of parameters
5923 possibly present inside a group.
5925 * g-comlin.ads (Define_Switch): New method used to define a list of
5926 expected switches, that are necessary for correctly ungrouping switches
5927 with more that one character after the prefix.
5928 (Get_Switches): Method that builds a getopt string from the list of
5929 switches as set previously by Define_Switch.
5930 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
5931 status of the operation. Also allow the removal of switches with
5933 (Command_Line_Configuration_Record): Maintain a list of expected
5936 2008-08-06 Doug Rupp <rupp@adacore.com>
5938 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
5939 TARGET_MALLOC64 clear.
5941 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
5942 if TARGET_MALLOC64 clear.
5944 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
5945 (TARGET_MALLC64): New macro. Default to clear.
5947 2008-08-06 Doug Rupp <rupp@adacore.com>
5949 * gcc-interface/utils2.c (snames.h) Include
5950 (TARGET_ABI_OPEN_VMS): Initialize.
5951 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
5954 2008-08-06 Ed Schonberg <schonberg@adacore.com>
5956 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
5957 null exclusion in a discriminant declaration
5959 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
5960 indicators when type is not an access type.
5962 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
5963 indicators when type is not an access type.
5965 2008-08-06 Javier Miranda <miranda@adacore.com>
5967 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
5968 with the target interface before expanding the code of the interface
5971 2008-08-05 Ed Schonberg <schonberg@adacore.com>
5974 (Freeze_Entity): A deferred constant does not violate the restriction
5975 No_Default_Initialization,
5977 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
5978 can carry a null exclusion indicator, and on which an error may be
5979 posted if the indicator is redundant.
5981 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
5982 does not apply to a subtype mark that already excludes null.
5984 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
5985 exclusion does not apply to a subtype mark that already excludes null.
5987 2008-08-05 Thomas Quinot <quinot@adacore.com>
5989 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
5991 2008-08-05 Doug Rupp <rupp@adacore.com>
5993 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
5995 2008-08-05 Thomas Quinot <quinot@adacore.com>
5997 * gsocket.h: Make this file includable in a Nucleus environment, which
5998 does not support sockets.
6000 * socket.c: Remove Nucleus-specific hack.
6002 2008-08-05 Pascal Obry <obry@adacore.com>
6004 * adaint.c: Remove support for readable attribute on vxworks and nucleus
6006 2008-08-05 Ed Schonberg <schonberg@adacore.com>
6009 (Analyze_Attribute, case 'Result): handle properly the case where some
6010 operand of the expression in a post-condition generates a transient
6013 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
6014 right-hand side when it is an anonymous access_to_subprogram, to force
6015 static accessibility check when needed.
6017 2008-08-05 Sergey Rybin <rybin@adacore.com>
6019 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
6020 rule according to the change in the rule option.
6021 Add documentation for -gnatw.b/-gnatw.B
6023 2008-08-05 Robert Dewar <dewar@adacore.com>
6025 * ug_words: Add entries for -gnatw.b/-gnatw.B
6027 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
6029 2008-08-05 Vincent Celier <celier@adacore.com>
6031 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
6034 * a-ztdeio.adb: Ditto.
6036 2008-08-05 Pascal Obry <obry@adacore.com>
6038 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
6041 2008-08-05 Vincent Celier <celier@adacore.com>
6044 (Wide_String_To_String): Returns a String with the same 'First as its
6046 (Wide_Wide_String_To_String): Ditto
6049 (Wide_String_To_String): Document that the lowest index of the returned
6050 String is equal to S'First.
6052 2008-08-05 Thomas Quinot <quinot@adacore.com>
6054 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
6056 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
6059 2008-08-05 Robert Dewar <dewar@adacore.com>
6061 * opt.ads (Warn_On_Biased_Representation): New flag
6064 (Analyze_Attribute_Definition_Clause): Issue warning when biased
6065 representation is required.
6066 (Minimum_Size): Don't allow biasing if enum rep clause case
6069 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
6070 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
6072 * usage.adb: Add lines for -gnatw.b/B switches
6074 2008-08-05 Pascal Obry <obry@adacore.com>
6076 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
6078 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
6080 2008-08-05 Thomas Quinot <quinot@adacore.com>
6082 * socket.c: Minor reformatting.
6084 2008-08-05 Robert Dewar <dewar@adacore.com>
6086 * sem_ch3.adb: Minor reformatting
6088 * prj-nmsc.adb: Minor reformatting
6090 2008-08-05 Ed Schonberg <schonberg@adacore.com>
6092 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
6093 visibility check on the component type if the simple test fails.
6095 2008-08-05 Jose Ruiz <ruiz@adacore.com>
6097 * init.c (__gnat_install_handler for linux): If we are building the
6098 Xenomai run time then we need to do two additional things: avoid
6099 memory swapping and transform the Linux environment task into a native
6102 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
6103 time): Use interface to Xenomai native skin and avoid linux-specific
6104 way of setting CPU affinity.
6105 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
6107 2008-08-05 Bob Duff <duff@adacore.com>
6109 * checks.ads: Minor comment fix
6111 2008-08-05 Thomas Quinot <quinot@adacore.com>
6113 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
6114 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
6117 2008-08-05 Robert Dewar <dewar@adacore.com>
6119 * mlib.adb: Minor code reorganization
6122 * make.adb: Minor reformatting
6124 * prj-attr.ads: Minor reformatting
6126 * s-os_lib.adb: Minor reformatting
6128 * s-fileio.adb: Minor code reorganization
6131 * prj.ads: Minor reformatting
6133 2008-08-05 Bob Duff <duff@adacore.com>
6135 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
6136 unresolved initial value of "null", because it causes implicitly
6137 generated "=" operators to be ambiguous, and because this type should
6138 not be passed to gigi.
6140 2008-08-05 Vincent Celier <celier@adacore.com>
6142 * mlib.adb: Update comments.
6144 * make.adb (Switches_Of): Check for Switches (others), before checking
6145 for Default_Switches ("Ada").
6146 (Gnatmake): Use Builder'Switches (others) in preference to
6147 Builder'Default_Switches ("Ada") if there are several mains.
6150 (Add_Attribute): Add component Others_Allowed in Attribute_Record
6154 Add markers to indicates that attributes Switches allow others as index
6155 (Others_Allowed_For): New Boolean function, returning True for
6156 attributes with the mark.
6157 (Initialize): Recognize optional letter 'O' as the marker for
6158 associative array attributes where others is allowed as the index.
6161 (Others_Allowed_For): New Boolean function
6162 (Attribute_Record): New Boolean component Others_Allowed
6165 (Parse_Attribute_Declaration): For associative array attribute where
6166 others is allowed as the index, allow others as an index.
6169 (Process_Binder): Skip associative array attributes with index others
6170 (Process_Compiler): Ditto
6173 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
6174 index is All_Other_Names.
6177 (All_Other_Names): New constant
6180 (Process_Declarative_Items): Skip associative array attribute when index
6181 is reserved word "others".
6183 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
6185 * gen-oscons.c: Adapt for VMS where termios.h is not available.
6187 2008-08-05 Thomas Quinot <quinot@adacore.com>
6189 * a-rttiev.adb: Minor reformatting (comments)
6191 * gen-soccon.c: Rename to gen-oscons.c
6193 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
6194 GNAT.Sockets.Constants.
6195 Add new constants for GNAT.Serial_Communications and System.File_IO.
6197 2008-08-05 Javier Miranda <miranda@adacore.com>
6199 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
6200 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
6201 implementation of this routine has been simplified.
6203 2008-08-05 Pascal Obry <obry@adacore.com>
6205 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
6206 Set_Read_Only Win32 implementation.
6208 2008-08-05 Thomas Quinot <quinot@adacore.com>
6210 * exp_strm.adb: Minor reformatting (comments)
6212 * sem_ch12.adb: Minor reformatting.
6214 2008-08-05 Robert Dewar <dewar@adacore.com>
6216 * sem_ch3.adb: Minor reformatting
6218 * checks.adb: Minor reformatting
6220 2008-08-05 Thomas Quinot <quinot@adacore.com>
6222 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
6223 restriction on Prefix.
6225 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
6227 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
6228 methods needed to handle switch sections when building a command line.
6229 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
6230 Current_Section): New public methods or methods modified to handle
6231 building command lines with sections.
6232 (Set_Command_Line): Take into account sections when analysing a switch
6234 (Start): Sort the switches by sections before iterating the command line
6237 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
6238 Is_New_Section, Current_Section): New methods or methods modified to
6239 handle building command lines with sections.
6241 2008-08-05 Ed Schonberg <schonberg@adacore.com>
6243 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
6244 discriminants, indicate that the corresponding object declaration has
6245 no initialization, to prevent spurious warnings when the access type is
6248 2008-08-05 Ed Schonberg <schonberg@adacore.com>
6250 * sem_res.adb (Resolve_Call): If this is a call to the predefined
6251 Abort_Task, warn if the call appears within a protected operation.
6253 2008-08-04 Robert Dewar <dewar@adacore.com>
6255 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
6257 2008-08-04 Ed Schonberg <schonberg@adacore.com>
6260 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
6261 anonymous access to protected subprogram that is the return type of the
6262 specification of a subprogram body.
6265 (Analyze_Subprogram_Body): if the return type is an anonymous access to
6266 subprogram, freeze it now to prevent access anomalies in the back-end.
6268 * exp_ch9.adb: Minor code cleanup.
6269 Make sure that new declarations are inserted into the tree before
6270 analysis (from code reading).
6272 2008-08-04 Robert Dewar <dewar@adacore.com>
6275 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
6278 2008-08-04 Thomas Quinot <quinot@adacore.com>
6280 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
6282 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
6284 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
6286 2008-08-04 Javier Miranda <miranda@adacore.com>
6288 * sem_prag.adb (Process_Convention): Add missing support for
6289 N_Private_Extension_Declaration nodes.
6291 2008-08-04 Robert Dewar <dewar@adacore.com>
6293 * exp_ch4.adb: Minor reformatting
6295 2008-08-04 Pascal Obry <obry@adacore.com>
6297 * adaint.h: Add missing prototype.
6299 * adaint.c: Refine support for Windows file attributes.
6301 2008-08-04 Robert Dewar <dewar@adacore.com>
6304 (Valid_Conversion): Catch case of designated types having different
6305 sizes, even though they statically match.
6307 2008-08-04 Javier Miranda <miranda@adacore.com>
6309 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
6310 added in previous patch to handle access to subprograms.
6312 2008-08-04 Robert Dewar <dewar@adacore.com>
6315 (Freeze_Entity): Only check No_Default_Initialization restriction for
6316 constructs that come from source
6318 2008-08-04 Thomas Quinot <quinot@adacore.com>
6320 * exp_ch6.adb: Minor comment fix.
6322 * sem_ch4.adb: Minor reformatting.
6324 2008-08-04 Robert Dewar <dewar@adacore.com>
6326 * sem_res.adb: (Large_Storage_Type): Improve previous change.
6328 2008-08-04 Pascal Obry <obry@adacore.com>
6330 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
6333 2008-08-04 Javier Miranda <miranda@adacore.com>
6335 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
6336 for N_Formal_Object_Declaration nodes. Adding kludge required by
6337 First_Formal to provide its functionality with access to functions.
6338 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
6339 for anonymous access types returned by functions.
6341 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
6342 conversion of null-excluding access types (required only once to force
6343 the generation of the required runtime check).
6345 * sem_type.adb (Covers): minor reformating
6347 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
6348 with internally generated nodes. Avoid generating the error inside init
6351 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
6352 (Resolve_Null): Generate the null-excluding check in case of assignment
6353 to a null-excluding object.
6354 (Valid_Conversion): Add missing support for anonymous access to
6357 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
6358 anonymous access types whose designated type is an itype. This case
6359 occurs with anonymous access to protected subprograms types.
6360 (Analyze_Return_Type): Add missing support for anonymous access to
6361 protected subprogram.
6363 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
6364 subprograms addition of missing check on matching convention. Required
6365 to properly handle access to protected subprogram types.
6367 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
6368 null excluding access types.
6370 2008-08-04 Ed Schonberg <schonberg@adacore.com>
6372 * sem_ch12.adb: Add comments
6374 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
6375 access type and the allocator is not initialized, warn rather than
6378 2008-08-04 Robert Dewar <dewar@adacore.com>
6380 * exp_ch4.adb: Minor reformatting
6382 * exp_dist.adb: Minor reformatting
6384 * g-comlin.adb: Minor reformatting
6386 2008-08-04 Gary Dismukes <dismukes@adacore.com>
6388 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
6389 target to the type of the aggregate in the case where the target object
6392 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
6393 result type is class-wide and inherently limited, and the expression
6394 has a specific type, create a return object of the specific type, for
6395 more efficient handling of returns of build-in-place aggregates (avoids
6396 conversions of the class-wide return object to the specific type on
6397 component assignments).
6399 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
6400 about a type mismatch for a class-wide function with a return object
6401 having a specific type when the object declaration doesn't come from
6402 source. Such an object can result from the expansion of a simple return.
6404 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
6406 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
6408 * gcc-interface/Makefile.in: Use 64bit-specific system files when
6409 compiling for 64bit windows.
6411 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
6413 * g-comlin.adb (Group_Switches): Preserve the switch order when
6414 grouping and allow switch grouping of switches with more than one
6415 character extension (e.g. gnatw.x).
6416 (Args_From_Expanded): Remove this now obsolete method.
6418 2008-08-04 Ed Schonberg <schonberg@adacore.com>
6420 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
6421 chain at once, to ensure that type is properly decorated for back-end,
6422 when allocator appears within a loop.
6424 2008-08-04 Kevin Pouget <pouget@adacore.com>
6426 * snames.h, snames.adb, snames.ads:
6427 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
6429 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
6430 Build_To_Any_Call and Build_TypeCode_Call procedures.
6432 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
6434 * rtsfind.ads: Add corresponding names.
6436 * tbuild.adb: Update prefix restrictions to allow '_' character.
6438 2008-08-04 Doug Rupp <rupp@adacore.com>
6440 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
6441 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
6442 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
6443 use it. Calculate pointer range overflow using 64bit types.
6445 2008-08-04 Ed Schonberg <schonberg@adacore.com>
6447 * sem_ch3.adb (Access_Definition): A formal object declaration is a
6448 legal context for an anonymous access to subprogram.
6450 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
6451 indirect call, report success to the caller to include possible
6454 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
6456 of the extended return is an anonymous access_to_subprogram type.
6459 (Resolve_Call): Insert a dereference if the type of the subprogram is an
6460 access_to_subprogram and the context requires its return type, and a
6461 dereference has not been introduced previously.
6463 2008-08-04 Arnaud Charlet <charlet@adacore.com>
6465 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
6466 gnatcheck support in GPS.
6468 2008-08-04 Vincent Celier <celier@adacore.com>
6470 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
6473 2008-08-04 Vincent Celier <celier@adacore.com>
6475 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
6476 variable, but don't check the resulting value as it has no impact on
6480 (Generate_Processed_File): New Boolean flag, set to True in the compiler
6481 when switch -gnateG is used.
6484 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
6485 when the source is modified by the preprocessor and there is no
6486 preprocessing errors.
6488 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
6491 (Load_File): Output the result of preprocessing if the source text was
6494 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
6496 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
6498 * ug_words: Add VMS equivalent for -gnateG
6501 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
6503 2008-08-04 Doug Rupp <rupp@adacore.com>
6505 * gcc-interface/utils2.c:
6506 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
6507 in 32bit descriptor.
6509 2008-08-04 Robert Dewar <dewar@adacore.com>
6511 * par-ch10.adb: Minor reformatting
6513 * i-cobol.adb: Minor reformatting.
6515 2008-08-04 Ed Schonberg <schonberg@adacore.com>
6517 * sem_ch3.adb (Access_Definition): Create an itype reference for an
6518 anonymous access return type of a regular function that is not a
6521 2008-08-04 Vincent Celier <celier@adacore.com>
6523 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
6525 * snames.adb: New standard name Global_Compilation_Switches
6527 * snames.ads: New standard name Global_Compilation_Switches
6529 * make.adb: Correct spelling error in comment
6531 2008-08-04 Arnaud Charlet <charlet@adacore.com>
6533 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
6536 2008-08-04 Thomas Quinot <quinot@adacore.com>
6538 * sem_ch10.adb: Minor comment fix.
6540 2008-08-04 Robert Dewar <dewar@adacore.com>
6542 * restrict.adb: Improved messages for restriction warnings
6544 * restrict.ads: Improved messages for restriction messages
6546 * s-rident.ads (Profile_Name): Add No_Profile
6548 2008-08-04 Robert Dewar <dewar@adacore.com>
6550 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
6552 2008-08-04 Robert Dewar <dewar@adacore.com>
6554 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
6556 2008-08-04 Vincent Celier <celier@adacore.com>
6559 (Copy_Package_Declarations): When inheriting package Naming from a
6560 project being extended, do not inherit source exception names.
6562 2008-08-04 Ed Schonberg <schonberg@adacore.com>
6564 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
6565 list of declaration to find previous subprogram, do not go to the
6566 original node of a generic unit.
6568 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
6570 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
6571 New case. Convert BOOLEAN_TYPE operation to the default integer type.
6573 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
6575 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
6576 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
6577 and adjust for above renaming.
6578 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
6579 gnu_expr_alt_type parameter. Convert the expression to it instead
6580 of changing its type in place.
6581 (build_function_stub): Adjust call to above function.
6583 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
6585 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
6586 code. Do not get full definition of deferred constants with address
6587 clause for a use. Do not ignore deferred constant definitions with
6588 address clause. Ignore constant definitions already marked with the
6590 <object>: Remove obsolete comment. For a deferred constant with
6591 address clause, get the initializer from the full view.
6592 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
6593 Rework and remove obsolete comment.
6594 <N_Object_Declaration>: For a deferred constant with address clause,
6595 mark the full view with the error node.
6596 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
6599 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
6601 * rtsfind.ads: Add block IO versions of stream routines for Strings.
6603 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
6604 sem_prag.adb, snames.adb, snames.ads, snames.h,
6605 par-prag.adb: Undo previous stream related changes.
6607 * s-rident.ads: Add new restriction No_Stream_Optimizations.
6609 * s-ststop.ads, s-ststop.adb: Comment reformatting.
6610 Define enumeration type to designate different IO mechanisms.
6611 Enchance generic package Stream_Ops_Internal to include an
6612 implementation of Input and Output.
6614 * exp_attr.adb (Find_Stream_Subprogram): If restriction
6615 No_Stream_Optimization is active, choose the default byte IO
6616 implementations of stream attributes for Strings.
6617 Otherwise use the corresponding block IO version.
6619 2008-08-01 Olivier Hainque <hainque@adacore.com>
6621 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
6622 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
6624 2008-08-01 Robert Dewar <dewar@adacore.com>
6626 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
6627 convert plain identifier into defining identifier.
6629 2008-08-01 Robert Dewar <dewar@adacore.com>
6631 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
6634 * lib-xref.adb: Add error defense.
6636 2008-08-01 Bob Duff <duff@adacore.com>
6638 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
6640 2008-08-01 Gary Dismukes <dismukes@adacore.com>
6642 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
6643 correct accessibility levels. In the "when others" case, retrieve the
6644 access level of the Etype of Prev rather than Prev_Orig, because the
6645 original exression has not always been analyzed.
6647 2008-08-01 Robert Dewar <dewar@adacore.com>
6649 * prj-nmsc.adb: Minor reformatting
6651 * sem_ch4.adb: Minor reformatting
6652 Minor code reorganization
6654 * prj.ads: Minor reformatting
6656 * s-os_lib.adb: Minor reformatting
6658 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
6661 * scans.ads: Minor reformatting.
6663 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
6664 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
6667 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
6669 * sem_ch12.adb: Minor comment reformatting
6671 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
6674 2008-08-01 Robert Dewar <dewar@adacore.com>
6676 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
6679 2008-08-01 Ed Schonberg <schonberg@adacore.com>
6681 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
6682 converted is a real literal and the target type has static bounds,
6683 perform the conversion exactly to prevent floating-point anomalies on
6686 2008-08-01 Vincent Celier <celier@adacore.com>
6688 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
6690 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
6692 * prj.adb (Object_Exist_For): Use Object_Generated, not
6693 Objects_Generated that is removed and was never modified anyway.
6696 (Path_Syntax_Kind): New enumeration type
6697 (Language_Config): New component Path_Syntax, defaulted to Host.
6698 Components PIC_Option and Objects_Generated removed, as they are not
6701 * snames.adb: New standard name Path_Syntax
6703 * snames.ads: New standard name Path_Syntax
6705 2008-08-01 Vincent Celier <celier@adacore.com>
6708 (Adalib_Path): New variable to store the path of the adalib directory
6709 when procedure Specify_Adalib_Dir is called.
6710 (Lib_Directory): If Adalib_Path is not null, return its value
6711 (Specify_Adalib_Dir): New procedure
6713 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
6715 2008-08-01 Ed Schonberg <schonberg@adacore.com>
6718 (Check_Precondition_Postcondition): If not generating code, analyze the
6719 expression in a postcondition that appears in a subprogram body, so that
6720 it is properly decorated for ASIS use.
6722 2008-08-01 Gary Dismukes <dismukes@adacore.com>
6724 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
6725 Orig_Prev to Prev in the case where the actual is N_Function_Call or
6726 N_Identifier. This was interfering with other cases that are rewritten
6727 as N_Identifier, such as allocators, resulting in passing of the wrong
6728 accessibility level, and based on testing this code is apparently no
6729 longer needed at all.
6731 2008-08-01 Ed Schonberg <schonberg@adacore.com>
6733 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
6734 procedure call whose prefix
6735 is a parameterless function call that returns an access_to_procedure.
6737 2008-08-01 Jose Ruiz <ruiz@adacore.com>
6739 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
6740 for RTX. Adding a suffix that is incremented at each iteration.
6742 2008-08-01 Robert Dewar <dewar@adacore.com>
6744 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
6747 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
6749 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
6750 paths, which are authorized by Windows but can lead to errors when used
6753 2008-08-01 Ed Schonberg <schonberg@adacore.com>
6755 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
6756 a pending instantiation for the body of a subprogram that is to be
6760 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
6762 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
6763 create a pending instance for its body, so that calls to the subprogram
6764 can be inlined by the back-end.
6766 2008-08-01 Jose Ruiz <ruiz@adacore.com>
6768 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
6771 2008-08-01 Robert Dewar <dewar@adacore.com>
6773 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
6775 2008-08-01 Doug Rupp <rupp@adacore.com>
6777 * gnat_rm.texi: Document new mechanism Short_Descriptor.
6779 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
6782 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
6783 mechanism and Short_Descriptor mechanism values.
6785 * snames.adb (preset_names): Add short_descriptor entry.
6787 * snames.ads: Add Name_Short_Descriptor.
6789 * types.h: Add new By_Short_Descriptor mechanism values.
6791 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
6792 mechanism and Short_Descriptor mechanism values.
6794 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
6796 (Descriptor_Codes): Modify range for new mechanism values.
6798 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
6801 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
6802 (gnat_to_gnu_param): Handle By_Short_Descriptor.
6804 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
6805 (build_vms_descriptor32): New prototype.
6806 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
6808 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
6809 argument in call fill_vms_descriptor.
6811 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
6812 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
6813 (build_vms_descriptor): Renamed from build_vms_descriptor64.
6814 (convert_vms_descriptor32): New function.
6815 (convert_vms_descriptor64): New function.
6816 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
6819 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
6822 2008-08-01 Jose Ruiz <ruiz@adacore.com>
6824 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
6825 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
6828 2008-08-01 Jose Ruiz <ruiz@adacore.com>
6830 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
6831 current directory so only fully qualified names are allowed.
6833 2008-08-01 Robert Dewar <dewar@adacore.com>
6836 Minor editing, remove uncomfortable use of semicolon
6838 * s-ststop.adb: Add some ??? comments
6840 * sem_ch10.adb: Minor reformatting
6843 Minor comment fixes, some pragmas were not properly
6844 categorized in the comments, documentation change only
6846 * xref_lib.adb: Minor reformatting
6848 * sinput.adb: Minor reformatting
6850 * gnatchop.adb: Minor reformatting
6852 * sem_util.ads: Minor reformatting.
6854 * opt.ads: Minor documentation fix
6856 * scng.adb: Minor reformatting
6858 * prj-part.adb: Update comments
6860 2008-08-01 Ed Schonberg <schonberg@adacore.com>
6862 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
6863 tagged synchronized type, use corresponding record type.
6865 2008-08-01 Doug Rupp <rupp@adacore.com>
6867 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
6868 dummy transfer address for debugging.
6870 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
6872 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
6874 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
6876 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
6877 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
6879 2008-07-31 Pascal Obry <obry@adacore.com>
6881 * prj-nmsc.adb: Keep Object and Exec directory casing.
6883 2008-07-31 Jose Ruiz <ruiz@adacore.com>
6885 * system-rtx-rtss.ads
6886 Change the default stack size. It is important to set the commit part.
6889 (Initialize): Get the clock resolution.
6890 (RT_Resolution): Return the clock resolution that is indicated by the
6893 * s-parame-vxworks.adb
6894 Document that this body is used for RTX in RTSS (kernel) mode.
6896 * gcc-interface/Makefile.in
6897 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
6898 s-parame-vxworks.adb body in order to have reasonable stack sizes in
6899 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
6900 cannot ask for too big values.
6902 2008-07-31 Robert Dewar <dewar@adacore.com>
6904 * exp_aggr.adb: Minor reformatting
6906 * makeutl.adb: Minor reformatting
6908 * prj-env.adb: Minor reformatting
6910 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
6912 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
6913 tagged type is completed by a concurrent type.
6915 2008-07-31 Gary Dismukes <dismukes@adacore.com>
6918 (Resolve_Record_Aggregate): Bypass error that a type without
6919 components must have a "null record" aggregate when compiling for Ada
6920 2005, since it's legal to give an aggregate of form (others => <>)
6923 2008-07-31 Javier Miranda <miranda@adacore.com>
6925 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
6926 handle synchronized types. Required to handle well the object.operation
6927 notation applied to synchronized types.
6929 2008-07-31 Quentin Ochem <ochem@adacore.com>
6931 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
6932 anymore - just used internally.
6933 Added handling of very small tasks - when the theoretical size is
6934 already full at the point of the call.
6935 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
6936 not need to be added to the result.
6938 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
6940 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
6941 corresponding spec is a primitive wrapper. Update comment.
6943 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
6945 * bindgen.adb Comment reformatting. Update the list of run-time globals.
6946 (Gen_Adainit_Ada): Add the declaration, import and value set for
6947 configuration flag Canonical_Streams.
6948 (Gen_Adainit_C): Add the declaration and initial value of external
6949 symbol __gl_canonical_streams.
6951 * init.c: Update the list of global values computed by the binder.
6953 * opt.ads: Add flag Canonical_Streams.
6955 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
6956 semantically handled pragmas.
6958 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
6959 (Analyze_Pragma): Add case for pragma Canonical_Streams.
6961 * snames.adb: Add character value for name Canonical_Streams.
6964 Add Name_Canonical_Streams to the list of configuration pragmas.
6965 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
6967 * snames.h: Add a definition for Pragma_Canonical_Streams.
6970 Add a flag and import to seize the value of external symbol
6971 __gl_canonical_streams. Update comment and initial value of constant
6974 * gnat_rm.texi: Add section of pragma Canonical_Streams.
6977 Add pragma Canonical_Streams to the list of configuration pragmas.
6979 2008-07-31 Ed Schonberg <schonberg@adacore.com>
6981 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
6982 has the form A.B.C and B is a unit renaming, analyze its compilation
6983 unit and add a with_clause on A.b to the context.
6985 2008-07-31 Vincent Celier <celier@adacore.com>
6987 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
6988 return the empty string, instead of raising Constraint_Error.
6990 2008-07-31 Gary Dismukes <dismukes@adacore.com>
6992 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
6994 * checks.adb (Apply_Accessibility_Check): Insert the check on
6998 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
6999 to new parameter Insert_Node on call to Apply_Accessibility_Check.
7000 Necessary to distinguish the insertion node because the dereferenced
7001 formal may come from a rename, but the check must be inserted in
7002 front of the attribute.
7005 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
7006 call to Apply_Accessibility_Check.
7007 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
7008 on call to Apply_Accessibility_Check.
7011 2008-07-31 Javier Miranda <miranda@adacore.com>
7013 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
7014 types when the candidate type is a synchronized type.
7016 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
7017 types, and complete management of synchronized types adding missing
7018 code to handle formal that is a synchronized type.
7020 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
7021 are not available and cause the compiler to blowup. Found compiling
7022 test with switch -gnatc
7024 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
7025 Has_Correct_Formal_Mode plus code cleanup.
7027 2008-07-31 Bob Duff <duff@adacore.com>
7029 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
7030 recognized as two end-of-lines, but it should be just one.
7032 2008-07-31 Thomas Quinot <quinot@adacore.com>
7034 * exp_ch9.adb: Minor reformatting
7036 * tbuild.ads: Fix several occurrences of incorrectly referring to
7037 Name_Find as Find_Name.
7039 2008-07-31 Ed Schonberg <schonberg@adacore.com>
7041 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
7042 and the context is an object declaration with non-static bounds, treat
7043 the aggregate as non-static.
7045 2008-07-31 Vincent Celier <celier@adacore.com>
7047 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
7048 Move back spec of Parse_Single_Project to body, as it is not called
7049 outside of package Prj.Part.
7050 (Project_Data): Remove components Linker_Name, Linker_Path and
7051 Minimum_Linker_Options as they are no longer set.
7052 Remove function There_Are_Ada_Sources from package Prj and move code
7053 in the only place it was used, in Prj.Env.Set_Ada_Paths.
7055 2008-07-31 Arnaud Charlet <charlet@adacore.com>
7057 * mlib-utl.ads: Fix typo.
7059 2008-07-31 Robert Dewar <dewar@adacore.com>
7061 * sem_ch12.adb: Minor reformatting
7063 2008-07-31 Sergey Rybin <rybin@adacore.com>
7065 * gnat_ugn.texi: Change the description of the
7066 Overly_Nested_Control_Structures: now the rule always requires a
7067 positive parameter for '+R' option
7069 2008-07-31 Thomas Quinot <quinot@adacore.com>
7071 * g-pehage.adb: Minor reformatting
7073 2008-07-31 Pascal Obry <obry@adacore.com>
7075 * s-finimp.ads: Minor reformatting.
7077 2008-07-31 Vincent Celier <celier@adacore.com>
7079 * s-regexp.ads: Minor comment fix
7081 2008-07-31 Arnaud Charlet <charlet@adacore.com>
7083 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
7084 so that we can compile this file successfully with -gnatc.
7086 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
7088 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
7089 of the type when looking for stream subprograms for type String,
7090 Wide_String and Wide_Wide_String.
7092 * s-ststop.adb: Change the initialization expression of constant
7095 2008-07-31 Geert Bosch <bosch@adacore.com>
7098 New file implementing __gnat_mulv64 signed integer multiplication with
7101 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
7103 * gcc-interface/gigi.h:
7104 (standard_types): Add ADT_mulv64_decl
7105 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
7107 * gcc-interface/utils.c:
7108 (init_gigi_decls): Add initialization of mulv64_decl
7110 * gcc-interface/trans.c:
7111 (build_unary_op_trapv): New function
7112 (build_binary_op_trapv): New function
7113 (gnat_to_gnu): Use the above functions instead of
7114 build_{unary,binary}_op
7116 * gcc-interface/Makefile.in
7117 (LIBGNAT_SRCS): Add arit64.c
7118 (LIBGNAT_OBJS): Add arit64.o
7120 2008-07-31 Vincent Celier <celier@adacore.com>
7122 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
7123 Linker'Default_Switches are declared. Warn if they are declared.
7125 2008-07-31 Ed Schonberg <schonberg@adacore.com>
7127 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
7128 Insert_Actions to place the pointer declaration in the code, rather
7129 than Insert_Before_And_Analyze, so that insertions of temporaries are
7130 kept in the proper order when transient scopes are present.
7133 2008-07-31 Robert Dewar <dewar@adacore.com>
7135 * einfo.adb (Spec_PPC): Now defined for generic subprograms
7137 * einfo.ads (Spec_PPC): Now defined for generic subprograms
7139 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
7142 2008-07-31 Vincent Celier <celier@adacore.com>
7144 * s-os_lib.adb: Minor comment fix
7146 2008-07-31 Ed Schonberg <schonberg@adacore.com>
7148 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
7149 transfer pre/postconditions from generic copy to original tree, so that
7150 they will appear in each instance.
7151 (Process_PPCs): Do not transform postconditions into a procedure in a
7152 generic context, to prevent double expansion of check pragmas.
7154 * sem_attr.adb: In an instance, the prefix of the 'result attribute
7155 can be the renaming of the
7156 current instance, so check validity of the name accordingly.
7158 2008-07-31 Robert Dewar <dewar@adacore.com>
7160 * mlib-utl.ads: Minor reformatting
7162 2008-07-31 Ed Schonberg <schonberg@adacore.com>
7164 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
7165 from context. This attribute must be usable in Ada95 mode.
7166 The attribute can appear in the body of a function marked
7167 Inline_Always, but in this case the postocondition is not enforced.
7169 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
7170 of an inlined call pre- and postconditions are legal
7172 2008-07-31 Vincent Celier <celier@adacore.com>
7174 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
7175 were for gprmake only
7177 2008-07-31 Robert Dewar <dewar@adacore.com>
7179 * gnat_ugn.texi: Update -gnatN documentation.
7181 * gnat_rm.texi: Add note about pre/postcondition
7182 pragmas not checked in conjunction with front-end inlining.
7184 2008-07-31 Robert Dewar <dewar@adacore.com>
7186 * g-pehage.adb, g-pehage.ads: Minor reformatting
7188 2008-07-31 Arnaud Charlet <charlet@adacore.com>
7190 * mlib-utl.ads, prj-makr.ads: Add comments.
7192 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7194 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
7195 [WINDOWS]: Add s-winext.o.
7197 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
7200 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
7201 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
7202 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
7203 Set precision to 1 for subtype of BOOLEAN_TYPE.
7204 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
7205 (make_type_from_size): Deal with BOOLEAN_TYPE.
7206 * gcc-interface/misc.c (gnat_print_type): Likewise.
7207 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
7208 Set boolean_type_node as its translation in the table, as well
7209 as boolean_false_node for False and boolean_true_node for True.
7210 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
7211 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
7212 (create_param_decl): Deal with BOOLEAN_TYPE.
7213 (build_vms_descriptor): Likewise.
7214 (build_vms_descriptor64): Likewise.
7215 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
7217 2008-07-30 Robert Dewar <dewar@adacore.com>
7219 * exp_ch9.adb: Minor reformatting
7221 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
7222 if no primitive operation is found.
7224 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
7226 * sem_ch8.adb: Minor reformatting
7228 2008-07-30 Laurent Pautet <pautet@adacore.com>
7231 Remove a limitation on the length of the words handled by the minimal
7232 perfect hash function generator.
7235 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
7238 2008-07-30 Robert Dewar <dewar@adacore.com>
7240 * gnatlink.adb: Minor reformatting
7242 2008-07-30 Thomas Quinot <quinot@adacore.com>
7244 * rtsfind.adb (Check_RPC): Check version consistency even when not
7245 generating RCI stubs. Provide more detailed error message in case of
7248 2008-07-30 Ed Schonberg <schonberg@adacore.com>
7250 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
7251 as a actual in an instance, check for a missing attribute to prevent
7252 program_error on an illegal program.
7254 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
7255 error if primitive is not found, so that exception can be handled
7256 elsewhere on illegal programs.
7258 2008-07-30 Robert Dewar <dewar@adacore.com>
7260 * uintp.adb (UI_GCD): Fix potential overflow
7262 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
7264 * einfo.adb: Flag245 is now used.
7265 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
7266 check to include functions.
7267 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
7268 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
7270 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
7271 to the list of displayed flags.
7273 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
7274 Wrapped_Entity. These two flags are now present in functions.
7275 New flag Is_Private_Primitive.
7276 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
7279 (Build_Wrapper_Bodies): New subprogram.
7280 (Build_Wrapper_Body): The spec and body have been moved to in
7281 Build_Wrapper_ Bodies. Code cleanup.
7282 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
7283 Wrappers are now generated for primitives declared between the private
7284 and full view of a concurrent type that implements an interface.
7285 (Build_Wrapper_Specs): New subprogram.
7286 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
7287 creation mechanism with a call to Build_Wrapper_Bodies.
7288 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
7289 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
7290 (Expand_N_Task_Body): Replace the wrapper body creation
7291 mechanism with a call to Build_Wrapper_Bodies.
7292 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
7293 creation mechanism with a call to Build_Wrapper_Specs.
7294 (Is_Private_Primitive_Subprogram): New subprogram.
7295 (Overriding_Possible): Code cleanup.
7296 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
7298 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
7300 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
7301 (Process_Full_View): Build wrapper specs for all primitives
7302 that belong to a private view completed by a concurrent type
7303 implementing an interface.
7305 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
7307 concurrent type with a private view that implements an interface, try to
7308 find the proper spec.
7309 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
7310 primitive if the type of its first parameter is a non-generic tagged
7312 (Analyze_Subprogram_Specification): Code reformatting.
7313 (Disambiguate_Spec): New routine.
7314 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
7315 (Is_Private_Concurrent_Primitive): New routine.
7318 (Find_Corresponding_Spec): Add a formal to control the output of errors.
7320 2008-07-30 Doug Rupp <rupp@adacore.com>
7322 * gigi.h (build_vms_descriptor64): New function prototype.
7323 (fill_vms_descriptor): Modified function prototype.
7325 * utils.c (build_vms_descriptor64): New function.
7327 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
7329 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
7332 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
7333 64bit and 32bit descriptor and save the 64bit version as an alternate
7334 TREE_TYPE in the parameter.
7335 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
7338 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
7340 2008-07-30 Robert Dewar <dewar@adacore.com>
7342 * make.adb: Minor reformatting
7344 * mlib-utl.adb: Minor reformatting
7346 * osint.ads: Minor reformatting
7348 2008-07-30 Jose Ruiz <ruiz@adacore.com>
7351 (__gnat_file_exists): Do not use __gnat_stat for RTX.
7352 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
7353 avoid the use of this symbol from libgcc.a in RTX kernel mode.
7356 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
7357 the function RtPrintf for console output.
7359 * argv.c Do not use the environ variable for RTX.
7361 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
7362 been moved before the call to Osint.Add_Default_Search_Dirs in order
7363 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
7364 from the appropriate run time.
7367 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
7368 target is a RTSS module for RTX.
7370 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
7371 RTX_RTSS_Kernel_Module
7372 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
7374 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
7375 exception handling mechanism for Windows and RTX in Win32 mode, but
7376 not for RTX in kernel mode (RTSS).
7377 (LIBGNAT_SRCS): Remove ada.h
7379 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
7381 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
7382 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
7383 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
7384 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
7385 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
7386 ALL_ADA_CFLAGS): Remove.
7387 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
7388 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
7389 (GCC_CFLAGS): Remove X_CFLAGS.
7390 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
7391 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
7392 (ADA_CFLAGS): Substitute.
7394 2008-07-30 Laurent Guerby <laurent@guerby.net>
7397 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
7398 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
7399 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
7400 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
7401 by stamp-gnatlib2-rts.
7403 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7405 PR documentation/15479
7406 * gnat-style.texi: Remove AdaCore copyright statement and GPL
7407 statement for GNAT. Add @copying stanza, use it. Update to
7408 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
7409 title as Front-Cover Text.
7410 * gnat_rm.texi: Likewise.
7411 * gnat_ugn.texi: Likewise.
7413 2008-07-29 Jan Hubicka <jh@suse.cz>
7415 * trans.c (process_inlined_subprograms): Remove tree_really_inline
7418 2008-07-29 Arnaud Charlet <charlet@adacore.com>
7420 * gcc-interface: New directory.
7422 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
7423 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
7424 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
7425 to gcc-interface subdirectory.
7427 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7429 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
7431 2008-07-28 Jan Hubicka <jh@suse.cz>
7433 * misc.c (gnat_post_options): Do not set flag_no_inline.
7435 2008-07-28 Richard Guenther <rguenther@suse.de>
7437 Merge from gimple-tuples-branch.
7439 2008-07-22 Olivier Hainque <hainque@adacore.com>
7441 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
7442 this is called for an elab proc to be discarded if empty.
7443 * utils.c (end_subprog_body): Honor ELAB_P.
7444 (build_function_stub): Adjust call to end_subprog_body.
7445 * trans.c (Subprogram_Body_to_gnu): Likewise.
7446 (gigi): Reorganize processing of elab procs to prevent
7447 gimplifying twice, using the new end_subprog_body argument.
7449 2008-07-19 Richard Guenther <rguenther@suse.de>
7451 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
7452 (utils.o): Likewise.
7453 * trans.c: Include tree-iterator.h.
7454 (gnat_gimplify_expr): Adjust prototype. Fix typo.
7455 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
7456 (set_expr_location_from_node): Likewise.
7458 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
7460 * utils.c: Include tree-iterator.h.
7461 * gigi.h (gnat_gimplify_expr): Adjust prototype.
7463 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
7465 * trans.c: Include gimple.h instead of tree-gimple.h.
7468 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
7470 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
7472 2008-07-25 Jan Hubicka <jh@suse.cz>
7474 * utils.c (end_subprog_body): Remove inline trees check.
7475 * misc.c (gnat_post_options): Do not set flag_inline_trees.
7477 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7479 * raise-gcc.c: Move tsystem.h before tm.h.
7481 2008-07-20 Arnaud Charlet <charlet@adacore.com>
7483 * gnathtml.pl: New file.
7485 2008-07-19 Olivier Hainque <hainque@adacore.com>
7487 * targtyps.c (get_target_default_allocator_alignment): Use
7488 MALLOC_ABI_ALIGNMENT.
7490 2008-07-17 Olivier Hainque <hainque@adacore.com>
7492 * adaint.c (__MINGW32__ section): Include ctype.h and define
7493 a fallback ISALPHA if IN_RTS.
7494 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
7496 2008-07-17 Olivier Hainque <hainque@adacore.com>
7498 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
7499 argument, to apply to references in addition to definitions. Prevent
7500 setting TREE_STATIC on externals.
7501 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
7503 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7505 PR documentation/15479
7506 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
7507 Replace backets around optional parameters with @ovar
7508 where possible, use @r{[}, @r{]} otherwise.
7509 Replace some @r, @i, and @emph with @var where appropriate.
7511 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
7513 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
7515 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7517 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
7518 -Wc++-compat warnings.
7519 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
7520 __gnat_locate_exec_on_path): Likewise.
7521 * decl.c (annotate_value): Likewise.
7522 * misc.c (gnat_handle_option): Likewise.
7523 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
7524 post_error_ne_tree): Likewise.
7526 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
7528 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
7529 version of its type, attempt to first convert its elements.
7531 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
7533 * Makefile.in: Fix *86 kfreebsd target specific pairs.
7535 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
7537 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
7539 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
7541 * utils2.c (known_alignment): Derive the alignment from pointed-to
7542 types only if it is otherwise unknown.
7543 <INTEGER_CST>: Tidy.
7544 <MULT_EXPR>: Likewise.
7545 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
7548 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7551 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
7553 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7555 * gnat_rm.texi (Implementation Defined Characteristics)
7556 (Standard Library Routines): Use @smallexample for indented
7557 text. Drop Indentation outside examples.
7558 * gnat_ugn.texi: Likewise.
7560 2008-06-13 Olivier Hainque <hainque@adacore.com>
7562 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
7564 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
7565 realignment with force_align_arg_pointer attribute on foreign
7566 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
7568 2008-06-13 Olivier Hainque <hainque@adacore.com>
7570 * utils.c (rest_of_record_type_compilation): When computing
7571 encodings for the components of a variable size type, early
7572 strip conversions on the current position expression to make
7573 sure it's shape is visible. Use remove_conversions for this
7576 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
7578 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
7579 constrained subtype of a discriminated type, discard the fields that
7580 are beyond its limits according to its size.
7582 2008-06-10 Olivier Hainque <hainque@adacore.com>
7584 * utils.c (create_subprog_decl): If this is for the 'main' entry
7585 point according to the asm name, redirect main_identifier_node.
7587 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
7589 * decl.c (components_to_record): Adjust the packedness for the
7590 qualified union as well.
7592 2008-06-09 Arnaud Charlet <charlet@adacore.com>
7594 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
7597 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
7599 * sem_res.adb (Large_Storage_Type): A type is large if it
7600 requires as many bits as Positive to store its values and its
7601 bounds are known at compile time.
7602 * sem_ch13.adb (Minimum_Size): Note that this function returns
7603 0 if the size is not known at compile time.
7605 2008-06-06 Nicolas Setton <setton@adacore.com>
7606 Olivier Hainque <hainque@adacore.com>
7608 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
7609 attribute, parallel descriptive type attached to another
7610 type for debug info generation purposes.
7611 * utils.c (add_parallel_type): New function, register
7612 parallel type to be attached to a type.
7613 (get_parallel_type): New function, fetch a registered
7614 parallel type, if any.
7615 (rest_of_record_type_compilation): Register the parallel
7616 type we make for variable size records.
7617 * gigi.h (add_parallel_type, get_parallel_type): Declare.
7618 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
7619 parallel debug types we make.
7620 * trans.c (extract_encoding, decode_name): New functions.
7621 (gigi): If the DWARF attribute extensions are available, setup
7623 * lang.opt: Register language specific processing request
7625 * misc.c (gnat_dwarf_extensions): New global variable. How much
7626 do we want of our DWARF extensions. 0 by default.
7627 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
7628 (gnat_post_options): Map gnat_dwarf_extensions to the
7629 commonuse_gnu_debug_info_extensions for later processing.
7631 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
7633 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
7635 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7637 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
7638 * gnat_ugn.texi (Style Checking)
7639 (Adding the Results of Compiler Checks to gnatcheck Output)
7640 (Example of Binder Output File): Fix typos.
7641 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
7642 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
7643 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
7644 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
7645 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
7646 sinfo.ads, utils.c: Fix typos in comments.
7647 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
7649 2008-05-29 Thomas Quinot <quinot@adacore.com>
7651 * sem_eval.adb: Minor reformatting
7653 2008-05-29 Ed Schonberg <schonberg@adacore.com>
7655 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
7656 is abstract, do not apply abstractness check on subprogram if this is
7657 a renaming declaration.
7659 2008-05-29 Arnaud Charlet <charlet@adacore.com>
7662 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
7663 allow recognition of program suffix in addition to prefix.
7665 * gnatchop.adb (Locate_Executable): Add support for prefix.
7667 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
7668 mlib-utl.adb: Adjust calls to Program_Name.
7670 2008-05-29 Robert Dewar <dewar@adacore.com>
7672 * sem_ch3.adb: Minor reformatting
7673 * sem_prag.adb: Minor reformatting
7674 * sem_res.adb: Minor reformatting
7675 * sinput-p.ads: Minor reformatting
7677 2008-05-29 Javier Miranda <miranda@adacore.com>
7680 (Abstract_Interface_List): Add missing support for full type-declaration
7681 associated with synchronized types.
7683 2008-05-29 Robert Dewar <dewar@adacore.com>
7685 * sem_eval.adb (Is_Same_Value): Take care of several more cases
7687 2008-05-28 Ed Schonberg <schonberg@adacore.com>
7689 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
7690 access type, wrap the expression in a conversion to force an
7691 accessibility check.
7693 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
7694 accessibility checks even when expansion is disabled in order to
7695 generate messages in the presence of previous errors or in
7696 semantics-only mode.
7698 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
7700 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
7701 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
7703 2008-05-28 Vincent Celier <celier@adacore.com>
7706 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
7707 preprocessing expressions
7709 2008-05-28 Vincent Celier <celier@adacore.com>
7711 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
7714 * sinput-p.ads: Minor comment update and reformatting
7716 2008-05-28 Ed Schonberg <schonberg@adacore.com>
7718 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
7719 type has a deeper level than any master only when it is the type of an
7722 2008-05-28 Javier Miranda <miranda@adacore.com>
7724 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
7726 2008-05-28 Javier Miranda <miranda@adacore.com>
7728 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
7729 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
7730 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
7731 Add code that was previously located in
7732 Find_Overridden_Synchronized_Primitive because it is only used here.
7734 2008-05-28 Sergey Rybin <rybin@adacore.com>
7736 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
7737 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
7739 2008-05-28 Robert Dewar <dewar@adacore.com>
7742 Add missing restrictions, and properly label all GNAT defined ones
7745 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
7746 Add entry for Ada.Task_Termination.Set_Specific_Handler
7747 Add entry for Ada.Task_Termination.Specific_Handler
7750 Add missing restrictions and properly mark all gnat defined ones
7753 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
7756 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
7758 * gnat_rm.texi: Add missing restrictions, and properly label all
7761 2008-05-28 Robert Dewar <dewar@adacore.com>
7764 (Check_Restriction): violation of restriction No_Finalization is
7765 treated as a serious error to stop expansion
7767 2008-05-28 Robert Dewar <dewar@adacore.com>
7769 * exp_util.adb: Minor reformatting
7770 * exp_util.ads: Minor reformatting.
7772 2008-05-28 Arnaud Charlet <charlet@adacore.com>
7774 * Make-lang.in: Remove gprmake.
7776 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
7778 2008-05-28 Ed Schonberg <schonberg@adacore.com>
7780 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
7781 improper progenitor names, and avoid cascaded errors.
7783 2008-05-28 Robert Dewar <dewar@adacore.com>
7785 * gnat_rm.texi: Add note on Old giving warning when applied to constant
7787 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
7790 2008-05-28 Robert Dewar <dewar@adacore.com>
7792 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
7795 2008-05-28 Robert Dewar <dewar@adacore.com>
7798 (Expand_Simple_Function_Return): Copy unaligned result into temporary
7800 2008-05-28 Javier Miranda <miranda@adacore.com>
7802 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
7803 for user-defined predefined primitives.
7805 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
7806 (Find_Overridden_Synchronized_Primitive): Ditto.
7808 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
7810 2008-05-27 Arnaud Charlet <charlet@adacore.com>
7812 * a-ststio.adb, s-direio.adb:
7813 Further code clean up of previous change.
7816 2008-05-27 Vincent Celier <celier@adacore.com>
7818 * prj-nmsc.adb: Minor reformatting
7820 2008-05-27 Bob Duff <duff@adacore.com>
7822 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
7823 untagged private type with a tagged full type, where the full type has
7824 a self reference, create the corresponding class-wide type early, in
7825 case the self reference is "access T'Class".
7827 2008-05-27 Ed Schonberg <schonberg@adacore.com>
7829 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
7830 tasks and context is an object declaration. create master entity before
7833 2008-05-27 Robert Dewar <dewar@adacore.com>
7835 * mlib-prj.adb: Minor reformatting
7837 * prj-part.adb: Minor reformatting
7839 * prj.ads: Minor reformatting
7841 * exp_ch3.adb: Minor reformatting.
7843 * sem_ch3.ads: Minor reformatting
7845 * sem_eval.adb: Minor reformatting
7847 2008-05-27 Vincent Celier <celier@adacore.com>
7850 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
7852 2008-05-27 Ed Schonberg <schonberg@adacore.com>
7854 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
7855 tasks, create an activation chain now, before the expansion into
7856 assignments and build-in-place calls that require the presence of an
7858 (Backend_Processing_Possible): If the component type is inherently
7859 limited, the aggregate must be expanded into individual built-in-place
7862 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
7863 determine whether an allocation extra parameter must be built, to
7864 handle case of a private type whose full type is a discriminated type
7867 2008-05-27 Bob Duff <duff@adacore.com>
7870 Document the new behavior regarding trampolines.
7872 2008-05-27 Arnaud Charlet <charlet@adacore.com>
7874 * a-direio.adb, a-sequio.adb: Replace address clause by
7875 unrestricted_access, simpler and compatible with .NET.
7877 2008-05-27 Vincent Celier <celier@adacore.com>
7880 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
7881 a project file, so that symbolic links are not resolved.
7883 2008-05-27 Arnaud Charlet <charlet@adacore.com>
7885 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
7886 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
7887 portable across GNAT targets, since this kind of address clause is not
7888 supported by VM back-ends (.NET/JGNAT).
7890 2008-05-27 Arnaud Charlet <charlet@adacore.com>
7892 * bindgen.adb: Update comments.
7894 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
7896 2008-05-27 Vincent Celier <celier@adacore.com>
7898 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
7899 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
7900 mlib-tgt.adb, prj-env.adb, prj-env.ads:
7901 (Path_Information): New record type
7902 Use component of type Path_Information when there are two paths, one in
7903 canonical format and one in display format.
7904 Update the project manager to these new components.
7906 2008-05-27 Robert Dewar <dewar@adacore.com>
7908 * makeutl.adb: Minor reformatting
7909 * prj-nmsc.adb: Minor reformatting
7910 * s-stausa.adb: Minor reformatting
7911 * s-stausa.ads: Minor reformatting
7912 * sem_ch6.adb: Minor reformatting
7914 2008-05-27 Thomas Quinot <quinot@adacore.com>
7916 * sem_res.adb: Minor comment fixes
7918 2008-05-27 Thomas Quinot <quinot@adacore.com>
7920 * makeutl.adb: Minor code reorganization
7922 * exp_aggr.adb: Add ??? comment
7925 * exp_ch6.adb: Minor reformatting
7927 2008-05-27 Quentin Ochem <ochem@adacore.com>
7929 * s-stausa.adb (Initialize): Updated result initialization, and
7930 initialization of environment stack.
7931 (Fill_Stack): Improved computation of the pattern zone, taking into
7932 account already filled at the calling point.
7933 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
7934 Measure and Overflow_Guard.
7935 (Report_Result): Fixed computation of the result using new fields of
7938 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
7939 params by more explicit Stack_Size / Max_Pattern_Size params.
7940 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
7941 Added Stack_Used_When_Filling field.
7942 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
7943 Min_Measure and Max_Measure fields.
7945 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
7947 2008-05-27 Vincent Celier <celier@adacore.com>
7950 (Check_File): Make sure that a unit that replaces the same unit in a
7951 project being extended is properly processed.
7953 2008-05-27 Ed Schonberg <schonberg@adacore.com>
7956 (Get_Discr_Value): Remove obsolete code that failed to find the value
7957 of a discriminant for an inherited task component appearing in a type
7960 2008-05-27 Thomas Quinot <quinot@adacore.com>
7962 (System.File_IO.{Close, Delete, Reset}):
7963 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
7965 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
7966 Pass File parameter by reference.
7968 2008-05-27 Vincent Celier <celier@adacore.com>
7971 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
7972 sources of the same project that have the same object file name.
7973 (Find_Explicit_Sources): Always remove a source exception that was not
7976 2008-05-27 Thomas Quinot <quinot@adacore.com>
7978 * sem_ch3.adb: Minor reformatting
7980 2008-05-27 Ed Schonberg <schonberg@adacore.com>
7983 (Is_Interface_Conformant): Handle properly a primitive operation that
7984 overrides an interface function with a controlling access result.
7985 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
7986 inherited and overriding operations, omit as well the conformance check
7987 on result types, to prevent spurious errors.
7989 2008-05-27 Vincent Celier <celier@adacore.com>
7991 * makeutl.ads, makeutl.adb:
7992 (Set_Location): New procedure
7993 (Get_Location): New function
7994 (Update_Main): New procedure
7996 2008-05-27 Vincent Celier <celier@adacore.com>
7999 (Check_Library): Allow standard project to be extended as a static
8001 (Get_Mains): Do not inherit attribute Main in an extending library
8004 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
8006 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
8007 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
8008 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
8009 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
8010 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
8011 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
8012 * system-mingw.ads (Always_Compatible_Rep): Likewise.
8013 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
8014 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
8015 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
8017 2008-05-27 Ed Schonberg <schonberg@adacore.com>
8019 * sem_attr.adb: add guard to previous patch.
8021 2008-05-27 Ed Schonberg <schonberg@adacore.com>
8023 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
8024 a synchronized tagged type, do not attempt to build dispatch table for
8025 full view. The table is built for the corresponding record type, which
8026 has its own declaration.
8028 2008-05-27 Gary Dismukes <dismukes@adacore.com>
8030 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
8031 to the known type entity E, rather than setting it to Any_Type. Fixes
8032 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
8033 for objects whose type had an illegal constraint.
8035 2008-05-27 Vincent Celier <celier@adacore.com>
8038 Add succinct documentation for attribute Excluded_Source_List_File
8040 2008-05-27 Vincent Celier <celier@adacore.com>
8042 * prj-attr.adb: Add new project level attribute Map_File_Option
8044 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
8046 * prj.ads: Minor reformatting and comment update
8047 (Project_Configuration): New component Map_File_Option
8049 * snames.adb: New standard name Map_File_Option
8051 * snames.ads: New standard name Map_File_Option
8053 2008-05-27 Vincent Celier <celier@adacore.com>
8055 * xsnames.adb: Remove unused variable Oname
8057 2008-05-27 Doug Rupp <rupp@adacore.com>
8060 (Expand_N_Function_Call): Fix comments. Minor reformatting.
8063 (Expand_Vax_Foreign_Return): Fix comments.
8065 2008-05-27 Thomas Quinot <quinot@adacore.com>
8067 * exp_dist.adb: Minor reformating
8069 2008-05-26 Gary Dismukes <dismukes@adacore.com>
8071 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
8072 No_Default_Initialization, which is now delayed until the freeze point
8073 of the object. Add a comment about deferral of the check.
8075 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
8076 on objects is moved here.
8078 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
8080 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
8081 (Compare_Array_S16): Adjust for above change.
8082 * s-casi32.adb (Uword): Likewise.
8083 (Compare_Array_S32): Likewise.
8084 * s-casi64.adb (Uword): Likewise.
8085 (Compare_Array_S64): Likewise.
8086 * s-caun16.adb (Uhalf): Likewise.
8087 (Compare_Array_U16): Likewise.
8088 * s-caun32.adb (Uword): Likewise.
8089 (Compare_Array_U32): Likewise.
8090 * s-caun64.adb (Uword): Likewise.
8091 (Compare_Array_U64): Likewise.
8093 2008-05-26 Robert Dewar <dewar@adacore.com>
8095 * exp_ch6.adb: Add ??? comment for previous change
8097 * exp_vfpt.adb: Minor reformatting
8099 * exp_vfpt.ads: Add ??? comment for last change
8101 * sem_attr.adb: Add some ??? comments for previous change
8103 * s-vaflop.ads: Add comments for previous change
8105 2008-05-26 Doug Rupp <rupp@adacore.com>
8107 * s-vaflop-vms-alpha.adb:
8108 Remove System.IO use clause, to prevent spurious ambiguities when
8109 package is access through rtsfind.
8111 2008-05-26 Sergey Rybin <rybin@adacore.com>
8113 * tree_io.ads (ASIS_Version_Number): Update because of the changes
8116 2008-05-26 Ed Schonberg <schonberg@adacore.com>
8119 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
8120 converted to S (A)'address only if A .. B is known to be a non-null
8123 2008-05-26 Doug Rupp <rupp@adacore.com>
8126 (Return_D, Return_F, Return_G): New functions.
8129 (Return_D, Return_F, Return_G): New functions.
8132 (Expand_Vax_Foreign_Return): New procedure
8135 (Expand_Vax_Foreign_Return): New procedure
8138 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
8139 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
8143 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
8145 * s-vaflop-vms-alpha.adb:
8146 (Return_D, Return_F, Return_G): New functions.
8148 2008-05-26 Gary Dismukes <dismukes@adacore.com>
8150 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
8151 init proc entity when there is actual default initialization associated
8152 with the component type, to avoid spurious errors on objects of scalar
8153 array types that are marked Is_Public when No_Default_Initialization
8156 2008-05-26 Thomas Quinot <quinot@adacore.com>
8158 * rtsfind.ads, rtsfind.adb:
8159 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
8160 (Check_RPC): Support per-PCS-kind API versioning.
8162 exp_dist.ads, exp_dist.adb:
8163 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
8164 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
8165 library function Get_RACW.
8166 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
8167 library function Get_Reference.
8168 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
8169 through an intermediate Any.
8170 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
8171 going through an intermediate Any.
8173 * sem_dist.adb: Minor reformatting.
8175 2008-05-26 Javier Miranda <miranda@adacore.com>
8177 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
8178 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
8179 (Is_Internal): Adding documentation on internal entities that have
8180 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
8182 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
8183 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
8184 Added assertion to force entities with this attribute to have
8185 attribute Is_Internal set to True.
8186 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
8188 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
8189 renamed as Derive_Progenitor_Subprograms. In addition, its code is
8190 a new implementation.
8191 (Add_Interface_Tag_Components): Remove special management of
8192 synchronized interfaces.
8193 (Analyze_Interface_Declaration): Minor reformating
8194 (Build_Derived_Record_Type): Minor reformating
8195 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
8196 predefined primitive inherited from interface type because the body of
8197 internally generated predefined primitives of tagged types are generated
8198 later by Freeze_Type
8199 (Derive_Subprogram): Avoid generating an internal name if the parent
8200 subprogram overrides an interface primitive.
8201 (Derive_Subprograms): New implementation that keeps separate the
8202 management of tagged types not implementing interfaces, from tagged
8203 types that implement interfaces.
8204 (Is_Progenitor): New implementation.
8205 (Process_Full_View): Add documentation
8206 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
8207 by call to Derive_Progenitor_Subprograms.
8209 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
8210 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
8211 Skip_Controlling_Formals.
8213 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
8214 (Check_Conventions): New implementation. Remove local subprogram
8215 Skip_Check. Remove formal Search_From of routine Check_Convention.
8216 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
8217 Skip_Controlling_Formals.
8218 (New_Overloaded_Entity): Enable addition of predefined dispatching
8222 (Find_Primitive_Covering_Interface): New subprogram.
8224 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
8225 the task body procedure as a primitive of the corresponding tagged
8227 (Check_Operation_From_Private_Type): Avoid adding twice an entity
8228 to the list of primitives.
8229 (Find_Primitive_Covering_Interface): New subprogram.
8230 (Override_Dispatching_Operation): Add documentation.
8232 * sem_type.adb (Covers): Minor reformatings
8234 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
8237 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
8238 (Implements_Interface): New subprogram.
8239 (Is_Parent): Removed.
8240 (Primitive_Names_Match): New subprogram.
8241 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
8242 (Ultimate_Alias): New subprogram.
8244 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
8246 Remove special management for synchronized types. Rename formal. Remove
8247 internal subprograms Interface_Present_In_Parent and Add_Interface.
8248 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
8249 on non-record types by code to return false in such case.
8250 (Implements_Interface): New subprogram.
8251 (Is_Parent): Removed. No special management is now required for
8252 synchronized types covering interfaces.
8253 (Primitive_Names_Match): New subprogram.
8254 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
8255 (Ultimate_Alias): New subprogram.
8257 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
8258 Add internal entities associated with secondary dispatch tables to
8259 the list of tagged type primitives that are not interfaces.
8260 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
8261 (Make_Predefined_Primitive_Specs): Code reorganization to improve
8262 the management of predefined equality operator. In addition, if
8263 the type has an equality function corresponding with a primitive
8264 defined in an interface type, the inherited equality is abstract
8265 as well, and no body can be created for it.
8267 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
8268 exp_util to exp_disp.
8269 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
8270 an entity corresponds with one of the predefined primitives required
8271 to implement interfaces.
8272 Update copyright notice.
8274 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
8275 final check on abstract subprograms all the primitives associated with
8276 interface primitives because they must be visible in the public and
8278 (Write_DT): Use Find_Dispatching_Type to locate the name of the
8279 interface type. This allows the use of this routine, for debugging
8280 purposes, when the tagged type is not fully decorated.
8281 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
8282 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
8283 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
8284 entity corresponds with one of the predefined primitives required to
8285 implement interfaces.
8287 * exp_util.adb (Find_Interface_ADT): New implementation
8288 (Find_Interface): Removed.
8290 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
8291 list of interfaces associated with nodes
8292 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
8294 2008-05-26 Thomas Quinot <quinot@adacore.com>
8296 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
8297 condition for assignment to temporary.
8299 2008-05-26 Ed Schonberg <schonberg@adacore.com>
8301 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
8302 checks on the upper bound if the index type is a modular type, to
8303 prevent wrap-around computations when size is close to upper bound of
8306 2008-05-26 Robert Dewar <dewar@adacore.com>
8308 * sem_ch3.adb: Minor reformatting
8310 2008-05-26 Ed Schonberg <schonberg@adacore.com>
8312 * sem_ch12.adb (Remove_Parent): Use specification of instance
8313 to retrieve generic parent,
8314 to handle properly the case where the instance is a child unit.
8315 Add guard to handle properly wrapper packages.
8318 2008-05-26 Thomas Quinot <quinot@adacore.com>
8320 * sinfo.ads: Minor reformatting
8322 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
8324 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
8325 Generate a tag check when the result subtype of a function, defined by
8326 an access definition, designates a specific tagged type.
8327 (Make_Tag_Check): New routine.
8329 2008-05-26 Arnaud Charlet <charlet@adacore.com>
8331 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
8333 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
8335 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
8336 (builtin_decl_for): Likewise.
8337 * trans.c (gigi): Likewise.
8338 * utils.c (def_builtin_1): Fix formatting.
8340 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
8342 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
8343 Create the statements which map a string name to protected or task
8346 * exp_ch9.adb: Add with and use clause for Stringt.
8347 Minor code reformatting.
8348 (Build_Entry_Names): New routine.
8349 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
8350 for flag Build_Entry_Names which controls the allocation of the data
8351 structure for the string names of entries.
8353 * exp_ch9.ads (Build_Entry_Names): New subprogram.
8355 * exp_util.adb (Entry_Names_OK): New function.
8357 * exp_util.ads (Entry_Names_OK): New function.
8359 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
8360 enumerations RE_Id and RE_Unit_Table.
8362 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
8363 (Free_Entry_Names_Array): New routine.
8365 * s-taskin.ads: Comment reformatting.
8366 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
8367 Add component Entry_Names to record Ada_Task_Control_Block.
8368 (Free_Entry_Names_Array): New routine.
8370 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
8371 dynamically allocate an array
8372 of string pointers. This structure holds string entry names.
8373 (Free_Entry_Names): New routine.
8374 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
8375 (Set_Entry_Names): New routine.
8378 (Create_Task): Add formal Build_Entry_Names. The flag is used to
8379 control the allocation of the data structure which stores entry names.
8380 (Set_Entry_Name): New routine.
8383 Add with and use clause for Ada.Unchecked_Conversion.
8384 (Finalize): Deallocate the entry names array.
8385 (Free_Entry_Names): New routine.
8386 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
8387 create an array of string pointers to hold the entry names.
8388 (Set_Entry_Name): New routine.
8391 Add field Entry_Names to record Protection_Entries.
8392 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
8393 (Set_Entry_Name): New routine.
8395 2008-05-26 Vincent Celier <celier@adacore.com>
8398 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
8401 (Project_Configuration): New component Shared_Lib_Driver
8403 2008-05-26 Ed Schonberg <schonberg@adacore.com>
8406 (Cleanup_Scopes): For a protected operation, transfer finalization list
8407 to protected body subprogram, to force cleanup actions when needed.
8409 2008-05-26 Robert Dewar <dewar@adacore.com>
8411 * sem_cat.adb: Minor reformatting
8413 * gnatname.adb: Minor reformatting
8415 * osint.ads: Minor reformatting
8417 * s-carun8.ads: Minor reformatting
8419 * g-heasor.ads: Minor comment fix (unit is now pure)
8421 2008-05-26 Robert Dewar <dewar@adacore.com>
8424 (Expand_Current_Value): Properly type generated integer literal
8426 2008-05-26 Sergey Rybin <rybin@adacore.com>
8428 * gnat_ugn.texi: Add description for the new gnatcheck rule -
8429 Separate_Numeric_Error_Handlers.
8431 2008-05-26 Pascal Obry <obry@adacore.com>
8433 * sem_aggr.adb: Minor reformatting.
8435 2008-05-26 Jose Ruiz <ruiz@adacore.com>
8438 (To_Target_Priority): Setting the time slice value to 0 or greater sets
8439 the scheduling policy to FIFO within priorities or round-robin
8441 Hence, the priority must be set in this case to the one selected by the
8444 2008-05-26 Ed Schonberg <schonberg@adacore.com>
8447 (Remove_Parent): If the enclosing scope is an instance whose generic
8448 parent is declared within some parent scope of the just completed
8449 instance, make full views of the entities in that parent visible, when
8452 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
8454 * mingw32.h (STD_MINGW): Set to true for target w64.
8456 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
8458 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
8459 instead of TREE_STATIC on the ADDR_EXPR.
8461 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
8463 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
8464 (Sloc_to_locus): Do not overwrite known GCC locations when translating
8465 GNAT standard locations.
8467 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
8469 * gigi.h (mark_visited): Declare.
8470 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
8471 only the topmost node of expressions.
8472 (elaborate_expression_1): Look deeper for read-only variables.
8473 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
8474 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
8475 (mark_visited_r): New function.
8477 2008-05-23 Vincent Celier <celier@adacore.com>
8479 * snames.adb: New standard name Excluded_Source_List_File.
8481 * snames.ads: New standard name Excluded_Source_List_File.
8483 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
8485 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
8486 Get excluded sources from
8487 file indicated by attribute Excluded_Source_List_File, when present and
8488 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
8490 2008-05-23 Robert Dewar <dewar@adacore.com>
8492 * exp_dist.adb: Minor reformatting
8494 2008-05-23 Ed Schonberg <schonberg@adacore.com>
8496 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
8497 slice, convert it to an indexed component, which is equivalent, more
8498 efficient, and usable even if the slice itself is not addressable.
8500 2008-05-23 Olivier Hainque <hainque@adacore.com>
8502 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
8503 convention also allows access to named compiler built-in subprograms
8504 such as the GCC __builtin family.
8506 2008-05-23 Vincent Celier <celier@adacore.com>
8508 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
8509 sep. If there are several possibilities, choose the one with the
8512 2008-05-23 Vincent Celier <celier@adacore.com>
8514 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
8515 back end switches when executable specified with --GCC= is same as
8516 default, even if there are additional options.
8519 Document when the back end switches from the ALI file are taken into
8520 account when gnatlink is invoked with --GCC=
8522 2008-05-23 Thomas Quinot <quinot@adacore.com>
8525 (copy_File): Do not open destination file if source file is unreadable.
8527 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
8529 * utils.c (handle_type_generic_attribute): Adjust to accept
8530 fixed arguments before an elipsis.
8532 2008-05-21 Thomas Quinot <quinot@adacore.com>
8534 * g-sothco.ads, g-sothco.adb: New files.
8536 2008-05-20 Thomas Quinot <quinot@adacore.com>
8538 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
8540 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
8541 Add missing "with" of Ada.Unchecked_Conversion
8543 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
8544 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
8545 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
8546 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
8547 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
8548 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
8549 Move common code out of GNAT.Sockets.Thin implementations and into
8551 New constant SIZEOF_fd_set
8552 New flag Has_Sockaddr_Len
8553 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
8555 * g-stsifd-sockets.adb
8556 (Create): Remove call to Set_Length; use Set_Family to set the family
8557 and (on appropriate platforms) length fields in struct sockaddr.
8559 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
8560 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
8561 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
8562 Move common code out of GNAT.Sockets.Thin implementations and into
8565 * g-socket.ads, g-socket.adb:
8566 Move common code out of GNAT.Sockets.Thin implementations and into
8568 (Connect_Socket, Accept_Socket): Provide new versions of these two
8569 routines that operate with a user specified timeout.
8570 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
8571 this is now handled automatically by Set_Family on platforms that
8575 Move common code out of GNAT.Sockets.Thin implementations and into
8577 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
8578 this constant to 0 (not -1) because we use it to initialize an
8579 unsigned_char value.
8580 Align values for numeric constants only.
8581 Handle the case of systems that do not support AF_INET6.
8582 New constant SIZEOF_fd_set
8583 New flag Has_Sockaddr_Len
8584 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
8586 * gsocket.h: New flag Has_Sockaddr_Len
8587 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
8589 2008-05-20 Santiago Uruena <uruena@adacore.com>
8591 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
8593 2008-05-20 Arnaud Charlet <charlet@adacore.com>
8595 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
8596 the underlying issue with malloc/free has been fixed. Remove associated
8599 Related to PR ada/24533
8601 2008-05-20 Robert Dewar <dewar@adacore.com>
8603 * ali.adb: Correct casing of ASCII.NUL
8605 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
8608 2008-05-20 Robert Dewar <dewar@adacore.com>
8609 Gary Dismukes <dismukes@adacore.com>
8611 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
8612 overflow if result converted to wider integer type.
8613 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
8614 discriminated types when discriminant checks are suppressed.
8616 2008-05-20 Vincent Celier <celier@adacore.com>
8618 * cstand.adb (Print_Standard): Issue the correct Size clause for type
8619 Wide_Wide_Character.
8621 2008-05-20 Tristan Gingold <gingold@adacore.com>
8623 * decl.c: Do not emit a variable for a object that has an address
8624 representation clause whose value is known at compile time.
8625 When a variable has an address clause whose value is known at compile
8626 time, refer to this variable by using directly the address instead of
8627 dereferencing a pointer.
8629 2008-05-20 Robert Dewar <dewar@adacore.com>
8632 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
8633 subtypes, always False for non-modular types.
8634 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
8635 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
8636 for Shared_Storage package.
8637 (Is_RACW_Stub_Type): New entity flag.
8640 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
8641 case where we have a modular type with a non-binary modules.
8642 Comments reformattings.
8644 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
8647 2008-05-20 Javier Miranda <miranda@adacore.com>
8650 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
8651 tests did not covered the case in which the type of the aggregate has
8652 no progenitors but some its parents has progenitors.
8654 2008-05-20 Gary Dismukes <dismukes@adacore.com>
8655 Hristian Kirtchev <kirtchev@adacore.com>
8658 (Expand_N_Object_Declaration): Correct the condition which triggers the
8659 generation of a call to Displace when initializing a class-wide object.
8660 (Build_Dcheck_Functions): Build discriminant-checking for null variants
8661 when Frontend_Layout_On_Target is true to ensure that they're available
8662 for calling when a record variant size function is built in Layout.
8664 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8666 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
8667 procedure for a derived type retrieve the discriminant values from the
8668 parent using the corresponding discriminant.
8669 (Expand_N_Assignment_Statement): Skip generation of implicit
8670 if-statement associated with controlled types if we are
8671 compiling with restriction No_Finalization.
8673 2008-05-20 Vincent Celier <celier@adacore.com>
8675 * prj.adb (Hash (Project_Id)): New function
8676 (Project_Empty): Add new component Interfaces_Defined
8678 * prj.ads (Source_Data): New component Object_Linked
8679 (Language_Config): New components Object_Generated and Objects_Linked
8680 (Hash (Project_Id)): New function
8681 (Source_Data): New Boolean components In_Interfaces and
8682 Declared_In_Interfaces.
8683 (Project_Data): New Boolean component Interfaces_Defined
8686 New project level attribute Object_Generated and Objects_Linked
8687 Add new project level attribute Interfaces
8689 * prj-dect.adb: Use functions Present and No throughout
8690 (Parse_Variable_Declaration): If a string type is specified as a simple
8691 name and is not found in the current project, look for it also in the
8692 ancestors of the project.
8695 Replace procedure Make with procedures Initialize, Process and Finalize
8696 to implement H414-023: process different directories with different
8698 Use functions Present and No throughout
8701 Replace procedure Make with procedures Initialize, Process and Finalize
8704 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
8705 the language configuration.
8706 (Process_Project_Level_Array_Attributes): Process new attributes
8707 Object_Generated and Object_Linked.
8708 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
8709 False, to indicate that the erreor/warning is a continuation.
8710 (Check): Call Report_No_Sources with Contnuation = True after the first
8712 (Error_Msg): Process successively contnuation character and warning
8714 (Find_Explicit_Sources): Check that all declared sources have been found
8715 (Check_File): Indicate in hash table Source_Names when a declared source
8717 (Check_File): Set Other_Part when found
8718 (Find_Explicit_Sources): In multi language mode, check if all exceptions
8719 to the naming scheme have been found. For Ada, report an error if an
8720 exception has not been found. Otherwise, disregard the exception.
8721 (Check_Interfaces): New procedure
8722 (Add_Source): When Other_Part is defined, set mutual pointers in spec
8724 (Check): In multi-language mode, call Check_Interfaces
8725 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
8726 for an excluded source.
8727 (Remove_Source): A source replacing a source in the interfaces is also
8730 * prj-pars.adb: Use function Present
8732 * prj-part.adb: Use functions Present and No throughout
8733 (Parse_Single_Project): Set the parent project for child projects
8734 (Create_Virtual_Extending_Project): Register project with no qualifier
8735 (Parse_Single_Project): Allow an abstract project to be extend several
8736 times. Do not allow an abstract project to extend a non abstract
8739 * prj-pp.adb: Use functions Present and No throughout
8740 (Print): Take into account the full associative array attribute
8743 * prj-proc.adb: Use functions Present and No throughout
8744 (Expression): Call itself with the same From_Project_Node for the
8745 default value of an external reference.
8747 * prj-strt.adb: Use functions Present and No throughout
8748 (Parse_Variable_Reference): If a variable is specified as a simple name
8749 and is not found in the current project, look for it also in the
8750 ancestors of the project.
8752 * prj-tree.ads, prj-tree.adb (Present): New function
8754 Use functions Present and No throughout
8755 (Parent_Project_Of): New function
8756 (Set_Parent_Project_Of): New procedure
8758 * snames.ads, snames.adb:
8759 Add new standard names Object_Generated and Objects_Linked
8761 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
8763 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
8764 and the derived type are of the same kind.
8765 (Expand_Call): Generate type conversions for actuals of
8766 record or array types when the parent and the derived types differ in
8767 size and/or packed status.
8769 2008-05-20 Javier Miranda <miranda@adacore.com>
8770 Ed Schonberg <schonberg@adacore.com>
8772 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
8773 generating dispatch tables of locally defined tagged types statically.
8774 Remove implicit if-statement that is no longer required.
8775 (Expand_Dispatching_Call): If this is a call to an instance of the
8776 generic dispatching constructor, the type of the first argument may be
8777 a subtype of Tag, so always use the base type to recognize this case.
8779 2008-05-20 Thomas Quinot <quinot@adacore.com>
8782 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
8783 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
8784 assigning NULL into the result, to avoid a spurious warning.
8785 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
8787 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
8789 (Build_From_Any_Function, Build_To_Any_Function,
8790 Build_TypeCode_Function): For a type that has user-specified stream
8791 attributes, use an opaque sequence of octets as the representation.
8793 2008-05-20 Kevin Pouget <pouget@adacore.com>
8795 * exp_smem.ads, exp_smem.adb: Construction of access and assign
8796 routines has been replaced by an instantiation of
8797 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
8798 shared variable declaration.
8799 Calls to access and assign routines have been replaced by calls to
8800 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
8801 instantiated package.
8803 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
8804 It identifies the new generic package added in s-shasto.
8806 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
8807 is instantiated for each shared passive variable. It provides
8808 supporting procedures called upon each read or write access by the
8812 For this runtime unit (always compiled in GNAT mode), we allow
8813 stream attributes references for limited types for the case where
8814 shared passive objects are implemented using stream attributes,
8815 which is the default in GNAT's persistent storage implementation.
8817 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8820 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
8821 convention from its base type, do not set the type to that of integer,
8822 because it may inherit a size clause.
8823 Warn on a size clause with a size different
8824 from that of Integer, if the type has convention C.
8826 2008-05-20 Vincent Celier <celier@adacore.com>
8829 (Scan_Args): Rewrite to take into account new switch --and to separate
8830 arguments into sections.
8831 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
8832 section, then Finalize.
8834 2008-05-20 Tristan Gingold <gingold@adacore.com>
8836 * init.c: Enable stack probing on ppc-linux.
8838 * tracebak.c: Add symbolic traceback for ppc-linux.
8840 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
8842 2008-05-20 Arnaud Charlet <charlet@adacore.com>
8845 (common-tools): New rule, to avoid parallel build failure on gnat tools.
8846 Reenable parallel builds on this Makefile.
8848 * Make-lang.in: Update dependencies.
8850 2008-05-20 Robert Dewar <dewar@adacore.com>
8852 * opt.ads (Treat_Restrictions_As_Warnings): New switch
8854 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
8855 Treat_Restrictions_As_Warnings.
8857 * switch-c.adb: Recognize new switch -gnatr
8859 * usage.adb: Add line for -gnatr
8861 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
8864 (P_Access_Definition): Change the error message when parsing "access
8865 all" in Ada 95 mode. The message no longer forces the user to recompile
8866 in 05 mode only to discover that anonymous access types are not allowed
8869 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
8872 (P_Protected): Update the error message on missing "-gnat05" switch when
8873 using interfaces in conjunction with protected types. Remove the
8874 incorrect error message associated with the presence of "private" after
8877 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8879 * sem_aggr.adb: Update comments.
8880 Improve previous change for PR ada/17985
8882 2008-05-20 Thomas Quinot <quinot@adacore.com>
8885 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
8886 the visible part of the spec of a remote types unit.
8887 (Validate_Remote_Access_Object_Type_Declaration):
8888 New local subprogram Is_Valid_Remote_Object_Type, replaces
8889 Is_Recursively_Limited_Private.
8890 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
8891 non-controlling formals (and the return type, even though this is not
8892 explicit in the standard) must support external streaming.
8893 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
8894 as above for of RAS types and RCI subprograms. (The return type is not
8896 Update comments related to RACWs designating limited interfaces per
8897 ARG ruling on AI05-060.
8899 * sem_util.ads, sem_util.adb
8900 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
8901 Is_Remote_Call_Interface to identify RACW types in a stable and
8902 consistent way. We used to rely in this predicate on the privateness of
8903 the designated type and its ancestors, but depending on the currently
8904 visible private parts, this caused false negatives. We now uniformly
8905 rely on checks made at the point where the RACW type is declared.
8906 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
8908 2008-05-20 Javier Miranda <miranda@adacore.com>
8909 Ed Schonberg <schonberg@adacore.com>
8910 Hristian Kirtchev <kirtchev@adacore.com>
8913 (Analyze_Object_Declaration): Fix over-conservative condition
8914 restricting use of predefined assignment with tagged types that have
8916 (Analyze_Object_Declaration): Relax the check regarding deferred
8917 constants declared in scopes other than packages since they can be
8918 completed with pragma Import.
8919 Add missing escaping of all-caps word 'CPP' in error messages.
8920 (Build_Discriminated_Subtype): Do not inherit representation clauses
8921 from parent type if subtype already carries them, because they are
8922 inherited earlier during derivation and already include those that may
8923 come from a partial view.
8925 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
8926 Check the declarations of a subprogram body for proper deferred
8927 constant completion.
8929 * sem_ch7.ads, sem_ch7.adb
8930 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
8932 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8933 Thomas Quinot <quinot@adacore.com>
8936 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
8937 F is a parameterless function that returns an array, and S is a subtype
8939 (Analyze_Call): Insert dereference when the prefix is a parameterless
8940 function that returns an access to subprogram and the call has
8942 Reject a non-overloaded call whose name resolves to denote
8943 a primitive operation of the stub type generated to support a remote
8944 access-to-class-wide type.
8946 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8949 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
8950 when there is a use clause for the same entity in the context.
8951 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
8952 created for a stream attribute of an abstract type or interface type.
8954 2008-05-20 Thomas Quinot <quinot@adacore.com>
8956 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
8960 (Add_One_Interp): Ignore any interpretation that is a primitive
8961 operation of an RACW stub type (these primitives are only executed
8962 through dispatching, never through static calls).
8963 (Collect_Interps): When only one interpretation has been found, set N's
8964 Entity and Etype to that interpretation, otherwise Entity and Etype may
8965 still refer to an interpretation that was ignored by Add_One_Interp,
8966 in which case would end up with being marked as not overloaded but with
8967 an Entity attribute not pointing to its (unique) correct interpretation.
8969 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8972 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
8973 denotes the whole array of its prefix.
8975 2008-05-20 Robert Dewar <dewar@adacore.com>
8977 * sem_res.adb (Resolve_Op_Not): Warn on double negation
8979 2008-05-20 Ed Schonberg <schonberg@adacore.com>
8982 (Print_Itype): Do not modify the sloc of the component type of a
8983 (packed) array itype, because it is an unrelated type whose source
8984 location is independent of the point of creation of the itype itself.
8986 2008-05-20 Thomas Quinot <quinot@adacore.com>
8988 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
8991 2008-05-20 Robert Dewar <dewar@adacore.com>
8992 Vincent Celier <celier@adacore.com>
8994 * vms_data.ads: Add entry for -gnatr
8995 Put GNAT SYNC section in proper alpha order
8996 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
8998 * gnat_ugn.texi: Add documentation for new gnatname switch --and
8999 Update the style checks section
9000 Add documentation of -gnatr
9001 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
9002 subsection the explanation how compiler checks should be disabled for
9004 Update the list of Ada 95 reserved words used by in the project language
9005 Add documentation for project qualifiers.
9006 Document that abstract projects may be extended by different projects in
9007 the same project tree.
9008 Add documentation for gnatmake switch -d
9010 * ug_words: Add -gnatyy VMS equivalence string.
9011 Add entry for -gnatr
9013 2008-05-20 Bob Duff <duff@adacore.com>
9016 (Set_Handler): Remove code from both of these that implements
9017 RM-D.15(15/2), because it causes a race condition and potential
9019 (Process_Queued_Events): Add comment explaining "exception when others
9020 => null". Add clarifying ".all", even though implicit .all is legal
9023 2008-05-20 Arnaud Charlet <charlet@adacore.com>
9025 * s-winext.ads: Replace representation clause by pragma Pack. Gives
9026 equivalent representation, but has the advantage of allowing
9027 compilation of this file under 64 bits platforms.
9029 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
9031 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
9034 Don't define dummy implementation of convert_addresses on ppc-linux.
9036 2008-05-20 Ed Schonberg <schonberg@adacore.com>
9039 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
9040 if expression is aggregate component.
9042 2008-05-20 Robert Dewar <dewar@adacore.com>
9044 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
9045 sem_ch12.adb: Update comments. Minor reformatting.
9049 * s-unstyp.ads: Fixed some typos in comments.
9051 2008-05-20 Arnaud Charlet <charlet@adacore.com>
9053 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
9056 * g-socthi-vxworks.ads: Update to latest socket changes.
9058 * a-caldel-vms.adb: Resync with a-caldel spec.
9060 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
9063 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
9065 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
9066 for dummy types pointed to by the converted pointer types.
9068 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
9070 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
9071 of records and unions.
9072 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
9074 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
9075 Robert Dewar <dewar@adacore.com>
9077 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
9078 restrictions to the prefix of 'Old.
9079 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
9080 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
9083 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
9087 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
9088 expression to an integral type with lower precision, use NOP_EXPR
9089 directly in a couple of special cases.
9091 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
9092 Ed Schonberg <schonberg@adacore.com>
9094 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
9095 constraint expressions.
9097 2008-05-12 Tomas Bily <tbily@suse.cz>
9099 * utils2.c (known_alignment, contains_save_expr_p)
9100 (gnat_mark_addressable): Use CASE_CONVERT.
9101 * decl.c (annotate_value): Likewise.
9102 * trans.c (maybe_stabilize_reference): Likewise.
9103 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
9104 * utils.c (rest_of_record_type_compilation): Likewise.
9105 * trans.c (protect_multiple_eval, Attribute_to_gnu)
9106 (protect_multiple_eval): Likewise.
9108 2008-05-08 Andreas Schwab <schwab@suse.de>
9110 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
9111 DECL_IS_PURE to DECL_PURE_P.
9113 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
9115 * decl.c (maybe_pad_type): Add ??? comment.
9117 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
9119 * decl.c (components_to_record): Zero the alignment of the qualified
9120 union built for the variant part upon creating it.
9122 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
9124 * decl.c (maybe_pad_type): Try to get a form of the type with integral
9125 mode even if the alignment is not a factor of the original size. But
9126 make sure to create the inner field with the original size. Reorder.
9127 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
9128 record as always addressable.
9129 * utils.c (convert): Deal specially with conversions between original
9130 and packable versions of a record type.
9131 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
9132 recognizing an assignment between padded objects.
9134 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
9136 * decl.c (make_packable_type): Resize the last component to its RM size
9137 only if it is of an aggregate type.
9138 * trans.c (call_to_gnu): Fix nit in comment.
9139 (gnat_to_gnu): Likewise.
9141 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
9143 * Makefile.in: Adapt sh4-linux target.
9145 2008-04-29 Ed Schonberg <schonberg@adacore.com>
9148 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
9149 tagged type by an untagged protected or task type.
9151 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
9152 Tristan Gingold <gingold@adacore.com>
9155 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
9156 of aliased objects with an unconstrained nominal subtype.
9157 Cap the promotion to the effective alignment of the word mode.
9159 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9161 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
9162 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
9163 Use '&&' instead of ';'.
9165 2008-04-24 Olivier Hainque <hainque@adacore.com>
9167 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
9168 doesn't require signed arithmetic anymore.
9170 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
9172 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
9173 (call_to_gnu): Don't set TREE_INVARIANT.
9174 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
9176 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
9178 * s-osinte-rtems.adb: Add sigalstack function.
9179 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
9180 function. Add Alternate_Stack and Alternate_Stack_Size.
9181 Add missing process_shared field to pthread_condattr_t
9182 and change ss_low_priority to int from timespec.
9184 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
9186 * i-forbla.adb: Link against -llapack and -lblas by default
9187 instead of the private -lgnalasup.
9189 2008-04-21 Olivier Hainque <hainque@adacore.com>
9191 Access to most C builtins from Ada
9192 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
9193 (handle_pure_attribute, handle_novops_attribute,
9194 handle_nonnull_attribute, handle_sentinel_attribute,
9195 handle_noreturn_attribute, handle_malloc_attribute,
9196 handle_type_generic_attribute): New attribute handlers, from C fe.
9197 (gnat_internal_attribute_table): Map the new handlers.
9198 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
9199 (init_gigi_decls): ... here.
9200 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
9201 Move to a section dedicated to builtins processing.
9202 (build_void_list_node, builtin_type_for_size): New functions.
9203 (def_fn_type, get_nonnull_operand): Likewise.
9204 (install_builtin_elementary_type, install_builtin_function_types,
9205 install_builtin_attributes): Likewise.
9206 (fake_attribute_handler): Fake handler for attributes we don't
9208 (def_builtin_1): New function, worker for DEF_BUILTIN.
9209 (install_builtin_functions): New function.
9210 (gnat_install_builtins): Move to the builtins processing section.
9211 Now calling the newly introduced installers.
9213 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
9215 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
9216 constant objects, but not exceptions.
9217 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
9219 * utils.c (create_var_decl_1): Likewise.
9220 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
9221 the type when copying to padded object and the source is a constructor.
9223 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
9225 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
9226 alignment, reset it to zero if it would end up not being greater
9227 than that of the type.
9229 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
9231 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
9232 the padded type has a variable size.
9234 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
9236 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
9237 target pointer mechanism as soon as the size is not constant.
9239 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
9241 * gigi.h (create_var_decl_1): Declare.
9242 (create_var_decl): Turn into a macro invoking create_var_decl_1.
9243 (create_true_var_decl): Likewise.
9244 * utils.c (create_var_decl_1): Make global and reorder parameters.
9245 (create_var_decl): Delete.
9246 (create_true_var_decl): Likewise.
9248 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
9250 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
9252 * fe.h (Debug_Flag_Dot_A): Delete.
9253 * debug.adb (-gnatd.a): Update documentation.
9255 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
9257 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
9258 "not null" parameter.
9260 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
9262 * g-socket.adb: Add a message "IPv6 not supported" to the
9263 Socket_Error exception.
9265 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
9268 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
9269 the type is known instead of the underlying type.
9271 2008-04-15 Ed Schonberg <schonberg@adacore.com>
9274 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
9275 procedure for a derived type retrieve the discriminant values from
9276 the parent using the corresponding discriminant.
9278 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
9279 Gary Dismukes <dismukes@adacore.com>
9282 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
9283 which is not an entity (and hence not a package).
9284 (End_Use_Package): Ditto.
9286 2008-04-15 Ed Schonberg <schonberg@adacore.com>
9289 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
9290 protected operation that matches the signature, not only an entry, a
9291 regular subprogram or a literal.
9293 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
9295 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
9296 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
9297 if a size or alignment is specified. Do not take into account
9298 alignment promotions for the computation of the object's size.
9299 <type>: Call maybe_pad_type only if a size or alignment is specified.
9300 (maybe_pad_type): Really reuse the RM_Size of the original type if
9302 * trans.c (Attribute_to_gnu): Fix a couple of nits.
9303 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
9304 statements. Use the padded view of the type when copying between
9305 padded objects of the same underlying type.
9307 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9309 * vms_data.ads: Fix typo in constant.
9310 * gen-soccon.c: Fix typo in error string.
9311 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
9313 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
9314 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
9315 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
9316 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
9317 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
9318 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
9319 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
9320 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
9321 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
9322 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
9323 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
9324 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
9325 sinfo.ads: Fix typos in comments.
9327 2008-04-14 Robert Dewar <dewar@adacore.com>
9329 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
9330 to every non-object and change error message.
9332 2008-04-14 Robert Dewar <dewar@adacore.com>
9334 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
9335 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
9338 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
9341 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
9342 apply pragma Linker_Section on type.
9344 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
9347 * sem_prag.adb (Error_Pragma_Ref): New.
9348 (Process_Convention): Specialized message for non-local
9349 subprogram renaming. Detect the problem in homonyms as well.
9351 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
9354 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
9355 * sem_ch12.adb (Instantiate_Object): Use it.
9356 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
9357 storage pool denotes a variable as per RM 13.11(15).
9359 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
9361 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
9362 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
9364 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
9367 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
9368 line endings even on non-Unix platforms.
9370 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
9373 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
9374 renaming information.
9376 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
9379 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
9382 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9384 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
9385 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
9386 snames.ads, sprint.adb, stand.ads, stringt.ads,
9387 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
9388 switch.ads, sysdep.c, table.adb, table.ads,
9389 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
9390 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
9391 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
9392 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
9393 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
9394 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
9397 * sem_ch10.adb, sem_ch10.ads,
9398 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
9399 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
9400 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9401 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
9402 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
9403 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
9404 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
9405 sem_warn.ads: Fix comment typos.
9407 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
9408 s-soflin.ads, s-stalib.ads, s-stausa.adb,
9409 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
9410 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
9411 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
9412 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
9413 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
9414 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
9415 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
9416 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
9417 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
9418 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
9419 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
9420 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
9421 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
9422 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
9423 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
9424 sem_cat.adb, sem_cat.ads: Fix comment typos.
9426 2008-04-12 Joel Sherrill <joel@oarcorp.com>
9429 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
9431 2008-04-12 Arnaud Charlet <charlet@adacore.com>
9433 * s-linux-hppa.ads: Fix syntax errors.
9435 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9437 * gnat_ugn.texi: Fix typos.
9438 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
9439 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
9440 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
9441 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
9442 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
9443 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
9444 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
9445 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
9446 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
9447 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
9448 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
9449 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
9450 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
9451 s-osinte-darwin.ads, s-osinte-freebsd.ads,
9452 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
9453 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
9454 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
9455 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
9456 s-parame-hpux.ads, s-parame-vms-alpha.ads,
9457 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
9458 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
9459 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
9460 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
9461 s-rident.ads: Fix comment typos.
9463 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
9466 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
9467 environment if generic instance is a top-level one.
9469 2008-04-09 Doug Rupp <rupp@adacore.com>
9471 * decl.c (validate_size): Set minimum size for fat pointers same as
9472 access types. Code clean ups.
9474 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
9475 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
9477 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
9479 * s-crtl.ads (malloc32) New function, alias for malloc
9480 (realloc32) New function, alias for realloc
9482 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
9484 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
9485 allocator size is 32 and default pointer size is 64.
9486 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
9487 lhs type if smaller, whatever the modes.
9489 * gigi.h (malloc32_decl): New macro definition
9491 * utils.c (init_gigi_decls): New malloc32_decl
9492 Various code clean ups.
9494 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
9495 Task_Address vice System.Address.
9497 * s-taspri-vms.ads: Import System.Aux_DEC
9498 (Task_Address): New subtype of System.Aux_DEC.Short_Address
9499 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
9501 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
9502 Task_Address vice System.Address.
9504 * s-inmaop-vms.adb: Import System.Task_Primitives
9505 (To_Address): Unchecked convert to Task_Address vice System.Address
9507 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
9509 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
9510 (To_Address) Unchecked convert to Task_Address vice System.Address
9512 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
9514 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
9516 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9518 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
9519 (fdesc_type_node): Define.
9520 (null_fdesc_node): Likewise.
9521 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
9522 uses descriptors for vtables and the type comes from a dispatch table,
9523 return the descriptor type.
9524 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
9525 uses descriptors for vtables and the type comes from a dispatch table,
9526 build a descriptor in the static case and copy the existing one in the
9528 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
9529 the type is a pointer-to-subprogram coming from a dispatch table,
9530 return the null descriptor.
9531 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
9532 vtables, the source type is the descriptor type and the target type
9533 is a pointer type, first build the pointer.
9534 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
9535 build the descriptor type and the null descriptor.
9537 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9539 * decl.c (prepend_attributes): Fix typo.
9540 * trans.c (Pragma_to_gnu): Likewise.
9541 * utils.c (gnat_genericize): Likewise.
9543 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9544 Richard Kenner <kenner@adacore.com>
9546 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
9547 * decl.c (gnat_to_gnu_entity): Adjust for above change.
9548 <E_Record_Type>: Try to get a better form of the component for
9549 packing, even if it has an integral mode.
9550 <E_Record_Subtype>: Likewise.
9551 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
9552 exception suppressing the final conversion between record types.
9554 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9556 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
9557 alignment for space, promote the alignment of non-scalar variables with
9558 no size and alignment.
9559 * gigi.h (gnat_types_compatible_p): Declare.
9560 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
9561 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
9562 * utils.c (gnat_types_compatible_p) : New predicate.
9563 (convert): Use it throughout to test for cases where a mere view
9564 conversion is sufficient.
9565 * utils2.c (build_binary_op): Minor tweaks.
9566 (build_unary_op): Likewise.
9568 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9570 * decl.c (adjust_packed): Expand comment.
9572 2008-04-08 Arnaud Charlet <charlet@adacore.com>
9574 * s-tasuti.ads: Use Task_Address instead of System.Address.
9576 * makeutl.adb (Path_Or_File_Name): New function
9578 * nlists.ads, itypes.ads: Update comments.
9580 * s-crtl.ads (malloc32, realloc32): New functions.
9582 * s-auxdec.ads (Short_Address_Size): New constant.
9584 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
9586 * s-ststop.ads, s-ststop.adb: New file.
9588 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
9591 2008-04-08 Pascal Obry <obry@adacore.com>
9593 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
9594 (Stop_Bits_Number): New type.
9595 (Parity_Check): Likewise.
9596 (Set): Add parameter to set the number of stop bits and
9597 the parity. Parameter timeout is now a duration instead
9600 * g-sercom-linux.adb:
9601 Implement the stop bits and parity support for GNU/Linux.
9602 Fix handling of timeout, it must be given in tenth of seconds.
9604 * g-sercom-mingw.adb:
9605 Implement the stop bits and parity support for Windows.
9606 Use new s-win32.ads unit instead of declaring Win32 services
9607 directly into this body.
9608 Update handling of timeout as now a duration.
9610 * s-win32.ads, s-winext.ads: New files.
9612 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9613 Arnaud Charlet <charlet@adacore.com>
9615 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
9617 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
9618 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
9620 * s-osinte-lynxos-3.ads,
9621 (Alternate_Stack): Remove when not needed. Simplify declaration
9623 (Alternate_Stack_Size): New constant.
9625 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
9626 'Unrestricted_Access.
9628 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
9629 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
9630 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
9631 s-osinte-solaris.ads, s-osinte-vms.ads
9632 (SA_ONSTACK): New constant.
9633 (stack_t): New record type.
9634 (sigaltstack): New imported function.
9635 (Alternate_Stack): New imported variable.
9636 (Alternate_Stack_Size): New constant.
9638 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
9640 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
9641 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
9642 s-taspri-vms.ads (Task_Address): New subtype of System.Address
9643 (Task_Address_Size): New constant size of System.Address
9644 (Alternate_Stack_Size): New constant.
9646 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
9647 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
9648 Establish the alternate stack if the platform makes use of n alternate
9649 signal stack for stack overflows.
9650 (Create_Task): Take into account the alternate stack in the stack size.
9651 (Initialize): Save the address of the alternate stack into the ATCB for
9652 the environment task.
9653 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
9655 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
9657 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
9659 * s-intman-posix.adb:
9660 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
9661 alternate signal stack for stack overflows.
9663 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
9664 x86-64, adjust the saved value of the stack pointer if the signal was
9665 raised by a stack checking probe.
9666 (HP-UX section): Use global __gnat_alternate_stack as signal handler
9667 stack and only for SIGSEGV.
9668 (Linux section): Likewise on x86 and x86-64.
9670 (__gnat_map_signal): Now static.
9671 (__gnat_error_handler): Not static any more.
9672 (__gnat_adjust_context_for_raise): New function. Signal context
9673 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
9674 propagation circuitry.
9675 (__gnat_error_handler): Second argument of a sigaction handler is a
9676 pointer, not an int, and is unused.
9677 Adjust signal context before mapping to exception.
9678 Install signal handlers for LynxOS case.
9680 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
9681 (Task_Id): Set size to Task_Address_Size
9682 (To_Task_id): Unchecked convert from Task_Address vice System.Address
9683 (To_Address): Unchecked convert to Task_Address vice System.Address
9685 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
9686 address into the ATCB if the platform makes use of an alternate signal
9687 stack for stack overflows.
9688 (Free_Task): Add call to Finalize_Attributes_Link.
9689 Add argument Relative_Deadline to pass the value specified for
9690 the task. This is not yet used for any target.
9692 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
9693 the value specified for the task.
9695 2008-04-08 Arnaud Charlet <charlet@adacore.com>
9697 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
9698 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
9699 s-vxwext-rtp.adb): New files.
9701 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
9702 Minor updates to accomodate changes above.
9704 2008-04-08 Pascal Obry <obry@adacore.com>
9706 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
9707 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
9708 Use new s-win32.ads unit instead of declaration
9709 from s-osinte-mingw.ads.
9711 * s-osinte-mingw.ads:
9712 Move all non tasking based interface to s-win32.ads.
9714 * s-osprim-mingw.adb:
9715 Remove duplicated declarations and use s-win32.ads
9718 2008-04-08 Vincent Celier <celier@adacore.com>
9719 Arnaud Charlet <charlet@adacore.com>
9721 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
9722 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
9723 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
9724 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9725 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
9727 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
9728 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
9729 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
9730 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
9731 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
9732 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
9733 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
9734 mlib-tgt-specific-mingw.adb: New names.
9737 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
9739 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
9740 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
9741 Minor updates for VMS
9743 * gnatbl.c: Removed.
9745 2008-04-08 Thomas Quinot <quinot@adacore.com>
9747 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
9748 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
9749 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
9750 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
9751 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
9752 ASCII.NUL throughout.
9754 2008-04-08 Arnaud Charlet <charlet@adacore.com>
9755 Matthew Heaney <heaney@adacore.com>
9757 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
9760 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
9761 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
9762 to convention for non-RM specs.
9763 Add descriptive header, and documented each operation
9764 document each operation
9766 2008-04-08 Robert Dewar <dewar@adacore.com>
9767 Bob Duff <duff@adacore.com>
9768 Gary Dismukes <dismukes@adacore.com>
9769 Ed Schonberg <schonberg@adacore.com>
9771 * alloc.ads: Add entries for Obsolescent_Warnings table
9773 * einfo.ads, einfo.adb: Minor reformatting.
9774 (Is_Discriminal): New subprogram.
9775 (Is_Prival): New subprogram.
9776 (Is_Protected_Component): New subprogram.
9777 (Is_Protected_Private): Removed.
9778 (Object_Ref, Set_Object_Ref): Removed.
9779 (Prival, Set_Prival): Change assertion.
9780 (Privals_Chain, Set_Privals_Chain): Removed.
9781 (Prival_Link, Set_Prival_Link): New subprogram.
9782 (Protected_Operation, Set_Protected_Operation): Removed.
9783 (Protection_Object, Set_Protection_Object): New subprogram.
9784 (Write_Field17_Name): Remove case for Object_Ref.
9785 (Write_Field20_Name): Add case for Prival_Link.
9786 (Write_Field22_Name): Remove case for Protected_Operation,
9788 Add case for Protection_Object.
9789 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
9791 (Overlays_Constant): New flag
9792 (Is_Constant_Object): New predicate
9793 (Is_Standard_Character_Type): New predicate
9794 (Optimize_Alignment_Space): New flag
9795 (Optimize_Alignment_Time): New flag
9796 (Has_Postconditions): New flag
9797 (Obsolescent_Warrning): Field removed
9798 (Spec_PPC_List): New field
9799 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
9800 subprograms to get and set the relative deadline associated to a task.
9802 * exp_attr.adb (May_Be_External_Call): Account for the case where the
9803 Access attribute is part of a named parameter association.
9804 (Expand_Access_To_Protected_Op): Test for the attribute occurring
9805 within an init proc and use that directly as the scope rather than
9806 traversing up to the protected operation's enclosing scope. Only apply
9807 assertion on Is_Open_Scopes in the case the scope traversal is done.
9808 For the init proc case use the address of the first formal (_init) as
9809 the protected object reference.
9810 Implement Invalid_Value attribute
9811 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
9812 contents of the dispatch table there is no need to duplicate the
9813 itypes associated with record types (i.e. the implicit full view
9815 Implement Enum_Val attribute
9816 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
9817 within _Postconditions procedure
9818 (Expand_N_Attribute_Reference, case Result): Implement new attribute
9820 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
9821 a return statement calls a function that is not available in
9822 configurable runtime.
9823 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
9824 (Expand_Non_Function_Return): Generate call to _Postconditions proc
9825 (Expand_Simple_Function_Return): Ditto
9827 * frontend.adb: Add call to Sem_Aux.Initialize
9829 * sem_aux.ads, sem_aux.adb: New file.
9831 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
9832 Add new Pragma_Relative_Deadline.
9833 Add support for pragmas Check and Check_Policy
9835 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
9836 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
9837 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
9838 missing check because they are not allowed in CPP tagged types.
9839 Add Sure parameter to Note_Possible_Modification calls
9840 Add implementation of Invalid_Value attribute
9841 Implement new attribute Has_Tagged_Values
9842 Implement Enum_Val attribute
9843 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
9844 generated attributes.
9845 (Analyze_Attribute, case Result): If prefix of the attribute is
9846 overloaded, it always resolves to the enclosing function.
9847 (Analyze_Attribute, case Result): Properly deal with analysis when
9848 Postconditions are not active.
9849 (Resolve_Attribute, case Result): Properly deal with appearence during
9850 preanalysis in spec.
9851 Add processing for attribute Result
9853 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
9855 (Analyze_Subprogram_Body): Install private_with_clauses when the body
9857 (Check_Inline_Pragma): recognize an inline pragma that appears within
9858 the subprogram body to which it applies.
9859 (Analyze_Function_Return): Check that type of the expression of a return
9860 statement in a function with a class-wide result is not declared at a
9861 deeper level than the function.
9862 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
9863 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
9864 user- defined operators.
9865 (Install_Formals): Moved to spec to allow use from Sem_Prag for
9866 analysis of precondition/postcondition pragmas.
9867 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
9868 Last_Formal, along with lots of comments on what this is about
9869 (Analyze_Subprogram_Body): Fix case where we move entities from the
9870 spec to the body when there are no body entities (now possible with
9871 precondition and postcondition pragmas).
9872 (Process_PPCs): New procedure
9873 (Analyze_Subprogram_Body): Add call to Process_PPCs
9875 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
9877 (Pop_Scope): Restore Check_Policy_List on scope exit
9878 (Push_Scope): Save Check_Policy_List on scope entry
9879 Change name In_Default_Expression => In_Spec_Expression
9880 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
9881 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
9882 (Analyze_Object_Renaming): Allow 'Reference as object
9883 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
9884 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
9885 of restriction identifier.
9886 Add Sure parameter to Note_Possible_Modication calls
9888 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
9889 Don't check for primitive operations when calling Rep_Item_Too_Late.
9890 (Process_Import_Or_Interface): Do not place flag on formal
9892 (Analyze_Pragma, case Export): If the entity is a deferred constant,
9893 propagate information to full view, which is the one elaborated by the
9895 (Make_Inline): the pragma is effective if it applies to an internally
9896 generated subprogram declaration for a body that carries the pragma.
9897 (Analyze_Pragma, case Optimize_Alignment): Set new flag
9898 Optimize_Alignment_Local.
9899 (Analyze_PPC_In_Decl_Part): New procedure
9900 (Get_Pragma_Arg): Moved to outer level
9901 (Check_Precondition_Postcondition): Change to allow new visibility
9902 rules for package spec
9903 (Analyze_Pragma, case Check_Policy): Change placement rules to be
9904 same as pragma Suppress/Unsuppress.
9905 Change name In_Default_Expression => In_Spec_Expression
9906 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
9907 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
9908 (Check_Precondition_Postcondition): Do proper visibility preanalysis
9909 for the case of these pragmas appearing in the spec.
9910 (Check_Enabled): New function
9911 (Initialize): New procedure
9912 (Tree_Read): New procedure
9913 (Tree_Write): New procedure
9914 (Check_Precondition_Postcondition): New procedure
9915 Implement pragmas Check and Check_Policy
9916 Merge Assert processing with Check
9918 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
9919 New warning flag -gnatw.e
9921 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
9922 returning whether a task (or main procedure) has a pragma
9924 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
9925 (or main procedure) has a pragma Relative_Deadline.
9926 Add Next_Pragma field to N_Pragma node
9927 (PPC_Enabled): New flag
9928 (Next_Pragma): Now used for Pre/Postcondition processing
9930 * snames.h, snames.ads, snames.adb: New standard name
9932 Add entry for 'Invalid_Value attribute
9933 Add entry for new attribute Has_Tagged_Values
9934 Add entry for Enum_Val attribute
9935 Add new standard names Aggregate, Configuration and Library.
9938 Add Pragma_Precondition
9939 Add Pragma_Postcondition
9940 Add Attribute_Result
9941 New standard name Archive_Builder_Append_Option
9942 (Preset_Names): Add _relative_deadline and relative_deadline definitions
9943 There was also a missing non_preemptive_within_priorities.
9944 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
9946 Add support for pragmas Check and Check_Policy
9948 * tree_gen.adb: Call Sem_Aux.Tree_Write
9950 * tree_in.adb: Call Sem_Aux.Tree_Read
9952 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
9955 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
9958 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
9959 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
9961 (Expand_Pragma_Check): New procedure
9963 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
9966 * sinfo.adb (PPC_Enabled): New flag
9968 2008-04-08 Robert Dewar <dewar@adacore.com>
9969 Gary Dismukes <dismukes@adacore.com>
9970 Javier Miranda <miranda@adacore.com>
9971 Ed Schonberg <schonberg@adacore.com>
9973 * fe.h: Remove global Optimize_Alignment flag, no longer used
9975 * layout.adb: Test Optimize_Alignment flags rather than global switch
9977 * lib.ads, lib.adb: New OA_Setting field in library record
9979 * lib-load.adb: New OA_Setting field in library record
9981 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
9982 units mentioned in limited_with_ clauses in the ali file, with an
9984 New Ox fields in U line
9986 * opt.adb: New flag Optimize_Alignment_Local
9987 (Check_Policy_List[_Config]): New flags
9989 * opt.ads (Invalid_Value_Used): New flag
9990 New switch Optimize_Alignment_Local
9991 (Warn_On_Parameter_Order): New flag
9992 (Check_Policy_List[_Config]): New flags
9994 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
9995 limited_with clauses.
9996 New data structures for Optimize_Alignment
9998 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
10000 (Check_Consistent_Optimize_Alignment): Rework for new structure
10001 (Check_Consistent_Restrictions): Fix incorrect error message
10003 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
10004 created class-wide type (to the Parent field of the specific type).
10005 (Install_Siblings): Handle properly private_with_clauses on subprogram
10006 bodies and on generic units.
10007 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
10008 illegal limited_with_clause that names a non-existent package.
10009 (Check_Body_Required): Determine whether a unit named a limited_with
10010 clause needs a body.
10011 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
10012 Capture Optimize_Alignment settings to set new OA_Setting field in
10014 (Build_Limited_Views): Include task and protected type declarations.
10016 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
10017 case of a possible constant redeclaration where the current object is
10018 an entry index constant.
10019 (Analyze_Object_Declaration): Generate an error in case of CPP
10020 class-wide object initialization.
10021 (Analyze_Object_Declaration): Add extra information on warnings for
10022 declaration of unconstrained objects.
10023 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
10024 conflicts with the setting of Stored_Constraint in the case where the
10025 access type entity has already been created as an E_Incomplete_Type due
10026 to a limited with clause.
10027 Use new Is_Standard_Character_Type predicate
10028 (Analyze_Object_Declaration): Apply access_constant check only after
10029 expression has been resolved, given that it may be overloaded with
10030 several access types.
10031 (Constant_Redeclaration): Additional legality checks for deferred
10032 constant declarations tha involve anonymous access types and/or null
10033 exclusion indicators.
10034 (Analyze_Type_Declaration): Set Optimize_Alignment flags
10035 (Analyze_Subtype_Declaration): Ditto
10036 (Analyze_Object_Declaration): Ditto
10037 (Analyze_Object_Declaration): Don't count tasks in generics
10038 Change name In_Default_Expression => In_Spec_Expression
10039 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
10040 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
10041 (Process_Discriminants): Additional check for illegal use of default
10042 expressions in access discriminant specifications in a type that is not
10043 explicitly limited.
10044 (Check_Abstract_Overriding): If an inherited function dispaches on an
10045 access result, it must be overridden, even if the type is a null
10047 (Derive_Subprogram): The formals of the derived subprogram have the
10048 names and defaults of the parent subprogram, even if the type is
10049 obtained from the actual subprogram.
10050 (Derive_Subprogram): In the presence of interfaces, a formal of an
10051 inherited operation has the derived type not only if it descends from
10052 the type of the formal of the parent operation, but also if it
10053 implements it. This is relevant for the renamings created for the
10054 primitive operations of the actual for a formal derived type.
10055 (Is_Progenitor): New predicate, to determine whether the type of a
10056 formal in the parent operation must be replaced by the derived type.
10058 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
10059 predicate recursive to handle components that have a user-defined
10060 Initialize procedure. Handle controlled derived types whose ancestor
10061 has a user-defined Initialize procedured.
10062 (Note_Possible_Modification): Add Sure parameter, generate warning if
10063 sure modification of constant
10064 Use new Is_Standard_Character_Type predicate
10065 (Find_Parameter_Type): when determining whether a protected operation
10066 implements an interface operation, retrieve the type of the formal from
10067 the entity when the formal is an access parameter or an
10068 anonymous-access-to-subprogram.
10069 Move Copy_Parameter_List to sem_util, for use when building stubbed
10071 (Has_Access_Values): Tagged types now return False
10072 (Within_HSS_Or_If): New procedure
10073 (Set_Optimize_Alignment_Flags): New procedure
10074 Change name In_Default_Expression => In_Spec_Expression
10075 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
10076 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
10078 2008-04-08 Tristan Gingold <gingold@adacore.com>
10080 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
10082 2008-04-08 Tristan Gingold <gingold@adacore.com>
10086 * cuintp.c: Fix 16 bits issue for AVR.
10087 On AVR, integer is 16 bits, so it can't be used to do math with
10089 So use long_integer instead.
10091 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
10093 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
10094 System.OS_Primitives.
10095 Change type of various constants, parameters and local variables from
10096 Time to representation type OS_Time.
10097 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
10098 Remove the declaration of constant Mili_F from several routines. New
10099 body for internal package Conversions_Operations.
10100 (Time_Of): Add default parameters for several formals.
10102 * a-caldel.adb: Minor reformatting
10104 * a-calend.ads, a-calend.adb: New body for internal package
10105 Conversions_Operations.
10106 (Time_Of): Add default parameters for several formals.
10108 * Makefile.rtl: Add a-ststop
10109 Add Ada.Calendar.Conversions to the list of runtime files.
10112 * a-calcon.adb, a-calcon.ads: New files.
10114 2008-04-08 Jose Ruiz <ruiz@adacore.com>
10115 Tristan Gingold <gingold@adacore.com>
10117 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
10118 (Install_Restricted_Handlers): New procedure
10119 which is a simplified version of Install_Handlers that does not store
10120 previously installed.
10122 * s-interr-vxworks.adb: Fix ACATS cxc3001
10123 On VxWorks interrupts can't be detached.
10124 (Install_Restricted_Handlers): New procedure.
10126 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
10129 2008-04-08 Olivier Hainque <hainque@adacore.com>
10131 * s-intman-vxworks.ads, s-intman-vxworks.adb
10132 (Map_And_Raise_Exception): Remove. Was an import of only part of the
10133 required services already implemented elsewhere.
10134 (Notify_Exception): Delete body, import __gnat_error_handler instead.
10135 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
10136 argument passed to the handler, which we need for ZCX propagation
10139 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
10141 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
10143 * g-timsta.adb, g-timsta.ads: New files.
10145 2008-04-08 Robert Dewar <dewar@adacore.com>
10147 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
10148 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
10149 (Raise_Exception_Always): Fix documentation accordingly
10151 2008-04-08 Robert Dewar <dewar@adacore.com>
10153 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
10156 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
10159 2008-04-08 Javier Miranda <miranda@adacore.com>
10160 Robert Dewar <dewar@adacore.com>
10161 Ed Schonberg <schonberg@adacore.com>
10163 * a-tags.adb (Register_Interface_Offset): New subprogram.
10164 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
10165 (To_Predef_Prims_Table_Ptr): Removed.
10166 (Acc_Size): Removed.
10167 (To_Acc_Size): Removed.
10168 (Parent_Size): Modified to the call the subprogram returning the size of
10169 the parent by means of the new TSD component Size_Func.
10171 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
10172 (DT_Offset_To_Top_Offset): New constant value that is used to generate
10173 code referencing the Offset_To_Top component of the dispatch table's
10175 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
10176 use of 'address to initialize dispatch table slots.
10177 (Size_Func): New component of the TSD. Used by the run-time to call the
10178 size primitive of the tagged type.
10180 * checks.adb (Apply_Access_Check): Avoid check when accessing the
10181 Offset_To_Top component of a dispatch table.
10182 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
10183 deferred constant declaration. do not add a null expression, to prevent
10184 spurious errors when full declaration is analyzed.
10185 (Apply_Discriminant_Check): If both discriminant constraints share a
10186 node which is not static but has no side effects, do not generate a
10187 check for that discriminant.
10188 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
10189 subexpr, since the prefix of an attribute is a name.
10191 * checks.ads: Fix nit in comment.
10193 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
10194 and body of predefined primitives in case of CPP tagged type
10196 (Freeze_Type): Deal properly with no storage pool case
10197 (Make_Predefined_Primitive_Specs): Generate specification of abstract
10198 primitive Deep_Adjust if a nonlimited interface is derived from a
10200 (Build_Dcheck_Functions): Create discriminant-checking functions only
10201 for variants that have some component(s).
10202 (Build_Slice_Assignment): In expanded code for slice assignment, handle
10203 properly the case where the slice bounds extend to the last value of the
10204 underlying representation.
10205 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
10206 (Is_Variable_Size_Record): An array component has a static size if
10207 index bounds are enumeration literals.
10209 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
10210 an external tag has been specified for the type.
10211 (Building_Static_DT): Add missing support for private types.
10212 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
10213 to the entity associated with the parent of Typ. This is done to
10214 avoid wrong access when the parent is a private type.
10215 (Expand_Interface_Conversion): Improve error message when the
10216 configurable runtime has no support for dynamic interface conversion.
10217 (Expand_Interface_Thunk): Add missing support to interface types in
10218 configurable runtime.
10219 (Expand_Dispatching_Call): remove obsolete code.
10220 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
10221 ensure that all subtypes and aggregates associated with dispatch
10222 tables have the attribute Is_Dispatch_Table_Entity set to true.
10223 (Register_Primitive): Rename one variable to improve code reading.
10224 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
10225 of the pointer to the 'size primitive in the TSD.
10227 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
10228 (RE_Offset_To_Top_Ptr): New entity.
10229 (RE_Register_Interface_Offset): New entity.
10230 (RE_Set_Dynamic_Offset_To_Top): New entity.
10231 (RE_Set_Offset_To_Top): Removed entity.
10232 (RE_Prim_Ptr): New entity
10233 (RE_Size_Func): New entity
10234 (RE_Size_Ptr): New entity
10235 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
10236 (Ada_Dispatching_Child): Define this new subrange.
10237 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
10238 RE_Time_Span, and RE_Time_Span_Zero).
10239 (RE_Unit_Table): Add new required run-time calls
10241 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
10244 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
10245 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
10246 initializes the Offset_To_Top component of a dispatch table.
10247 (Build_Predef_Prims): Removed.
10248 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
10250 (Build_Set_Size_Function): New subprogram.
10252 * exp_ch13.adb: Do not generate storage variable for storage_size zero
10253 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
10255 2008-04-08 Robert Dewar <dewar@adacore.com>
10257 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
10258 computing Fore when Exp > 0
10260 2008-04-08 Robert Dewar <dewar@adacore.com>
10262 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
10264 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
10265 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
10267 * fmap.adb: Remove Big_String declarations (now in Types)
10268 (No_Mapping_File): New Boolean global variable
10269 (Initialize): When mapping file cannot be read, set No_Mapping_File to
10271 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
10272 tables were empty before adding entries, open the mapping file
10273 with Truncate = True, instead of delete/re-create.
10275 * fname-sf.adb: Remove Big_String declarations (now in Types)
10277 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
10278 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
10281 * table.ads: Add for Table_Ptr'Storage_Size use 0
10283 * types.ads: Add Big_String declarations
10284 Add Size_Clause of zero for big pointer types
10286 2008-04-08 Vincent Celier <celier@adacore.com>
10288 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
10289 (Usage): Add line for switch --subdirs=
10290 Add new switch -eL, to follow symbolic links when processing project
10293 * gnatcmd.adb: Process switches -eL and --subdirs=
10294 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
10295 Program_Name to get proper tool names when AAMP_On_Target is set.
10296 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
10297 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
10298 Osint.Program_Name).
10300 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
10301 (Usage): Add lines for switches -eL and --subdirs=
10303 * makeusg.adb: Add line for switch --subdirs=
10306 (Source_Data): New Boolean component Compiled, defaulted to True
10307 (Empty_File_Name: New global variable in private part, initialized in
10308 procedure Initialize.
10309 (Subdirs_Option): New constant string
10310 (Subdirs): New String_Ptr global variable
10311 (Language_Config): New component Include_Compatible_Languages
10312 (Project_Qualifier): New type for project qualifiers
10313 (Project_Data): New component Qualifier
10314 (Project_Configuration): New component Archive_Builder_Append_Option
10316 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
10317 another imported project indicate the name of this imported project.
10318 (Check_File): When a unit is in two project files, indicate the project
10319 names and the paths of the source files for each project.
10320 (Add_Source): Set Compiled to False if compiler driver is empty. Only
10321 set object, dependency and switches file names if Compiled is True.
10322 (Process_Compiler): Allow the empty string for value of attribute Driver
10323 (Get_Directories): When Subdirs is not null and Object_Dir is not
10324 specified, locate and create if necessary the actual object dir.
10325 (Locate_Directory): When Subdirs is not empty and Create is not the
10326 empty string, locate and create if necessary the actual directory
10327 as a subdirectory of directory Name.
10328 (Check_Library_Attributes.Check_Library): Allow a project where the only
10329 "sources" are header files of file based languages to be imported by
10330 library projects, in multi-language mode (gprbuild).
10331 (Check_Library_Attributes.Check_Library): In multi-language mode
10332 (gprbuild), allow a library project to import a project with no
10333 sources, even when this is not declared explicitly.
10334 (Check_If_Externally_Built): A virtual project extending an externally
10335 built project is also externally built.
10336 (Check_Library_Attributes): For a virtual project extending a library
10337 project, inherit the library directory.
10338 (Process_Project_Level_Array_Attributes): Process new attribute
10339 Inherit_Source_Path.
10340 For projects with specified qualifiers "standard", "library" or
10341 "abstract", check that the project conforms to the qualifier.
10342 (Process_Project_Level_Simple_Attributes): Process new attribute
10343 Archive_Builder_Append_Option.
10345 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
10346 (Normalize_Compiler_Switches): Only keep compiler switches that are
10347 passed to gnat1 by the gcc driver and that are stored in the ALI file
10349 Do not take into account switc -save-temps
10351 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
10352 gprmake is called with -eL.
10353 (Scan_Arg): Recognize switch -eL
10354 (Usage): Add line for switch -eL
10356 * prj.adb (Initialize): Initialize Empty_File_Name
10357 (Project_Empty): New component Qualifier
10359 * prj-attr.ads, prj-attr.adb: New project level attribute
10360 Inherit_Source_Path.
10361 New project level attribute Archive_Builder_Append_Option
10363 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
10365 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
10366 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
10367 upward compatibility.
10369 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
10370 each Trying ..." on different lines.
10371 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
10372 is "configuration" when not in configuration. Fail when in configuration
10373 when a specified qualifier is other than "configuration".
10375 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
10376 full associative array together.
10377 (Recursive_Process): Put the project qualifier in the project data
10379 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
10380 (Set_Project_Qualifier_Of): New procedure
10382 2008-04-08 Robert Dewar <dewar@adacore.com>
10384 * errout.ads: Update comments for new handling of info: messages
10386 * erroutc.adb (Matches): New procedure
10387 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
10388 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
10389 info messages as well as style messages.
10391 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
10393 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
10395 (Check_A_Call): Special "info: " warnings now have ? in the text
10396 (Elab_Warning): Use info message in static case
10398 2008-04-08 Ed Schonberg <schonberg@adacore.com>
10400 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
10401 whether an array aggregate with static bounds and scalar components
10402 should be expanded into a static constant.
10404 2008-04-08 Gary Dismukes <dismukes@adacore.com>
10405 Ed Schonberg <schonberg@adacore.com>
10406 Robert Dewar <dewar@adacore.com>
10408 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
10409 Has_Stream_Attribute_ Definition when checking for available stream
10410 attributes on parameters of a limited type in Ada 2005. Necessary for
10411 proper recognition of visible stream attribute clauses.
10412 (Has_Stream_Attribute_Definition): If the type is derived from a
10413 private type, then use the derived type's underlying type for checking
10414 whether it has stream attributes.
10415 (Validate_Object_Declaration): The check for a user-defined Initialize
10416 procedure applies also to types with controlled components or a
10417 controlled ancestor.
10418 Reject an object declaration in a preelaborated unit if the type is a
10419 controlled type with an overriding Initialize procedure.
10420 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
10421 checking when the parent of a dereference is a selected component and
10422 the name has not been analyzed.
10424 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
10425 prefixes that are invalid explicit dereferences of remote
10426 access-to-class-wide values, first checking whether the selected
10427 component is a prefixed form of call to a tagged operation.
10428 (Analyze_Call): Remove code that issues an error for limited function
10429 calls in illegal contexts, as we now support all of the contexts that
10430 were forbidden here.
10431 Allow a function call that returns a task.and appears as the
10432 prefix of a selected component.
10433 (Analyze_Reference): Give error message if we try to make a 'Reference
10434 for an object that is atomic/aliased without its type having the
10435 corresponding attribute.
10436 (Analyze_Call): Remove condition checking for attributes to allow
10437 calls to functions with inherently limited results as prefixes of
10438 attributes. Remove related comment about Class attributes.
10439 (Analyze_Selected_Component): If the prefix is a remote type, check
10440 whether this is a prefixed call before reporting an error.
10441 (Complete_Object_Operation): If the controlling formal is an access to
10442 variable reject an actual that is a constant or an access to one.
10443 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
10444 primitive operations from base type.
10446 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
10448 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
10449 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
10450 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
10451 (Expand_N_Slice): Test for prefix that is a build-in-place function call
10452 and call Make_Build_In_Place_Call_In_Anonymous_Context.
10453 (Analyze_Call): Remove code that issues an error for limited function
10454 calls in illegal contexts, as we now support all of the contexts that
10455 were forbidden here.
10456 New calling sequence for Get_Simple_Init_Val
10457 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
10458 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
10460 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
10461 Ed Schonberg <schonberg@adacore.com>
10462 Robert Dewar <dewar@adacore.com>
10464 * exp_ch2.adb: Minor reformatting.
10465 (Expand_Entry_Index_Parameter): Set the type of the identifier.
10466 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
10467 (Expand_Protected_Component): New routine.
10468 (Expand_Protected_Private): Removed.
10469 Add Sure parameter to Note_Possible_Modification calls
10471 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
10472 generated subprogram declaration must inherit the overriding indicator
10473 from the instantiation node.
10474 (Validate_Access_Type_Instance): If the designated type of the actual is
10475 a limited view, use the available view in all cases, not only if the
10476 type is an incomplete type.
10477 (Instantiate_Object): Actual is illegal if the formal is null-excluding
10478 and the actual subtype does not exclude null.
10479 (Process_Default): Handle properly abstract formal subprograms.
10480 (Check_Formal_Package_Instance): Handle properly defaulted formal
10481 subprograms in a partially parameterized formal package.
10482 Add Sure parameter to Note_Possible_Modification calls
10483 (Validate_Derived_Type_Instance): if the formal is non-limited, the
10484 actual cannot be limited.
10485 (Collect_Previous_Instances): Generate instance bodies for subprograms
10488 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
10489 try to set RM_Size.
10490 Add Sure parameter to Note_Possible_Modification calls
10491 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
10492 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
10493 constant overlaid by variable and issue warning.
10494 Use new Is_Standard_Character_Type predicate
10495 (Analyze_Record_Representation_Clause): Check that the specified
10496 Last_Bit is not less than First_Bit - 1.
10497 (Analyze_Attribute_Definition_Clause, case Address): Check for
10498 self-referential address clause
10500 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
10501 detection mechanism when the lhs is a prival.
10502 (Analyze_Assignment): Call Check_Unprotected_Access to detect
10503 assignment of a pointer to protected data, to an object declared
10504 outside of the protected object.
10505 (Analyze_Loop_Statement): Check for unreachable code after loop
10506 Add Sure parameter to Note_Possible_Modication calls
10507 Protect analysis from previous syntax error such as a scope mismatch
10508 or a missing begin.
10509 (Analyze_Assignment_Statement): The assignment is illegal if the
10510 left-hand is an interface.
10512 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
10513 violation of restriction No_Implicit_Conditionals
10514 Add Sure parameter to Note_Possible_Modication calls
10515 Use new Is_Standard_Character_Type predicate
10516 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
10517 call as operator. Fixes problems (e.g. validity checking) which
10518 come from the result looking as though it does not come from source).
10519 (Resolve_Call): Check case of name in named parameter if style checks
10521 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
10522 from the checking that such calls should not occur from an entry body.
10523 (Resolve_Call): If the return type of an Inline_Always function
10524 requires the secondary stack, create a transient scope for the call
10525 if the body of the function is not available for inlining.
10526 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
10527 that are actuals for in-out formals.
10528 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
10529 primitive operations from base type.
10530 (Analyze_Selected_Component): If the context is a call to a protected
10531 operation the parent may be an indexed component prior to expansion.
10532 (Resolve_Actuals): If an actual is of a protected subtype, use its
10533 base type to determine whether a conversion to the corresponding record
10535 (Resolve_Short_Circuit): Handle pragma Check
10537 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
10538 Use new Is_Standard_Character_Type predicate
10539 (Eval_Relational_Op): Catch more cases of string comparison
10541 2008-04-08 Robert Dewar <dewar@adacore.com>
10542 Gary Dismukes <dismukes@adacore.com>
10544 * s-rident.ads: Add No_Default_Initialization restriction
10547 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
10548 (Set_TSS): Handle No_Default_Initialization case
10550 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
10551 No_Default_Initialization
10552 (Expand_N_Subprogram_Body): Remove redundant initialization of out
10553 parameters when Normalize_Scalars is active.
10554 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
10555 Fix casing error in formal parameter name in call
10556 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
10557 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
10558 dispatching call on VM targets.
10560 2008-04-08 Gary Dismukes <dismukes@adacore.com>
10561 Thomas Quinot <quinot@adacore.com>
10563 * exp_ch7.adb (Find_Final_List): Change the test for generating a
10564 selected component from an access type's Associated_Final_Chain to
10565 check for the presence of that field, rather than assuming it exists
10566 for all named access types.
10567 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
10568 procedure to call at the end of the generated cleanup procedure.
10569 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
10570 and an At_End_Proc already exists in the handled sequence of statements
10571 for which cleanup actions are being expanded, the original cleanup
10572 action must be preserved.
10574 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
10575 Ed Schonberg <schonberg@adacore.com>
10576 Robert Dewar <dewar@adacore.com>
10577 Gary Dismukes <dismukes@adacore.com>
10579 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
10580 Build_Unprotected_Subprogram_Body): Generate debug info for
10581 declarations related to the handling of private data in task and
10583 (Debug_Private_Data_Declarations): New subprogram.
10584 (Install_Private_Data_Declarations): Remove all debug info flagging.
10585 This is now done by Debug_Private_Data_Declarations at the correct
10586 stage of expansion.
10587 (Build_Simple_Entry_Call): If the task name is a function call, expand
10588 the prefix into an object declaration, and make the surrounding block a
10590 (Build_Master_Entity): An internal block is a master if it wraps a call.
10591 Code reformatting, update comments. Code clean up.
10592 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
10593 (Replicate_Entry_Formals): If the formal is an access parameter or
10594 anonymous access to subprogram, copy the original tree to create new
10595 entities for the formals of the subprogram.
10596 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
10597 for tasks to store the value passed using pragma Relative_Deadline.
10598 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
10599 run-time call to create a task.
10600 (Build_Wrapper_Spec): If the controlling argument of the interface
10601 operation is an access parameter with a non-null indicator, use the
10602 non-null indicator on the wrapper.
10604 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
10605 present, which it may not be in the case where the type entity is an
10606 incomplete view brought in by a limited with.
10607 (Analyze_Task_Type): Only retrieve the full view when present, which it
10608 may not be in the case where the type entity is an incomplete view brought
10609 in by a limited with.
10610 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
10611 private components of a protected type, to prevent the generation of freeze
10612 nodes for which there is no proper scope of elaboration.
10614 * exp_util.ads, exp_util.adb
10615 (Remove_Side_Effects): If the expression is a function call that returns a
10616 task, expand into a declaration to invoke the build_in_place machinery.
10617 (Find_Protection_Object): New routine.
10618 (Remove_Side_Effects): Also make a copy of the value
10619 for attributes whose result is of an elementary type.
10620 (Silly_Boolean_Array_Not_Test): New procedure
10621 (Silly_Boolean_Array_Xor_Test): New procedure
10622 (Is_Volatile_Reference): New function
10623 (Remove_Side_Effects): Use Is_Volatile_Reference
10624 (Possible_Bit_Aligned_Component): Handle slice case properly
10626 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
10627 case test to Exp_Util
10628 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
10630 2008-04-08 Thomas Quinot <quinot@adacore.com>
10632 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
10634 (Add_RACW_Features): When processing an RACW in another unit than the
10635 main unit, set Body_Decls to No_List to indicate that the bodies of
10636 the type's TSS must not be generated.
10637 (GARLIC_Support.Add_RACW_Read_Attribute,
10638 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
10639 Body_Decls is No_List.
10640 (PolyORB_Support.Add_RACW_Read_Attribute,
10641 PolyORB_Support.Add_RACW_Write_Attribute,
10642 PolyORB_Support.Add_RACW_From_Any,
10643 PolyORB_Support.Add_RACW_To_Any,
10644 PolyORB_Support.Add_RACW_TypeCode): Same.
10645 (Transmit_As_Unconstrained): New function.
10646 (Build_Ordered_Parameters_List): Use the above to order parameters.
10647 (GARLIC_Support.Build_General_Calling_Stubs):
10648 Use the above to determine which parameters to unmarshall using 'Input
10649 at the point where their temporary is declared (as opposed to later on
10650 with a 'Read call).
10651 (PolyORB_Support.Build_General_Calling_Stubs):
10652 Use the above to determine which parameters to unmarshall using From_Any
10653 at the point where their temporary is declared (as opposed to later on
10654 with an assignment).
10656 2008-04-08 Ed Schonberg <schonberg@adacore.com>
10658 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
10659 an Input function for an access type, do not perform default
10660 initialization on the local variable that receives the value, to
10661 prevent spurious warnings when the type is null-excluding.
10663 2008-04-08 Robert Dewar <dewar@adacore.com>
10664 Ed Schonberg <schonberg@adacore.com>
10666 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
10668 (Size_Known): Generic formal scalar types have known at compile
10669 time size, so remove check.
10670 Fix casing error in formal parameter name in call
10671 (Freeze_Subprogram): If the subprogram is a user-defined operator,
10672 recheck its overriding indication.
10674 2008-04-08 Vincent Celier <celier@adacore.com>
10676 * gnat1drv.adb: Send all messages indicating an error to standard error
10678 2008-04-08 Robert Dewar <dewar@adacore.com>
10680 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
10681 (List_Applicable_Restrictions): Do not list existing restrictions
10683 2008-04-08 Thomas Quinot <quinot@adacore.com>
10685 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
10686 add a pointer to generic sockets literature
10687 do not mention that the given example is "typical" usage.
10688 Remove obsolete comment about multicast not being supported on Windows.
10689 (Connect_Socket): Make Server mode IN rather than IN OUT
10690 since this formal is never modified.
10692 2008-04-08 Robert Dewar <dewar@adacore.com>
10694 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
10695 the declaration for some different entity.
10696 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
10697 list is precent (following the parent subtype indication), display
10698 appropriate "and" keyword.
10700 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
10701 Remove unnecessary calls to Init_Size_Align and Init_Esize.
10702 Add notes on use of Parent field of an Itype
10704 2008-04-08 Ed Schonberg <schonberg@adacore.com>
10705 Robert Dewar <dewar@adacore.com>
10706 Gary Dismukes <dismukes@adacore.com>
10708 * lib-xref.adb (Is_On_LHS): Remove dead code
10709 (Output_Overriden_Op): If the overridden operation is itself inherited,
10710 list the ancestor operation, which is the one whose body or absstract
10711 specification is actually being overridden. For source navigation
10714 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
10715 operation is primitive for the type.
10716 (Declare_Inherited_Private_Subprograms): If the new operation overrides
10717 an inherited private subprogram, set properly the Overridden_Operation
10718 attribute, for better cross-reference information.
10719 (Analyze_Package_Specification): Do late analysis of spec PPCs
10720 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
10721 properly the full view and underlying full views of a private type in a
10722 child unit, whose full view is derived from a private type in a parent
10723 unit, and whose own full view becomes visible in the child body.
10725 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
10726 primitive operation after the type has been frozen, add an explicit
10727 reference to the type and the operation, because other primitive
10728 references have been emitted already.
10729 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
10730 dispatching call on VM targets.
10732 2008-04-08 Vincent Celier <celier@adacore.com>
10733 Thomas Quinot <quinot@adacore.com>
10735 * make.adb: (Gnatmake_Called): Remove, no longer necessary
10736 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
10737 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
10738 (Insert_Project_Sources): Take into account index in multi-unit source
10740 After building a library project, delete all temporary files.
10741 (Initialize): Reset current output after parsing project file.
10742 (Collect_Arguments_And_Compile): Never insert in the queue the sources
10743 of library projects that are externally built.
10744 Put file name in error and inform messages if -df is used
10745 (Display): If invoked with -d7, do not display path names, but only
10748 * makeutl.ads (Path_Or_File_Name): New function
10749 (Path_Or_File_Name): New function
10751 2008-04-08 Arnaud Charlet <charlet@adacore.com>
10753 * Make-lang.in: Disable warnings during first stage of bootstrap
10755 Update dependencies.
10757 2008-04-08 Vincent Celier <celier@adacore.com>
10759 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
10760 case to decide if ALI object file is included in library.
10761 (Build_Library): Never attempt to build a library if the project is
10764 2008-04-08 Thomas Quinot <quinot@adacore.com>
10766 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
10767 (No_List) is defined to return Empty.
10769 2008-04-08 Jose Ruiz <ruiz@adacore.com>
10771 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
10774 (Read_Default_Search_Dirs): Do not consider spaces as path separators
10775 because spaces may be part of legal paths.
10777 2008-04-08 Robert Dewar <dewar@adacore.com>
10779 * par-ch11.adb (P_Exception_Handler): Check indentation level for
10782 2008-04-08 Ed Schonberg <schonberg@adacore.com>
10784 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
10785 in a type declaration, if this is not an interface declaration or
10786 private type extension.
10788 2008-04-08 Vincent Celier <celier@adacore.com>
10790 * prj-util.adb (Executable_Of): New String parameter Language. When
10791 Ada_Main is False and Language is not empty, attempt to remove the body
10792 suffix or the spec suffix of the language to get the base of the
10793 executable file name.
10794 (Put): New Boolean parameter Lower_Case, defauilted to False. When
10795 Lower_Case is True, put the value in lower case in the name list.
10796 (Executable_Of): If there is no executable suffix in the configuration,
10797 then do not modify Executable_Extension_On_Target.
10799 * prj-util.ads (Executable_Of): New String parameter Language,
10800 defaulted to the empty string.
10801 (Put): New Boolean parameter Lower_Case, defauilted to False
10803 2008-04-08 Robert Dewar <dewar@adacore.com>
10805 * scng.adb (Scan_Identifier): Handle case of identifier starting with
10806 wide character using UTF-8 encoding.
10808 2008-04-08 Javier Miranda <miranda@adacore.com>
10810 * sem.adb (Analyze): Consider case in which we analyze an empty node
10811 that was generated by a call to a runtime function that is not
10812 available under the configurable runtime.
10814 * sem.ads (Inside_Freezing_Actions): New flag.
10815 (Save_Check_Policy_List): New field in scope stack entry
10817 2008-04-08 Ed Schonberg <schonberg@adacore.com>
10818 Robert Dewar <dewar@adacore.com>
10820 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
10821 the ancestor part of an extension aggregate for a limited type.
10822 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
10823 enumeration index bounds.
10824 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
10825 when array is too short.
10826 (Check_Expr_OK_In_Limited_Aggregate): Move function
10827 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
10829 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
10830 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
10831 component associations.
10832 (Check_Non_Limited_Type): Moved to outer level and renamed.
10833 (Resolve_Record_Aggregate): In an extension aggregate, an association
10834 with a box initialization can only designate a component of the
10835 extension, not a component inherited from the given ancestor
10837 * sem_case.adb: Use new Is_Standard_Character_Type predicate
10839 2008-04-08 Robert Dewar <dewar@adacore.com>
10841 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
10843 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
10844 Properly handle case where Aft > Scale and input number is less than
10847 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
10849 * s-stoele.ads, s-soflin.ads: Move the location of
10850 Dummy_Communication_Block from System.Storage_Elements to
10853 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
10854 emulate Communication_Block in certain scenarios.
10856 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
10858 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
10860 Add new subtype S_WWC, unchecked conversion routines From_WWC and
10862 (I_WWC, O_WWC): New routines for input and output of
10863 Wide_Wide_Character.
10865 2008-04-08 Robert Dewar <dewar@adacore.com>
10867 * stringt.adb (Write_String_Table_Entry): Handle wide characters
10870 2008-04-08 Robert Dewar <dewar@adacore.com>
10872 * styleg.adb (Check_Comment): Allow special char after -- in
10873 non-end-of-line case
10875 2008-04-08 Robert Dewar <dewar@adacore.com>
10877 * stylesw.adb: Implement -gnaty + - y options
10878 (Set_GNAT_Style_Check_Options): Includ I in style check string
10880 * stylesw.ads: Add comments for new style switch options
10882 2008-04-08 Sergey Rybin <rybin@adacore.com>
10884 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
10885 to the set of the GNAT components needed by ASIS.
10887 2008-04-08 Bob Duff <duff@adacore.com>
10889 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
10891 2008-04-08 Tristan Gingold <gingold@adacore.com>
10893 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
10894 Improve error message generation.
10896 2008-04-08 Vincent Celier <celier@adacore.com>
10898 * a-direct.adb (Start_Search): Check for Name_Error before checking for
10899 Use_Error, as specified in the RM. Check if directory is open and raise
10900 Use_Error if it is not.
10902 2008-04-08 Vincent Celier <celier@adacore.com>
10903 Robert Dewar <dewar@adacore.com>
10905 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
10906 AAMP_On_Target is set.
10908 * vms_data.ads: Add NOxxx to style check switch list
10909 Add entry COMPONENTS for -gnatVe
10910 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
10912 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
10913 Add qualifiers for gnatmetric coupling options
10914 Add note that -gnata enables all checks
10915 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
10916 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
10917 New warning flag -gnatw.e
10919 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
10920 Add entry for -gnatyN (forgotten before)
10921 Line for new warning switch -gnatw.p
10922 New warning flag -gnatw.e
10924 * gnat_ugn.texi: Add documentation fpr project file switch -aP
10925 Document -gnaty - + y
10926 Replace occurences of "package specification" with "package spec"
10927 Define preprocessing symbols in documentation of gnatprep
10928 Clarify reason for distinguishing overflow checking
10929 Add documentation for project-aware tool switches -eL and --subdirs=
10930 Complete list of configuration pragmas
10931 Specify that, even when gnatmake switch -x is used, mains on the command
10932 line need to be sources of project files.
10933 Editing of gnatcheck/gnatmetric doc.
10934 Add documentation for -gnatw.p/-gnatw.P
10935 Add missing documentation for -fno-inline-functions.
10936 Add documentation for -gnatw.e
10938 * gnat_rm.texi: Add documentation for No_Default_Initialization
10939 Replace occurences of "package specification" with "package spec"
10940 Document use of * in Warnings Off string
10941 Update documentation of alignment/component clauses.
10942 Add documentation for Invalid_Value
10943 Document new consistency rule for Optimize_Alignment
10944 Add documentation for Precondition and Postcondition pragmas
10945 Add documentation for Check and Check_Policy pragmas
10946 Document new Enum_Val attribute
10947 Remove requirement for static string in pragma Assert
10948 Add documentation on GNAT.Time_Stamp
10950 * ug_words: add entry for -gnatVe
10951 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
10952 Add entry for -gnatw.e
10954 * debug.adb: Add missing documentation for d.a flag
10955 Document new -gnatd.a switch.
10956 Add documentation for new gnatmake debug switch -df
10958 2008-04-08 Thomas Quinot <quinot@adacore.com>
10960 * gen-soccon.c: Bump year in copyright notices.
10962 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
10964 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
10966 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
10967 Minor reformatting.
10969 2008-04-08 Robert Dewar <dewar@adacore.com>
10970 Bob Duff <duff@adacore.com>
10972 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
10973 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
10975 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
10977 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
10979 * g-trasym.ads: Minor comment improvements
10981 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
10983 * a-sequio.ads, a-direio.ads: improve message for tagged type
10985 * a-strunb.ads: Minor reformatting
10987 * a-tifiio.adb: Minor reformatting
10989 * atree.adb (Fix_Parents): Use clearer names for formals
10990 Cleanup and simplify code
10991 Use named notation in calls
10993 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
10996 * uintp.adb: Used named notation for some confusing calls
10998 * bindusg.adb: Minor change in one line of output
11000 * cstand.adb: Minor reformatting of src representation of Standard
11002 * a-assert.ads: Add comment.
11004 * g-decstr.adb: Fix bad indentation
11006 * expander.ads, expander.adb: Code clean up.
11008 * sem_dist.ads: Minor comment improvement
11010 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
11011 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
11013 * i-cstrin.adb: Fix casing error in formal parameter name in call
11015 2008-04-08 Ed Schonberg <schonberg@adacore.com>
11017 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
11018 mentioned in limited_with_clauses to do create semantic dependencies
11019 even though they appear in the ali file.
11021 2008-04-08 Emmanuel Briot <briot@adacore.com>
11023 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
11025 (Get_Configuration): New subprogram.
11027 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
11028 These optional parameters help preserve the casing of the project's name
11029 when pretty-printing.
11031 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
11032 Arnaud Charlet <charlet@adacore.com>
11034 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
11035 then use __gnat_set_exit_status to report the returned status code.
11037 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
11038 messages on .NET, since some constructs of the language are not
11039 properly supported.
11041 * gnatlink.adb (Gnatlink): In case the command line is too long for the
11042 .NET linker, gnatlink now concatenate all .il files and pass this to
11045 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
11046 Xavier Grave <grave@ipno.in2p3.fr>
11048 * Makefile.in: Add make ifeq define for mips/mipsel support.
11049 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
11050 system-linux-mips.ads: New files.
11052 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
11054 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
11055 detect systems using GNU libc.
11056 * gsocket.h: ditto.
11061 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
11063 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
11064 constant constant for sysconf call.
11065 (bit_field): New packed boolean type used by cpu_set_t.
11066 (cpu_set_t): New type corresponding to the C type with
11067 the same name. Note that on the Ada side we use a bit
11068 field array for the affinity mask. There is not need
11069 for the C macro for setting individual bit.
11070 (pthread_setaffinity_np): New imported routine.
11071 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
11074 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11076 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
11078 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
11080 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
11081 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
11082 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
11083 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
11084 Return by Depressed Stack Pointer.
11086 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
11088 * decl.c (is_variable_size): Do not unconditionally return false
11089 on non-strict alignment platforms.
11091 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
11093 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
11094 used to process all the variants of the specified type.
11095 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
11096 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
11097 (rest_of_type_decl_compilation): Likewise.
11098 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
11100 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
11102 * gigi.h (insert_block): Kill.
11103 * utils.c (insert_block): Kill.
11105 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
11107 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
11108 type has self-referential size, get the size from the initializing
11109 expression directly if it is also a constant whose nominal type
11110 has self-referential size.
11112 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11115 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
11118 * env.c: Always include crt_externs.h if __APPLE__ is defined.
11119 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
11121 2008-04-01 Andreas Jaeger <aj@suse.de>
11123 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
11126 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11128 * g-table.adb, g-tasloc.adb, g-traceb.ads,
11129 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
11130 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
11131 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
11132 gnatlink.adb, gnatmem.adb, gprep.adb,
11133 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
11134 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
11135 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
11136 lib-xref.ads, lib.adb, link.c, live.ads,
11137 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
11138 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
11139 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
11140 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
11141 namet.adb, namet.h, nlists.adb, nlists.ads,
11142 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
11143 osint-c.ads, osint.adb, osint.ads, output.ads,
11144 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
11145 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
11146 par-endh.adb, par-labl.adb, par-prag.adb,
11147 par-sync.adb, par-tchk.adb, par-util.adb,
11148 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
11149 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
11150 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
11151 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
11153 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
11155 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
11156 size if it has overflowed.
11158 2008-03-31 Olivier Hainque <hainque@adacore.com>
11159 Eric Botcazou <ebotcazou@adacore.com>
11161 * utils2.c (find_common_type): Document assumption on t1/t2 vs
11162 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
11164 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11166 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
11167 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
11168 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
11169 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
11170 exp_tss.ads, exp_util.adb, exp_util.ads,
11171 exp_vfpt.adb, freeze.adb, freeze.ads,
11172 frontend.adb, g-alleve.adb, g-altcon.adb,
11173 g-altive.ads, g-alveop.ads, g-alvevi.ads,
11174 g-arrspl.adb, g-busorg.ads, g-calend.adb,
11175 g-calend.ads, g-casuti.ads, g-cgideb.adb,
11176 g-comlin.adb, g-comlin.ads, g-curexc.ads,
11177 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
11178 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
11179 g-dyntab.adb, g-encstr.ads, g-excact.ads,
11180 g-except.ads, g-expect.ads, g-heasor.adb,
11181 g-hesora.adb, g-hesorg.adb, g-htable.ads,
11182 g-locfil.ads, g-md5.adb, g-md5.ads,
11183 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
11184 g-pehage.adb, g-pehage.ads, g-regexp.adb,
11185 g-regexp.ads, g-regpat.adb, g-regpat.ads,
11186 g-soccon-aix.ads, g-soccon-darwin.ads,
11187 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
11188 g-soccon-hpux.ads, g-soccon-irix.ads,
11189 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
11190 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
11191 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
11192 g-soccon-solaris.ads, g-soccon-tru64.ads,
11193 g-soccon-vms.ads, g-soccon-vxworks.ads,
11194 g-soccon.ads, g-socket.adb, g-socket.ads,
11195 g-socthi-mingw.adb, g-socthi-vms.adb,
11196 g-socthi-vxworks.adb, g-soliop-mingw.ads,
11197 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
11198 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
11201 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
11203 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
11204 if the procedure is imported.
11206 2008-03-26 Arnaud Charlet <charlet@adacore.com>
11208 * adaint.c: Fix warnings.
11210 2008-03-26 Arnaud Charlet <charlet@adacore.com>
11212 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
11214 2008-03-26 Arnaud Charlet <charlet@adacore.com>
11216 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
11217 Fix problem of status check for null file
11219 2008-03-26 Arnaud Charlet <charlet@adacore.com>
11221 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
11222 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
11223 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
11224 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
11225 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
11228 2008-03-26 Thomas Quinot <quinot@adacore.com>
11231 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
11232 Get_Socket_Option): Add support for Receive_Packet_Info.
11234 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
11235 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
11236 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
11237 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
11238 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
11239 new constants SO_REUSEPORT and IP_PKTINFO
11241 2008-03-26 Robert Dewar <dewar@adacore.com>
11243 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
11244 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
11245 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
11246 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
11247 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
11248 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
11249 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
11250 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11251 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
11252 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
11253 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
11254 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
11255 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
11256 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
11257 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
11258 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
11259 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
11260 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
11261 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
11262 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
11263 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
11264 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
11265 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
11266 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
11267 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
11268 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
11269 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
11270 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
11271 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
11272 s-tasloc.adb: Minor reformatting.
11274 Remove "used for" sections from comments.
11276 2008-03-26 Robert Dewar <dewar@adacore.com>
11278 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
11279 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
11280 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
11281 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
11282 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
11283 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
11284 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
11285 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
11286 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
11287 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
11288 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
11289 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
11290 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
11291 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
11292 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
11293 double spaced if it fits on one line and otherwise single spaced.
11295 2008-03-26 Arnaud Charlet <charlet@adacore.com>
11297 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
11298 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
11299 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
11300 or task info if the thread could not be created.
11302 2008-03-26 Arnaud Charlet <charlet@adacore.com>
11304 * gnatvsn.ads (Library_Version): Bump to 4.4.
11305 (Current_Year): Bump to 2008.
11307 2008-03-26 Robert Dewar <dewar@adacore.com>
11309 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
11311 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
11313 * debug.adb: Add debug flags d.r and d.v
11314 Add debug flag .T (Optimize_Alignment (Time))
11315 Add debug flag .S (Optimize_Alignment (Space))
11317 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
11318 depending on setting of relevant debug flags.
11319 Replace use of Warnings_Off by Has_Warnings_Off
11320 (Freeze_Entity): In circuit for warning on suspicious convention
11321 actuals, do not give warning if subprogram has same entity as formal
11322 type, or if subprogram does not come from source.
11323 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
11324 if Optimize_Alignment set to Space.
11326 * frontend.adb: Add call to Sem_Warn.Initialize
11327 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
11328 Reset Optimize_Alignment mode from debug switches .S and .T
11330 * layout.adb (Layout_Composite_Object): Rewritten for
11331 Optimize_Aligment pragma.
11333 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
11336 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
11338 * par-prag.adb (N_Pragma): Chars field removed, use Chars
11339 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
11340 this change. Add entry for pragma Optimize_Alignment
11342 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
11343 (Pragma_Identifier (..
11344 instead, adjustments throughout to accomodate this change.
11345 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
11346 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
11347 Add implementation of pragma Optimize_Alignment
11349 2008-03-26 Vincent Celier <celier@adacore.com>
11351 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
11352 Improve memory usage to avoid use of stack.
11354 2008-03-26 Robert Dewar <dewar@adacore.com>
11356 * a-teioed.ads: Correct value of Default_Fill
11358 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
11360 2008-03-26 Robert Dewar <dewar@adacore.com>
11362 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
11363 with Current_Output (introduce Self).
11365 2008-03-26 Robert Dewar <dewar@adacore.com>
11367 * checks.adb (Ensure_Valid): Capture valid status if possible
11370 2008-03-26 Robert Dewar <dewar@adacore.com>
11372 * stand.ads: Deal with reordering of package standard declarations
11374 * cstand.adb: Put package Standard declarations in proper order
11376 2008-03-26 Robert Dewar <dewar@adacore.com>
11378 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
11379 (Pragma_Identifier (.. instead.
11380 (OK_To_Reorder_Components): New flag
11381 (Has_Entries): Code cleanup.
11382 (Warnings_Off_Used): New flag
11383 (Warnings_Off_Used_Unmodified): New flag
11384 (Warnings_Off_Used_Unreferenced): New flag
11385 (Has_Warnings_Off): New function
11386 (Has_Unmodified): New function
11387 (Has_Unreferenced): New function
11388 (Is_Trivial_Subprogram): New flag
11389 (Is_Static_Dispatch_Table_Entity): New attribute.
11390 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
11391 (more consistent with other similar names)
11392 (Access_Subprogram_Type): New classification function
11394 2008-03-26 Robert Dewar <dewar@adacore.com>
11396 * errout.ads: Document new !! insertion sequence
11398 * errout.adb (N_Pragma): Chars field removed, use Chars
11399 (Pragma_Identifier (.. instead.
11400 Replace use of Warnings_Off by Has_Warnings_Off
11401 (Error_Msg_Internal): Don't delete warning ending in !!
11403 2008-03-26 Robert Dewar <dewar@adacore.com>
11405 * par.adb (Check_No_Right_Paren): Removed no longer used
11407 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
11408 (Pragma_Identifier (.. instead.
11410 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
11412 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
11413 par-ch4.adb: Minor improvements in error recovery and messages.
11415 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
11418 * par-ch9.adb: Minor improvements in error recovery and messages
11419 (P_Protected): Better error recovery for "protected type x;"
11421 * par-util.adb: Minor improvements in error recovery and messages
11422 (Check_No_Right_Paren): Removed no longer used
11424 2008-03-26 Ed Schonberg <schonberg@adacore.com>
11426 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
11427 that the prefix of an attribute is the type of the aggregate being
11430 2008-03-26 Javier Miranda <miranda@adacore.com>
11431 Robert Dewar <dewar@adacore.com>
11433 * exp_attr.adb (N_Pragma): Chars field removed.
11434 (Expand_N_Attribute_Reference): If the designated type associated with
11435 attribute 'Unrestricted_Access is a subprogram entity then replace it
11436 by an E_Subprogram_Type itype.
11437 Implement attribute Old
11439 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
11441 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
11443 New_Internal_Entity by call to Create_Itype to centralize calls
11444 building itypes, ad propagate the convention of the designated
11445 subprogram. In addition, disable the machinery cleaning constant
11446 indications from all entities in current scope when 'Unrestricted_Access
11447 corresponds with a node initializing a dispatch table slot.
11448 (Analyze_Attribute): Parameterless attributes returning a string or a
11449 type will not be called with improper arguments, so we can remove junk
11450 code that was dealing with this case.
11451 Implement attribute Old
11453 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
11454 Add entry for pragma Optimize_Alignment
11455 New standard names Sync and Synchronize
11457 2008-03-26 Robert Dewar <dewar@adacore.com>
11458 Arnaud Charlet <charlet@adacore.com>
11460 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
11462 (No_Exception_Propagation_Active): New function.
11463 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
11464 Update comments, and review all uses of No_Exception_Propagation, which
11465 are now correct and in sync with what gigi expects.
11467 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
11469 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
11470 Update comments, and review all uses of No_Exception_Propagation, which
11471 are now correct and in sync with what gigi expects.
11473 2008-03-26 Ed Schonberg <schonberg@adacore.com>
11475 * sem_ch3.adb (Access_Definition): If the access type is the return
11476 result of a protected function, create an itype reference for it
11477 because usage will be in an inner scope from the point of declaration.
11478 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
11479 OK_To_Reorder_Components.
11480 (Make_Index): If an overloaded range includes a universal integer
11481 interpretation, resolve to Standard.Integer.
11482 (Analyze_Subtype_Indication): Copy Convention to subtype
11483 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
11484 limited an synchronized progenitors in type declaration and private
11485 extension declarations.
11487 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
11488 protected subprogram body, determine proper scope from subprogram
11491 2008-03-26 Robert Dewar <dewar@adacore.com>
11493 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
11496 2008-03-26 Gary Dismukes <dismukes@adacore.com>
11498 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
11499 of a heap allocator for a limited unconstrained function return when
11500 resstriction No_Allocators is active.
11501 (Analyze_Allocator): The restriction No_Allocators is now only checked
11502 on allocators that have Comes_From_Source set, as per RM-H.4(7).
11504 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
11505 of a heap allocator for a limited unconstrained function return when
11506 resstriction No_Allocators is active.
11507 (Analyze_Allocator): The restriction No_Allocators is now only checked
11508 on allocators that have Comes_From_Source set, as per RM-H.4(7).
11509 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
11510 operands are fixed-point types, the universal_fixed predefined operation
11511 is used, regardless of whether the operand type (s) have a primitive
11512 operation of the same name.
11514 2008-03-26 Javier Miranda <miranda@adacore.com>
11516 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
11517 Is_Static_Dispatch_Table
11518 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
11519 to Exchange_Declarations to exchange the private and full-view. Bug
11520 found working in this issue.
11521 (Expand_Dispatching_Call): Propagate the convention of the subprogram
11522 to the subprogram pointer type.
11523 (Make_Secondary_DT): Replace generation of Prim'Address by
11524 Address (Prim'Unrestricted_Access)
11525 (Make_DT): Replace generation of Prim'Address by
11526 Address (Prim'Unrestricted_Access)
11527 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
11528 simple call form for single entry.
11529 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
11530 tables of predefined primitives).
11531 (Make_Secondary_DT): Add support to handle access to dispatch tables of
11532 predefined primitives.
11533 (Make_Tags): Add entities to Access_Dispatch_Table associated with
11534 access to dispatch tables containing predefined primitives.
11536 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
11537 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
11539 (Register_Predefined_DT_Entry): Updated to handle the new contents
11540 of attribute Access_Disp_Table (pointers to dispatch tables containing
11541 predefined primitives).
11543 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
11545 (Find_Interface_ADT): Updated to skip the new contents of attribute
11546 Access_Dispatch_Table (pointers to dispatch tables containing predefined
11549 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
11551 (Set_Convention): Use new function Is_Access_Subprogram_Type
11552 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
11553 Access_Dispatch_Table (pointers to dispatch tables containing predefined
11556 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
11557 expanded code avoiding calls to Build_Predef_Prims.
11558 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
11559 call to Build_Get_Predefined_Prim_Op_Address.
11561 2008-03-26 Javier Miranda <miranda@adacore.com>
11563 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
11564 subprogram Corresponding_Runtime_Package to know the runtime package
11565 that will provide support to a given protected type.
11567 * exp_ch9.adb (Add_Private_Declarations,
11568 Build_Protected_Subprogram_Call,
11569 Build_Protected_Entry, Build_Simple_Entry_Call,
11570 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
11571 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
11572 cleanup using the new centralized subprogram Corresponding_Runtime
11573 Package to know the runtime package that provides support to
11574 a given protected type.
11576 2008-03-26 Ed Schonberg <schonberg@adacore.com>
11578 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
11579 assignment is within the initialization procedure for a packed array,
11580 and Initialize_Scalars is enabled, compile right-hand side with checks
11581 off, because the value is purposely out of range.
11583 2008-03-26 Vincent Celier <celier@adacore.com>
11585 * gnatcmd.adb: Add processing for GNAT SYNC
11587 * vms_conv.ads: (Command_Type): Add command Sync
11589 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
11591 * vms_data.ads: Add entries for -gnatw.w
11592 Add qualifier for gnatstub --header-file option
11593 Add switches for GNAT SYNC
11595 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
11596 (Add_Package_Name): New procedure
11597 (Package_Name_List): New function
11598 (Initialize): Add known package names to the list
11599 (Register_New_Package): Add the new package name to the list
11601 2008-03-26 Robert Dewar <dewar@adacore.com>
11603 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
11604 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
11605 Raise_Exception by "raise with" construct.
11607 2008-03-26 Pascal Obry <obry@adacore.com>
11609 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
11610 supported platforms.
11612 * Makefile.rtl: Add g-sercom.o.
11614 * impunit.adb: Add g-sercom.adb.
11616 * s-crtl.ads (open): New routine.
11620 * s-osinte-mingw.ads (BYTE): New type.
11622 (OVERLAPPED): Likewise.
11623 (GENERIC_READ): New constant.
11624 (GENERIC_WRITE): Likewise.
11625 (OPEN_EXISTING): Likewise.
11626 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
11628 (CreateFile): New routine.
11629 (WriteFile): Likewise.
11630 (ReadFile): Likewise.
11631 (CloseHandle): Move next to the other file oriented routines.
11633 * g-sercom.ads: New unit.
11635 * g-sercom.adb: Default implementation, calls to this unit will raise
11636 a program error exception.
11638 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
11639 GNU/Linux implementations.
11641 2008-03-26 Robert Dewar <dewar@adacore.com>
11643 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
11645 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
11646 unchecked conversion for different conventions only for subprogram
11647 pointers or on VMS.
11649 2008-03-26 Vincent Celier <celier@adacore.com>
11651 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
11652 to check if the specified object file is correct.
11654 2008-03-26 Thomas Quinot <quinot@adacore.com>
11656 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
11657 Comes_From_Source to exclude primitives from being checked. We want to
11658 exclude predefined primitives only, so use the appropriate specific
11659 predicate. Also, flag a formal parameter of an anonymous
11660 access-to-subprogram type as illegal for a primitive operation of a
11661 remote access to class-wide type.
11663 2008-03-26 Vincent Celier <celier@adacore.com>
11665 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
11666 known, check if it may be a missspelling of a known package name. In
11667 not verbose, not mode, issue warnings only if the package name is a
11668 possible misspelling.
11669 In verbose mode, always issue a warning for a not known package name,
11670 plus a warning if the name is a misspelling of a known package name.
11672 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
11673 limited withs or limited withs are parse during one call.
11674 (Parse_Single_Project): Post parse context clause in two passes: non
11675 limited withs before current project and limited withs after current
11678 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
11679 project with the name With_Name, even if it is only extended indirectly.
11680 (Recursive_Process): Process projects in order: first single withs, then
11681 current project, then limited withs.
11683 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
11684 project with the name With_Name, even if it is only extended indirectly.
11686 2008-03-26 Robert Dewar <dewar@adacore.com>
11688 * scn.adb (Initialize_Scanner): Format messages belong on standard error
11690 2008-03-26 Ed Schonberg <schonberg@adacore.com>
11692 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
11693 a generic subprogram that is imported, do not attempt to compile
11696 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
11697 imported, do not generate a raise_program_error for the non-existent
11699 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
11700 perform minimal name resolution on the generic to avoid spurious
11702 (Find_Actual_Type): the designated type of the actual in a child unit
11703 may be declared in a parent unit without being an actual.
11705 2008-03-26 Robert Dewar <dewar@adacore.com>
11707 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
11708 * sinfo.ads, sinfo.adb (From_At_End): New flag
11710 2008-03-26 Ed Schonberg <schonberg@adacore.com>
11712 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
11713 operations that have an interface parameter.
11714 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
11715 Don't treat No_Return call as raise.
11717 * sem_disp.adb (Check_Dispatching_Operations): apply check for
11718 non-primitive interface primitives to access parameters, not to all
11719 parameters of an access type.
11721 2008-03-26 Ed Schonberg <schonberg@adacore.com>
11723 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
11724 declarations of a parent unit are made visible when compiling a child
11725 instance, the parent is not a hidden open scope, even though it may
11726 contain other pending instance.
11728 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
11729 hidden open scope for some child instance, it does affect the
11730 visibility status of other stach entries.
11731 (Analyze_Object_Renaming): Check that a class-wide object cannot be
11732 renamed as an object of a specific type.
11734 2008-03-26 Robert Dewar <dewar@adacore.com>
11736 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
11737 recursion and raise SE directly.
11738 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
11739 set for formal type for IN mode parameter.
11741 2008-03-26 Robert Dewar <dewar@adacore.com>
11743 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
11744 (Initialize): New procedure
11745 (Output_Warnings_Off_Warnings): New procedure
11746 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
11747 (Output_Non_Modifed_In_Out_Warnings): Ditto
11748 (Warn_On_Unreferenced_Entity): Ditto
11750 2008-03-26 Vincent Celier <celier@adacore.com>
11752 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
11755 2008-03-26 Matthew Heaney <heaney@adacore.com>
11757 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
11758 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
11759 Marked with clauses as private, and controlled operations as overriding
11761 2008-03-26 Robert Dewar <dewar@adacore.com>
11763 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
11765 2008-03-26 Robert Dewar <dewar@adacore.com>
11767 * back_end.adb, back_end.ads: Minor reformatting
11769 * bindgen.adb: Minor clarification of comments
11771 * fname.ads: Minor comment fixes
11773 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
11774 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
11776 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
11777 xsnames.adb: Remove warnings off pragma no longer needed
11779 * a-catizo.ads, a-calari.ads, a-calfor.adb,
11780 a-calfor.ads: Fix header.
11782 2008-03-26 Tristan Gingold <gingold@adacore.com>
11784 * init.c: Do not adjust pc for HPARITH on alpha/vms.
11786 2008-03-26 Robert Dewar <dewar@adacore.com>
11788 * lib-xref.adb: (OK_To_Set_Reference): New function
11789 (Generate_Reference): Don't set referenced from occurrence in Warnings,
11790 Unmodified, or Unreferenced pragma
11792 2008-03-26 Robert Dewar <dewar@adacore.com>
11794 * alloc.ads: Add entries for Warnings_Off_Pragmas table
11796 2008-03-26 GNAT Script <nobody@adacore.com>
11798 * Make-lang.in: Makefile automatically updated
11800 2008-03-26 Robert Dewar <dewar@adacore.com>
11802 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
11803 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
11804 removed, use Chars (Pragma_Identifier (.. instead, adjustments
11805 throughout to accomodate this change.
11807 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
11809 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
11810 Einfo.Set_Needs_Debug_Info)
11812 2008-03-26 Robert Dewar <dewar@adacore.com>
11814 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
11815 Add description for the new gnatstub option '--header-file'
11816 clarification of -gnatwz/-gnatwZ
11817 Add a "Irix-Specific Considerations" section to document the need to
11818 set LD_LIBRARY_PATH when using the default shared runtime library.
11819 Added documentation for both gcov and gprof.
11821 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
11822 messages that are not suppressed when clients are compiled.
11823 Add documentation of s-pooglo s-pooloc
11824 Document the new GNAT.Serial_Communications API.
11825 Add documentation for 'Old attribute
11826 Add description of pragma Optimize_Alignment
11828 * ug_words: Add entries for -gnatw.w -gnatw.W
11830 * usage.adb: Add line for -gnatw.w (warn on warnings off)
11832 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
11835 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
11837 * decl.c (maybe_pad_type): Avoid padding an integral type when
11838 bumping its alignment is sufficient.
11840 2008-03-25 Arnaud Charlet <charlet@adacore.com>
11842 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
11843 Fix wrong formatting (lines too long)
11845 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11847 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
11848 a-calend-vms.adb, a-calend.adb, a-calend.ads,
11849 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
11850 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
11851 a-cohama.ads, a-comlin.ads, a-coorse.adb,
11852 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
11853 a-except-2005.ads, a-except.adb, a-except.ads,
11854 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
11855 a-exextr.adb, a-filico.ads, a-finali.ads,
11856 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
11857 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
11858 a-sequio.ads, a-strbou.ads, a-strfix.adb,
11859 checks.adb, exp_ch3.adb, exp_ch4.adb,
11860 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
11861 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
11862 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
11863 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
11864 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
11866 2008-03-24 Robert Dewar <dewar@adacore.com>
11868 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
11869 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
11870 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
11871 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
11872 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
11873 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
11874 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
11875 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
11876 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
11877 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
11878 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
11879 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
11880 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
11881 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
11882 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
11883 double spaced if it fits on one line and otherwise single spaced.
11885 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11887 PR documentation/15479
11888 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
11889 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
11890 (doc/gnat_ugn.info): Renamed from ...
11891 (doc/gnat_ugn_unw.info): ... this.
11892 (doc/gnat_ugn.dvi): Renamed from ...
11893 (doc/gnat_ugn_unw.dvi): ... this.
11894 (doc/gnat_ugn.pdf): Renamed from ...
11895 (doc/gnat_ugn_unw.pdf): ... this.
11896 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
11898 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
11899 unconditionally to gnat_ugn.info. Fix cross references to the
11900 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
11901 and GNU make manuals to be proper texinfo links.
11902 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
11904 2008-03-21 Olivier Hainque <hainque@adacore.com>
11906 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
11907 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
11909 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
11911 * trans.c (addressable_p): Add notes on addressability issues.
11913 2008-03-21 Olivier Hainque <hainque@adacore.com>
11914 Ed Schonberg <schonberg@adacore.com>
11916 * trans.c (addressable_p): Accept COND_EXPR when both arms
11918 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
11919 (call_to_gnu): Do not use name reference in the error message
11920 for a misaligned by_reference_parameter. The actual may be a
11921 general expression.
11923 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
11925 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
11927 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11929 * gnat_rm.texi (Implementation Defined Characteristics)
11930 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
11932 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
11933 (Switches for gnatchop, Installing a library): Likewise.
11935 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
11937 * trans.c (emit_range_check): Do not emit the check if the base type
11938 of the expression is the type against which its range must be checked.
11940 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11942 * decl.c (maybe_pad_type): Use value_factor_p.
11944 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11946 * lang.opt (nostdlib): Move around.
11947 * misc.c (gnat_handle_option): Fix formatting.
11948 (gnat_dwarf_name): Move around.
11949 * trans.c (Case_Statement_to_gnu): Fix formatting.
11950 (gnat_to_gnu): Likewise.
11951 * utils.c (aggregate_type_contains_array_p): Likewise.
11952 (create_subprog_decl): Likewise.
11954 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11956 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
11957 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
11959 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11961 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
11962 BIGGEST_ALIGNMENT when capping the alignment of records with
11963 strict alignment and size clause.
11965 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11967 * lang-specs.h: Pass -gnatwa if -Wall is passed.
11968 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
11969 and -Wuninitialized.
11970 (gnat_post_options): Clear warn_unused_parameter.
11972 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11974 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
11975 aligned bit-fields, bumping the alignment of the record type if deemed
11977 (value_factor_p): Return false instead of 0.
11979 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11981 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
11982 for scalar types with small alignment.
11984 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
11986 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
11987 from that of the front-end's end label.
11988 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
11989 from that of the loop label.
11991 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
11993 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
11994 comment for the packed array type case.
11995 * utils.c (build_template): Use a loop to strip padding or
11996 containing records for justified modular types.
11998 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
12000 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
12001 large alignments specified for types.
12002 (validate_alignment): Minor cleanup.
12004 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
12006 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
12007 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
12008 the component for packing, if possible, as well as if a component
12009 size clause is specified.
12010 <E_Record_Subtype>: For an array type used to implement a packed
12011 array, get the component type from the original array type.
12012 Try to get a smaller form of the component for packing, if possible,
12013 as well as if a component size clause is specified.
12014 (round_up_to_align): New function.
12015 (make_packable_type): Add in_record parameter.
12016 For a padding record, preserve the size. If not in_record and the
12017 size is too large for an integral mode, attempt to shrink the size
12018 by lowering the alignment.
12019 Ditch the padding bits of the last component.
12020 Compute sizes and mode manually, and propagate the RM size.
12021 Return a BLKmode record type if its size has shrunk.
12022 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
12023 Use Original_Array_Type to retrieve the type in case of an error.
12024 Adjust call to make_packable_type.
12025 (gnat_to_gnu_field): Likewise.
12026 (concat_id_with_name): Minor tweak.
12027 * trans.c (larger_record_type_p): New predicate.
12028 (call_to_gnu): Compute the nominal type of the object only if the
12029 parameter is by-reference. Do the conversion actual type -> nominal
12030 type if the nominal type is a larger record.
12031 (gnat_to_gnu): Do not require integral modes on the source type to
12032 avoid the conversion for types with identical names.
12033 (addressable_p): Add gnu_type parameter. If it is specified, do not
12034 return true if the expression is not addressable in gnu_type.
12035 Adjust recursive calls.
12036 * utils.c (finish_record_type): Remove dead code.
12038 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
12041 * decl.c (maybe_pad_type): Avoid padding an integral type when
12042 bumping its alignment is sufficient.
12044 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12046 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
12047 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
12049 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
12050 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
12051 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
12052 code output strings.
12053 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
12054 system-vms_64.ads: Fix typos in ada source code comments.
12055 * sinfo-cn.adb: Remove incomplete sentence.
12057 PR documentation/15479
12058 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
12060 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
12063 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
12065 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
12068 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
12069 that underlying type is present.
12071 2008-02-26 Tom Tromey <tromey@redhat.com>
12073 * misc.c (internal_error_function): Remove test of
12074 USE_MAPPED_LOCATION.
12075 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
12076 (Sloc_to_locus): Remove old location code.
12078 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12080 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
12081 `i.e.' by adding comma or `@:' as appropriate.
12082 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
12083 plain characters `C', use `@samp{C}'.
12084 * gnat_ugn.texi (File Naming Rules, About gnatkr)
12085 (Krunching Method): Likewise.
12087 * gnat_ugn.texi (Conventions): List environment variables and
12088 metasyntactic variables.
12089 (Compiling Programs): Fix notation of metasyntactic variables.
12090 Add @file where appropriate. Use @file for file extensions,
12092 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
12093 instead of @file, @env instead of @code.
12095 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12097 PR documentation/15479
12098 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
12099 and `...' with `@dots{}' or `@enddots{}'.
12101 PR documentation/15479
12102 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
12103 use @command instead of @code, @option instead of @samp or @code,
12104 @code instead of @var, @samp instead of @file.
12106 PR documentation/15479
12107 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
12108 in Makefile rules, by using `&&' rather than `;'.
12110 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12112 PR documentation/15479
12113 * gnat_ugn.texi: In non-code, avoid space before colon.
12114 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
12115 (Examples of gnatxref Usage): Use @command{vi} instead of
12117 (Character Set Control): Do not use @code for UTF-8.
12118 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
12119 use @code for IEEE.
12120 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
12122 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
12124 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
12127 * env.c: Add __rtems__ to if defined.
12128 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
12129 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
12130 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
12131 pragma Convention as required.
12132 * gsocket.h: Make compile in and out of RTS.
12133 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
12134 Use g-soccon-rtems.ads.
12135 * g-soccon-rtems.ads, system-rtems.ads: New files.
12137 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12140 * Make-lang.in (gnat1): Add $(GMPLIBS).
12142 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
12144 * decl.c (components_to_record): Improve comment.
12146 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
12148 * decl.c (components_to_record): Do not reuse the empty union type
12149 if there is a representation clause on the record.
12150 * trans.c (addressable_p): Return true for INTEGER_CST.
12152 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
12154 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
12155 in pointer arithmetics.
12156 * utils2.c (build_allocator): Likewise.
12158 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
12160 * utils.c (build_function_stub): Properly build the call expression.
12162 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
12164 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
12165 before converting the expression to the type of the object.
12166 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
12167 Stabilize constructors for special wrapping types.
12169 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
12171 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
12172 when necessary. Merge some conditional statements. Update comments.
12173 Rename unchecked_convert_p local variable to suppress_type_conversion.
12174 Do not suppress conversions in the In case.
12175 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
12176 into account on non strict-alignment platforms.
12178 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
12180 * utils.c (aggregate_type_contains_array_p): New predicate.
12181 (create_field_decl): In a packed record, force byte alignment
12182 for fields without specified position that contain an array.
12184 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
12186 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
12188 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
12191 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
12193 (bit_field): New packed boolean type used by cpu_set_t.
12194 (cpu_set_t): New type corresponding to the C type with
12195 the same name. Note that on the Ada side we use a bit
12196 field array for the affinity mask. There is not need
12197 for the C macro for setting individual bit.
12198 (pthread_setaffinity_np): New imported routine.
12200 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
12203 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
12204 on OpenBSD as is done on other BSD systems.
12207 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
12208 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
12212 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
12216 * init.c (__gnat_error_handler, __gnat_install_handler,
12217 __gnat_init_float): Define for OpenBSD.
12219 * initialize.c (__gnat_initialize): Define for OpenBSD.
12221 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
12224 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
12225 instead of mktemp() or tmpnam() on NetBSD.
12227 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
12229 * trans.c (call_to_gnu): Make the temporary for non-addressable
12230 In parameters passed by reference.
12231 (addressable_p): Return true for STRING_CST and CALL_EXPR.
12233 2007-12-19 Robert Dewar <dewar@adacore.com>
12235 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
12236 Add pragma Warnings (Off) for unassigned IN OUT arguments
12238 * sem_warn.adb (Output_Reference): Suppress messages for internal names
12239 (Check_References): Extensive changes to tune up warnings
12240 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
12241 (Has_Pragma_Unmodifed_Check_Spec): New function
12242 (Check_References): Implement pragma Unmodified
12243 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
12245 * par-prag.adb: Dummy entry for pragma Unmodified
12247 * sem_prag.adb: Implement pragma Unmodified
12249 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
12250 (Proc_Next_Component_Or_Discriminant): Fix typo.
12253 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
12255 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
12256 because the former already takes care of discarding the result.
12257 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
12260 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
12262 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
12264 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
12265 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
12266 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
12267 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
12268 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
12269 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12270 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
12271 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
12272 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12273 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
12274 (Dynamic_Trampolines_Used): Delete.
12276 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
12277 Turn on stack probing mechanism on LynxOS.
12279 2007-12-19 Bob Duff <duff@adacore.com>
12281 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
12282 the resulting tail recursion by hand. This prevents running out of
12283 memory on deeply nested concatenations, since Field2 is where the left
12284 operand of concatenations is stored.
12285 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
12286 clarify that it can only return OK or Abandon.
12288 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
12289 operand by iteration, in order to avoid running out of memory on
12290 deeply-nested concatenations. Use the Parent pointer to get back up the
12292 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
12293 Resolve_Op_Concat_Rest): New procedures split out of
12294 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
12297 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
12298 Traverse_Func, because the former already takes care of discarding the
12301 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
12302 because the former already takes care of discarding the result.
12303 (Remove_Warning_Messages): Use appropriate subtype for Status and
12306 2007-12-19 Ed Schonberg <schonberg@adacore.com>
12308 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
12309 discriminants forces expansion of the aggregate into assignments.
12310 (Init_Record_Controller): If the type of the aggregate is untagged and
12311 is not inherently limited, the record controller is not limited either.
12313 2007-12-19 Robert Dewar <dewar@adacore.com>
12315 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
12316 handling compile time known size of record or array (case of front end
12317 layout active, e.g. in GNAAMP).
12319 2007-12-19 Javier Miranda <miranda@adacore.com>
12321 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
12322 that forces the construction of static dispatch tables in case of
12325 2007-12-19 Robert Dewar <dewar@adacore.com>
12327 * exp_ch9.adb (Null_Statements): Moved to library level
12328 (Trivial_Accept_OK): New function
12329 (Expand_Accept_Declaration): Use Trivial_Accept_OK
12330 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
12332 2007-12-19 Robert Dewar <dewar@adacore.com>
12334 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
12335 in complex case where array is Volatile.
12337 2007-12-19 Ed Schonberg <schonberg@adacore.com>
12339 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
12340 properly the Ada2005 rules concerning when the current instance of a
12341 record type is aliased.
12343 2007-12-19 Ed Schonberg <schonberg@adacore.com>
12345 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
12346 mangled declaration
12347 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
12349 (P_Variant_Part): Cleaner patch for parenthesized discriminant
12351 2007-12-19 Vincent Celier <celier@adacore.com>
12353 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
12354 package is not known
12356 * prj-attr.ads (Unknown_Package): New constant
12357 Do not crash when an unknown package is in several projects
12359 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
12362 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
12363 existing package Language_Processing.
12365 2007-12-19 Ed Schonberg <schonberg@adacore.com>
12366 Gary Dismukes <dismukes@adacore.com>
12367 Samuel Tardieu <sam@rfc1149.net>
12369 PR ada/15803, ada/15805
12370 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
12371 illegal access subtypes when there is a constrained partial view.
12372 (Check_For_Premature_Usage): New procedure inside
12373 Access_Subprogram_Declaration for checking that an access-to-subprogram
12374 type doesn't reference its own name within any formal parameters or
12375 result type (including within nested anonymous access types).
12376 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
12377 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
12378 context is an access_to_variable, the expression cannot be an
12379 access_to_constant.
12381 2007-12-19 Bob Duff <duff@adacore.com>
12383 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
12384 (Analyze_Concatenation): Use iteration instead of recursion in order
12385 to avoid running out of stack space for deeply nested concatenations.
12387 2007-12-19 Ed Schonberg <schonberg@adacore.com>
12388 Gary Dismukes <dismukes@adacore.com>
12390 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
12391 whose renamed entity is a subprogram that requires overriding.
12392 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
12393 issuing an error for premature usage and issue a message that says
12394 'type' rather than 'object'.
12396 2007-12-19 Gary Dismukes <dismukes@adacore.com>
12399 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
12400 presence of a statically tagged operand (Present (Static_Tag)) with
12401 test for Indeterm_Ancestor_Call when determining whether to propagate
12402 the static tag to tag-indeterminate operands (which forces dispatching
12404 (Check_Controlling_Formals): Ada2005, access parameters can have
12406 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
12407 not insert subprogram in list of primitive operations if already there.
12409 2007-12-19 Tristan Gingold <gingold@adacore.com>
12411 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
12414 2007-12-19 Thomas Quinot <quinot@adacore.com>
12416 Part of PR ada/33688
12417 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
12418 datagram info on Linux.
12420 2007-12-19 Vincent Celier <celier@adacore.com>
12422 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
12423 that the source path name is always found in the dependencies.
12425 2007-12-19 Robert Dewar <dewar@adacore.com>
12427 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
12428 Fix name of Wide_Wide_Latin_1/9 file names
12429 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
12430 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
12431 Add missing documentation for Ada.Command_Line.Response_File
12432 Update list of warning letters for Warnings pragma
12433 Add documentation for pragma Unmodified
12435 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
12437 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
12439 2007-12-17 Arnaud Charlet <charlet@adacore.com>
12441 * s-vxwork-alpha.ads: Removed, no longer used.
12443 2007-12-15 Jakub Jelinek <jakub@redhat.com>
12445 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
12447 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
12450 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
12451 mlib-tgt-specific.adb.
12453 2007-12-13 Bob Duff <duff@adacore.com>
12455 * trans.c (Attribute_to_gnu): Check for violations of the
12456 No_Implicit_Dynamic_Code restriction. This checking used to be done in
12457 the front end, but is moved here so we can make it more accurate.
12459 2007-12-13 Pascal Obry <obry@adacore.com>
12461 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
12462 version is provided for older GNU/Linux distribution not
12463 supporting thread affinity sets.
12465 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
12467 (bit_field): New packed boolean type used by cpu_set_t.
12468 (cpu_set_t): New type corresponding to the C type with
12469 the same name. Note that on the Ada side we use a bit
12470 field array for the affinity mask. There is not need
12471 for the C macro for setting individual bit.
12472 (pthread_setaffinity_np): New imported routine.
12474 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
12476 (Create_Task): Set the processor affinity mask if information
12479 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
12481 2007-12-13 Robert Dewar <dewar@adacore.com>
12483 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
12484 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
12485 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
12486 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
12487 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
12488 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
12489 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
12490 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
12491 for subprogram pointers.
12493 * g-ctrl_c.adb: New file.
12495 * g-ctrl_c.ads (Install_Handler): New body.
12497 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
12498 instead of obsolete function Is_Always_Inlined.
12499 (Freeze_Entity): check for tagged type in imported C subprogram
12500 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
12501 (Freeze_Entity): check for convention Ada subprogram pointer in
12502 imported C subprogram.
12503 (Freeze_Fixed_Point_Type): In the case of a base type where the low
12504 bound would be chopped off and go from negative to zero, force
12505 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
12506 bound) so that the size computation for the base type will take
12507 negative values into account.
12509 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
12510 Bob Duff <duff@adacore.com>
12511 Tristan Gingold <gingold@adacore.com>
12513 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12514 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
12515 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12516 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
12517 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
12518 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
12519 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
12520 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
12521 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
12522 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
12523 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
12524 (Always_Compatible_Rep): New flag to control trampolines globally.
12525 (Dynamic_Trampolines_Used): New flag for implementing the
12526 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
12527 and not yet set correctly for some targets).
12529 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
12530 Simply indirectly call s-stchop when a task is created.
12533 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
12534 appears as an argument (entries A) in an ALI file.
12536 * fe.h (Stack_Check_Limits): Declare new target parameter.
12537 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
12539 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
12540 This variable is declared in C to be sure not subject to elaboration
12542 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
12545 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
12546 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
12548 * s-stchop.ads: Add comments.
12550 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
12551 limit method of stack checking.
12553 * s-stchop-limit.ads: New file.
12555 2007-12-13 Robert Dewar <dewar@adacore.com>
12557 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
12558 a-cihama.adb, g-awk.adb,
12559 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
12562 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
12564 * sem.adb: Update handling of assigned value/unreferenced warnings
12566 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
12568 * lib-xref.ads: Improve documentation for k xref type
12571 Update handling of assigned value/unreferenced warnings
12572 (Generate_Reference): Warning for reference to entity for which a
12573 pragma Unreferenced has been given should be unconditional.
12574 If the entity is a discriminal, mark the original
12575 discriminant as referenced.
12577 * sem_warn.ads, sem_warn.adb
12578 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
12579 no entities referenced in package
12580 (Check_One_Unit): Don't give message about no entities referenced in
12581 a package if a pragma Unreferenced has appeared.
12582 Handle new warning flag -gnatw.a/-gnatw.A
12583 Update handling of assigned value/unreferenced warnings
12585 * atree.h: Add flags up to Flag247
12586 (Flag231): New macro.
12588 2007-12-13 Jose Ruiz <ruiz@adacore.com>
12590 * adaint.h: (__gnat_plist_init): Not defined for RTX.
12592 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
12595 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
12596 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
12597 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
12598 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
12601 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
12603 * sysdep.c (winflush_function for RTX): Procedure that does nothing
12604 since we only have problems with Windows 95/98, which are not
12606 (__gnat_ttyname): Return the empty string on Nucleus, just as
12609 2007-12-13 Robert Dewar <dewar@adacore.com>
12611 * a-textio.adb, a-textio.ads:
12612 Extensive changes to private part for wide character encoding
12614 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
12615 (Look_Ahead): Fix mishandling of encoded sequences
12616 Move declaration of Wch_Con to private part (should not be visible)
12618 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
12619 UTF-8. Probably this is never used, but if it is, brackets is
12622 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
12623 setting wide character encoding for no main program case and when
12624 encoding is specified using -W?
12625 Initialize stack limit of environment task if stack limit method of
12626 stack checking is enabled.
12627 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
12628 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
12629 (Get_Main_Unit_Name): New function.
12630 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
12631 (Gen_Output_File): Set Bind_Main_Program to True for .NET
12633 * bindusg.adb: Add line for -Wx switch
12635 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
12637 Add new useful constant WC_Longest_Sequences
12639 * switch-b.adb: Clean up handling of -Wx switch
12640 For -gnatWx, set Wide_Character_Encoding_Method_Specified
12642 * switch-c.adb: -gnatg activates warning on assertion errors
12643 For -gnatWx, set Wide_Character_Encoding_Method_Specified
12645 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
12647 2007-12-13 Robert Dewar <dewar@adacore.com>
12648 Ed Schonberg <schonberg@adacore.com>
12650 * a-ngcoty.adb: New pragma Fast_Math
12652 * opt.adb: New pragma Fast_Math
12655 Add Implemented_By_Entry to the list of pragmas which do not require any
12656 special processing.
12657 (Favor_Top_Level): New pragma.
12658 New pragma Fast_Math
12660 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
12661 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
12662 Expand_Allocator_Expression): Take into account VM_Target
12663 (Expand_Attribute, case 'Identity): Handle properly the case where
12664 the prefix is a task interface.
12665 New pragma Fast_Math
12667 * par.adb (Next_Token_Is): New function
12668 (P_Pragma): Add Skipping parameter
12669 (U_Left_Paren): New procedure
12670 (U_Right_Paren): New procedure
12671 New pragma Fast_Math
12673 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
12675 New pragma Fast_Math
12677 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
12678 Implemented_By_Entry.
12679 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
12680 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
12681 items, since it can apply to more than one overloadable entity. Set
12682 new flag Has_Pragma_Inline_Always for Inline_Always case.
12683 (Analyze_Pragma, case Complex_Representation): Improve error message.
12684 (Analyze_Pragma, case Assert): When assertions are disabled build the
12685 rewritten code with Sloc of expression rather than pragma, so new
12686 warning about failing is not deleted.
12687 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
12688 protected types and update error message to reflect that. Test whether
12689 the protected type is allowed for the pragma (an error is issued if the
12690 type has any entries, or components that do not have preelaborable
12692 New pragma Fast_Math
12693 (Analyze_Pragma, case No_Return): Handle generic instance
12695 * snames.h, snames.ads, snames.adb:
12696 Add new predefined name for interface primitive _Disp_Requeue.
12697 New pragma Fast_Math
12699 * a-tags.ads, a-tags.adb: New calling sequence for
12700 String_To_Wide_[Wide_]String
12701 (Secondary_Tag): New subprogram.
12703 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
12705 New calling sequence for String_To_Wide_[Wide_]String
12706 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
12707 the use of the secondary stack for image routines.
12709 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
12710 calling sequence for String_To_Wide_[Wide_]String
12712 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
12714 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
12715 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12717 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
12718 (P_Formal_Part): Use Skipping parameter in P_Pragma call
12719 to improve error recovery
12721 * par-util.adb (Next_Token_Is): New function
12722 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
12724 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
12725 semicolon if missing
12726 (P_Pragma): Implement new Skipping parameter
12727 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12728 Fix location of flag for unrecognized pragma message
12730 * par-tchk.adb (U_Left_Paren): New procedure
12731 (U_Right_Paren): New procedure
12733 2007-12-13 Geert Bosch <bosch@adacore.com>
12736 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
12737 the second or later Scaled_Divide would omit leading zeroes,
12738 resulting in too few digits produced and a Layout_Error as result.
12739 (Put): Initialize Pos.
12741 2007-12-13 Robert Dewar <dewar@adacore.com>
12743 atree.ads, atree.adb (Flag231..Flag247): New functions
12744 (Set_Flag231..Set_Flag247): New procedures
12745 (Basic_Set_Convention): Rename Set_Convention to be
12746 Basic_Set_Convention
12747 (Nkind_In): New functions
12748 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12750 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
12752 of obsolete function Is_Always_Inlined
12753 (Register_Predefined_DT_Entry): Initialize slots of the second
12754 secondary dispatch table.
12755 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12756 (Expand_N_Function_Call): Remove special provision for stack checking.
12758 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
12759 Include _Disp_Requeue in the list of predefined operations.
12760 (Find_Interface_ADT): Modified to fulfill the new specification.
12761 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12763 * par-ch4.adb, nlists.ads, nlists.adb:
12764 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
12766 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
12767 Fix location of flag for unrecognized pragma message
12769 * sem_ch7.adb: Use Nkind_In
12771 2007-12-13 Vincent Celier <celier@adacore.com>
12774 Indicate what flags are used by the Project Manager, gprbuild and
12776 (Opt.Follow_Links_For_Dirs): New flag
12777 (Warn_On_Assertion_Failure): New flag
12778 (Wide_Character_Encoding_Method_Specified): New flag
12779 (Suppress_All_Inlining): New switch set by -fno-inline
12780 (Real_VMS_Target): New flag
12781 New pragma Fast_Math
12783 2007-12-13 Robert Dewar <dewar@adacore.com>
12785 * back_end.adb: Recognize -fno-inline
12787 2007-12-13 Robert Dewar <dewar@adacore.com>
12789 * checks.adb: Fix optimization problem with short-circuited form
12791 2007-12-13 Bob Duff <duff@adacore.com>
12793 * clean.adb (Usage): Add line for -aP
12794 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
12795 with a parameter "procedure Usage", instead of passing a pointer to a
12796 procedure. This is to eliminate trampolines (since the Usage procedure
12797 is often nested in a main procedure, and it would be inconvenient to
12800 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
12801 to be generic, with a parameter "procedure Callback (...)", instead of
12802 passing a pointer to a procedure. This is to eliminate trampolines
12803 (since the Callback procedure is usually nested).
12805 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
12806 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
12807 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
12809 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
12810 Use the generic Heap_Sort_G instead of Heap_Sort_A.
12812 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12814 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
12815 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
12816 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
12817 (Renamed_In_Spec): New flag
12818 (Has_Pragma_Inline_Always): New flag
12819 Add missing doc for pragma Obsolescent_Warning
12820 Add missing doc for 17 additional unused flags (230-247)
12821 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
12822 Alphabetize with clauses.
12823 Separate Is_Thunk and Has_Thunks flags
12824 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
12825 (Related_Interface): Renamed to Related_Type.
12826 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
12827 (Set_Is_Flag): Restrict the assertion.
12829 2007-12-13 Vincent Celier <celier@adacore.com>
12831 * errout.adb (Output_Source_Line): Do not keep a trailing space after
12832 the source line number if the source line is empty.
12834 2007-12-13 Geert Bosch <bosch@adacore.com>
12836 * eval_fat.adb (Decompose_Int): Handle argument of zero.
12837 (Compose): Remove special casing of zero.
12838 (Exponent): Likewise.
12839 (Fraction): Likewise.
12840 (Machine): Likewise.
12841 (Decompose): Update comment.
12843 2007-12-13 Ed Schonberg <schonberg@adacore.com>
12845 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
12846 limited ancestor part, initialize controllers of enclosing record
12847 before expanding ancestor aggregate.
12848 (Gen_Assign): If a component of the aggregate is box-initialized, add
12849 code to call Initialize if the component is controlled, and explicit
12850 assignment of null if the component is an access type.
12852 Handle properly aggregates for limited types that appear in object
12853 declarations when the aggregate contains controlled values such as
12855 When expanding limited aggregates into individual components, do not
12856 call Adjust on controlled components that are limited.
12858 2007-12-13 Ed Schonberg <schonberg@adacore.com>
12860 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
12862 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12864 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
12865 predefined primitive _Disp_Requeue.
12866 (Make_Predefined_Primitive_Specs): Create the spec for predefined
12867 primitive _Disp_Requeue.
12868 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
12869 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
12870 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
12871 an interface type. In case of limited interfaces we now declare all the
12872 predefined primitives associated with synchronized interfaces as
12874 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
12876 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
12877 tagged type is an interface type and there is no user-defined equality
12879 Add also bodies of predefined primitives associated with synchronized
12881 (Freeze_Record_Type): Do not build bodies of predefined primitives of
12882 interface types because they are now defined abstract.
12883 Add missing documentation.
12884 (Expand_Record_Controller): Update occurrence of Related_Interface
12886 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
12887 (Expand_N_Object_Declaration): Take into account VM_Target when handling
12888 class wide interface object declaration.
12889 (Expand_Previous_Access_Type): Do not create a duplicate master entity
12890 if the access type already has one.
12891 (Expand_N_Object_Declaration): Defend against attempt to validity check
12892 generic types. Noticed for -gnatVcf specified with previous errors.
12894 2007-12-13 Arnaud Charlet <charlet@adacore.com>
12896 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
12897 Expand_Allocator_Expression): Take into account VM_Target
12899 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
12900 secondary stack when VM_Target /= No_VM
12902 2007-12-13 Javier Miranda <miranda@adacore.com>
12903 Ed Schonberg <schonberg@adacore.com>
12905 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
12906 Is_Complation_Unit by Is_Library_Level_Entity in the code
12907 that decides if the static dispatch tables need to be built.
12908 (Wrap_Transient_Declaration): Do not generate a finalization call if
12909 this is a renaming declaration and the renamed object is a component
12910 of a controlled type.
12912 2007-12-13 Gary Dismukes <dismukes@adacore.com>
12914 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
12915 In the case where the renamed subprogram is a dereference, call
12916 Force_Evaluation on the prefix.
12918 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12919 Ed Schonberg <schonberg@adacore.com>
12921 * exp_ch9.adb (Expand_N_Asynchronous_Select,
12922 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
12923 comment reformatting.
12924 (Set_Privals): Inherit aliased flag from formal. From code reading.
12925 (Build_Simple_Entry_Call): Out parameters of an access type are passed
12926 by copy and initialized from the actual. This includes entry parameters.
12927 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
12928 and Ada 2005 models of requeue.
12929 (Null_Statements): Still connsider do-end block null if it contains
12930 Unreferenced and Warnings pragmas.
12931 (Expand_N_Accept_Statement): Do not optimize away null do end if
12932 dispatching policy is other than defaulted.
12933 (Expand_N_Timed_Entry_Call): When the triggering statement is a
12934 dispatching call, manually analyze the delay statement.
12935 (Find_Parameter_Type): Move subprogram to Sem_Util.
12937 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12938 Javier Miranda <miranda@adacore.com>
12940 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
12941 _Disp_Requeue occupies dispatch table slot number 15. Move
12942 _Disp_Timed_Select to slot 16.
12943 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
12944 generate the spec and body of _Disp_Reqeueue.
12945 (Make_DT): Build and initialize the second dispatch table.
12946 Handle initialization of RC_Offset when the parent
12947 is a private type with variable size components.
12948 (Make_Secondary_DT): Complete documentation. Add support to
12949 initialize the second dispatch table.
12950 (Make_Tags): Generate the tag of the second dispatch table.
12951 (Register_Primitive): Add support to register primitives in the
12952 second dispatch table.
12954 2007-12-13 Pascal Obry <obry@adacore.com>
12956 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
12957 Windows. This signal is used by gnatmake to kill child processes for
12960 2007-12-13 Javier Miranda <miranda@adacore.com>
12962 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
12963 support for generic dispatching constructor calls in which we need to
12964 locate the tag of a secondary dispatch table associated with an
12965 interface type to properly dispatch the call.
12966 (Expand_N_Attribute_Reference [case Address],
12967 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
12968 handling of VM targets.
12970 2007-12-13 Robert Dewar <dewar@adacore.com>
12971 Ed Schonberg <schonberg@adacore.com>
12973 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
12976 * ug_words: Add entries for -gnatw.a -gnatw.A
12978 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
12979 literal is a subtype with non-static constraints, use the base type of
12980 the context as the base of the string subtype, to prevent type
12981 mismatches in gigi.
12982 (Resolve_Actuals): If the actual is an entity name, generate a
12983 reference before the actual is resolved and expanded, to prevent
12984 spurious warnings on formals of enclosing protected operations.
12985 (Analyze_Overloaded_Selected_Component): If type of prefix if
12986 class-wide, use visible components of base type.
12987 (Resolve_Selected_Component): Ditto.
12988 (Resolve_Short_Circuit): Detect case of pragma Assert argument
12989 evaluating to False, and issue warning message.
12991 * usage.adb: Add lines for -gnatw.a and -gnatw.A
12993 2007-12-13 Emmanuel Briot <briot@adacore.com>
12995 * g-calend.ads (No_Time): New constant, to represent an uninitialized
12998 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
13000 (Month_Name_To_Number): New subprogram
13002 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
13003 letter to upper-case.
13005 2007-12-13 Robert Dewar <dewar@adacore.com>
13006 Ed Schonberg <schonberg@adacore.com>
13008 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
13010 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
13011 context is a limited view, use non-limited view when available. If the
13012 non-limited view is an unconstrained array, this enforces consistency
13013 requirements in 3.10.2 (27).
13014 (Layout_Type): For an access type whose designated type is a limited
13015 view, examine its declaration to determine if it is an unconstrained
13016 array, and size the access type accordingly.
13017 (Layout_Type): Do not force 32-bits for convention c subprogram
13018 pointers in -gnatdm mode, only if real vms target.
13020 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
13021 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
13022 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
13023 violations of the No_Implicit_Dynamic_Code restriction.
13024 (Resolve_Attribute, case 'Access): If designated type of context is a
13025 limited view, use non-limited view when available. If the non-limited
13026 view is an unconstrained array, this enforces consistency requirements
13028 (Layout_Type): For an access type whose designated type is a limited
13029 view, examine its declaration to determine if it is an unconstrained
13030 array, and size the access type accordingly.
13032 2007-12-13 Vincent Celier <celier@adacore.com>
13034 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
13035 object directory of main project does not exist.
13036 On VMS, correctly set then environment variable for the source
13039 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
13041 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
13042 set to True this procedure will create the value of type REG_EXPAND_SZ.
13043 It was only possible to create REG_SZ values before.
13045 2007-12-13 Robert Dewar <dewar@adacore.com>
13047 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
13048 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
13049 namet-sp.adb, namet-sp.ads: New files.
13051 * g-speche.adb: Use generic routine in g-spchge
13053 * s-wchcnv.ads, s-wchcnv.adb:
13054 Minor code cleanup (make formal type consistent with spec)
13056 * namet.adb: Update comments.
13058 * par-endh.adb (Evaluate_End_Entry): Use new
13059 Namet.Sp.Is_Bad_Spelling_Of function
13061 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
13063 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
13064 ancestor is an access type initialized with a box, set its type
13065 explicitly, for use in subsequent expansion.
13066 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
13069 2007-12-13 Robert Dewar <dewar@adacore.com>
13071 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
13074 2007-12-13 Robert Dewar <dewar@adacore.com>
13076 * inline.adb (Back_End_Cannot_Inline): Use new flag
13077 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
13079 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
13080 Has_Pragma_Inline_Always instead.
13081 of obsolete function Is_Always_Inlined
13082 (Build_Body_To_Inline): Same change
13083 (Cannot_Inline): Same change
13084 Do not give warning on exception raise in No_Return function
13086 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
13087 component has two inconsistent component clauses in the same record
13088 representation clause, favor the message that complains about
13089 duplication rather than inconsistency.
13091 (Record_Representation_Clause): Do not warn on missing component
13092 clauses for inherited components of a type extension.
13093 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
13094 an overloadable item if it is a pragma that can apply to multiple
13095 overloadable entities (e.g. Inline) because a pragma cannot be on
13096 more than one chain at a time.
13097 (Validate_Unchecked_Conversion): Add code to warn on unchecked
13098 conversion where one of the operands is Ada.Calendar.Time.
13099 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
13100 For now, ignore Component_Size clause on VM targets, as done for
13103 2007-12-13 Emmanuel Briot <briot@adacore.com>
13104 Vincent Celier <celier@adacore.com>
13106 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
13108 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
13110 (Hash): Move instantiation of System.HTable.Hash from spec to body
13111 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
13112 systems, since we do not need to recompute the Name_Id for the canonical
13114 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
13115 as a parameter. This parameter is in fact always "ada" in all calls, and
13116 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
13117 while loading a project with 40000 files
13119 * prj-attr.adb: Fix name of attribute Dependency_Driver
13120 Change the kind of indexing for attribute Root
13122 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
13123 variables already declared, in case constructions.
13125 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
13126 Current_Object_Path_File to No_Path.
13128 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
13129 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
13131 * prj-makr.adb: new parameter Current_Dir
13133 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
13134 Ada sources when language is not Ada.
13135 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
13136 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
13137 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
13138 (Locate_Directory): Always resolve links when computing Canonical_Path
13139 (Look_For_Sources): Make sure that Name_Buffer contains the file name
13140 in Source_Files before checking for the presence of a directory
13142 Optimize calls to Name_Find when on case sensitive systems.
13143 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
13145 (Prj.Nmsc.Check): new parameter Current_Dir
13146 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
13147 cannot be empty and the spec suffix cannot be the same as the body or
13149 (Get_Unit): When a file name can be of several unit kinds (spec, body or
13150 subunit), always consider the longest suffix.
13151 (Check_Configuration): Do not issue an error if there is no compiler
13152 for a language. Just issue a warning and ignore the sources for the
13154 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
13156 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
13157 (Unit_Exceptions): New hash table
13158 (Check_Naming_Schemes): Check if a file that could be a unit because of
13159 the naming scheme is not in fact a source because there is an exception
13161 (Look_For_Sources): Put the unit exceptions in hash table
13163 (Get_Unit_Exceptions): Give initial value No_Source to local variable
13164 Other_Part to avoid exception when code is compiled with validity
13166 (Get_Sources_From_File): Check that there is no directory information
13168 (Look_For_Sources): Check that there is no directory information in the
13169 list of file names in Source_Files.
13170 (Look_For_Sources): In multi-language mode, do not allow exception file
13171 names that are excluded.
13172 (Excluded_Sources_Htable): New hash table
13173 (Search_Directories.Check_File): New procedure to simplify
13174 Search_Directories.
13175 (Search_Directories): Do not consider excluded sources
13176 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
13177 Search_Directories.
13178 (Get_Exceptions): Set component Lang_Kind of Source_Data
13179 (Get_Unit_Exceptions): Ditto
13180 (Search_Directories): Ditto
13182 * prj-pars.adb: new parameter Current_Dir
13184 * prj-part.ads, prj-part.adb:
13185 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
13186 (Opt.Follow_Links_For_Dirs): New flag
13187 (Project_Path_Name_Of): Cache information returned by this routine as
13188 Locate_Regular_File is a costly routine. The code to output a log
13189 information and the effective call to Locate_Regular_File is now
13190 factorized into a routine (code clean-up).
13191 (Parse, Parse_Single_Project): new parameter Current_Dir
13192 When main project file cannot be found, indicate in the error
13193 message the project path that was used to do the search.
13195 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
13196 (Prj.Proc.Process*): new parameter Current_Dir
13198 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
13200 2007-12-13 Bob Duff <duff@adacore.com>
13202 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
13203 procedure to be called from the back end to check the
13204 No_Implicit_Dynamic_Code restriction.
13206 2007-12-13 Arnaud Charlet <charlet@adacore.com>
13208 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
13209 Fixes another case where RTE_Available_Call was ignored instead of being
13210 taken into account.
13211 (Load_Fail): Ditto.
13213 * rtsfind.ads: Add new entries.
13215 2007-12-13 Robert Dewar <dewar@adacore.com>
13217 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
13218 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
13220 * scn.adb: Implement BOM recognition
13222 2007-12-13 Thomas Quinot <quinot@adacore.com>
13223 Ed Schonberg <schonberg@adacore.com>
13225 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
13226 subprogram body that acts as its own spec may not have a non-private
13227 WITH clause on a private sibling.
13228 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
13229 child unit is a renaming, create an implicit with_clause on that
13230 parent, and not on the unit it renames, to prevent visibility errors
13231 in the current unit.
13233 2007-12-13 Ed Schonberg <schonberg@adacore.com>
13235 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
13236 renaming declaration, use the Slocs of the formal parameters from the
13237 declaration of the formal subprogram when creating the formal parameter
13238 entities in the renaming declaration.
13239 (Analyze_Formal_Type_Declaration): Change the placement of the error
13240 message concerning illegal known discriminants. It is now posted on the
13241 type rather than on the first discriminant. This change ensures early
13243 (Freeze_Subprogram_Body): If the generic subprogram is nested within
13244 the package body that contains the instance, do not generate an
13245 out-of-place freeze node for the enclosing package.
13246 (Collect_Previous_Instantiations): Ignore internal instantiations
13247 generated for formal packages.
13248 (Validate_Derived_Type_Instance): Add a check that when a formal
13249 derived type is Known_To_Have_Preelab_Init then the actual type must
13250 have preelaborable initialization, and issue an error when this
13251 condition is violated.
13253 2007-12-13 Robert Dewar <dewar@adacore.com>
13255 * s-imenne.adb, s-imenne.ads: New files.
13257 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
13258 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
13259 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
13260 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
13261 s-imgwch.ads: New calling sequence for Image routines to avoid sec
13264 2007-12-13 Javier Miranda <miranda@adacore.com>
13265 Ed Schonberg <schonberg@adacore.com>
13267 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
13268 generation of spurious error if parent is an interface type; caused
13269 because predefined primitive bodies will be generated later by
13270 Freeze_Record_Type.
13271 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
13273 (Derive_Subprograms): Handle derivations of predefined primitives
13274 after all the user-defined primitives to ensure that they are
13275 found in proper order in instantiations.
13276 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
13277 of Related_Interface to Related_Type.
13278 (Record_Type_Declaration): Minor reordering of calls to decorate the
13279 Tag component because the entity must have set its Ekind attribute
13280 before setting its Is_Tag attribute.
13281 (Analyze_Subtype_Declaration): In the case of subtypes with
13282 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
13284 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
13285 Ed Schonberg <schonberg@adacore.com>
13287 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
13288 statement to the list of contexts where a selected component with a
13289 concurrent tagged type prefix should yield a primitive operation.
13290 (Find_Primitive_Operation): Handle case of class-wide types.
13291 (Analyze_Overloaded_Selected_Component): If type of prefix is
13292 class-wide, use visible components of base type.
13293 (Resolve_Selected_Component): Ditto.
13294 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
13295 formal of a generic subprogram. find candidate interpretations by
13296 scanning the list of generic formal declarations.:
13297 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
13298 type from a limited_with_clause, and the full view is available, use it
13299 for subsequent semantic checks.
13300 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
13301 (Find_Primitive_Operation): New function.
13302 (Analyze_Overloaded_Selected_Component): insert explicit dereference
13303 only once if several interpretations of the prefix yield an access type.
13304 (Try_Object_Operation): Code and comment cleanup.
13305 (Analyze_Selected_Component): Reorder local variables. Minot comment and
13306 code reformatting. When the type of the prefix is tagged concurrent, a
13307 correct interpretation might be available in the primitive and
13308 class-wide operations of the type.
13310 2007-12-13 Robert Dewar <dewar@adacore.com>
13311 Ed Schonberg <schonberg@adacore.com>
13313 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
13314 renaming entry as subprogram using rename-as-body if subprogram spec
13316 (Use_One_Type): The clause is legal on an access type whose designated
13317 type has a limited view.
13318 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
13319 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
13320 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
13321 operation denoted by a selected component.
13322 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
13323 it can be an expression, possibly overloaded, that returns a task or
13326 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
13327 Gary Dismukes <dismukes@adacore.com>
13329 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
13330 requeue statement is dispatching. Do not emit an error when the name is
13331 not an entry and the context is a dispatching select. Add code to
13332 perform subtype conformance between the formals of the current entry
13333 and those of the target interface primitive.
13334 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
13335 Timed_Entry_Call): Analyze the triggering statement as the first step of
13336 the processing. If this is a dispatching select, postpone the analysis
13337 of all select statements until the Expander transforms the select. This
13338 approach avoids generating duplicate identifiers after the Expander has
13339 replicated some of the select statements. In case the Expander is
13340 disabled, perform regular analysis.
13341 (Check_Triggering_Statement): New routine.
13342 (Analyze_Requeue): Exclude any interpretations that are not entries when
13343 checking overloaded names in a requeue. Also test type conformance for
13344 matching interpretations rather than requiring subtype conformance at
13345 that point to conform with the RM's resolution rule for requeues.
13347 2007-12-13 Ed Schonberg <schonberg@adacore.com>
13349 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
13350 inherited operation is a defaulted tag-indeterminate call, and there is
13351 a statically tagged actual, use the static tag as a controlling actual
13352 for the defaulted actual.
13354 2007-12-13 Geert Bosch <bosch@adacore.com>
13356 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
13357 context, so do not call Check_Non_Static_Context.
13359 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
13361 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
13362 whether formal E is an entity which may have parameters.
13364 2007-12-13 Bob Duff <duff@adacore.com>
13365 Javier Miranda <miranda@adacore.com>
13366 Robert Dewar <dewar@adacore.com>
13368 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
13369 (Set_Convention): New procedure to set the Convention flag, and in
13370 addition make sure the Favor_Top_Level flag is kept in sync (all
13371 foreign-language conventions require Favor_Top_Level = True).
13372 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
13374 (Collect_Interfaces_Info): Minor update to handle the two secondary
13375 dispatch tables. Update occurrence of Related_Interface to Related_Type.
13376 (Generate_Parent_Ref): Add parameter to specify entity to check
13377 (Is_Preelaborable_Expression): Allow the name of a discriminant to
13378 initialize a component of a type with preelaborable initialization.
13379 This includes the case of a discriminal used in such a context.
13380 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
13381 latest Ada 2005 rules about renaming and 'Access of
13382 discriminant-dependent components.
13383 (Check_Nested_Access): Add handling when there are no enclosing
13384 subprograms (e.g. case of a package body).
13385 (Find_Parameter_Type): Factor routine from several other compiler files.
13386 Remove routine from Find_Overridden_Synchronized_Primitive.
13388 2007-12-13 Thomas Quinot <quinot@adacore.com>
13390 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
13391 an invalid access to an uninitialized slot in the
13392 Source_File_Index_Table.
13394 2007-12-13 Thomas Quinot <quinot@adacore.com>
13396 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
13398 2007-12-13 Bob Duff <duff@adacore.com>
13400 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
13401 access-to-subprogram types in this package.
13403 2007-12-13 Olivier Hainque <hainque@adacore.com>
13405 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
13406 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
13407 Stack_Overlay_Address and document that we are using an internal
13409 (Byte_Size, Unsigned_32_Size): Remove, now useless.
13410 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
13411 consistently throughout the various implementation pieces.
13413 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
13414 overlay we are using to fill the stack area with patterns.
13415 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
13416 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
13417 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
13419 2007-12-13 Robert Dewar <dewar@adacore.com>
13421 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
13423 2007-12-13 Arnaud Charlet <charlet@adacore.com>
13426 (Create_Task): Take into account tasks created by foreign threads.
13427 Code clean up: use constants instead of hard coded values.
13429 2007-12-13 Robert Dewar <dewar@adacore.com>
13431 * styleg.adb (Check_Comment): More liberal rules for comment placement
13433 2007-12-13 Olivier Hainque <hainque@adacore.com>
13435 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
13436 of Procedure Value instead of Frame Pointer as the invocation
13437 identifier associated with the instruction pointer in each traceback
13440 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
13441 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
13442 Pointer as the invocation identifier passed to tbk$symbolize.
13444 * s-traent-vms.ads, s-traent-vms.adb
13445 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
13446 Procedure Value instead of Frame Pointer as the invocation identifier
13447 passed to tbk$symbolize.
13449 2007-12-13 Robert Dewar <dewar@adacore.com>
13451 * tbuild.ads, tbuild.adb:
13452 Fix location of flag for unrecognized pragma message
13454 2007-12-13 Robert Dewar <dewar@adacore.com>
13456 * treepr.ads, treepr.adb: (pl): implement use of positive value
13459 2007-12-13 Robert Dewar <dewar@adacore.com>
13461 * xeinfo.adb: Remove warnings
13462 * xnmake.adb: Remove warnings
13463 * xsinfo.adb: Remove warnings
13464 * xtreeprs.adb: Remove warnings
13465 * xsnames.adb: Remove warnings
13467 * a-ngcoar.adb: Fix typo.
13468 * s-interr.adb: Minor reformatting
13469 * env.c: Minor reformatting.
13470 * g-bytswa.adb: Minor reformatting.
13471 * g-rannum.ads: Minor documentation improvements
13472 * s-tasinf-mingw.adb: Minor header fix
13473 * a-clrefi.adb: Minor reformatting
13474 * g-sttsne.ads: Minor documentation improvement
13475 * g-sttsne-locking.ads: Minor documentation improvement
13476 * g-soliop-solaris.ads: Minor documentation improvement
13477 * g-soliop-mingw.ads: Minor documentation improvement
13478 * g-soliop.ads: Minor documentation improvement
13479 * exp_aggr.ads: Minor reformatting
13480 * debug.adb: Add documentation for the gprbuild debug flags
13481 * exp_ch2.adb: Use Nkind_In to simplify code throughout
13482 * exp_pakd.adb: Minor reformatting
13484 * g-altive.ads, g-alleve.adb: Remove assertions.
13485 Add comment about minor differences between targets regarding
13486 floating-point operations.
13488 * g-thread.adb: Remove pragma unreferenced.
13489 * lib.ads: Minor reformatting
13490 * par-ch9.adb: Minor reformatting of error messages
13491 * sem_case.adb: Minor reformatting
13492 * s-fileio.adb: Minor reformattinng
13493 * s-vmexta.ads: Minor typo
13495 Take into account 'Success' value as per new GNAT warning.
13497 2007-12-13 Vincent Celier <celier@adacore.com>
13499 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
13502 2007-12-13 Robert Dewar <dewar@adacore.com>
13503 Bob Duff <duff@adacore.com>
13505 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
13506 Document that suffixes may be terminations of each others
13507 Add doc for -gnatw.a and -gnatw.A
13508 Document gnatbind -Wx switch
13509 Document BOM recognition
13510 Document pragma Implemented_By_Entry.
13511 Document new units.
13513 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
13514 Add doc for pragma Unreferenced suppressing no entities referenced msg
13515 Add documentation of GNAT.Directory_Operations.Iteration
13516 Add documentation of GNAT.Random_Numbers
13517 Add documentation for pragma Shared.
13518 Correct documentation for Bit_Order
13519 Add documentation for the Pool_Address attribute.
13520 Fix and improve documentation of pragma machine_attribute.
13521 New pragma Fast_Math
13522 Document BOM recognition
13524 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
13525 Add /Wide_Character_Encoding for binder
13526 Add qualifier for the new gnatpp option --no-separate-loop-then
13528 2007-12-13 Matthew Heaney <heaney@adacore.com>
13530 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
13531 which generic formal operations are called for each operation.
13533 2007-12-13 Olivier Hainque <hainque@adacore.com>
13535 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
13536 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
13538 2007-12-13 Emmanuel Briot <briot@adacore.com>
13540 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
13541 Reference_Dir unless we actually need it.
13543 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
13544 Tristan Gingold <gingold@adacore.com>
13546 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
13548 * s-osprim-vms.adb,
13549 a-calend-vms.adb: Remove pragma warning off and add pragma
13552 2007-12-13 Robert Dewar <dewar@adacore.com>
13554 * impunit.adb: Add entries for missing units
13556 * Makefile.rtl: Add new run-time units.
13558 * Make-lang.in: Update dependencies.
13560 2007-12-13 Bob Duff <duff@adacore.com>
13562 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
13563 types, set Can_Use_Internal_Rep appropriately, based on
13564 Always_Compatible_Rep_On_Target.
13566 2007-12-13 Gary Dismukes <dismukes@adacore.com>
13567 Arnaud Charlet <charlet@adacore.com>
13569 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
13570 it to the front end and setting the aamp_target environment variable
13571 to the switch's argument to ensure that gnaampbind and gnaamplink will
13572 take the specified library into account.
13573 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
13574 target, since the CIL compiler supports an "object" file (.il files).
13576 2007-12-13 Vincent Celier <celier@adacore.com>
13578 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
13579 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
13581 2007-12-13 Geert Bosch <bosch@adacore.com>
13583 * s-parame-vxworks.adb:
13584 Update comments to reflect usage of this package by Nucleus.
13586 2007-12-13 Arnaud Charlet <charlet@adacore.com>
13588 * i-vxwork.ads: Kill new warning on Convention C, since changing the
13589 spec would break code.
13591 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
13593 * system-vxworks-alpha.ads: Removed.
13595 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
13597 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
13599 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
13602 * sem_ch3.adb (Designates_T): New function.
13603 (Mentions_T): Factor reusable part of the logic into Designates_T.
13604 Consider non-access parameters and access and non-access result.
13605 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
13606 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
13608 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
13610 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
13613 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
13614 the new implementation of target-specific calls.
13616 2007-12-07 Olivier Hainque <hainque@adacore.com>
13618 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
13619 the designated full view, only follow a second level Full_View link
13620 for Non_Limited_Views of from_limited_with references.
13622 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
13625 * sem_ch6.adb (Process_Formals): Prevent an access type formal
13626 to be initialized with an access to constant object.
13628 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
13629 when an access to constant is used to initialize an access
13633 * a-direct.adb (Compose): Containing_Directory can be an empty string.
13635 2007-12-07 Olivier Hainque <hainque@adacore.com>
13638 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
13639 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
13640 this is from an alignment clause on the GNAT entity.
13641 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
13642 to distinguish the case where we set it from the type's alignment.
13643 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
13644 whether this alignment was set from an explicit alignment clause.
13646 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
13648 * decl.c (make_packable_type): Revert last change.
13649 (gnat_to_gnu_field): Avoid setting size and position multiple times.
13650 * utils.c (finish_record_type): Retrieve the real name of the type.
13652 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
13654 * trans.c (lvalue_required_p): Take base node directly instead
13655 of its parent. Rename second parameter to 'gnu_type'.
13656 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
13657 <N_Slice>: Likewise.
13658 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
13659 Adjust calls to lvalue_required_p.
13661 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
13664 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
13665 parameters of an entry call.
13667 2007-12-03 Robert Dewar <dewar@adacore.com>
13668 Samuel Tardieu <sam@rfc1149.net>
13671 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
13672 of variables declared in a library-level package.
13674 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
13676 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
13677 of Empty_String'Unchecked_Access.
13679 * Makefile.in: Add support for sh4-linux.
13681 * system-linux-sh4.ads: New file.
13683 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
13686 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
13687 and its argument must not be free()ed.
13689 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
13691 * decl.c (make_packable_type): Retrieve the real name of the type.
13692 (maybe_pad_type): Simplify similar code.
13694 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
13697 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
13698 than an identifier is used after "case" in a variant_part.
13701 * par-ch4.adb (Is_Parameterless_Attribute): New map.
13702 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
13703 attribute name or not depending on the new map.
13705 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
13706 returning a string or a type will not be called with improper
13709 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
13711 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
13714 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
13715 Signal an error when attribute argument is a fixed-point value of
13719 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
13720 a derived ordinary fixed point type.
13722 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
13723 RM_Size when a Small clause is found.
13725 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
13728 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
13729 Pass 'false' for the new allocate_struct_function parameter.
13730 * utils.c (build_function_stub): Likewise.
13732 2007-11-25 Richard Guenther <rguenther@suse.de>
13734 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
13735 (gnat_poplevel): Likewise.
13737 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
13739 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
13740 strict alignment, no alignment clause and a known static size, cap
13741 the type alignment to the greatest power of 2 factor of the size.
13742 (gnat_to_gnu_field): If the field has a component clause, is aliased
13743 or of a type with strict alignment, require that its size be equal to
13745 (validate_size): Use the type size as the minimum size for a type with
13748 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
13750 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
13751 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
13752 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
13753 Use 'Access instead of 'Unchecked_Access in second and third
13754 arguments of pthread_sigmask.
13756 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
13758 * decl.c (ceil_alignment): New function.
13759 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
13760 (make_packable_type): Likewise.
13762 2007-11-22 Olivier Hainque <hainque@adacore.com>
13764 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
13765 to fit in 80 columns.
13767 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
13769 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
13770 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
13772 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
13775 * misc.c (gnat_adjust_rli): Delete.
13776 (gnat_init): Do not initialize the translation code here.
13777 Do not call set_lang_adjust_rli.
13778 * trans.c (init_code_table): Make static.
13779 (gnat_init_stmt_group): Delete.
13780 (gigi): Initialize the translation code entirely here.
13781 Emit debug info for the common types here instead of...
13782 * utils.c (gnat_init_decl_processing): ...here.
13783 * gigi.h (init_code_table): Delete.
13784 (gnat_init_stmt_group): Likewise.
13786 2007-11-16 Olivier Hainque <hainque@adacore.com>
13788 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
13789 retrieving an allocator return value from a super-aligned address from
13791 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
13792 expect a super-aligned address for a fat or thin pointer.
13794 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
13796 * trans.c (call_to_gnu): Always set the source location on the call
13797 expression. If the function returns-by-target, also set it on the
13798 address expression.
13800 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
13802 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
13803 sections of non-supported Interix target.
13805 * s-osinte-interix.ads: Removed.
13807 * i-cstrin.ads (chars_ptr): Make it a C convention type.
13809 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
13811 * a-tasatt.adb: Add a comment at the beginning of the package
13812 explaining why in general 'Unchecked_Access must be used instead
13815 * sem_prag.adb (Process_Convention): Move the test for the
13816 entity on which the Convention pragma applies down to also
13817 forbid pragma Convention on enumeration literals reached
13820 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
13822 * a-tasatt.adb: Revert previous change for this file as it will
13823 generate an error when this package is instantiated from a
13826 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
13828 * a-tasatt.adb: Type Wrapper should be declared in comment instead
13829 of already declared type Node_Access.
13830 Use 'Access instead of 'Unchecked_Access when applicable. Local
13831 lifetime is the one of the package.
13832 (Set_Value): W is allocated on the heap.
13834 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
13836 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
13838 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
13841 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
13843 (elaboration code): Timer_Queue lifetime is the one of the
13846 * tracebak.c (i386 alternative): Remove useless comparaison
13847 which is always false; LOWEST_ADDRESS is 0 and is never greater
13848 than an unsigned integer.
13850 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
13851 embedded check for "Ada_Version >= Ada_05".
13853 2007-11-07 Olivier Hainque <hainque@adacore.com>
13855 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
13856 craft and expand comment.
13858 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
13860 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
13862 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
13864 * misc.c (gnat_handle_option): Replace call to abort with
13865 call to gcc_unreachable.
13866 (gnat_init): Likewise.
13867 (gnat_expand_expr): Likewise.
13868 (fp_prec_to_size): Likewise.
13869 (fp_size_to_prec): Likewise.
13871 2007-10-23 Richard Guenther <rguenther@suse.de>
13874 * tracebak.c: #undef abort after including system.h.
13876 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
13878 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
13879 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
13881 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
13883 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
13885 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
13886 Set the protection status of the guard page based on the value of On.
13888 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
13890 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
13891 (Exit_Task): Pass False to Hide_Yellow_Zone.
13893 2007-10-15 Robert Dewar <dewar@adacore.com>
13895 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
13896 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
13897 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
13898 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
13899 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
13900 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
13901 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
13902 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
13903 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
13904 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
13905 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
13906 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
13907 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
13908 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
13909 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
13910 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
13911 Minor reformatting.
13912 Add Unreferenced and Warnings (Off) pragmas for cases of
13913 variables modified calls where they are IN OUT or OUT parameters and
13914 the resulting values are not subsequently referenced. In a few cases,
13915 we also remove redundant code found by the new warnings.
13917 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
13918 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
13919 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
13920 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
13921 warning controlled by -gnatw.o that warns on cases of out parameter
13922 values being ignored.
13924 2007-10-15 Geert Bosch <bosch@adacore.com>
13926 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
13928 * expect.c: Initial port to arm-mentor-nucleus.
13929 Use kill for __gnat_kill() on VMS.
13931 2007-10-15 Emmanuel Briot <briot@adacore.com>
13933 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
13935 (Xref_Record): Change type for Line, since in the case of a reference to
13936 a predefined entity (as happens for array index types), the line is set
13938 Add support for parsing multiple array index types info, or
13939 multiple inherited interfaces info. This information cannot be stored
13940 in Xref_Entity_Record, which only supports a single instance of Tref_*,
13941 and is therefore stored in the list of references instead. It has a
13942 special treatement later on in tools that use this information.
13944 2007-10-15 Tristan Gingold <gingold@adacore.com>
13946 * debug.adb: Document use of -gnatd.a and -gnatd.I
13948 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
13950 2007-10-15 Javier Miranda <miranda@adacore.com>
13952 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
13953 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
13954 care of access to class-wide interface types plus removal of bizarre
13955 conversion of tagged object to access type (reported by Gary
13956 Dismukes). After this patch there is no need to perform any
13957 additional management on these nodes in Expand_Interface_Actuals.
13959 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
13960 that handles use of 'Access and 'Unchecked_Access applied to
13961 actuals covering interface types. Such code is now
13962 centralized in Expand_N_Attribute_Reference.
13964 2007-10-15 Ed Schonberg <schonberg@adacore.com>
13966 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
13967 of tagged types whose ultimate ancestor is a CPP type.
13968 (Freeze_Array_Type): For a packed array type, generate an initialization
13969 procedure if the type is public, to handle properly a client that
13970 specifies Normalize_Scalars.
13972 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
13974 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
13975 inside a generic body, retrieve the full view of the entry family
13976 discrete subtype if available.
13978 2007-10-15 Thomas Quinot <quinot@adacore.com>
13980 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
13981 attempt to generate stubs for hidden primitive operations.
13983 2007-10-15 Vincent Celier <celier@adacore.com>
13985 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
13986 returning None, used when there is no platform specific body for
13989 2007-10-15 Bob Duff <duff@adacore.com>
13991 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
13992 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
13993 the generic Heap_Sort_G, in order to avoid trampolines.
13995 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
13996 Jose Ruiz <ruiz@adacore.com>
13998 * vx_stack_info.c: New file.
14000 * i-forbla-unimplemented.ads: New file.
14002 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
14003 for unsupported configurations; use it on VMS targets instead of the
14005 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
14006 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
14007 used by VxWorks targets to have access to task-specific data and be
14008 able to extract the stack boundaries for stack checking.
14009 Use system-vms-ia64.ads on ivms.
14011 * Make-lang.in: Update dependencies.
14013 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
14016 2007-10-15 Vincent Celier <celier@adacore.com>
14018 * snames.adb, snames.ads: Add new standard name runtime_library_dir
14020 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
14022 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
14024 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
14025 the source is unknown.
14027 * prj-ext.adb: Spelling error fix
14029 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
14030 95 reserved word in its name.
14031 (Process_Project_Level_Array_Attributes): Process new attribute
14032 Runtime_Library_Dir.
14034 * prj-part.adb (Parse_Single_Project): Do not check the name of the
14035 config project against the user project names.
14037 * prj-proc.adb (Expression): In multi-language mode, indexes that do
14038 not include a dot are always case insensitive.
14039 (Process_Declarative_Items): Ditto
14040 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
14043 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
14044 True, compare both indexes in lower case.
14046 2007-10-15 Robert Dewar <dewar@adacore.com>
14048 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
14050 2007-10-15 Gary Dismukes <dismukes@adacore.com>
14052 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
14053 association for an access component, add an association with null as
14054 the expression. Remove testing for array subtypes and the setting in
14055 that case of Ctyp to the array component type, which prevented proper
14056 inclusion of an association for null-initialized arrays. Collapse
14057 condition that tests for array subtypes into just a test of
14058 Is_Partially_Initialized_Type (which already covers arrays anyway).
14060 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
14062 * sem_ch12.adb: Minor code reformatting.
14063 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
14064 find the parent package which may have been hidden by local
14067 2007-10-15 Gary Dismukes <dismukes@adacore.com>
14069 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
14070 flag of derived concurrent types, taking into account the flag setting
14071 on the parent subtype and any new set of discriminants.
14073 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
14075 * sem_ch4.adb: Minor code and comment reformatting.
14076 (Analyze_Allocator): When the designated type of an unconstrained
14077 allocator is a record with unknown discriminants or an array with
14078 unknown range bounds, emit a detailed error message depending on the
14079 compilation mode and whether the designated type is limited.
14081 2007-10-15 Tristan Gingold <gingold@adacore.com>
14083 * system-vms-ia64.ads: New file.
14085 * system-vms_64.ads: Minor comment fix.
14087 2007-10-15 Ed Schonberg <schonberg@adacore.com>
14089 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
14090 body generated for a function with a controlling result that is a null
14091 extension, discard the generated body in favor of the current explicit
14094 2007-10-15 Ed Schonberg <schonberg@adacore.com>
14096 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
14097 examining its original form, to handle properly operator calls that
14098 have been rewritten.
14100 2007-10-15 Olivier Hainque <hainque@adacore.com>
14102 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
14103 instead of a procedure value in each traceback entry.
14105 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
14106 instead of procedure value to TBK$SYMBOLIZE.
14108 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
14110 (TB_Entry_For): Account for the PV/FP renaming.
14112 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
14114 (Null_TB_Entry): Account for change of component name.
14115 (PV_For): Rename as FP_For.
14117 2007-10-15 Tristan Gingold <gingold@adacore.com>
14119 * trans.c (gnat_to_gnu): Remove the padding structure more often.
14120 This optimize assignment to over-aligned record.
14122 2007-10-15 Emmanuel Briot <briot@adacore.com>
14124 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
14127 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
14128 type, for dispatching calls.
14130 2007-10-15 Vincent Celier <celier@adacore.com>
14131 Robert Dewar <dewar@adacore.com>
14133 * gnat_ugn.texi: Add documentation for switches --version and --help
14134 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
14135 gnatxref, gnatfind, gnatls, and gnatclean.
14137 Mention attribute Excluded_Source_Dirs
14138 Replace obsolescent attribute Locally_Removed_Files with attribute
14139 Excluded_Source_Files.
14140 Improve documentation of -u (gnatbind)
14141 Document how to do reliable stack checking for the environmental task
14144 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
14145 Document attribute Excluded_Source_Files and indicate that attribute
14146 Locally_Removed_Files is obsolescent.
14148 2007-10-15 Thomas Quinot <quinot@adacore.com>
14150 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
14153 Update documentation to note that OpenVMS 8.3 or later must be used
14154 to generate g-soccon-vms.ads.
14156 * atree.adb: Add ??? comment
14158 * exp_util.adb: Minor reformatting.
14159 Add ??? comment in Kill_Dead_Code.
14161 2007-10-15 Robert Dewar <dewar@adacore.com>
14163 * errout.ads: Comment clarification
14165 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
14166 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
14168 * lib.ads: Comment update
14170 * init.c: Minor reformatting.
14172 * sem_attr.adb: Minor formatting
14174 * osint-b.ads: Minor reformatting
14176 * sem_ch9.adb: Implement -gnatd.I switch
14178 * g-comlin.adb: (Start): Fix handling of empty command line.
14180 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
14181 even when -rules follows the -cargs section.
14183 2007-10-08 Ollie Wild <aaw@google.com>
14185 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
14187 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
14189 (gnat_eh_runtime_type): Removed.
14190 (gnat_return_tree): New function.
14192 2007-10-08 Ben Elliston <bje@au.ibm.com>
14196 2007-08-31 Ben Elliston <bje@au.ibm.com>
14198 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
14199 when compiling for powerpc64-*-linux.
14200 * system-linux-ppc64.ads: New file.
14202 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
14204 Mapped location support
14205 * back_end.adb (Call_Back_End): Pass information about source
14206 files instead of units to gigi.
14207 * gigi.h (struct File_Info_Type): New.
14208 (gigi): Rename and change type of number_units parameter, change
14209 type of file_info_ptr parameter.
14210 * trans.c (number_files): New global variable.
14211 (gigi): Rename and change type of number_units parameter, change
14212 type of file_info_ptr parameter.
14213 If mapped location support is enabled, create the isomorphic mapping
14214 between source files and line maps.
14215 (Sloc_to_locus): If mapped location support is enabled, translate
14216 source location into mapped location.
14217 (annotate_with_node): Rename into set_expr_location_from_node.
14218 Call set_expr_location instead of annotate_with_locus.
14219 (Pragma_to_gnu): Adjust for above change.
14220 (Loop_Statement_to_gnu): Likewise.
14221 (call_to_gnu): Likewise.
14222 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
14223 (gnat_to_gnu): Likewise.
14224 (add_stmt_with_node): Likewise.
14225 (add_cleanup): Likewise.
14226 * utils.c (gnat_init_decl_processing): Do not set input_line.
14228 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
14230 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
14231 (Applicable_Use): Emit a warning when a package tries to use itself.
14232 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
14233 is already in use or the package where it is declared is in use or is
14234 declared in the current package.
14235 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
14237 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
14238 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
14239 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
14241 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
14243 * a-calend-vms.adb, a-calend.adb:
14244 Add a section on leap seconds control along with two entities used to
14245 enable and disable leap seconds support. The array Leap_Second_Times is
14246 now constant and contains hard time values pre-generated. Remove
14247 all elaboration code used to populate the table of leap seconds.
14250 Add entity Leap_Seconds_Support to the list of global run-time variables
14251 along with a comment on its usage and values.
14252 (Gen_Adainit_Ada): Add code to generate the declaration and import of
14253 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
14254 or one (enabled) depending on the presence of binder switch "-y".
14255 (Gen_Adainit_C): Add code to generate the declaration of external int
14256 __gl_leap_seconds_support. Set is value to zero (disabled) or one
14257 (enabled) depending on the presence of binder switch "-y".
14259 * init.c: Add __gl_leap_seconds_support to the list of global values
14260 computed by the binder.
14262 2007-09-26 Jerome Guitton <guitton@adacore.com>
14264 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
14265 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
14266 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
14267 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
14269 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
14271 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
14272 function which can be called by the debugger to interrupt the tasks of
14273 an Ada application asynchronously, as needed on VxWorks.
14274 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
14276 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
14277 renamed from Stop_All_Tasks. Update comments.
14278 (Stop_All_tasks): New function declaration.
14280 2007-09-26 Olivier Hainque <hainque@adacore.com>
14282 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
14283 #include <utime.h> and #define GCC_RESOURCE_H before
14284 #include <sys/wait.h>.
14285 Add more protections in __gnat_translate_vms.
14287 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
14288 #include <sys/wait.h>.
14290 2007-09-26 Thomas Quinot <quinot@adacore.com>
14291 Sergey Rybin <rybin@adacore.com>
14293 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
14295 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
14298 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
14300 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
14303 * sem_dist.ads: Minor comment fix
14305 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
14307 2007-09-26 Javier Miranda <miranda@adacore.com>
14308 Eric Botcazou <ebotcazou@adacore.com>
14311 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
14312 indirection added to the HT_Link component of the TSD. This is required
14313 to statically allocate the TSD.
14316 Minor reordering of the declarations in the private part. Required to
14317 add a level of indirection to the contents of the TSD component HT_Link.
14318 This is required to statically allocate the TSD.
14320 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
14321 Is_Statically_Allocated set from constant objects.
14322 Do not make exported constants created by the compiler volatile.
14323 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
14326 * trans.c (Identifier_to_gnu): For constants, unshare initializers
14327 before returning them.
14329 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
14330 public part of the package.
14331 (Make_DT): Move HT_Link component out of the TSD record. For this
14332 purpose Make_DT now declares a separate object that stores the
14333 HT_Link value, and initializes the TSD component with the address
14334 of this new object. The addition of this level of indirection is
14335 required to statically allocate the TSD because the TSD cannot
14336 have variable components.
14337 (Expand_Interface_Conversion): Improve the expanded code.
14338 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
14340 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
14341 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
14342 if we are building static dispatch tables then we must not generate
14343 extra code to register the primitive because the dispatch table will
14344 be built at the end of the library package; otherwise we notify that
14345 we cannot build the static dispatch table.
14347 2007-09-26 Robert Dewar <dewar@adacore.com>
14349 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
14352 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
14353 (Analyze_Record_Representation_Clause): Suppress junk warning for
14354 missing component clause.
14355 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
14356 tests for controlled type overlay to composites with controlled
14358 (Analyze_Record_Representation_Clause): Add reference for component name
14360 2007-09-26 Javier Miranda <miranda@adacore.com>
14361 Gary Dismukes <dismukes@adacore.com>
14363 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
14364 for thunks associated with interface types.
14366 * einfo.ads: Improve documentatation of Is_Internal
14367 (Is_Thunk): New attribute applicable to subprograms. True for thunks
14368 associated with interface types.
14369 Extensive comment fixes regarding flags that appear in all entities. The
14370 documentation is now consistent for all such flags (there were a number
14371 of errors in the documentation in this regard).
14373 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
14375 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
14376 of these procedures are passed a function call that already has
14377 build-in-place actuals (testing new flag
14378 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
14379 the case where processing continues.
14380 (Expand_Call): If the call is generated from a thunk body then we
14381 propagate the extra actuals associated with the accessibility
14382 level of the access type actuals.
14384 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
14385 of each extra formal of a protected operation to reference the
14386 corresponding extra formal of the subprogram denoted by the
14387 operation's Protected_Body_Subprogram.
14389 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
14390 N_Function_Call nodes.
14392 2007-09-26 Robert Dewar <dewar@adacore.com>
14394 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
14396 * debug.adb: Add d.s flag.
14398 2007-09-26 Gary Dismukes <dismukes@adacore.com>
14400 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
14401 debug variable so that it won't be initialized when pragma
14402 Initialize_Scalars is in effect.
14404 2007-09-26 Gary Dismukes <dismukes@adacore.com>
14406 * freeze.adb (Freeze_Entity): Remove check for preelaborable
14407 initialization of a full view. This is moved to
14408 Analyze_Package_Specification.
14410 * sem_ch7.adb (Analyze_Package_Specification): Add check for
14411 preelaborable initialization of a full view in entity loop.
14412 (Uninstall_Declarations): If entity is a use-visible compilation unit,
14413 its child units are use-visible only if they are visible child units.
14415 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
14416 whether an expression can be used within a type declaration that
14417 requires preelaborable init.
14418 (Check_Components): Replace inline code that does partial checking for
14419 preelaborable default expressions with call to
14420 Is_Preelaborable_Expression.
14421 (Has_Preelaborable_Initialization): In the case of a generic actual
14422 subtype, (that is, Is_Generic_Actual is True), return the result of
14423 applying Has_Preelaborable_Initialization to the generic actual's base
14426 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
14428 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
14429 call to Jan_1_Day _Of_Week to optimize its performance.
14430 (Is_Leap): Move the routine to the scope of Week_In_Year.
14431 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
14432 weekday on which January 1 falls of Year - 1 and Year + 1. This function
14433 avoids calling Time_Of and Split, thus making it more efficent.
14434 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
14436 * g-calend.ads (Week_In_Year): Change comment to reflect new
14439 2007-09-26 Emmanuel Briot <briot@adacore.com>
14441 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
14442 Command_Line): New types
14443 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
14444 support for defining how switches can be grouped on a command line (as
14445 is the case for -gnatw... for GNAT), and how simple switches can be
14446 used as aliases for more complex switches (-gnatwa is same as
14448 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
14449 (Start, Current_*): New subprograms
14450 Added support for parsing an array of strings in addition to the real
14452 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
14453 be moved from the body to the private part of the spec.
14454 (*): All subprograms now have an extra parameter with default value to
14455 specify which parser should be used. For backward compatibility, it
14456 defaults to parsing the command line of the application. They were also
14457 modified to properly handle cases where each of the argument does not
14458 start at index 1 (which is always true for Ada.Command_Line, but not
14459 when processing any Argument_List).
14460 (Free): New subprogram
14461 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
14462 Argument): New subprograms
14463 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
14464 special characters like ':', '=',... are now handled in a single place,
14465 which makes the code more extensible eventually.
14466 (Getopt, Full_Switch): When the switch was returned as part of the
14467 special character '*', make sure it is prepended by the switch character
14468 ('-' in general), so that the application knows whether "foo" or "-foo"
14469 was specified on the command line.
14471 2007-09-26 Florian Villoing <villoing@adacore.com>
14473 * g-dirope.adb (Remove_Dir): In case we are removing directories
14474 recursively, make sure that if an exception is raised during the
14475 processing, the current working directory is reset to its initial
14476 value before propagating the exception.
14478 2007-09-26 Vincent Celier <celier@adacore.com>
14480 * gnatbind.adb: If there are several ALI files specified and there is
14481 a main program to bind, the first ALI is expected to contain the main
14482 subprogram and the names of the binder generated files will be derived
14483 from the first ALI file name.
14484 (Gnatbind): Fix insertion character in invocation of Error_Msg
14486 2007-09-26 Vincent Celier <celier@adacore.com>
14488 * gnatcmd.adb (Check_Files): Do not include sources that have been
14489 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
14491 2007-09-26 Ed Schonberg <schonberg@adacore.com>
14493 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
14494 information about each of its index types, following the type
14495 reference for its component type.
14497 2007-09-26 Vincent Celier <celier@adacore.com>
14499 * make.adb: (Kill): New procedure (__gnat_kill imported)
14500 (Running_Compile, Outstanding_Compiles): Global variables that
14501 were previously local to procedure Compile_Sources.
14502 (Sigint_Intercepted): Send signal SIGINT to all outstanding
14503 compilation processes.
14505 (Gnatmake): If project files are used, create the mapping of all the
14506 sources, so that the correct paths will be found.
14508 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
14510 2007-09-26 Vincent Celier <celier@adacore.com>
14512 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
14514 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
14515 Replace components Compiler_Min_Options and Binder_Min_Options with
14516 Compiler_Required_Switches and Binder_Required_Switches in record
14518 Remove components Default_Language and Config in Project_Tree_Data,
14521 * prj-attr.adb: New attributes Required_Switches (<language>) in
14522 packages Compiler and Binder.
14524 * prj-nmsc.adb: Major rewrite of the processing of configuration
14525 attributes for gprbuild. No impact on GNAT tools.
14527 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
14528 process configuration attributes: this is done in Prj.Nmsc.Check.
14529 (Recursive_Process): Make a full copy of packages inherited from project
14530 being extended, instead of a shallow copy.
14531 (Process_Project_Tree_Phase_1): New procedure
14532 (Process_Project_Tree_Phase_1): New procedure
14533 (Process): Implementation now uses the two new procedures
14535 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
14536 from the project config, not the tree config that no longer exists.
14538 2007-09-26 Vincent Celier <celier@adacore.com>
14540 * Make-lang.in: Update dependencies..
14542 2007-09-26 Vincent Celier <celier@adacore.com>
14544 * osint.adb, osint.ads: Minor reformatting
14546 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
14548 2007-09-26 Gary Dismukes <dismukes@adacore.com>
14550 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
14551 message to cite use of <> in aggregate component associations rather
14552 than wrongly indicating use of limited aggregates.
14554 2007-09-26 Robert Dewar <dewar@adacore.com>
14556 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
14559 2007-09-26 Ed Schonberg <schonberg@adacore.com>
14561 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
14562 ancestor of the derived type, the operations are inherited from the
14563 primary dispatch table of the parent.
14564 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
14565 when the context is an explicit type conversion.
14567 2007-09-26 Ed Schonberg <schonberg@adacore.com>
14569 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
14570 rule for qualified expressions properly, to detect improper conversions
14571 and resolve some cases of overloading.
14573 2007-09-26 Ed Schonberg <schonberg@adacore.com>
14575 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
14576 proper kind of reference to the primitive operation, for better source
14578 (Valid_Conversion): A tagged conversion is legal if both operands are
14581 2007-09-26 Robert Dewar <dewar@adacore.com>
14583 * sem_warn.adb (Check_References): Catch more cases of unreferenced
14586 2007-09-26 Vincent Celier <celier@adacore.com>
14588 * snames.adb, snames.ads: Change Include_Option to Include_Switches
14590 2007-09-26 Robert Dewar <dewar@adacore.com>
14592 * s-wchstw.adb: provide messages for run time unit exceptions
14594 * a-witeio.adb: Minor reformatting
14596 * exp_ch13.adb: Minor reformatting
14598 2007-09-26 Sergey Rybin <rybin@adacore.com>
14600 * vms_data.ads: Revise gnatmetric qualifiers.
14601 Add qualified for the new gnatbind option '-y'
14603 * gnat_ugn.texi: Revise the gnatmetric section.
14604 Add entry for new gnatbind option '-y'.
14606 * gnat_rm.texi: Minor spelling correction.
14607 Document restriction on overlaying controlled types
14609 2007-09-26 Vincent Celier <celier@adacore.com>
14611 * makegpr.adb (Link_Executables): Do not fail when the root project has
14612 no sources, but is an extending project.
14614 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
14616 * trans.c: Fix misplaced #define.
14618 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
14620 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
14621 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
14623 2007-09-21 Olivier Hainque <hainque@adacore.com>
14625 * utils.c (type_for_nonaliased_component_p): Return false for
14626 all AGGREGATE_TYPEs.
14628 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
14630 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
14631 object covered by 13.3(19) volatile.
14633 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
14637 * utils.c (unchecked_convert): Use a subtype as the intermediate type
14638 in the special VIEW_CONVERT_EXPR case.
14640 2007-09-12 Robert Dewar <dewar@adacore.com>
14642 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
14644 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
14645 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
14646 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
14647 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
14648 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
14649 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
14650 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
14651 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
14652 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
14653 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
14654 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
14655 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
14656 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
14657 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
14658 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
14659 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
14660 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
14661 pragma Compiler_Unit and adds it to relevant library units.
14663 2007-09-12 Ed Schonberg <schonberg@adacore.com>
14665 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
14666 a box need not correspond to any component.
14668 2007-09-12 Robert Dewar <dewar@adacore.com>
14670 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
14671 the tasking version of the Ada run time when foreign threads are
14672 present and there are no explicit Ada tasks or tasking constructs.
14674 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
14676 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
14678 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
14679 the usage of switch -y.
14681 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
14682 when switch -y is present.
14684 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
14685 leap seconds in Ada.Calendar and its children.
14687 2007-09-12 Jose Ruiz <ruiz@adacore.com>
14689 * a-extiti.ads (Timer): The discriminant is a "not null access
14690 constant" in the Reference Manual.
14691 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
14693 2007-09-12 Robert Dewar <dewar@adacore.com>
14695 * a-swuwha.adb: Remove junk RM header
14697 2007-09-12 Vincent Celier <celier@adacore.com>
14699 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
14702 * g-bytswa.ads: Minor reformatting
14704 2007-09-12 Thomas Quinot <quinot@adacore.com>
14706 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
14707 Add new constant Thread_Blocking_IO, always True by default, set False
14708 on a per-runtime basis.
14709 (Need_Netdb_Buffer): New constant.
14711 2007-09-12 Arnaud Charlet <charlet@adacore.com>
14713 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
14714 Added renames for corresponding functions in System.Partition_Interface.
14716 2007-09-12 Doug Rupp <rupp@adacore.com>
14718 * Makefile.in: Remove VMS specific System.CRTL packages which are no
14721 * s-crtl-vms64.ads: Removed.
14723 2007-09-12 Olivier Hainque <hainque@adacore.com>
14725 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
14726 with discriminant constraints, generalize the code for BIT_FIELDs
14727 to PACKED fields of constant size and propagate DECL_PACKED.
14729 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
14731 * decl.c (array_type_has_nonaliased_component): New predicate.
14732 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
14733 set the TYPE_NONALIASED_COMPONENT flag on the type.
14734 <E_Array_Subtype>: Likewise.
14735 * gigi.h (type_for_nonaliased_component_p): Declare.
14736 * utils.c (type_for_nonaliased_component_p): New predicate.
14737 (create_field_decl): Invoke the above predicate to set the
14738 DECL_NONADDRESSABLE_P flag on the field.
14740 2007-09-11 Javier Miranda <miranda@adacore.com>
14742 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
14743 in library level record type entities if we are generating statically
14744 allocated dispatch tables.
14746 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
14747 importing/exporting the _tag declaration by new code
14748 importing/exporting the dispatch table wrapper. This change allows us
14749 to statically allocate of the TSD.
14750 (Make_DT.Export_DT): New procedure.
14751 (Build_Static_DT): New function.
14752 (Has_DT): New function.
14754 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
14755 True_Constant and Current_Value. Required to statically
14756 allocate the dispatch tables.
14757 (Check_Allocator): Make function iterative instead of recursive.
14758 Also return inner allocator node, when present, so that we do not have
14759 to look for that node again in the caller.
14761 2007-09-11 Jan Hubicka <jh@suse.cz>
14763 * misc.c (gnat_expand_body): Kill.
14764 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
14766 2007-09-10 Robert Dewar <dewar@adacore.com>
14768 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
14769 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
14770 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
14771 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
14772 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
14773 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
14774 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
14775 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
14776 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
14777 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
14778 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
14779 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
14780 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
14781 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
14782 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
14783 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
14784 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
14785 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
14786 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
14787 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
14788 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
14789 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
14790 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
14791 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
14792 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
14793 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
14794 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
14795 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
14796 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
14797 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
14798 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
14799 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
14800 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
14801 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
14802 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
14803 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
14804 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
14805 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
14806 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
14807 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
14808 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
14809 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
14810 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
14811 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
14812 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
14813 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
14814 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
14815 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
14816 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
14817 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
14818 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
14819 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
14820 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
14821 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
14822 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
14823 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
14824 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
14825 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
14826 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
14827 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
14828 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
14829 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
14830 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
14831 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
14832 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
14833 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
14834 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
14835 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
14836 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
14837 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
14838 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
14839 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
14840 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
14841 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
14842 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
14843 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
14844 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
14845 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
14846 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
14847 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
14848 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
14849 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
14850 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
14852 2007-09-10 Emmanuel Briot <briot@adacore.com>
14854 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
14857 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
14859 * adaint.c (__gnat_translate_vms): new function.
14861 2007-09-10 Gary Dismukes <dismukes@adacore.com>
14862 Thomas Quinot <quinot@adacore.com>
14864 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
14865 create an abstract subprogram in the case of 'Input. For 'Output we now
14866 create a real spec/body when the type is abstract, since it can
14867 potentially be called.
14868 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
14869 body for 'Output when the type is abstract (only the creation of the
14870 body for 'Input is excluded when the type is abstract).
14871 (Stream_Operation_OK): Add an additional condition in the return
14872 statement, so that False will be returned for TTS_Stream_Input if the
14873 associated tagged type is an abstract extension. Add comments for
14875 (Expand_N_Object_Declaration): For the case of a shared passive
14876 variable, insert init proc call only after the shared variable
14877 procedures have been processed, because the IP call needs to undergo
14878 shared passive variable reference expansion, which requires these
14879 procedures to be available (and elaborated).
14881 2007-09-10 Vincent Celier <celier@adacore.com>
14883 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
14884 parameter Runtime_Project.
14886 2007-09-10 Ed Schonberg <schonberg@adacore.com>
14888 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
14889 given a box association, the type of the component is discriminated,
14890 and the value of the discriminant is the discriminant of the enclosing
14891 type, retrieve its value from the aggregate itself, where it must have
14894 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
14895 to remove other spurious ambiguities on arithmetic operations involving
14896 literals and addresses, on systems where Address is a visible integer
14897 type, when the operator is called in functional notation.
14898 (Try_Primitive_Operation): Within an instance, a call in prefixed form
14899 is legal when the types match, even if the operation is currently
14902 2007-09-10 Ed Schonberg <schonberg@adacore.com>
14904 * sem_ch12.adb (Build_Local_Package): A formal package with no
14905 associations is legal if all formals have defaults. It is not
14906 equivalent to a formal declared with a box.
14908 2007-09-10 Sergey Rybin <rybin@adacore.com>
14910 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
14912 2007-09-10 Sergey Rybin <rybin@adacore.com>
14914 * gnat_ugn.texi: Add description of the new '-lratio' option
14915 Update 7.3.1 section about availability of the feature.
14917 2007-09-10 Thomas Quinot <quinot@adacore.com>
14919 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
14922 2007-09-10 Olivier Hainque <hainque@adacore.com>
14924 * Makefile.in: (mips-irix section): Activate build of libgmem.
14926 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
14928 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
14931 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
14933 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
14934 a debug renaming declaration specially.
14936 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
14938 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
14939 which a constant renaming is treated as a normal object declaration.
14940 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
14941 the N_Indexed_Component case.
14942 <N_Indexed_Component>: Fall through to above case.
14943 <N_Object_Renaming_Declaration>: Return true for all composite types.
14945 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
14947 * decl.c (make_packable_type): If the new type has been given BLKmode,
14948 try again to get an integral mode for it.
14950 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
14952 Re-apply accidentally reverted change:
14954 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
14956 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
14957 get_action_description_for): Replace _Unwind_Word with _uleb128_t
14958 and _Unwind_SWord with _sleb128_t.
14960 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
14962 * trans.c (convert_with_check): Update call to real_2expN.
14964 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
14966 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
14967 * utils.c (end_subprog_body): Likewise.
14969 2007-09-03 Nick Clifton <nickc@redhat.com>
14971 * Make-lang.in: Change copyright header to refer to version 3 of
14972 the GNU General Public License and to point readers at the
14973 COPYING3 file and the FSF's license web page.
14974 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
14975 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
14976 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
14977 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
14980 2007-08-31 Vincent Celier <celier@adacore.com>
14984 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
14985 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
14986 (Check_Version_And_Help): New procedure in package Switch to process
14987 switches --version and --help.
14988 Use Check_Version_And_Help in GNAT tools
14991 (Compile_Sources): Make sure that sources that are "excluded" are not
14993 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
14994 project file is used.
14995 (Version_Switch): Remove, moved to Switch
14996 (Help_Switch): Remove, moved to Switch
14997 (Display_Version): Remove, moved to Switch
14999 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
15000 package Switch to process switches --version and --help.
15001 (Display_Version): New procedure
15003 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
15005 2007-08-31 Javier Miranda <miranda@adacore.com>
15007 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
15010 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
15012 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
15013 (Mark_Non_Null): If the node for which we just generated an access check
15014 is a reference to an *in* parameter and the reference appears in the
15015 declarative part of a subprogram body, mark the node as known non null.
15017 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
15019 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
15020 structure of E_Exception to reflect the new flag.
15021 (Is_Raised, Set_Is_Raised): New inlined routines.
15022 Update the usage of available flag to reflect the addition of Is_Raised.
15023 (Is_Raised, Set_Is_Raised): Bodies of new routines.
15024 (Write_Entity_Flags): Write the status of flag Is_Raised.
15025 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
15026 spurious ambiguities when integer literals appear in the context of an
15027 address type that is a visible integer type.
15029 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
15030 exceptions never being raised.
15031 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
15034 2007-08-31 Javier Miranda <miranda@adacore.com>
15036 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
15037 statement when compiling under restriction No_Exceptions_Proparation.
15039 2007-08-31 Ed Schonberg <schonberg@adacore.com>
15041 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
15042 initialization aggregate for the type, generate itype references for
15043 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
15045 2007-08-31 Gary Dismukes <dismukes@adacore.com>
15047 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
15048 library-level package renaming, pass the declaration associated with
15049 the renaming's special debug variable to Qualify_Entity_Names to ensure
15050 that its encoded name is properly qualified.
15052 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
15053 occurring in the list of entities to qualify, and do not attempt to
15054 traverse an entity list in that case. Variables associated with
15055 ` library-level package renamings can now occur in the table.
15057 * exp_dbug.ads: Revise documentation of the encoding for renaming
15060 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15062 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
15063 access type points to an unconstrained array.
15065 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
15067 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
15070 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
15071 simple redundant qualifications. The check is performed whenever the
15072 expression is a non-overloaded identifier.
15073 (Resolve_Type_Conversion): Enchance the redundant type conversion check
15074 to include loop parameters.
15075 (Valid_Conversion): Avoid generation of spurious error message.
15077 2007-08-31 Bob Duff <duff@adacore.com>
15079 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
15080 concatenations of string literals into a single literal, in order to
15081 avoid very deep recursion in the front end, which was causing stack
15084 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
15085 string, and the right operand is a string literal (the case of "" &
15086 "..."), optimize by avoiding copying the right operand -- just use the
15087 value of the right operand directly.
15089 * stringt.adb (Store_String_Chars): Optimize by growing the
15090 String_Chars table all at once, rather than appending characters one by
15092 (Write_String_Table_Entry): If the string to be printed is very long,
15093 just print the first few characters, followed by the length. Otherwise,
15094 doing "pn(n)" in the debugger can take an extremely long time.
15096 * sem_prag.adb (Process_Interface_Name): Replace loop doing
15097 Store_String_Char with Store_String_Chars.
15099 2007-08-31 Vincent Celier <celier@adacore.com>
15101 * prj-attr.adb: Add new attribute Excluded_Source_Files
15103 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
15104 Locally_Removed_Files.
15106 * snames.ads, snames.adb: New standard name Excluded_Source_Files
15108 2007-08-31 Ed Schonberg <schonberg@adacore.com>
15110 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
15111 clauses of subunits, ignore limited_with_clauses that are illegal and
15112 have not been fully analyzed.
15114 2007-08-31 Ed Schonberg <schonberg@adacore.com>
15116 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
15117 flag, for effiency. It is called when analyzing arithmetic operators
15118 and also for actuals in calls that are universal_integers. The flag is
15119 set for the predefined type address, and for any type or subtype
15122 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
15123 Universal_Integer, when the formal is a descendent of address and the
15124 call appears in user code.
15125 (Analyze_Selected_Component): if the prefix is a private extension, the
15126 tag component is visible.
15128 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
15131 2007-08-31 Robert Dewar <dewar@adacore.com>
15133 * s-fileio.adb (Open): Normalize file name to lower case in non-case
15134 sensitive file name systems to avoid unexpected mismatch in Vista.
15136 2007-08-31 Vincent Celier <celier@adacore.com>
15138 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
15140 2007-08-31 Vincent Celier <celier@adacore.com>
15142 * symbols-vms.adb (Initialize): Read symbol files with continuation
15144 (Finalize): If symbol is long, split the line
15146 2007-08-31 Vincent Celier <celier@adacore.com>
15148 * fmap.ads: Minor comment updates
15150 2007-08-31 GNAT Script <nobody@adacore.com>
15152 * Make-lang.in: Makefile automatically updated
15154 2007-08-31 Bob Duff <duff@adacore.com>
15156 * sinfo.ads: Minor comment fix.
15158 2007-08-31 Thomas Quinot <quinot@adacore.com>
15160 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
15161 with implementation.
15162 Documentation cleanup only.
15164 2007-08-31 Sergey Rybin <rybin@adacore.com>
15166 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
15167 gnatpp '--separate-stmt-name' option.
15168 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
15171 * gnat_ugn.texi: Add description for the new gnatpp
15172 '--separate-stmt-name' and '--use-on-new-line' options.
15174 2007-08-31 Ben Elliston <bje@au.ibm.com>
15176 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
15177 when compiling for powerpc64-*-linux.
15178 * system-linux-ppc64.ads: New file.
15180 2007-08-22 Krister Walfridsson <cato@df.lth.se>
15182 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
15185 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15187 * misc.c (gnat_type_max_size): Constify.
15189 2007-08-16 Gary Dismukes <dismukes@adacore.com>
15191 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
15192 associated with Standard_Debug_Renaming_Type, to be used as the type of
15193 the special variables whose names provide debugger encodings for
15194 renaming declarations.
15196 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
15197 (Set_Debug_Renaming_Link): Change to set Node25.
15198 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
15199 (Write_Field25_Name): Add case for E_Variable to output
15200 "Debug_Renaming_Link".
15201 (Write_Field23_Name): Correct the output string for "Limited_View".
15203 * exp_dbug.adb: Add with and use of Tbuild.
15204 (Debug_Renaming_Declaration): Replace creation of an enumeration type
15205 and literal with creation of a variable of type
15206 Standard_Debug_Renaming_Type whose name encodes both the renamed object
15207 and the entity of the renaming declaration.
15208 (Qualify_Entity_Name): Add the delayed qualification of the entity name
15209 part of the name of a variable that has a Debug_Renaming_Link.
15211 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
15212 special type to be associated with variables that provide debugger
15213 encodings for renaming declarations.
15215 2007-08-16 Gary Dismukes <dismukes@adacore.com>
15216 Ed Schonberg <schonberg@adacore.com>
15217 Javier Miranda <miranda@adacore.com>
15219 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
15220 ancestor part given by an aggregate to test for an unchecked conversion,
15221 since this can occur in some cases when the ancestor part is a function
15222 call, and we don't want to fall into the recursive call to this
15223 procedure in that case.
15225 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
15226 stream attributes on limited types to account for user-specified
15227 attributes as well as whether Input (resp. Output) becomes available
15228 due to Read (resp. Write) being available for the type. Change Boolean
15229 variable to the more accurate name
15230 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
15231 double-"not" predicate at beginning of return statement to more
15232 understandable form.
15234 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
15235 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
15236 in a block statement and use that as the first statement of the
15237 expanded return rather than incorrectly using the handled sequence as
15238 the first statement.
15240 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
15241 operation, generate an explicit freeze node for it rather than
15242 generating extra formals, to ensure that gigi has the proper order of
15243 elaboration for anonymous subtypes in the signature of the subprograms.
15244 (Build_In_Place_Formal): Move assertion to beginning of loop.
15245 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
15246 applied to a function call (occurs for some cases of 'Input).
15247 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
15248 applied to a function call (occurs for some cases of 'Input).
15250 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
15251 2005, generate an extended return statement enclosing the result object
15254 * freeze.adb (Freeze_Record_Type): Extend the current management of
15255 components that are access type with an allocator as default value: add
15256 missing support to the use of qualified expressions of the
15257 allocator (which also cause freezing of the designated type!)
15258 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
15259 dispatching operation, since extra formals may be needed by calls to
15260 build-in-place functions (such as stream 'Input).
15262 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
15263 formals for 'Constrained and accessibility level in the case of a
15264 predefined dispatching operation.
15266 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
15267 point, no need to find the parent node.
15269 2007-08-16 Javier Miranda <miranda@adacore.com>
15271 * exp_attr.adb (Attribute_Priority): Add missing support for entries
15272 and entry barriers.
15274 2007-08-16 Javier Miranda <miranda@adacore.com>
15276 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
15277 is not really required and can introduce regression with the debugger.
15278 The original problem is fixed with the patch written for checks.adb.
15280 2007-08-16 Thomas Quinot <quinot@adacore.com>
15282 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
15283 Range_Check on Allocated_Table.
15285 2007-08-16 Vincent Celier <celier@adacore.com>
15287 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
15288 Including_Non_Switch set to False.
15289 (Gnatmake): For the compiler, call Test_If_Relative_Path with
15290 Including_Non_Switch set to False.
15292 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
15293 parameter Including_Non_Switch, defaulted to True. When
15294 Including_Non_Switch is False, options that are not switches and
15295 appear as relative path are not converted to absolute paths.
15297 2007-08-16 Nicolas Roche <roche@adacore.com>
15299 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
15302 * Make-lang.in: Update dependencies
15304 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
15306 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
15307 currently inspected is a selected component, retrieve the entity of
15309 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
15310 from the immediate ancestor of Main_Unit_Entity.
15311 (Install_Limited_Withed_Unit): Do not install the limited view of
15312 package P if P is reachable through an ancestor chain from package C
15313 and C also has a with clause for P in its body.
15314 (Has_Limited_With_Clause): New routine.
15315 (Has_With_Clause): New routine.
15317 2007-08-16 Ed Schonberg <schonberg@adacore.com>
15319 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
15320 generic for an enclosing instance is a global reference, even though
15321 its scope is the enclosing instance.
15323 2007-08-16 Gary Dismukes <dismukes@adacore.com>
15324 Javier Miranda <miranda@adacore.com>
15326 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
15327 initialize a limited object.
15328 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
15330 Make sure Has_Complex_Representation is inherited by derived type.
15332 2007-08-16 Robert Dewar <dewar@adacore.com>
15334 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
15337 2007-08-16 Ed Schonberg <schonberg@adacore.com>
15339 * sem_disp.adb (Check_Dispatching_Operation): If the operation
15340 implements an operation inherited from a progenitor interface, verify
15341 that they are subtype-conformant.
15343 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
15344 Bob Duff <duff@adacore.com>
15345 Nicolas Setton <setton@adacore.com>
15347 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
15348 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
15349 the statement which is being resolved comes from a predefined library
15350 unit, all non-predefined library interpretations are skipped.
15351 (Resolve_Op_Concat): If string concatenation was folded in the parser,
15352 but the "&" is user defined, give an error, because the folding would
15355 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
15356 the parser has folded a long sequence of concatenations of string
15359 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
15360 and "JMP_BUF" variables as artificial.
15361 (N_String_Literal): Do not use alloca for very long string literals. Use
15362 xmalloc/free instead. Otherwise the stack might overflow.
15364 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
15367 2007-08-16 Vincent Celier <celier@adacore.com>
15369 * vms_conv.adb (Process_Argument): Ensure that project related options
15370 are not put in the -cargs section when using GNAT COMPILE.
15372 2007-08-16 Robert Dewar <dewar@adacore.com>
15374 * gnat_ugn.texi: Add note on preprocessing (output file not written)
15376 2007-08-16 Thomas Quinot <quinot@adacore.com>
15378 * a-tags.adb: Minor reformatting.
15380 2007-08-16 Bob Duff <duff@adacore.com>
15382 * sem_type.ads, sem_ch4.adb: Minor reformatting.
15384 2007-08-14 Thomas Quinot <quinot@adacore.com>
15386 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
15387 s-osinte-interix.ads, system-interix.ads: Removed.
15389 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
15391 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
15392 calls to Check_Within_Time_Bounds.
15393 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
15394 (Difference): Account for possible rounding of the resulting difference
15396 2007-08-14 Robert Dewar <dewar@adacore.com>
15398 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
15399 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
15400 s-osinte-solaris.adb, s-osinte-solaris.ads,
15401 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
15403 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
15404 switch -gnatyS. Enable -gnatyS in GNAT style check mode
15406 2007-08-14 Robert Dewar <dewar@adacore.com>
15407 Ed Schonberg <schonberg@adacore.com>
15409 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
15410 Suppress unmodified in-out parameter warning in some cases
15411 This patch is a also fairly significant change to the way suppressible
15412 checks are handled.
15414 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
15415 needed for access to concurrent record types generated by the expander.
15416 (Generate_Range_Check): When generating a temporary to capture the
15417 value of a conversion that requires a range check, set the type of the
15418 temporary before rewriting the node, so that the type is always
15419 properly placed for back-end use.
15420 (Apply_Float_Conversion_Check): Handle case where the conversion is
15422 (Get_Discriminal): Code reformatting. Climb the scope stack looking
15423 for a protected type in order to examine its discriminants.
15425 2007-08-14 Robert Dewar <dewar@adacore.com>
15426 Gary Dismukes <dismukes@adacore.com>
15427 Ed Schonberg <schonberg@adacore.com>
15428 Thomas Quinot <quinot@adacore.com>
15430 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
15431 a-stwisu.adb, a-strsup.adb: Fix warnings for range
15432 tests optimized out.
15434 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
15435 (Get_Allocator_Final_List): For the case of an anonymous access type
15436 that has a specified Associated_Final_Chain, do not go up to the
15438 (Expand_N_Type_Conversion): Test for the case of renamings of access
15439 parameters when deciding whether to apply a run-time accessibility
15441 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
15442 aggregate code before allocator, and ahead of declaration for
15443 temporary, to prevent access before elaboration when the allocator is
15444 an actual for an access parameter.
15445 (Expand_N_Type_Conversion): On an access type conversion involving an
15446 access parameter, do not apply an accessibility check when the
15447 operand's original node was an attribute other than 'Access. We now
15448 create access conversions for the expansion of 'Unchecked_Access and
15449 'Unrestricted_Access in certain cases and clearly accessibility should
15450 not be checked for those.
15452 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
15453 includes a type conversion of a packed component that has been expanded,
15454 recover the original expression for the object, and use this expression
15455 in the post-call assignment statement, so that the assignment is made
15456 to the object and not to a back-end temporary.
15457 (Freeze_Subprogram): In case of primitives of tagged types not defined
15458 at the library level force generation of code to register the primitive
15459 in the dispatch table. In addition some code reorganization has been
15460 done to leave the implementation clear.
15461 (Expand_Call): When expanding an inherited implicit conversion,
15462 preserve the type of the inherited function after the intrinsic
15463 operation has been expanded.
15465 * exp_ch2.ads, exp_ch2.adb
15466 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
15467 of an entry formal appearing in an assignment statement does not assign
15469 (Expand_Current_Value): Instead of calling a routine to determine
15470 whether the prefix of an attribute reference should be optimized or
15471 not, prevent the optimization of such prefixes all together.
15473 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
15474 component whose prefix is known to be of an access type is an implicit
15475 dereference and does not assign to the prefix.
15477 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15478 Robert Dewar <dewar@adacore.com>
15480 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
15481 itype is visited, make an entry into table to link associated node and
15483 Add comments and correct harmless error in Build_NCT_Hash_Tables
15484 (Array_Aggr_Subtype): Associate each itype created for an index type to
15485 the corresponding range construct, and not to the aggregate itself. to
15486 maintain a one-to-one correspondence between itype and its associated
15487 node, to prevent errors when complex expression is copied.
15488 Fix mishandling of multiple levels of parens
15490 * sem_aggr.adb: Create a limited view of an incomplete type, to make
15491 treatment of limited views uniform for all visible declarations in a
15492 limited_withed package.
15493 (New_Copy_Tree): If hash table is being used and itype is visited,
15494 make an entry into table to link associated node and new itype.
15495 (Resolve_Record_Aggregate): Do not add an others box association for a
15496 discriminated record component that has only discriminants, when there
15497 is a box association for the component itself.
15499 * par-ch4.adb: Fix mishandling of multiple levels of parens
15501 2007-08-14 Robert Dewar <dewar@adacore.com>
15503 * comperr.adb: Fix problem with suppressing warning messages from gigi
15505 * erroutc.ads, erroutc.adb, errout.ads,
15506 errout.adb (Write_Eol): Remove trailing spaces before writing the line
15507 (Write_Eol_Keep_Blanks): New procedure to write a line, including
15508 possible trailing spaces.
15509 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
15510 Fix problem with suppressing warning messages from back end
15511 Improve handling of deleted warnings
15514 Fix problem with suppressing warning messages from back end
15515 Handle setting of Static_Dispatch_Tables flag.
15518 Fix problem with suppressing warning messages from back end
15520 * exp_intr.adb: Improve handling of deleted warnings
15522 2007-08-14 Robert Dewar <dewar@adacore.com>
15524 * debug.adb: Improve -gnatdI to cover all cases of serialization
15525 Add documentation of dZ, d.t
15527 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
15529 (Sprint_Node_Actual): Generate new output associated with implicit
15530 importation and implicit exportation of object declarations.
15532 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15533 Robert Dewar <dewar@adacore.com>
15534 Javier Miranda <miranda@adacore.com>
15535 Gary Dismukes <dismukes@adacore.com>
15537 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
15538 to make treatment of limited views uniform for all visible declarations
15539 in a limited_withed package.
15540 Improve warnings for in out parameters
15541 (Set_Related_Interaface/Related_Interface): Allow the use of this
15542 attribute with constants.
15543 (Write_Field26_Name): Handle attribute Related_Interface in constants.
15544 Warn on duplicate pragma Preelaborable_Initialialization
15546 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
15547 generation of a freezing node to ensure proper management of null
15548 excluding access types in the backend.
15549 (Create_Extra_Formals): Test base type of the formal when checking for
15550 the need to add an extra accessibility-level formal. Pass the entity E
15551 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
15552 originally being done in a couple of cases), to ensure that the
15553 Extra_Formals list gets set on the entity E when the first entity is
15555 (Conforming_Types): Add missing calls to Base_Type to the code that
15556 handles anonymous access types. This is required to handle the
15557 general case because Process_Formals builds internal subtype entities
15558 to handle null-excluding access types.
15559 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
15560 functions that need it, even when not marked Requires_Overriding.
15561 Improve warnings for in out parameters
15562 (Analyze_Function_Return): Warn for disallowed null return
15563 Warn on return from procedure with unset out parameter
15564 Ensure consistent use of # in error messages
15565 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
15566 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
15567 the implicit conversion of the expression done for anonymous access
15568 types. This is required to generate the code of the null excluding
15569 check (if required).
15571 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
15572 A formal parameter is never publicly referenceable outside of its body.
15573 (Check_References): For an unreferenced formal parameter in an accept
15574 statement, use the same warning circuitry as for subprogram formal
15576 (Warn_On_Unreferenced_Entity): New subprogram, taken from
15577 Output_Unreferenced_Messages, containing the part of that routine that
15578 is now reused for entry formals as described above.
15579 (Goto_Spec_Entity): New function
15580 (Check_References): Do not give IN OUT warning for dispatching operation
15581 Improve warnings for in out parameters
15582 (Test_Ref): Check that the entity is not undefinite before calling
15583 Scope_Within, in order to avoid infinite loops.
15584 Warn on return from procedure with unset out parameter
15585 Improved warnings for unused variables
15587 2007-08-14 Robert Dewar <dewar@adacore.com>
15588 Javier Miranda <miranda@adacore.com>
15589 Gary Dismukes <dismukes@adacore.com>
15591 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
15592 (Expand_N_Attribute_Reference): Further unify the handling of the
15593 three forms of access attributes, using common code now for all three
15594 cases. Add a test for the case of applying an access attribute to
15595 an explicit dereference when the context is an access-to-interface
15596 type. In that case we need to apply the conversion to the prefix
15597 of the explicit dereference rather than the prefix of the attribute.
15598 (Attribute_Version, UET_Address): Set entity as internal to ensure
15599 proper dg output of implicit importation.
15600 (Expand_Access_To_Type): Removed.
15601 (Expand_N_Attribute_Reference): Merge the code from the three cases
15602 of access attributes, since the processing is largely identical for
15603 these cases. The substantive fix here is to process the case of a
15604 type name prefix (current instance case) before handling the case
15605 of interface prefixes.
15607 2007-08-14 Thomas Quinot <quinot@adacore.com>
15608 Ed Schonberg <schonberg@adacore.com>
15609 Javier Miranda <miranda@adacore.com>
15610 Robert Dewar <dewar@adacore.com>
15612 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
15613 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
15614 type that is an anonymous access to controlled object, establish
15615 an associated finalization chain to avoid corrupting the global
15616 finalization list when a dynamically allocated object designated
15617 by such a component is deallocated.
15618 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
15619 functions that need it, even when not marked Requires_Overriding.
15620 (Initialize_Tag): Replace call to has_discriminants by call to
15621 Is_Variable_Size_Record in the circuitry that handles the
15622 initialization of secondary tags.
15623 (Is_Variable_Size_Record): New implementation.
15624 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
15625 Suppress_Initialization pragma for a derived type.
15626 (Is_Variable_Size_Record): New subprogram.
15627 (Build_Offset_To_Top_Functions): New implementation that simplifies the
15628 initial version of this routine and also fixes problems causing
15629 incomplete initialization of the table of interfaces.
15630 (Build_Init_Procedure): Improve the generation of code to initialize the
15631 the tag components of secondary dispatch tables.
15632 (Init_Secondary_Tags): New implementation that simplifies the previous
15633 version of this routine.
15634 (Make_DT): Add parameter to indicate when type has been frozen by an
15635 object declaration, for diagnostic purposes.
15636 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
15637 diagnose attemps to freeze a subprogram when some untagged type of its
15638 profile is a private type whose full view has not been analyzed yet.
15639 (Freeze_Array_Type): Generate init proc for packed array if either
15640 Initialize or Normalize_Scalars is set.
15641 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
15642 constructing the new profile, copy the null_exclusion indicator for each
15643 parameter, to ensure full conformance of the new body with the spec.
15645 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
15646 Create wrappers for constructor functions that need it, even when not
15647 marked Requires_Overriding.
15648 (Covers): Handle properly designated types of anonymous access types,
15649 whose non-limited views are themselves incomplete types.
15650 (Add_Entry): Use an entity to store the abstract operation which hides
15652 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
15653 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
15654 initialization aggregate.
15655 (Function_Interp_May_Be_Hidden): Rename to
15656 Function_Interp_Has_Abstract_Op.
15657 (Has_Compatible_Type): Remove machinery that skips interpretations if
15658 they are labeled as potentially hidden by an abstract operator.
15659 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
15660 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
15661 (Write_Overloads): Output the abstract operator if present.
15662 (Add_Entry): Before inserting a new entry into the interpretation table
15663 for a node, determine whether the entry will be disabled by an abstract
15665 (Binary_Op_Interp_May_Be_Hidden): New routine.
15666 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
15668 (Function_Interp_May_Be_Hidden): New routine.
15669 (Has_Compatible_Type): Do not consider interpretations hidden by
15670 abstract operators when trying to determine whether two types are
15672 (Has_Hidden_Interp): New routine.
15673 (Set_May_Be_Hidden_Interp): New routine.
15674 (Write_Overloads): Write the status of flag May_Be_Hidden.
15676 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15677 Javier Miranda <miranda@adacore.com>
15679 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
15680 types declared in the declarative part of a nested package body or in
15681 the proper body of a stub.
15682 (Set_All_DT_Position): Add missing check to avoid wrong assignation
15683 of the same dispatch table slot to renamed primitives.
15684 (Make_Select_Specific_Data_Table): Handle private types.
15685 (Tagged_Kind): Handle private types.
15686 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
15687 output of implicit importation and exportation.
15688 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
15689 first formal of the thunk is always associated with the controlling
15690 type. In addition perform the following code cleanup: remove formal
15691 Thunk_Alias which is no longer required, cleanup evaluation of the
15692 the controlling type, and update the documentation.
15693 Replace occurrence of Default_Prim_Op_Count by
15694 Max_Predef_Prims. Addition of compile-time check to verify
15695 that the value of Max_Predef_Prims is correct.
15696 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
15697 (Make_DT): Add parameter to indicate when type has been frozen by an
15698 object declaration, for diagnostic purposes.
15699 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
15700 construction of statically allocated dispatch tables.
15701 (Make_DT): In case of library-level tagged types export the declaration
15702 of the primary tag. Remove generation of tags (now done by Make_Tags).
15703 Additional modifications to handle non-static generation of dispatch
15704 tables. Take care of building tables for asynchronous interface types
15705 (Make_Tags): New subprogram that generates the entities associated with
15706 the primary and secondary tags of Typ and fills the contents of Access_
15707 Disp_Table. In case of library-level tagged types imports the forward
15708 declaration of the primary tag that will be declared later by Make_DT.
15709 (Expand_Interface_Conversion): In case of access types to interfaces
15710 replace an itype declaration by an explicit type declaration to avoid
15711 problems associated with the scope of such itype in transient blocks.
15713 2007-08-14 Robert Dewar <dewar@adacore.com>
15714 Ed Schonberg <schonberg@adacore.com>
15715 Javier Miranda <miranda@adacore.com>
15717 * exp_util.ads, exp_util.adb:
15718 This patch replaces a number of occurrences of explicit tests for N_Null
15719 with calls to Known_Null. This improves tracking of null values, since
15720 Known_Null also catches null constants, and variables currently known to
15721 be null, so we get better tracking.
15722 (Ensure_Defined): create an itype reference only in the scope of the
15724 (Side_Effect_Free): A selected component of an access type that
15725 denotes a component with a rep clause must be treated as not
15726 side-effect free, because if it is part of a linked structure its
15727 value may be affected by a renaming.
15728 (Expand_Subtype_From_Expr): For limited objects initialized with build
15729 in place function calls, do nothing; otherwise we prematurely introduce
15730 an N_Reference node in the expression initializing the object, which
15731 breaks the circuitry that detects and adds the additional arguments to
15732 the called function. Bug found working in the new patch for statically
15733 allocated dispatch tables.
15734 (Is_Library_Level_Tagged_Type): New subprogram.
15735 (Remove_Side_Effects): If the expression of an elementary type is an
15736 operator treat as a function call.
15737 (Make_Literal_Range): If the index type of the array is not integer, use
15738 attributes properly to compute the constraint on the resulting aggregate
15741 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
15742 class-wide type whose base type is an incomplete private type, leave
15743 class-wide type unfrozen so that freeze nodes can be generated
15744 properly at a later point.
15745 (Freeze_Entity, array case): Handle case of pragma Pack and component
15746 size attributre clause for same array.
15748 2007-08-14 Vincent Celier <celier@adacore.com>
15750 * prj.ads, prj.adb: Update Project Manager to new attribute names for
15752 Allow all valid declarations in configuration project files
15753 (Reset): Initialize all tables and hash tables in the project tree data
15754 Major update of the Project Manager and of the project aware tools,
15755 including gprmake, so that the same sources in the GNAT repository
15756 can be used by gprbuild.
15757 (Slash_Id): Change type to be Path_Name_Type
15758 (Slash): Return a Path_Name_Type instead of a File_Name_Type
15760 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
15762 Update Project Manager to new attribute names for ghprbuild
15763 Allow all valid declarations in configuration project files
15764 Major update of the Project Manager and of the project aware tools,
15765 including gprmake, so that the same sources in the GNAT repository
15766 can be used by gprbuild.
15769 Major update of the Project Manager and of the project aware tools,
15770 including gprmake, so that the same sources in the GNAT repository
15771 can be used by gprbuild.
15773 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
15774 insensitive flag for attributes with optional index.
15775 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
15776 array attribute, put the index in lower case.
15777 Update Project Manager to new attribute names for ghprbuild
15778 Allow all valid declarations in configuration project files
15779 Major update of the Project Manager and of the project aware tools,
15780 including gprmake, so that the same sources in the GNAT repository
15781 can be used by gprbuild.
15783 * prj-env.ads, prj-env.adb:
15784 Major update of the Project Manager and of the project aware tools,
15785 including gprmake, so that the same sources in the GNAT repository
15786 can be used by gprbuild.
15787 (Get_Reference): Change type of parameter Path to Path_Name_Type
15789 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
15790 removing '-' from the path to start with the first character of the
15792 Major update of the Project Manager and of the project aware tools,
15793 including gprmake, so that the same sources in the GNAT repository
15794 can be used by gprbuild.
15795 Major update of the Project Manager and of the project aware tools,
15796 including gprmake, so that the same sources in the GNAT repository
15797 can be used by gprbuild.
15799 * prj-nmsc.ads, prj-nmsc.adb:
15800 Update Project Manager to new attribute names for ghprbuild
15801 Allow all valid declarations in configuration project files
15802 (Search_Directories): Detect subunits that are specified with an
15803 attribute Body in package Naming. Do not replace a source/unit in the
15804 same project when the order of the source dirs are known. Detect
15805 duplicate sources/units in the same project when the order of the
15806 source dirs are not known.
15807 (Check_Ada_Name): Allow all identifiers that are not reserved words
15809 Major update of the Project Manager and of the project aware tools,
15810 including gprmake, so that the same sources in the GNAT repository
15811 can be used by gprbuild.
15812 (Look_For_Sources): If the list of sources is empty, set the object
15813 directory of non extending project to nil.
15814 Change type of path name variables to be Path_Name_Type
15815 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
15816 otherwise creating missing directories will fail.
15818 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
15819 prj-part.ads, prj-part.adb:
15820 Major update of the Project Manager and of the project aware tools,
15821 including gprmake, so that the same sources in the GNAT repository
15822 can be used by gprbuild.
15824 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
15825 insensitive flag for attributes with optional index.
15826 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
15827 array attribute, put the index in lower case.
15828 (Parse_Variable_Reference): Allow the current project name to be used in
15829 the prefix of an attribute reference.
15831 * prj-util.ads, prj-util.adb
15832 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
15833 defaulted to False. When True, always check against indexes in lower
15836 * snames.ads, snames.h, snames.adb:
15837 Update Project Manager to new attribute names for gprbuild
15838 Allow all valid declarations in configuration project files
15840 2007-08-14 Robert Dewar <dewar@adacore.com>
15841 Ed Schonberg <schonberg@adacore.com>
15843 * opt.ads: Warning for non-local exception propagation now off by
15845 New switch -gnatI to disable representation clauses
15846 Implement new pragma Implicit_Packing
15849 Warning for non-local exception propagation now off by default
15850 Add warning for unchecked conversion of pointers wi different
15852 New switch -gnatI to disable representation clauses
15854 * usage.adb: new switch -gnatyS
15856 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
15857 note that aggregates of anonymous array types are not flagged.
15858 -gnatwc now includes membership tests optimized away
15859 -gnatw.x warnings are now off by default
15860 Added conditional compilation Appendix
15861 Add documentation of -gnatI
15862 Add documentation for new -gnatyS style check
15863 Update documentation about SAL and auto-init on Windows.
15866 Add documentation for pragma Check_Name and 'Enabled attribute
15867 Document that Eliminate on dispatching operation is ignored
15868 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
15869 Document pragma Main
15870 Document pragma Implicit_Packing
15872 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
15873 different conventions
15874 New switch -gnatI to disable representation clauses
15876 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
15877 recognized, report the invalid characters including "-gnat" instead of
15878 just the first character in the switch.
15879 New switch -gnatI to disable representation clauses
15880 Set Warn_On_Object_Renames_Function true for -gnatg
15882 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
15883 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
15884 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
15885 to switch -aP (add directory to project search dir).
15887 * par-prag.adb: Implement new pragma Implicit_Packing
15889 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
15890 type as having a non-standard representation, to force expansion on
15891 conversion to related types.
15892 (Analyze_Pragma): Warn on misspelled pragma
15893 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
15894 Ensure consistent use of # in error messages
15895 Implement pragma Implicit_Packing
15897 2007-08-14 Olivier Hainque <hainque@adacore.com>
15898 Eric Botcazou <ebotcazou@adacore.com>
15900 * targtyps.c (get_target_maximum_default_alignment): New function.
15902 that the compiler might choose by default for a type or object.
15903 (get_target_default_allocator_alignment): New function. Alignment known
15904 to be honored by the target default allocator.
15905 (get_target_maximum_allowed_alignment): New function. Maximum alignment
15906 we might accept for any type or object on the target.
15907 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
15909 * gigi.h (get_target_maximum_default_alignment): Declare new function.
15910 (get_target_default_allocator_alignment): Likewise.
15911 (get_target_maximum_allowed_alignment): Likewise.
15914 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
15915 result of a function call, first try to use a stabilized reference for
15916 a constant renaming too.
15917 (validate_alignment): Use target_maximum_allowed_alignment instead of
15918 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
15919 (gnat_to_gnu_entity): Use common nodes directly.
15920 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
15921 alignment and size for the object.
15922 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
15923 and N_Procedure_Call_Statement.
15924 (takes_address): Rename to lvalue_required_p, add third parameter
15925 'aliased' and adjust recursive calls.
15926 <N_Indexed_Component>: Update 'aliased' from the array type.
15927 <N_Selected_Component>: New case.
15928 <N_Object_Renaming_Declaration>: New Likewise.
15929 (Identifier_to_gnu): Adjust for above changes.
15930 (maybe_stabilize_reference) <CONST_DECL>: New case.
15932 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
15933 between type variants.
15934 (build_simple_component_ref): Likewise.
15935 (build_call_alloc_dealloc): Use target_default_allocator_alignment
15936 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
15937 aligning type circuitry for allocations from the default storage pool.
15938 (build_allocator): Likewise.
15939 (build_simple_component_ref): Manually fold the reference for a
15940 constructor if the record type contains a template.
15942 * utils.c (value_zerop): Delete.
15943 (gnat_init_decl_processing): Emit debug info for common types.
15944 (rest_of_record_type_compilation): If a union contains a field
15945 with a non-constant qualifier, treat it as variable-sized.
15946 (finish_record_type): Give the stub TYPE_DECL a name.
15947 (rest_of_record_type_compilation): Likewise.
15948 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
15949 types are equivalent array types.
15950 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
15951 even if the type is not passed by reference.
15952 (static_ctors, static_dtors): Delete.
15953 (end_subprog_body): Do not record constructors and destructors.
15954 (build_global_cdtor): Delete.
15955 (gnat_write_global_declarations): Do not call build_global_cdtor.
15957 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
15958 -fRTS=rtp is specified.
15959 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
15962 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
15963 of the personality function with SJLJ exceptions.
15965 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
15966 the name of the personality function with SJLJ exceptions.
15968 2007-08-14 Robert Dewar <dewar@adacore.com>
15969 Ed Schonberg <schonberg@adacore.com>
15971 * par.ads, par.adb: Improve handling of extra right parens.
15972 (Par): Remove flag From_Limited_With_Clause.
15974 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
15975 Improve handling of extra right parens.
15977 2007-08-14 Robert Dewar <dewar@adacore.com>
15979 * par-tchk.adb (TF_Semicolon): Improve error recovery
15981 2007-08-14 Robert Dewar <dewar@adacore.com>
15982 Ed Schonberg <schonberg@adacore.com>
15984 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
15985 enumeration type, mark all literals as referenced.
15986 (Eval_Attribute, case 'Image): If the argument is an enumeration
15987 literal and names are available, constant-fold but mark nevertheless as
15989 Clean up function names.
15990 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
15992 (Requires_Simple_Name_Prefix): Removed.
15994 2007-08-14 Robert Dewar <dewar@adacore.com>
15995 Ed Schonberg <schonberg@adacore.com>
15997 * sem_ch11.adb: Improved warnings for unused variables
15999 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
16000 is a synchronized interface, the derived type is limited.
16001 (Analyze_Object_Declaration): Mark the potential coextensions in the
16002 definition and expression of an object declaration node.
16003 (Build_Derived_Type): For the completion of a private type declaration
16004 with a derived type declaration, chain the parent type's representation
16005 items to the last representation item of the derived type (not the
16006 first one) if they are not present already.
16007 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
16008 object declaration of forward references to tags.
16009 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
16010 subprogram types can appear as access discriminants of synchronized
16012 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
16013 given in prefixed form as a selected component.
16014 (Process_Discriminants): If not all discriminants have defaults, place
16015 error message on a default that is present.
16016 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
16017 extend a synchronized tagged type.
16018 Improved warnings for unused variables
16019 (Is_Visible_Component): Fix a visibility hole on a component inherited
16020 by a private extension when parent is itself declared as a private
16021 extension, and the derivation is in a child unit.
16022 (Find_Hidden_Interface): Move spec from the package body.
16024 2007-08-14 Robert Dewar <dewar@adacore.com>
16025 Ed Schonberg <schonberg@adacore.com>
16027 * sem_ch5.adb: Improve warnings on redundant assignments
16029 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
16031 (Is_Synchronized_Tagged_Type): New subprogram that returns true
16032 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
16033 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
16034 is set to False. Improves handling of Known_[Not_]Null.
16035 (Wrong_Type): Special case address arithmetic attempt
16036 (Collect_Abstract_Interfaces): Add new formal to allow collecting
16037 abstract interfaces just using the partial view of private types.
16038 (Has_Abstract_Interfaces): Add new formal to allow checking types
16039 covering interfaces using the partial view of private types.
16040 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
16041 component still needs to be defined in this case, but is never
16042 initialized as VMs are using other dispatching mechanisms.
16043 (Abstract_Interface_List): For a protected type, use base type to get
16044 proper declaration.
16045 Improve warnings on redundant assignments
16046 (Is_Variable): Handle properly an implicit dereference of a prefixed
16048 (Build_Actual_Subtype): If this is an actual subtype for an
16049 unconstrained formal parameter, use the sloc of the body for the new
16050 declaration, to prevent anomalises in the debugger.
16052 2007-08-14 Robert Dewar <dewar@adacore.com>
16054 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
16055 dispatching operation
16057 2007-08-14 Ed Schonberg <schonberg@adacore.com>
16058 Gary Dismukes <dismukes@adacore.com>
16061 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
16062 expanded aggregate code before allocator, and ahead of declaration for
16063 temporary, to prevent access before elaboration when the allocator is
16064 an actual for an access parameter.
16065 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
16066 the TSD and the table of interfaces.
16067 (Convert_To_Assignments): Augment the test for delaying aggregate
16068 expansion for limited return statements to include the case of extended
16069 returns, to prevent creation of an unwanted transient scope.
16070 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
16071 (Expand_Array_Aggregate): Handle aggregates associated with
16072 statically allocated dispatch tables.
16073 (Expand_Record_Aggregate): Handle aggregates associated with
16074 statically allocated dispatch tables.
16075 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
16076 of anonymous access type.
16078 2007-08-14 Ed Schonberg <schonberg@adacore.com>
16080 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
16081 is a variable that renames a slice, use the variable itself in the
16082 expannsion when the renamed expression itself may be modified between
16083 the declaration of the renaming and the array assignment.
16085 2007-08-14 Jerome Guitton <guitton@adacore.com>
16087 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
16088 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
16089 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
16090 New functions; dummy implementations.
16092 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
16093 functions, used to implement the multi-tasks mode routines on VxWorks.
16095 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
16096 New functions, thin
16097 binding to the VxWorks routines which have changed between VxWorks 5
16099 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
16100 which are not callable from a RTP.
16102 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
16103 implemented for the multi-tasks mode on VxWorks 5 and 6.
16105 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
16107 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
16110 2007-08-14 Vincent Celier <celier@adacore.com>
16112 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
16113 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
16114 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
16115 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
16116 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
16117 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
16118 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
16120 (Major_Id_Name): New function.
16121 mlib-tgt.ads/mlib.tgt.adb:
16122 (Library_Major_Minor_Id_Supported): New function, default returns True
16123 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
16124 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
16125 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
16126 Implementation of Library_Major_Minor_Id_Supported returns False
16128 (Clean_Library_Directory): If major/minor ids are supported, clean all
16130 Major update of the Project Manager and of the project aware tools,
16131 including gprmake, so that the same sources in the GNAT repository
16132 can be used by gprbuild.
16134 2007-08-14 Olivier Hainque <hainque@adacore.com>
16136 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
16137 (GCC_ZCX_Support): Switch to True.
16139 * s-intman-solaris.adb (Notify_Exception): Call
16140 Adjust_Context_For_Raise before raising, as expected for signal
16141 handlers in general.
16143 * s-intman-posix.adb (Notify_Exception): Remove declaration of
16144 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
16145 to other implementation bodies.
16147 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
16148 be visible by multiple implementation bodies.
16150 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
16151 only for conditions coming from hardware.
16152 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
16153 adjustments to signal context prior to exception raise from signal
16155 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
16157 Solaris section: (__gnat_adjust_context_for_raise): New function.
16158 Implementation of the machine context adjustments to perform prior to
16159 raise from a signal handler. Version for both sparc and x86.
16160 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
16161 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
16162 prior to raising as expected for any handler, before possible nested
16163 faults to make sure all the contexts in a chain have been adjusted by
16164 the time we propagate.
16166 2007-08-14 Pascal Obry <obry@adacore.com>
16168 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
16169 (SYSTEM_INFO): New record.
16170 (SetThreadIdealProcessor): New imported routine needed for supporting
16171 task_info pragma on Windows.
16173 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
16174 info can be applied to the current host.
16175 (Create_Task): Set the ideal processor if information is present.
16177 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
16178 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
16180 2007-08-14 Olivier Hainque <hainque@adacore.com>
16182 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
16183 stack size and initial stack pointer value for a given task.
16184 (Enter_Task): Get the stack attributes of the task we are entering and
16185 let the stack checking engine know about them.
16187 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
16188 Let the stack-checking engine know about the initial sp value and stack
16189 size associated with the current task.
16190 (Set_Stack_Info): If a stack base has been notified for the current
16191 task, honor it. Fallback to the previous less accurate method otherwise.
16193 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
16195 2007-08-14 Ed Schonberg <schonberg@adacore.com>
16197 * sem_ch10.adb: Create a limited view of an incomplete type, to make
16198 treatment of limited views uniform for all visible declarations in a
16199 limited_withed package.
16200 Set flag indicating that a subprogram body for a child unit has a
16202 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
16203 separate declaration, remove the unit name from visibility after
16204 compilation, so that environment is clean for subsequent compilations.
16205 (Install_Limited_Context_Clauses): Do not install a
16206 limited_private_with_clause unless the current unit is a body or a
16207 private child unit.
16208 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
16209 in the same fashion.
16210 (Install_Limited_Withed_Unit): Do not install a limited with clause if
16211 it applies to the declaration of the current package body.
16212 (Remove_Private_With_Clauses): If there is a regular with_clause for
16213 the unit, delete Private_With_Clause from context, to prevent improper
16214 hiding when processing subsequent nested packages and instantiations.
16216 2007-08-14 Jose Ruiz <ruiz@adacore.com>
16218 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
16219 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
16220 representing absolute path names.
16221 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
16223 * cstreams.c (__gnat_full_name for VxWorks): Use
16224 __gnat_is_absolute_path to detect whether we need to add the current
16225 directory to normalize the path.
16227 2007-08-14 Javier Miranda <miranda@adacore.com>
16230 a-tags.adb (Displace): Associate a message with the raised CE
16232 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
16233 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
16234 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
16236 (Default_Prim_Op_Count): Removed.
16237 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
16238 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
16239 Remove pragma Inline_Always.
16241 * rtsfind.ads (Default_Prim_Op_Count): Removed
16242 (Max_Predef_Prims): New entity
16243 (RE_Expanded_Name): Removed
16244 (RE_HT_Link): Removed
16245 (RE_Iface_Tag): Remmoved
16246 (RE_Ifaces_Table): Removed
16247 (RE_Interfaces_Array): Removed
16248 (RE_Interface_Data_Element): Removed
16249 (RE_Nb_Ifaces): Removed
16250 (RE_RC_Offset): Removed
16251 (RE_Static_Offset_To_Top): Removed
16253 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
16255 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
16256 Prim_Op_Count by Max_Predef_Prims.
16258 2007-08-14 Thomas Quinot <quinot@adacore.com>
16259 Vincent Celier <celier@adacore.com>
16261 * binde.adb (Elab_All_Links): Remove unnecessary call to
16262 Generic_Separately_Compiled (if a unit satisfies this predicate, there
16263 won't be an associated Afile).
16264 (Elab_All_Links): Fail if a referenced unit cannot be found
16267 Fix comments in bindgen regarding consistency checks done in Bcheck:
16268 the checks are made across units within a partition, not across several
16270 Fix generation of C binder file for VxWorks.
16272 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
16273 Generic_May_Lack_ALI, more descriptive of the current use of the
16274 predicate, and update documentation.
16276 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
16277 reorganization and documentation update for the case of predefined
16278 library generics (for which we do not reference an Afile).
16280 2007-08-14 Robert Dewar <dewar@adacore.com>
16282 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
16283 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
16284 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
16285 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
16286 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
16287 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
16288 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
16289 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
16290 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
16291 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
16292 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
16293 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
16294 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
16295 g-altcon.adb: Minor reformatting
16297 ada-tree.h: Delete empty line.
16299 ali.ads: Minor reformatting
16300 Clarification of comments.
16301 Minor spelling correction
16303 * exp_dbug.adb: Add Warnings Off to suppress new warning
16305 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
16308 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
16311 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
16313 * a-textio.ads: Reorder the standard input/output/error declarations
16316 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
16318 * par-ch2.adb: Recognize RM specially in errout
16319 Change 'R'M to RM in all error messages
16321 * scng.adb: Recognize RM specially in errout
16323 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
16324 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
16326 * s-direio.adb: Add missing routine header box.
16328 * sem_attr.ads: Add ??? comments
16330 * sem_eval.adb: Recognize RM specially in errout
16331 Change 'R'M to RM in all error messages
16333 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
16335 * s-tasinf.ads: Fix minor comment typo.
16337 * a-cihama.adb: Minor comment addition
16339 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
16342 * s-tasinf-tru64.ads: Fix minor comment typo.
16344 * itypes.ads: Comment update.
16346 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
16349 * argv.c: Added protection against null gnat_argv and gnat_envp.
16351 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
16352 warning message when Tolerate_Consistency_Errors is True.
16354 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
16355 Any_Id, as this subprogram is only applicable to *type* entities (it
16356 sets RM_Size). Instead initialize just Esize and Alignment.
16358 2007-08-14 Bob Duff <duff@adacore.com>
16360 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
16361 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
16362 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
16363 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
16364 a-coorse.ads (Next): Applied pragma Inline.
16365 Make all Containers packages Remote_Types (unless they are already
16367 (Previous): applied pragma Inline
16368 (Elements_Type): is now a record instead of an array
16370 2007-08-14 Thomas Quinot <quinot@adacore.com>
16372 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
16374 (Set_Item): When the new item is an element of the currently allocated
16375 table passed by reference, save a copy on the stack if we're going
16376 to reallocate. Also, in Table.Set_Item, make sure we test the proper
16377 variable to determine whether to call Set_Last.
16379 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
16380 symbols-vms.adb, symbols-processing-vms-alpha.adb,
16381 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
16382 some occurrences of the pattern
16384 T.Table (T.Last) := Value;
16385 with a cleaner call to
16388 2007-08-14 Ed Schonberg <schonberg@adacore.com>
16389 Gary Dismukes <dismukes@adacore.com>
16390 Thomas Quinot <quinot@adacore.com>
16392 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
16393 derived type with interface progenitors use the analyzed formal as the
16394 parent of the actual, to create renamings for all the inherited
16395 operations in Derive_Subprograms.
16396 (Collect_Previous_Instances): new procedure within of
16397 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
16398 unit being loaded, to ensure that the generation of global symbols is
16399 consistent in different compilation modes.
16400 (Is_Tagged_Ancestor): New function testing the ancestor relation that
16401 takes progenitor types into account.
16402 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
16403 traversing over the primitives of the formal and actual types to locate
16404 any abstract subprograms of the actual type that correspond to a
16405 nonabstract subprogram of the formal type's ancestor type(s), and issue
16406 an error if such is found.
16407 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
16408 Instantiate_Package_Body, Instantiate_Subprogram_Body):
16409 Remove bogus guard around calls to Inherit_Context.
16410 (Reset_Entity): If the entity is the selector of a selected component
16411 that denotes a named number, propagate constant-folding to the generic
16412 template only if the named number is global to the generic unit.
16413 (Set_Instance_Env): Only reset the compilation switches when compiling
16414 a predefined or internal unit.
16416 2007-08-14 Ed Schonberg <schonberg@adacore.com>
16418 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
16419 parameter to determine whether operation applies to the prefix.
16420 (Complete_Object_Operation): If actual has an access type and
16421 controlling formal is not an in_parameter, reject the actual if it is
16422 an access_to_constant type.
16423 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
16424 type, the candidate operations are found in the scope of declaration of
16425 the type, because the type has no primitive subprograms.
16426 (Analyze_Selected_Component): If prefix is class-wide, and root type is
16427 a private extension, only examine visible components before trying to
16428 analyze as a prefixed call.
16429 Change Entity_List to Type_To_Use, for better readability.
16430 (Has_Fixed_Op): Use base type when checking whether the type of an
16431 operator has a user-defined multiplication/division
16432 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
16433 user-defined operators are available for fixed-point types.
16435 2007-08-14 Thomas Quinot <quinot@adacore.com>
16436 Ed Schonberg <schonberg@adacore.com>
16438 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
16439 formal At_Any_Place indicating, when True, that we want to test for
16440 availability of the stream attribute at any place (as opposed to the
16441 current visibility context only).
16442 (Missing_Read_Write_Attributes): A stream attribute is missing for the
16443 purpose of enforcing E.2.2(8) only if it is not available at any place.
16444 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
16445 when checking the legality of an extension aggregate in a preelaborable
16446 package. Treat the literal null as a valid default expression in a
16447 component declaration for a type with preelaborable initialization.
16448 A limited interface is a legal progenitor for the designated type of a
16449 remote access to class-wide type.
16451 2007-08-14 Thomas Quinot <quinot@adacore.com>
16452 Ed Schonberg <schonberg@adacore.com>
16454 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
16455 reference): Use correct entity as denoted entity for the selector of
16456 the rewritten node.
16457 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
16458 setting the Referenced_As_LHS flag for entities that are implicitly
16460 (Find_Type): If the type is an internally generated incomplete type,
16461 mark the full view as referenced, to prevent spurious warnings.
16462 (Find_Selected_Component, Has_Components): Handle properly non-limited
16463 views that are themselves incomplete types.
16464 Handle interfaces visible through limited-with clauses.
16465 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
16466 subprogram generic actual for which we have generated a renaming.
16467 Warn when the renaming introduces a homonym of
16468 the renamed entity, and the renamed entity is directly visible.
16470 2007-08-14 Ed Schonberg <schonberg@adacore.com>
16471 Hristian Kirtchev <kirtchev@adacore.com>
16473 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
16474 appear in the subtree to the current allocator if it is not a static
16476 (Resolve_Allocator): Perform cleanup if resolution has determined that
16477 the allocator is not a coextension.
16478 (Resolve): Skip an interpretation hidden by an abstract operator only
16479 when the type of the interpretation matches that of the context.
16480 (Resolve): When looping through all possible interpretations of a node,
16481 do not consider those that are hidden by abstract operators.
16482 (Resolve_Actuals): When verifying that an access to class-wide object
16483 is an actual for a controlling formal, ignore anonymous access to
16484 subprograms whose return type is an access to class_wide type.
16485 (Resolve_Slice): If the prefix of the slice is a selected component
16486 whose type depends on discriminants, build its actual subtype before
16487 applying range checks on the bounds of the slice.
16488 (Valid_Conversion): In an instance or inlined body, compare root types,
16489 to prevent anomalies between private and public views.
16490 (Resolve): Improve error message for ambiguous fixed multiplication
16491 expressions that involve universal_fixed multiplying operations.
16493 2007-08-14 Javier Miranda <miranda@adacore.com>
16494 Hristian Kirtchev <kirtchev@adacore.com>
16496 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
16497 location to allow the correct generation of errors in case of
16498 restrictions applied to the expanded code.
16499 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
16500 function if the condition does not reference them.
16501 (Expand_Entry_Body_Declarations): Mark the index constant as having a
16504 2007-08-14 Thomas Quinot <quinot@adacore.com>
16505 Pablo Oliveira <oliveira@adacore.com>
16507 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
16508 typecode parameters for a union (in a variant record), remove
16509 extraneous layer of Any wrapping for member label.
16510 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
16511 elabration statements, register the package with the name server
16512 at the beginning, not at the end, of the elaboration statements so
16513 that they can create remote access to subprogram values that designate
16514 remote subprograms from the package.
16516 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
16518 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
16519 values to compute the number of seconds since the Unix Epoc in order to
16520 account for Daylight Savings Time. Perform special processing for dates
16521 that are earlier than the Unix Epoc to obtain a negative number.
16523 2007-08-14 Emmanuel Briot <briot@adacore.com>
16525 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
16528 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
16530 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
16531 binder-generated file is not in Ada.
16532 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
16533 recorded in the ALI file.
16534 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
16536 2007-08-14 Vincent Celier <celier@adacore.com>
16538 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
16539 (Output_Source): Do nothing if parameter is No_Sdep_Id
16541 * make.adb (Gnatmake): Do not rebuild an archive simply because a
16542 shared library it imports has a later time stamp.
16543 (Check): Resolve the symbolic links in the path name of the object
16545 Check that the ALI file is in the correct object directory
16546 Check if a file name does not correspond to the mapping of units
16548 (Display_Version): New procedure
16549 (Initialize): Process switches --version and --help
16550 Use type Path_Name_Type for path name
16552 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
16554 * impunit.adb: Re-organize System.Random_Numbers and
16555 GNAT.Random_Numbers and add to builds.
16557 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
16559 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
16561 * a-assert.ads, a-assert.adb: New files.
16563 2007-08-14 Gary Dismukes <dismukes@adacore.com>
16565 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
16566 if AAMP_On_Target is True, then the size of the type encompasses two
16567 addresses (a static link and a subprogram address), except in the case
16568 of library-level access types.
16570 2007-08-14 Vincent Celier <celier@adacore.com>
16572 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
16574 (Write_Eol_Keep_Blanks): New procedure to write a line, including
16575 possible trailing spaces.
16576 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
16578 2007-08-14 Javier Miranda <miranda@adacore.com>
16580 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
16581 null-excluding access types.
16583 2007-08-14 Javier Miranda <miranda@adacore.com>
16585 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
16586 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
16587 of private types add missing check on matching interfaces in the
16588 partial and full declarations.
16589 (Analyze_Protected_Type): Code cleanup.
16590 (Analyze_Task_Type): Code cleanup.
16592 2007-08-14 Javier Miranda <miranda@adacore.com>
16594 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
16595 generated interface thunk.
16597 2007-08-14 Ed Schonberg <schonberg@adacore.com>
16599 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
16600 obsolescent warning on application of 'Class to an incomplete type.
16602 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
16603 prevent obsolescent warning on application of 'Class to an incomplete
16606 2007-08-14 Pascal Obry <obry@adacore.com>
16608 * s-fileio.adb (Is_Open): Add check for usability of the underlying
16611 2007-08-14 Cyrille Comar <comar@adacore.com>
16613 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
16614 since it is potentially used in cases implying double finalization of
16617 2007-08-14 Jose Ruiz <ruiz@adacore.com>
16619 * s-tasini.adb (Get_Stack_Info): Move this function to
16620 System.Soft_Links.Tasking because it is common to the full and the
16621 restricted run times.
16622 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
16623 in SSL.Tasking.Init_Tasking_Soft_Links.
16625 * s-solita.adb (Get_Stack_Info): Function moved from
16626 System.Tasking.Initialization because it is common to the full and the
16627 restricted run times.
16628 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
16630 2007-08-14 Arnaud Charlet <charlet@adacore.com>
16632 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
16633 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
16634 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
16637 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
16640 2007-08-14 Gary Dismukes <dismukes@adacore.com>
16642 * s-veboop.adb (SU): New named number initialized to
16643 System.Storage_Unit.
16644 (True_Val): The initialization expression is revised to use SU (=
16645 Storage_Unit) rather than assuming 8 for the component size of an
16646 unpacked Boolean array.
16648 2007-08-14 Tristan Gingold <gingold@adacore.com>
16650 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
16652 * tb-ivms.c: New file.
16654 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
16656 2007-08-14 Geert Bosch <bosch@adacore.com>
16658 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
16659 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
16660 Add required linker pragmas for automatically linking with the gnalasup
16661 linear algebra support library, and the systems math library.
16662 Rename cdot to cdotu and zdot to zdotu.
16663 Update header comment to describe purpose of package.
16665 2007-08-14 Thomas Quinot <quinot@adacore.com>
16667 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
16668 an explicitly specified Associated_Final_Chain, use that list.
16669 (Expand_N_Package_Body): Build dispatch tables of library level tagged
16671 (Expand_N_Package_Declaration): Build dispatch tables of library level
16672 tagged types. Minor code cleanup.
16674 2007-08-14 Vincent Celier <celier@adacore.com>
16676 * gnatchop.adb (Terminate_Program): Remove exception and use
16677 Types.Terminate_Program instead.
16679 * osint.ads, osint.adb (Current_Exit_Status): New global variable
16680 (Find_Program_Name): Added protection against empty name.
16681 (OS_Exit_Through_Exception): New procedure
16683 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
16684 (OS_Exit_Default): New procedure that contains the previous
16685 implementation of procedure OS_Exit.
16686 (Final_Value): Remove obsolete Interix stuff.
16688 2007-08-14 Thomas Quinot <quinot@adacore.com>
16690 * g-socket.ads: Reorganize example code so that it also works on
16693 2007-08-14 Tristan Gingold <gingold@adacore.com>
16695 * g-trasym.ads: AIX now supports symbolic backtraces.
16697 2007-08-14 Ed Schonberg <schonberg@adacore.com>
16699 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
16700 units being loaded to detect circularities. A circularity may be
16701 present even if the current chain of pending units to load starts from
16702 a limited_with_clause.
16704 * lib-load.ads: Change profile of Load_Unit to use a with_clause
16705 rather than a boolean flag, in order to detect circularities in
16708 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
16709 than propagating the From_Limited_With flag, in order to handle
16710 properly circularities involving with_clauses.
16712 2007-08-14 Nicolas Setton <setton@adacore.com>
16714 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
16717 2007-08-14 Arnaud Charlet <charlet@adacore.com>
16719 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
16720 to build for libgnala.
16721 libgnat: Add rules to build libgnala.a
16722 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
16723 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
16724 Add s-osinte-vxworks-kernel.adb to the target pairs of the
16725 kernel run-time lib for VxWorks 6, which would provide a different
16726 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
16727 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
16728 running ZCX by default.
16729 Add g-sttsne-locking to LynxOS version.
16730 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
16731 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
16733 * system-darwin-x86.ads: New file.
16735 * Make-lang.in: Delete files before copying onto them, so if they are
16736 read-only, the copy won't fail.
16737 Update dependencies
16739 2007-08-14 Pascal Obry <obry@adacore.com>
16741 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
16744 2007-08-14 Vincent Celier <celier@adacore.com>
16746 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
16747 (Gcc): Initialize Gcc_Name at the first call
16749 2007-08-14 Ed Schonberg <schonberg@adacore.com>
16751 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
16752 with_clauses of the enclosing unit when analyzing the package
16753 specification of a nested instance.
16755 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
16757 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
16758 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
16759 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
16760 layout of N_Allocator.
16762 2007-08-14 Thomas Quinot <quinot@adacore.com>
16764 * rtsfind.adb (Check_RPC): Add PCS version check.
16766 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
16767 (Gnat_Free_Software): New function.
16769 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
16770 the PCS_Version value from s-parint, used to check that it is consistent
16771 with what exp_dist expects.
16773 * s-parint.ads (PCS_Version): New entity for checking consistency
16774 between exp_dist and PCS.
16776 * gen-soccon.c: (SO_REUSEPORT): New constant.
16778 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
16780 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
16781 variable Sub_Second to Duration in order to accomodate a larger range
16782 of arithmetic operations.
16784 2007-08-14 Bob Duff <duff@adacore.com>
16786 * g-sttsne-locking.ads: Move comments from spec to body.
16787 * g-sttsne-locking.adb: Move comments from spec to body.
16788 * g-sttsne-vxworks.ads: Removed.
16789 * g-sttsne-vxworks.adb: Removed.
16791 2007-08-11 Ian Lance Taylor <iant@google.com>
16793 * misc.c (gnat_get_alias_set): Change return type to
16796 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16798 * decl.c, utils2.c: Fix whitespace in last change.
16800 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16802 * decl.c (compare_field_bitpos): Constify.
16803 * utils2.c (compare_elmt_bitpos): Likewise.
16805 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
16807 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
16808 anonymous access type.
16809 (pthread_sigmask): Now take an access sigset_t.
16811 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
16813 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
16815 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
16817 PR tree-optimization/25737
16818 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
16820 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
16822 * trans.c (Attribute_to_gnu): When subtracting an
16823 offset from a pointer, use POINTER_PLUS_EXPR with
16824 NEGATE_EXPR instead of MINUS_EXPR.
16825 (gnat_to_gnu): Likewise.
16826 * utils.c (convert): When converting between
16827 thin pointers, use POINTER_PLUS_EXPR and sizetype
16829 * utils2.c (known_alignment): POINTER_PLUS_EXPR
16830 have the same semantics as PLUS_EXPR for alignment.
16831 (build_binary_op): Add support for the semantics of
16832 POINTER_PLUS_EXPR's operands.
16833 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
16835 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
16837 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
16838 of get_signed_or_unsigned_type.
16839 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
16841 2007-06-11 Bob Duff <duff@adacore.com>
16842 Thomas Quinot <quinot@adacore.com>
16844 * g-stsifd-sockets.adb (Create): Work around strange behavior of
16845 'bind' on windows that causes 'connect' to fail intermittently, by
16846 retrying the 'bind'.
16847 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
16849 2007-06-10 Duncan Sands <baldrick@free.fr>
16851 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
16852 than to void, for the fields when making a new fat pointer type.
16853 (gnat_substitute_in_type): Now substitute_in_type.
16854 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
16855 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
16856 * utils.c (update_pointer_to): Update fat pointers by updating the
16857 dummy node pointers used for the fields.
16859 2007-06-06 Thomas Quinot <quinot@adacore.com>
16860 Bob Duff <duff@adacore.com>
16862 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
16863 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
16864 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
16865 constant Thread_Blocking_IO, always True by default, set False
16866 on a per-runtime basis.
16867 (Need_Netdb_Buffer): New constant.
16869 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
16870 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
16873 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
16874 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
16875 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
16876 child package Task_Safe_NetDB
16877 (Host_Error_Messages): Add stub body.
16878 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
16880 * g-soccon-mingw.ads: Add Windows-specific constants.
16881 (Need_Netdb_Buffer): New constant.
16882 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
16883 wrapper and import inet_addr(3) from the standard sockets library
16885 (In_Addr): Add alignment clause.
16886 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
16888 2007-06-06 Robert Dewar <dewar@adacore.com>
16890 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
16891 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
16892 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
16893 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
16894 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
16895 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
16896 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
16897 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
16898 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
16899 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
16900 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
16901 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
16902 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
16903 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
16904 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
16905 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
16906 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
16907 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
16908 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
16909 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
16910 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
16911 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
16912 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
16913 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
16914 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
16915 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
16916 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
16917 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
16918 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
16919 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
16920 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
16921 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
16922 Unchecked_* by Ada.Unchecked_*
16924 2007-06-06 Robert Dewar <dewar@adacore.com>
16926 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
16927 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
16928 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
16929 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
16930 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
16931 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
16933 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
16934 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
16935 s-tasloc.adb, s-tasloc.ads: New files.
16937 2007-06-06 Bob Duff <duff@adacore.com>
16939 * g-expect-vms.adb:
16940 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
16941 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
16942 (Send_Signal, Close): Raise Invalid_Process if the process id is
16944 (Pattern_Matcher_Access): Is now a general access type to be able to
16945 use aliased string.
16947 2007-06-06 Thomas Quinot <quinot@adacore.com>
16948 Arnaud Charlet <charlet@adacore.com>
16950 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
16951 (SIGEMT is now used instead of SIGTERM on AIX).
16953 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
16954 (Time_Slice_Supported): Set to True.
16955 Use SIGEMT instead of SIGTERM as SIGADAABORT.
16957 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16959 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
16960 (Time, Time)): Use To_Relative_Time rather than manual calculation to
16961 express the bounds of Duration as Time. Raise Time_Error when the
16962 result is greater or equal to the higher bound of Duration (on the
16964 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
16965 Ada_High_And_Leaps.
16966 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
16967 Ada_High_And_Leaps.
16968 ("-" (Time, Time)): Reorder code.
16969 (All_Leap_Seconds): Removed.
16970 (Arithmetic_Operations.Add): Remove sign related kludge.
16971 (Arithmetic_Operations.Difference): Control the leaps seconds processing
16972 with flag Leap_Support.
16973 (Arithmetic_Operations.Subtract): Remove sign related kludge.
16974 (Check_Within_Time_Bounds): New procedure.
16975 (Clock): Control the leap seconds processing with flag Leap_Support.
16976 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
16977 (Formatting_Operations.Split): Control the leap seconds processing with
16979 (Formatting_Operations.Time_Of): Control the leaps seconds processing
16980 with flag Leap_Support. Adjust the year, month and day (if applicable)
16981 when the value of day seconds designates a new day.
16982 (Split): Use parameter associations for better readability. Integrate
16984 (Time_Of): Use parameter associations for better readability. Integrate
16987 * a-calfor.adb (Split): Use parameter associations for better
16988 readability. Integrate flag Is_Ada_05.
16989 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
16990 better readability. Integrate flag Is_Ada_05.
16992 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16994 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
16995 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
16996 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
16997 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
16998 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
16999 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
17000 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
17001 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
17002 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
17003 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
17004 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
17005 time when entering this routine to detect a backward clock setting
17006 (manual setting or DST adjustment), to avoid waiting for a longer delay
17008 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
17009 Remove handling of deferred priority change, and replace by setting the
17010 task priority directly, as required by AI-188.
17012 (Max_Task_Image_Length): New constant.
17013 Replace Warnings (Off) by Unreferenced pragma, cleaner.
17014 (Dynamic_Priority_Support): Removed, no longer needed.
17015 (Poll_Base_Priority_Change): Ditto.
17016 (Set_Ceiling): Add this procedure to change the ceiling priority
17017 associated to a lock. This is a dummy implementation because dynamic
17018 priority ceilings are not supported by the underlying system.
17020 * a-dynpri.adb (Set_Priority): Take into account case where Target is
17021 accepting a RV with its priority boosted.
17022 Remove handling of deferred priority change, and replace by setting the
17023 task priority directly, as required by AI-188.
17025 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
17027 Remove handling of deferred priority change, and replace by setting the
17028 task priority directly, as required by AI-188.
17029 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
17030 of Self_Id earlier.
17032 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
17033 (Poll_Base_Priority_Change): Removed.
17034 Code clean up: use SSL.Current_Target_Exception.
17036 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
17037 to run as this is a potentially dispatching point.
17038 (Call_Synchronous): Use Local_Defer_Abort.
17039 (Callable): Relax assertion.
17040 (Selective_Wait): Relax assertion in case abort is not allowed.
17041 Remove handling of deferred priority change, and replace by setting the
17042 task priority directly, as required by AI-188.
17044 * s-tasuti.adb (Make_Passive): Adjust assertions.
17045 Remove handling of deferred priority change, and replace by setting the
17046 task priority directly, as required by AI-188.
17048 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17050 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
17051 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
17052 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
17053 system-vxworks-mips.ads, system-vxworks-alpha.ads,
17054 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
17055 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
17056 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
17057 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
17058 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
17059 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
17060 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
17061 This patch changes the largest non-binary modulus from 2**31-1 to
17063 (Compiler_System_Version): Removed, no longer used.
17064 Clean up system files by removing flags only used on a single target.
17065 Also remove obsolete flags, only used during bootstrap from system.ads
17066 (Address): Add a pragma Preelaborable_Initialization.
17068 * system-aix.ads: Ditto.
17069 (GCC_ZCX_Support): Set to true.
17070 Update priority range on AIX and map Ada priorities to target
17071 priorities appropriately for different scheduling policies.
17073 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
17075 2007-06-06 Vincent Celier <celier@adacore.com>
17077 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
17078 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
17080 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
17081 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
17082 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
17083 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17084 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
17085 MLib.Tgt, containing the default versions of the exported subprograms.
17086 For each platform, create a specific version of the body of new child
17087 package MLib.Tgt.Specific that contains only the body of subprograms
17088 that are different from the default.
17089 (Archive_Builder_Append_Options): New function.
17091 2007-06-06 Matthew Gingell <gingell@adacore.com>
17093 * s-osinte-aix.adb: Map Ada priorities to target priorities
17094 appropriately for different scheduling policies.
17096 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17098 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
17100 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
17101 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
17103 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
17105 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
17106 Noop on VMS, added for interface commonality.
17108 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
17109 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17110 Olivier Hainque <hainque@adacore.com>
17112 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
17113 renamed expression of a full renaming at toplevel.
17114 (gnat_to_gnu_entity, case object): If not defining, do not look inside
17115 the values the constant is initialized to if it is an N_Allocator.
17116 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
17117 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
17118 (make_aligning_type): Accept an extra ROOM argument for storage to be
17119 made available before the aligned field, and an extra BASE_ALIGN
17120 argument for callers to pass the alignment guaranteed to be honored for
17121 the whole aligning object. Avoid call to finish_record_type, which only
17122 interferes with the sizes we want to set.
17123 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
17124 make_aligning_type for super-aligned objects on stack.
17125 (components_to_record): Pass the adjusted size of the type when creating
17126 fields in the qualified union for the variant part.
17127 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
17128 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
17130 (maybe_pad_type): Set TYPE_USER_ALIGN.
17131 (make_aligning_type): Likewise.
17132 ALIGN argument is unsigned int.
17133 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
17134 (gnat_to_gnu_param): Likewise, for parameters.
17135 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
17136 if it is constant and stems from a function call.
17137 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
17138 of the record is specified. Adjust accordingly.
17139 (adjust_packed): New static function.
17140 (gnat_to_gnu_field): Use it to adjust the packedness setting.
17141 (components_to_record): Likewise.
17142 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
17143 side-effects if the object is deemed constant.
17144 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
17145 type instead of merely finalizing it. Tidy.
17146 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
17147 <E_Access_Type>: Likewise.
17148 (defer_debug_incomplete_list): Rename to defer_finalize_list.
17149 (defer_debug_level): Delete.
17150 (gnat_to_gnu_entity) <debug_deferred>: Likewise
17151 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
17153 <E_Record_Type>: Do not explicitly defer finalizing the type.
17154 Adjust for write_record_type_debug_info renaming.
17155 <E_Subprogram_Type>: Likewise.
17156 Finalize deferred types right after deferred incomplete types are
17158 (rest_of_type_decl_compilation): New global function.
17159 (components_to_record): Rename defer_debug parameter to do_not_finalize.
17160 (components_to_record): Propagate the packedness to the fields of the
17161 qualified union type if there is a variant part.
17162 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
17163 instead of inline code to adjust the XUT field offsets.
17164 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
17165 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
17166 and write the debug info if the type derives from a discriminated one.
17167 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
17168 <E_Array_Subtype>: Likewise.
17169 <E_String_Literal_Subtype>: Likewise.
17170 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
17171 an alignment clause.
17172 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
17173 before giving warning.
17174 (prepend_one_attribute_to): New function, helper to prepend an attribute
17175 to an attribute list.
17176 (gnat_to_gnu_entity) <E_Procedure>: Use it.
17177 (prepend_attributes): Likewise.
17178 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
17179 <E_Array_Type>: Declare the padding type for the element type, if any.
17180 <E_Array_Subtype>: Likewise.
17181 (defer_limited_with): New variable.
17182 (Gigi_Equivalent_Type): New function.
17183 (gnat_to_gnu_entity): Use it at start and use result throughout.
17184 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
17185 Gigi_Equivalent_Type, support Limited_With, allow two levels of
17186 indirection, precompute if unconstrained array to simplify logic, and
17187 use defer_limited_with to defer elaboration of some types from limited
17189 (finalize_from_with_types): New function.
17191 2007-06-06 Gary Dismukes <dismukes@adacore.com>
17192 Eric Botcazou <ebotcazou@adacore.com>
17193 Tristan Gingold <gingold@adacore.com>
17194 Olivier Hainque <hainque@adacore.com>
17196 * trans.c (Identifier_to_gnu): Change test for deferred constant by
17197 adding guard that the entity is an E_Constant before testing presence
17198 of Full_view (and remove unnecessary test that entity is not a type).
17199 For a CONST_DECL used by reference, manually retrieve
17200 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
17201 (struct language_function): Move from utils.c to here.
17202 (struct parm_attr): New structure.
17203 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
17204 (f_parm_attr_cache): New macro.
17205 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
17206 expressions for the 'First, 'Last and 'Length attributes of the
17207 unconstrained array IN parameters.
17208 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
17209 Allocate the information structure for the function earlier, as well
17210 as the language-specific part.
17211 If the parameter attributes cache has been populated, evaluate the
17212 cached expressions on entry.
17213 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
17214 N_Procedure_Call_Statement and N_Indexed_Component.
17215 (Pragma_to_gnu): Translate inspection_point to an asm statement
17216 containaing a comment and a reference to the object (either its address
17217 for BLKmode or its value).
17218 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
17219 to go to DECL_INITIAL. Together with the size constraint relaxation
17220 in create_var_decl, enlarges the set of situations in which an
17221 identifier may be used as an initializer without implying elaboration
17223 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
17224 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
17226 (maybe_stabilize_reference): Remove lvalues_only parameter.
17227 (gnat_stabilize_reference): Adjust for above change.
17228 (gnat_to_gnu): Do not set location information on the result
17229 if it is a reference.
17230 (add_cleanup): Add gnat_node parameter and set the location of the
17232 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
17233 (Exception_Handler_to_gnu_zcx): Likewise.
17234 (gigi): Remove the cgraph node if the elaboration procedure is empty.
17235 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
17236 the former right after the latter.
17237 (start_stmt_group): Make global.
17238 (end_stmt_group): Likewise.
17239 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
17241 (gnu_program_error_label_stack): Likewise.
17242 (gigi): Initialize them.
17243 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
17244 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
17246 (push_exception_label_stack): New function.
17247 (takes_address): New function.
17249 * utils.c (struct language_function): Move to trans.c from here.
17250 (unchecked_convert): Do not wrap up integer constants in
17251 VIEW_CONVERT_EXPRs.
17252 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
17253 the latter for aggregate types, unexpected by later passes, and relax an
17254 arbitrary size constraint on the former.
17255 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
17256 to compare the sizes.
17257 (convert_vms_descriptor): When converting to a fat pointer type, be
17258 prepared for a S descriptor at runtime in spite of a SB specification.
17259 (shift_unc_components_for_thin_pointers): New function.
17260 (write_record_type_debug_info): For variable-sized fields, cap the
17261 alignment of the pointer to the computed alignment.
17262 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
17263 If REP_LEVEL is 2, do not compute the sizes.
17264 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
17265 (build_unc_object_type): Likewise.
17266 (declare_debug_type): New function.
17268 * ada-tree.def: USE_STMT: removed (not emitted anymore).
17270 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
17271 no statement is expandable anymore.
17272 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
17273 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
17274 when the user requested it explicitely.
17275 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
17277 (get_alias_set): Return alias set 0 for a type if
17278 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
17280 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
17281 (DECL_FUNCTION_STUB): New accessor macro.
17282 (SET_DECL_FUNCTION_STUB): New setter macro.
17284 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
17286 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
17289 2007-06-06 Jose Ruiz <ruiz@adacore.com>
17291 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
17292 Rename to Abort_Task_Interrupt to be able to keep the same interface
17293 as the rest of the targets.
17295 * s-osinte-vxworks.ads s-osinte-vxworks.adb
17296 (To_VxWorks_Priority): Remove explicit "in" mode indicator
17298 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
17301 2007-06-06 Robert Dewar <dewar@adacore.com>
17303 * a-chahan.ads: Remove obsolescent pragmas
17305 * a-chlat1.ads: Minor reformatting
17307 2007-06-06 Robert Dewar <dewar@adacore.com>
17309 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
17312 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
17315 * errout.ads (Finalize): Changed interface
17316 (Output_Messages): New procedure
17317 (Compilation_Errors): New Interface
17319 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
17320 Finalize/Output_Messages interface for Errout
17321 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
17324 2007-06-06 Thomas Quinot <quinot@adacore.com>
17325 Olivier Hainque <hainque@adacore.com>
17326 Robert Dewar <dewar@adacore.com>
17328 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
17330 (Raise_Current_Excep): Call Debug_Raise_Exception just before
17331 propagation starts, to let debuggers know about the event in a reliable
17333 (Local_Raise): Moved to System.Exceptions
17334 More convenient to have this as a separate unit
17336 * s-except.adb, s-except.ads: New files.
17338 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
17339 Debug_Unhandled_Exception in System.Exceptions where it belongs
17340 together with a couple of other debug helpers.
17341 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
17342 the former Unhandled_Exception.
17344 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
17345 (Warn_No_Exception_Propagation): New procedure
17346 (Warn_If_No_Propagation): Rewritten for new warning generation
17347 (Expand_Exception_Handlers): New warning generation
17348 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
17349 (Add_Exception_Label): Use Special_Exception_Package_Used for test
17350 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
17351 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
17352 even if restriction is set (makes life easier in Check_Returns)
17353 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
17354 checking exception identities.
17355 (Expand_Local_Exception_Handlers): Do not optimize when all others case
17356 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
17357 block for handler (used by Check_Returns)
17358 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
17359 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
17360 remove all exception handlers when optimizing local raise statements.
17361 (Find_Local_Handler): Use Get_Renamed_Entity
17362 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
17363 marked analyzed after expanding exception handlers, do not generate
17364 redundant cleanup actions, because they have been constructed already.
17366 2007-06-06 Thomas Quinot <quinot@adacore.com>
17368 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
17369 presence of this categorization pragma is mandated by the language.
17370 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
17373 2007-06-06 Vincent Celier <celier@adacore.com>
17374 Robert Dewar <dewar@adacore.com>
17376 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
17377 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
17378 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
17379 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
17380 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
17381 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
17382 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
17383 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
17384 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
17385 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
17386 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
17388 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
17389 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
17390 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
17391 Use variables of types File_Name_Type and Unit_Name_Type in error
17393 (Get_Name): Add parameter Ignore_Special, and set it reading file name
17394 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
17396 Define flags Flag217-Flag230 with associated subprograms
17397 (Flag_Word5): New record type.
17398 (Flag_Word5_Ptr): New access type.
17399 (To_Flag_Word5): New unchecked conversion.
17400 (To_Flag_Word5_Ptr): Likewise.
17401 (Flag216): New function.
17402 (Set_Flag216): New procedure.
17404 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17406 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
17409 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
17411 2007-06-06 Javier Miranda <miranda@adacore.com>
17413 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
17415 (Object_Specific_Data_Array): This is now internal to the package.
17416 (Object_Specific_Data): This is now internal to the package.
17417 (Select_Specific_Data_Element): This is now internal to the package.
17418 (Select_Specific_Data_Array): This is now internal to the package.
17419 (Select_Specific_Data): This is now internal to the package.
17420 (Offset_To_Top_Function_Ptr): This is now public.
17421 (To_Offset_To_Top_Function_Ptr): Removed.
17422 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
17423 local to subprogram Offset_To_Top.
17424 (Predefined_DT): Removed.
17425 (Typeinfo_Ptr): Removed.
17426 (OSD): This function is now internal to this package.
17427 (SSD): This function is now internal to this package.
17428 (DT): New function that displaces the pointer to the table of primitives
17429 to get access to the enclosing wrapper record.
17430 (IW_Membership): Code cleanup.
17431 (Offset_To_Top): Code cleanup.
17432 (Predefined_DT): Removed.
17433 (Register_Interface_Tag): Removed.
17434 (Set_Interface_Table): Removed.
17435 (Set_Offset_Index): Removed.
17436 (Set_Offset_To_Top): Code cleanup.
17437 (Set_OSD): Removed.
17438 (Set_Signature): Removed.
17439 (Set_SSD): Removed.
17440 (Set_Tagged_Kind): Removed.
17441 (Typeinfo_Ptr): Removed.
17443 (Displace): Add missing check on null actual.
17445 * exp_disp.ads, exp_disp.adb
17446 (Select_Expansion_Utilities): Removed.
17447 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
17448 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
17449 the interface requires a new parameter.
17450 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
17451 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
17452 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
17453 Done to remove package Select_Expansion_Utilities.
17454 (Make_DT): New implementation for statically allocated dispatch tables.
17455 (Make_Secondary_DT): Moved to the scope of Make_DT.
17456 (Register_Primitive): Code cleanup plus incoporate the use of the new
17457 function DT_Address_Attribute.
17458 (Expand_Interface_Thunk): The profile of this subprogram has been
17459 changed to return the Thunk_Id and the corresponding code.
17460 (Fill_DT_Entry): Removed. Its functionality is now provided by
17461 subprogram Register_Primitive.
17462 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
17463 subprogram Register_Primitive.
17464 (Register_Primitive): New subprogram that incorporates the previous
17465 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
17466 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
17467 was only required to call Make_DT_Access_Action, which is now removed.
17468 (Ada_Actions): Removed
17469 (Action_Is_Proc): Removed
17470 (Action_Nb_Arg): Removed
17471 Replace all the calls to Make_DT_Access_Action by direct calls to
17472 Make_Procedure_Call_Statement or Make_Function_Call.
17473 (Set_DTC_Entity_Value): New subprogram.
17474 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
17475 (Expand_Interface_Thunk): Add missing support for primitives that are
17476 functions with a controlling result (case in which there is no need
17477 to generate the thunk).
17479 * exp_atag.ads, exp_atag.adb
17480 (Build_DT): New subprogram that displaces the pointer to reference the
17481 base of the wrapper record.
17482 (Build_Typeinfo_Offset): Removed.
17483 (RTE_Tag_Node): Removed.
17484 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
17485 (Build_Get_RC_Offset): Removed.
17486 (Build_Inherit_Predefined_Prims): Removed.
17487 (Build_Inherit_TSD: Removed.
17488 (Build_New_TSD): Removed.
17489 (Build_Set_External_Tag): Removed.
17490 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
17491 (Build_Set_Prim_Op_Address): Add documentation.
17492 (Build_Set_TSD): Removed.
17494 * rtsfind.ads, rtsfind.adb
17495 (Load_Fail): If load fails and we are not in configurable run-time
17496 mode, then raise Unrecoverable_Error.
17497 (Text_IO_Kludge): Generate an error message if a run-time library is
17498 not available in a given run-time (ie. zfp run-time).
17499 (RTE_Record_Component): Add code to check that the component we search
17500 for is not found in two records in the given run-time package.
17501 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
17502 (RE_DT_Predef_Prims_Offset): New entity
17503 (RE_Static_Offset_To_Top): New entity
17504 (RE_HT_Link): New entity.
17505 (System_Address_Image): Addition of this run-time package.
17506 (RE_Address_Image): New entity.
17507 (RE_Abstract_Interface): Removed.
17508 (RE_Default_Prim_Op_Count): Removed.
17509 (RE_DT_Entry_Size): Removed.
17510 (RE_DT_Min_Prologue_Size): Removed.
17511 (RE_DT_Prologue_Size): Removed.
17512 (RE_Ifaces_Table_Ptr): Removed.
17513 (RE_Interface_Data_Ptr): Removed.
17514 (RE_Type_Specific_Data): Removed.
17515 (RE_Primary_DT): Removed.
17516 (RE_Register_Interface_Tag): Removed.
17517 (RE_Set_Offset_Index): Removed.
17518 (RE_Set_OSD): Removed.
17519 (RE_Set_SSD): Removed.
17520 (RE_Set_Signature): Removed.
17521 (RE_Set_Tagged_Kind): Removed.
17522 (RE_Address_Array): New entity.
17523 (RE_DT): New entity.
17524 (RE_Iface_Tag): New entity.
17525 (RE_Interfaces_Table): New entity.
17526 (RE_No_Dispatch_Table): New entity.
17527 (RE_NDT_Prims_Ptr): New entity.
17528 (RE_NDT_TSD): New entity.
17529 (RE_Num_Prims): New entity.
17530 (RE_Offset_To_Top_Function_Ptr): New entity.
17531 (RE_OSD_Table): New entity.
17532 (RE_OSD_Num_Prims): New entity.
17533 (RE_Predef_Prims): New entity
17534 (RE_Predef_Prims_Table_Ptr): New entity.
17535 (RE_Primary_DT): New entity.
17536 (RE_Signature): New entity.
17537 (RE_SSD): New entity.
17538 (RE_TSD): New entity.
17539 (RE_Type_Specific_Data): New entity.
17540 (RE_Tag_Kind): New entity.
17542 2007-06-06 Thomas Quinot <quinot@adacore.com>
17544 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
17545 C imported variable.
17546 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
17549 2007-06-06 Robert Dewar <dewar@adacore.com>
17551 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
17554 2007-06-06 Vincent Celier <celier@adacore.com>
17556 * a-tifiio.adb (Put, internal): For negative numbers, check that there
17557 is room for at least one digit and the minus sign.
17558 (Put.Put_Character): Never put a character outside of the range of
17561 2007-06-06 Olivier Hainque <hainque@adacore.com>
17562 Eric Botcazou <ebotcazou@adacore.com>
17564 * utils2.c (build_allocator): Provide the extra arguments to
17565 make_aligning_type for super-aligned objects allocated from the default
17566 pool. Leave enough room for a pointer before the aligning field, and
17567 store the system's allocator return value there.
17568 (build_call_alloc_dealloc): When releasing a super-aligned object,
17569 retrieve the system's allocator return value from where build_allocator
17570 has stored it, just ahead of the adjusted address we are passed.
17571 (build_call_raise): Handle properly the generation of line numbers when
17572 the node is marked No_Location.
17573 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
17574 by using DECL_UID on ties.
17575 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
17577 (build_call_raise): Handle converting exception into goto; support new
17579 (build_component_ref): Add new arg to build_call_raise.
17581 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17583 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
17584 "." in the case of nnn.xxx when nnn terminates with an underscore.
17585 Parse the remaining "#" or ":" in the case of nnn#.xxx#
17587 2007-06-06 Robert Dewar <dewar@adacore.com>
17589 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
17591 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17592 Vincent Celier <celier@adacore.com>
17593 Robert Dewar <dewar@adacore.com>
17595 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
17597 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
17598 ((destructor)) for adafinal, even when switch -a is used.
17599 Do not issue pragma Linker_Destructor for adafinal when switch -a is
17601 (Gen_Object_Files_Options): Add formatting of Linker Options, when
17602 Output_Linker_Option_List is set. Suppress this formatting when
17603 Zero_Formatting is set.
17604 Add case for CLI_Target.
17605 (System_Restrictions_Used): New flag, used to avoid generating with of
17606 System_Restrictions and initialization of the data unless there is
17607 some use of System.Restrictions in the partition.
17608 (Check_System_Restrictions_Used): New procedure
17610 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
17611 since we only with this unit in the binder file if it is used elsewhere
17614 2007-06-06 Vincent Celier <celier@adacore.com>
17616 * bindusg.adb: Add line for @<response file>
17617 Add lines for new switches -R and -Z
17619 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
17620 hierarchy in the list of files of the closure when -R is used
17621 (Gnatbind): Accept arguments starting with '@' to indicate response
17622 files and take the arguments from the response files.
17623 If List_Closure is set, display the referenced files
17625 2007-06-06 Javier Miranda <miranda@adacore.com>
17626 Robert Dewar <dewar@adacore.com>
17627 Ed Schonberg <schonberg@adacore.com>
17629 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
17630 which the address-clause is applied to in-mode actuals (allowed by
17632 (Apply_Discriminant_Check): Do not generate a check if the type is
17633 constrained by a current instance.
17634 (Activate_Division_Check): New procedure
17635 (Activate_Overflow_Check): New procedure
17636 (Activate_Range_Check): New procedure
17637 Call these new Activate procedures instead of setting flags directly
17638 (Apply_Array_Size_Check): Removed, no longer needed.
17639 Code clean up: remove obsolete code related to GCC 2.
17640 (Get_E_Length): Protect against bomb in case scope is standard
17641 (Selected_Range_Checks): If the node to be checked is a conversion to
17642 an unconstrained array type, and the expression is a slice, use the
17643 bounds of the slice to construct the required constraint checks.
17644 Improve NOT NULL error messages
17645 (Apply_Constraint_Check): If the context is a null-excluding access
17646 type, diagnose properly the literal null.
17648 2007-06-06 Pascal Obry <obry@adacore.com>
17650 * clean.adb (Clean_Archive): Use untouched casing for the archive name
17651 and the corresponding .deps file.
17652 (Clean_Interface_Copy_Directory): Use untouched casing for the library
17653 src directory. Minor code-clean-up. Use untouched casing for files
17654 read into the library src dir.
17655 (Clean_Library_Directory): Idem.
17656 (Parse_Cmd_Line): Accept new switch -aP
17658 2007-06-06 Javier Miranda <miranda@adacore.com>
17659 Ed Schonberg <schonberg@adacore.com>
17660 Robert Dewar <dewar@adacore.com>
17661 Eric Botcazou <ebotcazou@adacore.com>
17662 Arnaud Charlet <charlet@adacore.com>
17664 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
17665 applicable to types that have the With_Type flag set. Returns the
17666 non-limited view of the type, if available, otherwise the type itself.
17667 For class-wide types, there is no direct link in the tree, so we have
17668 to retrieve the class-wide type of the non-limited view of the Etype.
17669 New attributes Static_Initialization and Static_Elaboration_Desired.
17670 Remove the pragma Thread_Body, and the associated flag
17671 Is_Thread_Body in entities, and all related code.
17672 (Suppress_Value_Tracking_On_Call): New flag
17673 E_Exception has Esize and Alignment fields
17674 (Universal_Aliasing): New function.
17675 (Set_Universal_Aliasing): New procedure.
17676 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
17677 (Check_Nested_Access): New procedure.
17678 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
17679 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
17680 (Related_Interface): New attribute. Present in dispatch table pointer
17681 components of records. Set to point to the entity of the corresponding
17683 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
17684 (Original_Access_Type): Remove, not needed.
17685 (Root_Type): Handle properly subtypes of class-wide-types.
17688 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
17689 class-wide types visible through limited-with clauses.
17690 (Try_Primitive_Operation): When examining all primitive operations of a
17691 tagged type, do not consider subprograms labeled as hidden unless they
17692 belong to a private generic type with a tagged parent.
17693 (Try_Object_Operation): Extensive rewriting, to handle properly various
17694 overloading cases, when several ancestors may have class-wide operations
17695 that are possible candidates, and when the overloaded functions return
17696 array types and have defaulted parameters so that the call may be
17697 interpreted as an indexing.
17698 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
17699 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
17700 successive actuals before analyzing the call itself.
17701 (Try_Primitive_Operation): A primitive operation is compatible with the
17702 prefix if the prefix has a synchronized type and the type of the formal
17703 is its corresponding record, as can be the case when the primitive
17704 operation is declared outside of the body of the type.
17705 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
17706 perform homonym traversal, looking for class-wide operation matches
17707 (formerly done in statements of Try_Class_Wide_Operation). Matches on
17708 access parameters are now restricted to anonymous access types.
17709 (Mark_Allocator): An allocator with a discriminant association parent is
17711 (Try_One_Prefix_Interpretation): If the type of the object is
17712 incomplete, as can be happen when it is a limited view obtained through
17713 a limited_with_clause, the selected component is not part of a prefixed
17715 (Complete_Object_Operation): Diagnose properly an object that is not
17716 aliased when the corresponding controlling formal is an access
17718 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
17719 ambiguous calls in prefixed notation, where two primitives differ only
17720 in that the controlling argument of one is an access parameter.
17722 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
17723 whether a function that returns an unconstrained type can be inlined.
17724 (Process_Formals): Diagnose properly the illegal use of an incomplete
17725 type in the profile of an access_to_subprogram declaration.
17726 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
17727 operations are attached to the corresponding record.
17728 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
17729 When processing a primitive of a concurrent type which implements an
17730 interface change the type of all controlling formals to that of the
17731 corresponding record type.
17732 (Check_Synchronized_Overriding): Relax the conditional logic when trying
17733 to determine the tagged type to which a primitive belongs.
17734 (Check_Conventions): Capture condition to ignore a primitive operation
17735 (which is shared between the loop in Check_Conventions and the one in
17736 Check_Convention) in a new local function Skip_Check.
17737 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
17738 confusion with Check_Conventions' own Prim_Op local variable.
17739 (Create_Extra_Formals): Test for a tagged result type rather than a
17740 controlling result when determining whether to add a BIP_Alloc_Form
17741 formal and a BIP_Final_List formal to the function.
17742 (Check_Conformance); For parameters that are anonymous access types,
17743 subtype conformance requires that the not null and the constant
17744 indicators must match
17745 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
17746 to retrieve the appropriate type when processing a concurrent type
17747 declared within a generic. Minor comment reformatting. Change invocation
17748 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
17750 (Analyze_Subprogram_Body): If the return type of a function is an
17751 anonymous access to the limited view of a class-wide type, and the
17752 non-limited view of the type is available, update the type of the
17753 function so that code can be generated.
17754 (Process_Formals): In case of access-subtype itype whose designated
17755 type is also an itype (situation that happens now with access to
17756 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
17757 attribute to avoid backend problems.
17758 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
17759 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
17760 anonymous types' designated types are same before testing
17761 Subtypes_Statically_Match.
17762 (Create_Extra_Formals): Test for a named access parameter that is a
17763 controlling formal as an additional condition for adding an
17764 accessibility level formal. This can occur in the subp type created for
17765 dispatching calls in Expand_Dispatching_Call, and allows calling
17766 Create_Extra_Formals from that procedure rather than special-casing the
17767 extra formals there.
17768 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
17769 when the function has a controlling result.
17770 (Check_Returns): Add much more knowledge of the optimization of local
17771 raise statements to gotos, to retain proper warnings in this case.
17772 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
17773 nodes when looking for last statement.
17775 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
17776 class-wide types visible through limited with clauses.
17777 (Add_One_Interp): If the operands are anonymous access types, the
17778 predefined operator on universal_access is immediately visibles
17779 (Find_Unique_Type): Handle anonymous access to subprogram types just as
17780 other anonymous access types.
17781 (Disambiguate): Take into account CIL convention.
17782 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
17784 2007-06-06 Robert Dewar <dewar@adacore.com>
17786 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
17787 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
17788 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
17789 Fix lower bound of tables.
17792 * nlists.adb: Ditto.
17793 (Prev_Node, Next_Node): Change index type to Int so that it properly
17794 covers the range First_Node_Id - 1 up.
17796 2007-06-06 Javier Miranda <miranda@adacore.com>
17797 Ed Schonberg <schonberg@adacore.com>
17798 Bob Duff <duff@adacore.com>
17799 Hristian Kirtchev <kirtchev@adacore.com>
17801 * exp_aggr.ads, exp_aggr.adb:
17802 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
17803 in extension aggregates.
17804 (Flatten): Other conditions being met, an aggregate is static if the
17805 low bound given by component associations is different from the low
17806 bound of the base index type.
17807 (Packed_Array_Aggregate_Handled): If the component type is itself a
17808 packed array or record, the front-end must expand into assignments.
17809 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
17810 Init_Pr, instead of Ancestor_Is_Expression.
17811 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
17812 coextension chain root, either generate a list controller or use the
17813 already existing one.
17814 (Static_Array_Aggregate): New procedure to construct a positional
17815 aggregate that can be handled by the backend, when all bounds and
17816 components are compile-time known constants.
17817 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
17818 types covering interface types into assignments.
17819 (Replace_Type): move to Build_Record_Aggr_Code.
17820 (Expand_Record_Aggr_Code): if the target of the aggregate is an
17821 interface type, convert to the definite type of the aggregate itself,
17822 so that needed components are visible.
17823 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
17824 components and the context is an extended return statement do not
17825 create a transient block for it, to prevent premature finalization
17826 before the return is executed.
17827 (Gen_Assign): Do not generate a call to deep adjust routine if the
17828 component type is itself an array of controlled (sub)-components
17829 initialized with an inner aggregate.
17830 (Component_Check): New name for Static_Check. This name is now more
17831 appropriate, and documentation is added which was missing.
17832 (Component_Check): Add test for bit aligned component value
17833 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
17834 Tagged_Comps, name is more appropriate given added function below.
17835 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
17837 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17838 Javier Miranda <miranda@adacore.com>
17839 Robert Dewar <dewar@adacore.com>
17841 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
17842 Terminated: Add unchecked type conversion from System.Address to
17843 System.Tasking.Task_Id when calling the predefined primitive
17845 Disable new Ada 05 accessibility check for JVM.NET targets, which
17846 cannot be implemented in a practical way.
17847 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
17848 the sources always references the tag of the actual object. Therefore,
17849 if 'Tag is applied in the sources to class-wide interface objects we
17850 generate code that displaces "this" to reference the base of the object.
17851 (Expand_N_Attribute_Reference, case Size): Return specified size if
17852 known to front end.
17853 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
17854 has code that displaces the pointer of the object to manage interface
17855 types. However this code must not be executed when the prefix is a
17856 subprogram. This bug caused the wrong expansion of the internally
17857 generated assignment that fills the dispatch table when the primitive
17858 is a function returning a class-wide interface type.
17859 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
17860 Set_Attribute_Name for Name_Unaligned_Valid.
17862 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17863 Gary Dismukes <dismukes@adacore.com>
17865 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
17866 If the initialization is the equivalent aggregate of the initialization
17867 procedure of the type, do not remove it.
17868 (Expand_N_Attribute_Definition_Clause): Exclude access variables
17869 initialized to null from having their expression reset to empty and
17870 note this exception in the comment.
17872 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17873 Robert Dewar <dewar@adacore.com>
17874 Ed Schonberg <schonberg@adacore.com>
17875 Gary Dismukes <dismukes@adacore.com>
17877 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
17878 Add "with" and "use" clauses for Sem_Attr.
17879 (Expand_Current_Value): Do not replace occurences of attribute
17880 references where the prefix must be a simple name.
17882 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
17883 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
17884 Attribute_Requires_Simple_Name_Prefix.
17885 (Name_Modifies_Prefix): Body of new function.
17886 (Requires_Simple_Name_Prefix): Body of new function.
17887 (Resolve_Attribute, case Access): Improve error message for case of
17888 mismatched conventions.
17889 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
17891 (Analyze_Attribute, case 'Access): If the type of the prefix is a
17892 constrained subtype for a nominal unconstrained type, use its base type
17893 to check for conformance with the context.
17894 (Resolve_Attribute): Remove test of the access type being associated
17895 with a return statement from condition for performing accessibility
17896 checks on access attributes, since this case is now captured by
17897 Is_Local_Anonymous_Access.
17898 (Analyze_Access_Attribute): Set Address_Taken on entity
17899 (Analyze_Attribute, case Address): Set Address_Taken on entity
17900 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
17901 validating an access attribute whose prefix is a current instance.
17902 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
17903 applied to dispatching operations, if freezing is required then we set
17904 the attribute Has_Delayed_Freeze in the prefix's entity.
17905 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
17906 current scope if access of local subprogram taken
17907 (Analyze_Access_Attribute): Check legality of self-reference even if the
17908 expression comes from source, as when a single component association in
17909 an aggregate has a box association.
17910 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
17911 the prefix if it is a protected operation and the attribute is
17912 Unrestricted_Access.
17913 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
17914 reference to the base type of the context, to force a constraint check
17915 when the context is an access subtype with an explicit constraint.
17916 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
17917 node is rewritten as an interface conversion. leave unanalyzed after
17918 resolution, to ensure that type checking against the context will take
17921 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17922 Javier Miranda <miranda@adacore.com>
17923 Robert Dewar <dewar@adacore.com>
17925 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
17926 wrapper when the full view of the controlling type of an inherited
17927 function that dispatches on result implements interfaces.
17928 (Expand_N_Object_Declaration): In cases where the type of the
17929 declaration is anonymous access, create finalization list for it.
17930 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
17931 if the object has no explicit initialization, to match description of
17932 functionality of pragam Persistent_BSS.
17933 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
17934 new function to build static aggregates, to replace initialization call
17935 when static initialization is desired.
17936 (Freeze_Type): Generate a list controller for an access type whenever
17937 its designated type has controlled anonymous access discriminants.
17938 (Build_Equivalent_Aggregate): New procedure to compute a static
17939 aggregate to be used as default initialization for composite types,
17940 instead of a generating a call to the initialization procedure for the
17942 (Build_Initialization_Call): When available, replace a call to the
17943 initialization procedure with a copy of the equivalent static aggregate
17945 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
17946 declarations for objects of a class-wide interface type, rather than
17947 just identifiers, to prevent visibility problems.
17948 (Expand_N_Object_Declaration): When expanding the declaration for an
17949 object of a class-wide interface type, preserve the homonym chain of
17950 the original entity before exchanging it with that of the generated
17951 renaming declaration.
17952 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
17953 active, because there is no way to handle the exception.
17954 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
17955 to do a minimum decoration of the Access_Disp_Table list.
17956 (Expand_Record_Controller): Avoid the addition of the controller between
17957 the component containing the tag of a secondary dispatch table and its
17958 adjacent component that stores the offset to the base of the object.
17959 This latter component is only generated when the parent type has
17960 discriminants ---documented in Add_Interface_Tag_Components).
17961 (Apply_Array_Size_Check): Removed, no longer needed.
17962 (Expand_N_Full_Type_Declaration): If the type has anonymous access
17963 components, create a Master_Entity for it only if it contains tasks.
17964 (Build_Init_Procedure): Suppress the tag assignment compiling under
17966 (Freeze_Record_Type): Remove code associated with creation of dispatch
17968 (Init_Secondary_Tags): Update type of actuals when generating calls to
17969 Ada.Tags.Set_Offset_To_Top
17970 (Stream_Operation_OK): Disable use of streams compiling under no
17972 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
17973 if Has_Init_Expression set.
17974 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
17975 Register_Primitive, which provides the same functionality.
17976 (Requires_Init_Proc): Return false in case of interface types.
17977 (Add_Secondary_Tables): Use the new attribute Related_Interface to
17979 (Predefined_Primitive_Freeze): Do not assume that an internal entity
17980 is always associated with a predefined primitive because the internal
17981 entities associated with interface types are not predefined primitives.
17982 Therefore, the call to Is_Internal is replaced by a call to the
17983 function Is_Predefined_Dispatching_Operation.
17984 (Make_Eq_If): When generating the list of comparisons for the
17985 components of a given variant, omit the controller component that is
17986 present if the variant has controlled components.
17988 2007-06-06 Javier Miranda <miranda@adacore.com>
17989 Hristian Kirtchev <kirtchev@adacore.com>
17990 Bob Duff <duff@adacore.com>
17992 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
17993 handle the creation of finalization lists and calls for nested
17994 coextensions when the root of the chains is part of a return statement.
17995 (Inside_A_Return_Statement): New function inside Complete_Coextension_
17997 (Expand_Record_Equality): Skip components that are interface types.
17998 (Displace_Allocator_Pointer): Add missing support for interface subtypes
17999 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
18000 with Rewrite_Coextension. Change the condition for detecting coextension
18002 (Is_Local_Access_Discriminant): Removed.
18003 (Rewrite_Coextension): New routine which rewrites a static coextension
18004 as a temporary and uses its unrestricted access in the construction of
18006 (Complete_Coextension_Finalization): New routine. Generate finalization
18007 attachment calls to all delayed coextensions.
18008 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
18009 the allocator is not a coextension itself and has delayed coextensions.
18010 If the current allocator is controlled, but also a coextension, delay
18011 the generation of the finalization attachment call.
18012 Rename local variable "Node" to "Nod" in order to avoid confusion with
18014 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
18015 limited types that are not inherently limited. Such an allocator is
18016 illegal, but is generated by the expander for a return statement, to
18017 copy the result onto the secondary stack. This is the only case where a
18018 limited object can be copied. Generate code to displace the pointer
18019 to the object if the qualified expression is a class-wide interface
18020 object. Such displacement was missing and hence the copy of the object
18022 (Apply_Accessibility_Check): Handle allocated objects initialized in
18024 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
18025 and Expand_Allocator_Expression. Allocating class-wide interface objects
18026 this routine displaces the pointer to the allocated object to reference
18027 the component referencing the corresponding secondary dispatch table.
18028 Expand_Allocator_Expression): Add missing support to allocate class-wide
18029 interface objects initialized with a qualified expression.
18030 (Get_Allocator_Final_List): Test for an anonymous access type that is a
18031 function result type, and use the finalization list associated with the
18032 function scope in that case (such an anonymous type should not be
18033 treated like an access parameter's type).
18035 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18036 Gary Dismukes <dismukes@adacore.com>
18037 Javier Miranda <miranda@adacore.com>
18039 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
18040 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
18041 required exception handler.
18042 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
18043 properly the case of a function whose return type is a limited
18044 class-wide interface type. Modify the code of the accessibility
18045 check to handle class-wide interface objects. In this case we need to
18046 displace "this" to reference the primary dispatch table to get access
18047 to the TSD of the object (to evaluate its accessibility level).
18048 (Expand_N_Extended_Return_Statement): Test for a tagged result type
18049 rather than a controlling result as one of the conditions for
18050 generating tests of the implicit BIP_Alloc_Form formal. The
18051 initialization assignment is also handled according to whether the
18052 result is tagged instead of controlling.
18053 In the case where the init assignment is inserted in the "then" part of
18054 the allocation conditional, rewrite the target to be a dereference of
18055 the implicit BIP_Object_Access formal.
18056 If the returned value is unconstrained and created on the secondary
18057 stack, mark the enclosing block and function so that the secondary
18058 stack is not reclaimed on return.
18059 Treat returns from functions with controlling results similarly to
18060 returns from functions with unconstrained result subtypes.
18061 If the object returned is unconstrained, and an allocator must be
18062 created for it, analyze the allocator once the block for the extended
18063 return is installed, to ensure that finalizable components
18064 of the expression use the proper finalization list. Guard the call to
18065 Move_Final_List with a check that there is something to finalize.
18066 (Make_Tag_Ctrl_Assignment): Use "old" handling
18067 of controlled type assignment for virtual machines, since new code uses
18068 unsupported features (such as direct access to bytes in memory).
18070 2007-06-06 Gary Dismukes <dismukes@adacore.com>
18071 Ed Schonberg <schonberg@adacore.com>
18073 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
18074 accessibility actual, check for the case of an aliased object that has
18075 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
18076 we fall into processing for the attribute rather than the name of the
18078 (Expand_Inline_Call): If an actual is a literal, and the corresponding
18079 formal has its address taken in the body, create a temporary to capture
18080 value. If the return type is a limited interface, do not treat the
18081 return value as Controlled.
18082 (Is_In_Place_Function): If the return type is a limited interface,
18083 treat as returning in place. The actual returned object may not always
18084 be limited, but the caller has to assume that it is returned in place.
18085 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
18086 context of an allocator, use the correct finalization chain (that is,
18087 the chain belonging to the access type, rather than the chain belonging
18088 to the current scope).
18089 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
18090 result type rather than a controlling result as a precondition for
18091 adding an allocation form actual to a build-in-place call.
18092 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
18093 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
18094 primitive in the dispatch tables. This work is now done by Make_DT when
18095 the type is frozen.
18096 (Register_Predefined_DT_Entry): Removed.
18097 (Add_Return): If end label is not present, use sloc of last statement
18098 for generated return statement in procedure, for better gdb behavior
18100 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
18101 object address nodes to ensure proper processing by routines like
18103 (Expand_Call): Fix generation of validity check for parameter
18104 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
18105 the allocation form parameter if the result subtype is constrained,
18106 except when the function has a controlling result.
18107 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
18108 rather than Is_Controlled and Has_Controlled_Component, since we want to
18109 include class-wide result types in this treatment. Also test for a
18110 controlling result, since that also requires passing a finalization
18112 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
18113 even when the result subtype is constrained, to handle calls involving
18114 controlling results.
18115 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
18116 is now called even when the result subtype is constrained, to handle
18117 calls involving controlling results.
18118 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
18119 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
18120 now performs the test).
18121 (Make_Build_In_Place_Call_In_Object_Declaration):
18122 Add_Alloc_Form_Actual_* is now called even when the result subtype is
18123 constrained, to handle calls involving controlling results.
18124 (Add_Return): Accomodate rewritten pattern from local raise to goto
18125 transformation, so that we still recognize an transfer statement
18126 and do the right thing here in that case.
18127 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
18128 and end of subprogram code.
18129 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
18130 support for primitives that are functions (without formals) with a
18131 controlling result.
18132 (Inherited_From_Formal): If the actual subtype has not generic parent
18133 type, it is not an actual for a formal derived type, and there is no
18134 operation to inherit from the formal.
18136 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18137 Thomas Quinot <quinot@adacore.com>
18139 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
18140 inserted cleanup code appropriately for GDB use.
18141 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
18142 exception handler for Deep_Adjust or Deep_Finalize.
18143 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
18144 Raise_From_Controlled_Operation is available, use a call to that
18145 subprogram instead of a plain "raise Program_Error" node to raise
18146 Program_Error if an exception is propagated from an Adjust or Finalize
18148 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
18149 appears in the optional statement list of a triggering alternative, the
18150 scope actions can be inserted directly there, and not in the list that
18151 includes the asynchronous select itself.
18153 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18154 Robert Dewar <dewar@adacore.com>
18155 Hristian Kirtchev <kirtchev@adacore.com>
18157 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
18158 generated exception handler appropriately when debugging generated code.
18159 Deal properly with No_Exception_Propagation restriction mode.
18160 (Expand_N_Abort_Statement): Add an unchecked type conversion from
18161 System.Address to System.Tasking.Task_Id when processing the result of
18162 the predefined primitive _disp_get_task_id.
18163 (Expand_N_Asynchronous_Select): Clarify comment.
18164 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
18165 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
18166 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
18167 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
18168 privals and for generated call to Complete_Entry_Body, for better gdb
18170 (Copy_Result_Type): Utility to construct a parameter and result profile
18171 for protected functions whose return type is an anonymous access to
18173 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
18175 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
18176 point when the local-raise-to-goto transformation has taken place.
18178 2007-06-06 Javier Miranda <miranda@adacore.com>
18179 Nicolas Setton <setton@adacore.com>
18181 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
18182 functionality when the backend is generating code.
18183 Otherwise any serious error
18184 reported by the backend calling the frontend routine Error_Msg
18185 changes the Compilation_Mode to Check_Semantics, disables the
18186 functionality of this routine and causes the generation of
18187 spureous additional errors.
18189 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
18190 debugging information now generated by the compiler for fat-pointer
18192 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
18194 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
18196 2007-06-06 Thomas Quinot <quinot@adacore.com>
18198 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
18199 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
18200 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
18201 For a remote call to a function with a classwide return type, apply an
18202 E.4(18) check to the returned value.
18203 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
18204 stream attributes of the designated type of an RACW, as they are not
18205 dispatching primitive operations.
18207 2007-06-06 Geert Bosch <bosch@adacore.com>
18209 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
18211 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
18213 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
18214 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
18216 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
18218 2007-06-06 Javier Miranda <miranda@adacore.com>
18220 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
18221 attribute compiling package Ada.Tags under No_Run_Time_Mode.
18223 2007-06-06 Javier Miranda <miranda@adacore.com>
18225 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
18226 deallocation of class-wide interface objects.
18227 (Expand_Dispatching_Constructor_Call): Take into account that if the
18228 result of the dispatching constructor is an interface type, the
18229 function returns a class-wide interface type; otherwise the returned
18230 object would be actual. The frontend previously accepted returning
18231 interface types because Expand_Interface_Actuals silently performed
18232 the management of the returned type "as if" it were a class-wide
18234 (Expand_Dispatching_Constructor_Call): Replace call to
18235 Make_DT_Access_Action by direct call to Make_Function_Call.
18237 2007-06-06 Robert Dewar <dewar@adacore.com>
18238 Ed Schonberg <schonberg@adacore.com>
18240 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
18241 compute masking constant, since we now set Esize properly to the
18243 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
18244 to match the alignment.
18245 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
18246 packed arrays of 8 bits or less.
18248 * freeze.adb (Freeze_Entity): When freezing the formals of a
18249 subprogram, freeze the designated type of a parameter of an access type
18250 only if it is an access parameter.
18251 Increase size of C convention enumeration object
18252 (Freeze_Entity, array type case): Make sure Esize value is properly
18253 adjusted for the alignment if it is known.
18254 (Freeze_Entity, array type case): When checking bit packed arrays for
18255 the size being incorrect, check RM_Size, not Esize.
18256 (Freeze_Record_Type): Check for bad discriminated record convention
18257 (In_Exp_Body): Return true if the body is generated for a subprogram
18258 renaming, either an attribute renaming or a renaming as body.
18259 (Check_Itype): If the designated type of an anonymous access component
18260 is a non-protected subprogram type, indicate that it is frozen, to
18261 prevent out-of-scope freeze node at some subsequent call.
18262 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
18263 only if the subprogram is neither imported nor exported, as well as the
18264 NCA descriptor class if the subprogram is exported.
18266 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18267 Arnaud Charlet <charlet@adacore.com>
18268 Robert Dewar <dewar@adacore.com>
18269 Gary Dismukes <dismukes@adacore.com>
18271 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
18272 default initialization on an imported object, when there is no
18273 initialization call generated for it.
18274 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
18277 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
18278 Static_Elaboration_Desired.
18279 Remove pragma Thread_Body.
18280 Implement a new pragma No_Body
18281 Removes the Explicit_Overriding pragma
18282 Remove Optional_Overriding pragma
18283 (Prag): Deal with Universal_Aliasing.
18284 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
18285 Pragma_CIL_Constructor): New names.
18287 * sem_cat.adb (Validate_Object_Declaration): An initialization that
18288 uses the equivalent aggregate of a type must be treated as an implicit
18290 (Get_Categorization): Check a unit for pragma Preelaborate only if it
18291 has none of the other categories.
18292 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
18293 to apply Import to an object renaming declaration.
18295 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
18296 from a C++ class should be declared as limited and that it will be
18297 considererd limited.
18298 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
18299 should be declared as limited and that it will be considererd limited.
18300 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
18301 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
18302 (Analyze_Pragma): Deal with Universal_Aliasing.
18303 (Sig_Flags): Likewise.
18304 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
18305 (Overflow_Checks_Unsuppressed): New flag.
18306 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
18307 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
18308 case of JVM or .NET targets, and compiling user code.
18309 Add debugging convenience routine rv
18311 2007-06-06 Robert Dewar <dewar@adacore.com>
18313 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
18314 are interface type.
18315 (Build_Elementary_Input_Call): For floating-point use right type in the
18316 absence of strange size or stream size clauses.
18317 (Build_Elementary_Write_Call): Same fix
18318 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
18319 set to value that does not match base type size.
18321 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18323 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
18324 object of a limited type can be initialized with a call to a function
18325 that returns in place. If the limited type has unknown discriminants,
18326 and the underlying type is a constrained composite type, build an actual
18327 subtype from the function call, as is done for private types.
18328 (Side_Effect_Free): An expression that is the renaming of an object or
18329 whose prefix is the renaming of a object, is not side-effect free
18330 because it may be assigned through the renaming and its value must be
18331 captured in a temporary.
18332 (Has_Controlled_Coextensions): New routine.
18333 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
18334 as is done for other limited types.
18335 (Non_Limited_Designated_Type): new predicate.
18336 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
18338 Remove all handling of with_type clauses.
18340 * par-ch10.adb: Remove all handling of with_type clauses.
18342 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
18343 checksum if the main source could not be parsed.
18344 (Loat_Unit): When processing a child unit, determine properly whether
18345 the parent unit is a renaming when the parent is itself a child unit.
18346 Remove handling of with_type clauses.
18348 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
18349 (Set_Is_Static_Coextension): New procedure.
18350 (Has_Local_Raise): New function
18351 (Set_Has_Local_Raise): New procedure
18352 (Renaming_Exception): New field
18353 (Has_Init_Expression): New flag
18354 (Delay_Finalize_Attach): Remove because flag is obsolete.
18355 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
18356 Remove all handling of with_type clauses.
18357 (Exception_Junk): Can now be set in N_Block_Statement
18359 2007-06-06 Vincent Celier <celier@adacore.com>
18360 Robert Dewar <dewar@adacore.com>
18362 * frontend.adb (Frontend): Return immediately if the main source could
18363 not be parsed, because of preprocessing errors.
18365 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
18366 (Gnat1drv): Exit with errors if the main source could not be parsed,
18367 because of preprocessing errors.
18368 (Check_Rep_Info): New procedure
18370 2007-06-06 Robert Dewar <dewar@adacore.com>
18372 * g-hesorg.ads, g-heasor.ads,
18373 g-busorg.ads, g-bubsor.ads: Update documentation
18374 GNAT.Heap/Bubble_Sort_G is now pure
18376 2007-06-06 Robert Dewar <dewar@adacore.com>
18378 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
18380 2007-06-06 Robert Dewar <dewar@adacore.com>
18381 Ed Schonberg <schonberg@adacore.com>
18383 * g-comlin.ads, g-comlin.adb:
18384 Add new warning for renaming of function return objects
18386 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
18387 (Tree_Read): Use size of object instead of type'object_size, since the
18388 latter is incorrect for packed array types.
18389 (Tree_Write): Same fix
18391 * opt.ads: Add new warning for renaming of function return objects
18392 (Generating_Code): New boolean variable used to indicate that the
18393 frontend as finished its work and has called the backend to process
18394 the tree and generate the object file.
18395 (GCC_Version): Is now private
18396 (Static_Dispatch_Tables): New constant declaration.
18397 (Overflow_Checks_Unsuppressed): New flag.
18398 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
18399 (List_Closure): New flag for gnatbind (-R)
18400 Zero_Formatting: New flag for gnatbind (-Z)
18401 (Special_Exception_Package_Used): New flag.
18402 (Warn_On_Unrepped_Components): New flag.
18404 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
18405 unit is a compilation unit, rather than relying on its scope, so that
18406 Standard can be renamed.
18407 (Analyze_Object_Renaming): Add new warning for renaming of function
18409 Also reject attempt to rename function return object in Ada 83 mode.
18410 (Attribute_Renaming): In case of tagged types, add the body of the
18411 generated function to the freezing actions of the type.
18412 (Find_Type): A protected type is visible right after the reserved word
18413 "is" is encountered in its type declaration. Set the entity and type
18414 rather than emitting an error message.
18415 (New_Scope): Properly propagate Discard_Names to inner scopes
18416 (Check_Nested_Access): New procedure.
18417 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
18418 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
18420 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
18421 Add new warning for renaming of function return objects
18422 (Check_References): Suppress warnings for objects whose type or
18423 base type has Warnings suppressed.
18424 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
18425 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
18427 2007-06-06 Vincent Celier <celier@adacore.com>
18428 Emmanuel Briot <briot@adacore.com>
18429 Olivier Hainque <hainque@adacore.com>
18431 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
18432 absolute value of Header.Block_Size when displaying the freed physical
18434 (Allocate): Compute Storage_Address using Integer_Address, not
18435 Storage_Offset, because the range of Storage_Offset may not be large
18437 (Configure): New parameter Low_Level_Traces
18438 (Allocate, Deallocation, Free_Physically): Added low-level traces
18439 (Configure): new parameter Errors_To_Stdout.
18440 (Output_File): new subprogram
18441 (Deallocate, Dereference): Send error messages to the proper stream
18442 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
18443 documented. Previous code would send it to the current output file
18444 defined in GNAT.IO, which might not be stdout
18445 (Is_Valid): Adjust comment to mention that a positive reply means that
18446 Header_Of may be used to retrieve the allocation header associated with
18447 the subprogram Storage address argument. Return False early if this
18448 address argument is misaligned.
18450 2007-06-06 Vincent Celier <celier@adacore.com>
18452 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
18454 (ASIS_Main): New global variable
18455 (Get_Closure): New procedure
18456 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
18457 check, metric or pretty. Call Get_Closure in this case.
18458 (Check_Files): For GNAT LIST, check all sources of all projects when
18459 All_Projects is True.
18460 (GNATCmd): Accept -U for GNAT LIST
18462 2007-06-06 Vincent Celier <celier@adacore.com>
18464 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
18466 Correct error message when invocation of the linker fails
18467 Add explicit size clause for the C imported variables
18468 Object_List_File_Supported and Using_GNU_Linker to emphasize that
18469 we expect char size.
18470 Read target parameters earlier, since this is needed to set
18471 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
18474 2007-06-06 Vincent Celier <celier@adacore.com>
18477 Add 3 spaces before the default project directory when displaying
18478 the project search path.
18479 Add new command line switch '-l' to display license information.
18481 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
18483 * gmem.c: Add support for timestamps on memory operations.
18485 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
18486 operations (not used currently, just foundation for future
18487 enhancements). Add possibility to perform full dump of gmem.out file.
18488 (Print_Back_Traces): Declare accesses to root arrays constants since
18489 they aren't modified.
18490 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
18492 2007-06-06 Vincent Celier <celier@adacore.com>
18494 * gnatsym.adb: Update Copyright notice
18495 (Parse_Cmd_Line): Accept new switch -D
18496 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
18499 * prj.ads (Policy): New policy Direct
18500 (Yes_No_Unknown): New enumeration type
18501 (Project_Data): New component Libgnarl_Needed
18503 * prj-nmsc.adb (Check_For_Source): When recording a source file make
18504 use the untouched pathname casing.
18505 (Get_Directories): Ensure that the Display_Exec_Directory is using the
18506 proper casing on non case-sensitive platforms like Windows.
18507 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
18508 on all platforms, as it is not possible to know which one is allowed
18509 before processing the project files.
18510 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
18511 specified when symbol policy is Direct. Check that when there is a
18512 symbol file defined (either by default or with attribute
18513 Library_Symbol_File) it is not the same as the reference symbol file.
18514 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
18515 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
18516 extending projects.
18517 (Record_Ada_Source): Record a source that has been locally removed in an
18520 * symbols.ads (Policy): New policy Direct
18522 * symbols-vms.adb (Initialize): Take new policy Direct in case
18525 2007-06-06 Vincent Celier <celier@adacore.com>
18527 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
18528 Correct obvious bug (return Dir; instead of return Directory;).
18529 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
18531 2007-06-06 Thomas Quinot <quinot@adacore.com>
18533 * g-pehage.adb (Produce): Open output files in Binary mode, so that
18534 they have UNIX line endings (LF only) even on Windows, and thus pass
18535 all GNAT style checks.
18537 2007-06-06 Emmanuel Briot <briot@adacore.com>
18539 * g-regpat.adb (Quote): Fix improper quoting of '.'
18541 2007-06-06 Thomas Quinot <quinot@adacore.com>
18543 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
18544 default, set False on a per-runtime basis.
18545 (Need_Netdb_Buffer): New constant.
18547 * g-socket.ads, g-socket.adb: Import new package
18548 GNAT.Sockets.Thin.Task_Safe_NetDB.
18549 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
18550 binding to obtain proper message.
18551 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
18552 Replace various occurrences of Arry (Arry'First)'Address with the
18553 equivalent Arry'Address (GNAT always follows implementation advice from
18555 (Get_Host_By_Address, Get_Host_By_Name,
18556 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
18557 instead, rely on platform-specific task safe netdb operations provided
18560 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
18561 parameter Process_Blocking_IO.
18562 (Host_Error_Messages): Add stub body.
18563 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
18564 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
18565 Safe_Getservbyport): Move functions into new child package
18567 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
18568 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
18569 (In_Addr): Add alignment clause.
18571 2007-06-06 Robert Dewar <dewar@adacore.com>
18573 * g-trasym.ads, g-traceb.ads: Update list of supported targets
18574 Add note about symbolic traceback
18576 2007-06-06 Pascal Obry <obry@adacore.com>
18578 * hostparm.ads (Normalized_CWD): Use the host directory separator
18579 instead of the hardcoded forward slash which is not the proper
18580 character on Windows for example.
18581 (Java_VM): Removed.
18583 2007-06-06 Vincent Celier <celier@adacore.com>
18584 Arnaud Charlet <charlet@adacore.com>
18586 * a-clrefi.adb, a-clrefi.ads: New files
18588 * impunit.adb: Add s-os_lib in the list of user visible units.
18589 (Non_Imp_File_Names_95): Add a-clrefi to this list
18590 Remove obsolete run-time entries.
18591 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
18592 "a-exetim" -- Ada.Execution_Time
18593 "a-extiti" -- Ada.Execution_Time.Timers
18595 * mlib-prj.ads, mlib-prj.adb
18596 (Build_Library): Use untouched object dir and library dir. At the
18597 same time makes sure that the checks are done using the canonical
18598 form. Removes hard-coded directory separator and use the proper host
18600 (Process_Project): Do not look in object directory to check if libgnarl
18601 is needed for a library, if there is no object directory.
18602 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
18604 (Build_Library): When invoking gnatbind, use a response file if the
18605 total size of the arguments is too large.
18607 * Makefile.rtl: (g-sttsne): New object file.
18608 Add entry for a-clrefi, s-utf_32, System.Exceptions
18610 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
18611 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
18612 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
18613 Change g-string to s-string, g-os_lib to s-os_lib
18614 Change all g-utf_32 references to s-utf_32
18616 2007-06-06 Tristan Gingold <gingold@adacore.com>
18617 Olivier Hainque <hainque@adacore.com>
18619 * init.c: Do not adjust IP of an imported VMS exception of ia64.
18620 LIB$STOP is called to raise an exception and the IP of the exception
18621 is the instruction right after the call.
18622 (__gnat_adjust_context_for_raise, AIX): Implement.
18623 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
18624 adjust_context_for_raise before Raise_From_Signal_Hanler.
18625 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
18626 siginfo is passed to the handler, necessary to let the zcx propagation
18627 engine unwind past it.
18629 2007-06-06 Olivier Hainque <hainque@adacore.com>
18631 * initialize.c (__gnat_initialize for vxworks): Update documentation
18632 on the ZCX support, using different sets of crtstuff objects than with
18635 2007-06-06 Robert Dewar <dewar@adacore.com>
18637 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
18639 (Layout_Type): Fix recomputation of size from alignment.
18641 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18642 Javier Miranda <miranda@adacore.com>
18644 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
18645 association in an instance.
18646 (Copy_Generic_Node): If the node is a string literal, no need to copy
18648 (Is_Generic_Formal): For a formal subprogram, the declaration is the
18649 grandparent of the entity.
18650 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
18651 to simplify handling of formal interfaces that derive from other formal
18653 (Instantiate_Subprogram_Body): The defining unit name of the body of
18654 the instance should be a defining identifier.
18655 (Install_Formal_Packages): make global to the package, for use in
18656 instantiations of child units.
18657 (Analyze_Package_Instantiation): Do not attempt to set information on an
18658 enclosing master of an entry when expansion is disabled.
18659 (Instantiate_Type): If the actual is a tagged synchronized type and the
18660 generic ancestor is an interface, create a generic actual for the
18661 corresponding record.
18662 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
18663 declaration, to ensure that the interface list is processed correctly.
18664 (Inline_Instance_Body): If enclosing scope is an instance body, remove
18665 its entities from visibiility as well.
18666 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
18667 given with a named association, analyze the expression only, not the
18668 discriminant association itself.
18669 (Reset_Entity): If the analysis of a selected component is transformed
18670 into an expanded name in the prefix of a call with parameters, do not
18671 transform the original node into an expanded name, to prevent visibility
18672 errors in the case of nested generics.
18673 (Check_Private_View): For an array type, check whether the index types
18674 may need exchanging.
18676 2007-06-06 Arnaud Charlet <charlet@adacore.com>
18677 Vincent Celier <celier@adacore.com>
18679 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
18680 since both are separated.
18681 Add support for imported CIL packages.
18682 Add further special handling of "value_type" for CIL.
18683 Add special handling of pragma Import for CIL.
18685 * make.ads, make.adb: When switch -eS is used, direct all outputs to
18686 standard output instead of standard error, except errors.
18687 (Absolute_Path): Use untouched casing for the parent directory.
18688 (Add_Library_Search_Dir): Use the untouched directory name.
18689 (Add_Source_Search_Dir): Idem.
18690 (Change_To_Object_Directory): Update output to use proper casing.
18691 (Create_Binder_Mapping_File): Use the untouched filename to set
18693 (Gnatmake): Use untouched library and executable directory names.
18694 (Insert_Project_Sources): Use untouched filename for spec and body.
18695 (Is_In_Object_Directory): Use untouched object directory.
18696 (Mark_Directory): Idem.
18697 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
18698 contains the non-canonical filename in all cases.
18699 (Change_To_Object_Directory): In verbose mode, display the name of the
18700 object directory we're changing to.
18701 (Compile_Sources): Make sure, when a project file is used, to compile
18702 the body of the unit, when there is one, even when only the spec is
18703 recorded in an ALI file.
18704 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
18706 (Report_Compilation_Failed): New procedure
18707 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
18708 procedures moved from the spec to the body.
18709 (Extract_Failure): Removed, not used
18710 Replace explicit raises of exception Bind_Failed and Link_Failed with
18711 calls to Make_Failed with the proper message.
18712 Replace explicit raises of exception Compilation_Failed with calls to
18713 procedure Report_Compilation_Failed.
18714 (Initialize): Create mapping files unconditionally when using project
18717 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
18718 Pragma_CIL_Constructor): New names.
18720 * targparm.ads, targparm.adb
18721 (Compiler_System_Version): Removed, no longer used.
18722 (Get_Target_Parameters): Relax checks on system.ads validity. Add
18723 handling of two new system flags: JVM and CLI.
18725 2007-06-06 Jose Ruiz <ruiz@adacore.com>
18726 Arnaud Charlet <charlet@adacore.com>
18728 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
18729 time, use the default s-interr body that provides interrupt support
18731 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
18732 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
18733 g-soccon.ads, and s-taprop.adb for the marte run time.
18734 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
18735 timers are supported on marte.
18736 (EH_MECHANISM for marte): Do not use ZCX.
18737 (THREADSLIB for marte): Use -lmarte.
18738 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
18739 Add mlib-tgt-specific.o to gnatmake objects
18740 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
18741 longer of MLib.Tgt.
18742 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
18743 6, either kernel or rtp, use a specialized version of s-osinte.ads.
18745 2007-06-06 Pascal Obry <obry@adacore.com>
18747 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
18749 2007-06-06 Vincent Celier <celier@adacore.com>
18751 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
18752 separator, use instead the proper host directory separator.
18753 (Copy_ALI_Files): Make sure that an already existing ALI file in the
18754 ALI copy dir is writable, before doing the copy.
18756 * mlib-utl.ads, mlib-utl.adb:
18757 (Gcc): If length of command line is too long, put the list of object
18758 files in a response file, if this is supported by the platform.
18759 (Ar): If invocation of the archive builder is allowed to be done in
18760 chunks and building it in one shot would go above an OS dependent
18761 limit on the number of characters on the command line, build the archive
18764 2007-06-06 Vincent Celier <celier@adacore.com>
18766 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
18767 of specified object file is not equal to base name of source.
18769 2007-06-06 Javier Miranda <miranda@adacore.com>
18770 Hristian Kirtchev <kirtchev@adacore.com>
18771 Ed Schonberg <schonberg@adacore.com>
18773 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
18774 the full type declaration.
18775 (Analyze_Component_Declaration): Add local variable E to capture the
18776 initialization expression of the declaration. Replace the occurences of
18777 Expression (N) with E.
18778 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
18779 limited interface object with a function call.
18780 (Array_Type_Declaration): If the declaration lacks subtype marks for
18781 indices, create a simple index list to prevent cascaded errors.
18782 (Is_Null_Extension): Ignore internal components created for secondary
18783 tags when checking whether a record extension is a null extension.
18784 (Check_Abstract_Interfaces): Add missing support for interface subtypes
18785 and generic formals.
18786 (Derived_Type_Declaration): Add missing support for interface subtypes
18787 and generic formals.
18788 (Analyze_Object_Declaration): If an initialization expression is
18789 present, traverse its subtree and mark all allocators as static
18791 (Add_Interface_Tag_Component): When looking for components that may be
18792 secondary tags, ignore pragmas that can appear within a record
18794 (Check_Abstract_Overriding): an inherited function that dispatches on
18795 result does not need to be overriden if the controlling type is a null
18797 (Mentions_T): Handle properly a 'class attribute in an anonymous access
18798 component declaration, when the prefix is an expanded name.
18799 (Inherit_Component): If the derivation is for a private extension,
18800 inherited components remain visible and their ekind should not be set
18802 (Find_Type_Of_Object): In the case of an access definition, always set
18803 Is_Local_Anonymous_Access. We were previously not marking the anonymous
18804 access type of a return object as a local anonymous type.
18805 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
18806 range with character literal bounds.
18807 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
18808 (Access_Subprogram_Declaration): Indicate that the type declaration
18809 depends on an incomplete type only if the incomplete type is declared
18811 (Analyze_Subtype_Declaration): Handle properly subtypes of
18812 synchronized types that are tagged, and that may appear as generic
18814 (Access_Subprogram_Declaration): An anonymous access to subprogram can
18815 appear as an access discriminant in a private type declaration.
18816 (Add_Interface_Tag_Components): Complete decoration of the component
18817 containing the tag of a secondary dispatch table and the component
18818 containing the offset to the base of the object (this latter component
18819 is only generated when the parent type has discriminants --as documented
18821 (Inherit_Components): Use the new decoration of the tag components to
18822 improve the condition that avoids inheriting the components associated
18823 with secondary tags of the parent.
18824 (Build_Discriminanted_Subtype): Indicate to the backend that the
18825 size of record types associated with dispatch tables is known at
18827 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
18828 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
18829 to include task, protected, and synchronized interfaces as limited
18831 (Process_Discriminants): Remove the setting of
18832 Is_Local_Anonymous_Access on the type of (anonymous) access
18833 discriminants of nonlimited types.
18834 (Analyze_Interface_Type_Declaration): Complete the decoration of the
18835 class-wide entity it is is already present. This situation occurs if
18836 the limited-view has been previously built.
18837 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
18839 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
18842 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18844 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
18845 of the type that specify the position of interface tags when the type
18846 inherits discriminated array components from the parent type.
18847 If a component is initialized with a box, check for the presence of a
18848 default expression in its declaration before using its default
18849 initialization procedure.
18850 (Resolve_Record_Aggregate): If a component is box-initialized, and the
18851 component type has a discriminants, create a partial aggregate for it
18852 by copying the discriminants of the component subtype.
18853 Reject attempt to initialize a discriminant with a box.
18854 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
18855 associated with dispatch tables is known at compile time.
18856 (Get_Value): If an association in a record aggregate has a box
18857 association, and the corresponding record component has a default
18858 expression, always copy the default expression, even when the
18859 association has a single choice, in order to create a proper
18860 association for the expanded aggregate.
18862 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18863 Robert Dewar <dewar@adacore.com>
18865 * par-ch12.adb (P_Generic_Associations): The source position of an
18866 Others association is that of the others keyword, not that of the token
18867 that follows the box.
18868 (P_Formal_Type_Definition): Handle formal access types that carry a
18869 not null indicator.
18871 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
18872 multiple identifier are present, save Scan_State before scanning the
18873 colon, to ensure that separate trees are constructed for each
18875 (P_Identifier_Declarations): For object declaration, set new flag
18876 Has_Init_Expression if initialization expression present.
18877 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
18878 Improve NOT NULL error messages
18880 2007-06-06 Robert Dewar <dewar@adacore.com>
18882 * par-ch4.adb: (P_Name): Recover from literal used as name
18884 2007-06-06 Vincent Celier <celier@adacore.com>
18886 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
18887 defaulted to False.
18888 In the "not" case, recursive call with Complemented set to True.
18889 Do not allow "or" or "and" operators when Complemented is True.
18891 2007-06-06 Vincent Celier <celier@adacore.com>
18893 * prj.adb (Project_Empty): Gives default value for new component
18896 * prj-attr.ads: Minor reformatting
18898 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
18899 directory using the untouched casing.
18900 (For_All_Source_Dirs): Idem.
18902 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
18903 directories specified with switches -aP.
18904 (Add_Search_Project_Directory): New procedure
18905 (Initialize_Project_Path): Put the directories in table
18906 Search_Directories in the project search path.
18907 (Initialize_Project_Path): For VMS, transform into canonical form the
18910 2007-06-06 Arnaud Charlet <charlet@adacore.com>
18912 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
18913 true if configurable run-time or No_Run_Time is set.
18914 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
18915 processing an unit which is not the one being compiled.
18917 2007-06-06 Arnaud Charlet <charlet@adacore.com>
18919 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
18920 Replace UC by Ada.UC
18922 * s-bitops.adb: Get rid of System.Pure_Exceptions.
18923 Replace UC by Ada.UC
18925 2007-06-06 Robert Dewar <dewar@adacore.com>
18927 * scng.adb: (Check_End_Of_Line): Deal with very long lines
18929 2007-06-06 Robert Dewar <dewar@adacore.com>
18931 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
18932 Remove no longer used nodes.
18934 2007-06-06 Javier Miranda <miranda@adacore.com>
18935 Ed Schonberg <schonberg@adacore.com>
18936 Robert Dewar <dewar@adacore.com>
18938 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
18939 on obsolescent withed unit in case of limited-withed units.
18940 (Analyze_Compilation_Unit): Add guard to code that removed an
18941 instantiation from visibility, to prevent compiler aborts when
18942 instantiation is abandoned early on.
18943 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
18944 current unit being analyzed, and Distinguish local incomplete types
18945 from limited views of types declared elsewhere.
18946 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
18947 to state that the class-wide entity is shared by the limited-view
18949 (Analyze_With_Clause): Improve placement of flag for case of
18950 unimplemented unit.
18951 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
18952 manner similar to GNAT.Current_Exception. This is a violation of
18953 restriction (No_Exception_Propagation), and also inhibits the
18954 optimization of local raise to goto.
18955 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
18956 and if so set Most_Recent_Exception_Used flag in Opt, and also check
18957 for violation of restriction No_Exception_Propagation.
18959 2007-06-06 Javier Miranda <miranda@adacore.com>
18960 Hristian Kirtchev <kirtchev@adacore.com>
18961 Gary Dismukes <dismukes@adacore.com>
18963 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
18964 use of entity Exception_Occurrence if it is not available in the
18967 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
18968 concurrent types are declared within an Ada 2005 generic, build their
18969 corresponding record types since they are needed for overriding-related
18971 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
18972 protected type does not implement a task interface or a nonlimited
18974 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
18975 type does not implement a protected interface or a nonlimited interface.
18976 (Single_Task_Declaration, Single_Protected_Declaration): use original
18977 entity for variable declaration, to ensure that debugging information
18978 is correcty generated.
18979 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
18980 routines if the expander is not active.
18981 (Analyze_Task_Body): Mark all handlers to stop optimization of local
18982 raise, since special things happen for task exception handlers.
18984 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
18985 concurrent types declared within a generic.
18986 (Check_Dispatching_Operation): Do not emit warning about late interface
18987 operations in the context of an instance.
18988 (Check_Dispatching_Call): Remove restriction against calling a
18989 dispatching operation with a limited controlling result.
18990 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
18991 Register_Interface_DT_Entry by calls to Register_Primitive.
18992 (Check_Dispatching_Formals): Handle properly a function with a
18993 controlling access result.
18995 2007-06-06 Robert Dewar <dewar@adacore.com>
18996 Arnaud Charlet <charlet@adacore.com>
18998 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
18999 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
19000 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
19001 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
19002 message when using a VM, since this attribute is not supported.
19003 (Analyze_Record_Representation_Clause): Give unrepped component warnings
19005 * usage.adb: Add new warning for renaming of function return objects
19006 Indicate that -gnatwp and -gnatwP concern front-end inlining
19007 Add line for -gnatyg
19008 Add usage information for -gnatw.c/C
19010 2007-06-06 Robert Dewar <dewar@adacore.com>
19011 Ed Schonberg <schonberg@adacore.com>
19014 (Find_Var): Do not consider function call in test for infinite loop
19015 warning if warnings set off for function entity.
19016 (One_Bound): Do not create a temporary for a loop bound if it is a
19018 (Analyze_Assignment): Traverse the right hand side of an assignment and
19019 mark all allocators as static coextensions.
19020 (Analyze_Assignment): Exempt assignments involving a dispatching call
19021 to a function with a controlling access result from the check requiring
19022 the target to be class-wide.
19024 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
19025 Ed Schonberg <schonberg@adacore.com>
19026 Robert Dewar <dewar@adacore.com>
19027 Javier Miranda <miranda@adacore.com>
19029 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
19030 chain of coextensions when an allocator serves as the root of such a
19032 (Propagate_Coextensions): Remove the test for the root being an
19034 (Resolve_Allocator): Add condition to ensure that all future decoration
19035 occurs on an allocator node. Add processing and cleanup for static
19037 (Valid_Conversion): If the operand type is the limited view of a
19038 class-wide type, use the non-limited view is available to determine
19039 legality of operation.
19040 (Ambiguous_Character): move to spec, for use elsewhere.
19041 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
19042 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
19043 character literals.
19044 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
19045 Do_Division_Check flag explicitly.
19046 (Resolve_Actuals): If the actual is of a synchronized type, and the
19047 formal is of the corresponding record type, this is a call to a
19048 primitive operation of the type, that is declared outside of the type;
19049 the actual must be unchecked-converted to the type of the actual
19050 (Resolve_Call): Kill all current values for any subprogram call if
19051 flag Suppress_Value_Tracking_On_Call is set.
19052 (Resolve_Type_Conversion): Generate error message the the operand
19053 or target of interface conversions come from a limited view.
19054 (Check_Infinite_Recursion): Ignore generated calls
19055 (Check_Allocator_Discrim_Accessibility): New procedure for checking
19056 that an expression that constrains an access discriminant in an
19057 allocator does not denote an object with a deeper level than the
19058 allocator's access type.
19059 (Resolve_Allocator): In the case of an allocator initialized by an
19060 aggregate of a discriminated type, check that associations for any
19061 access discriminants satisfy accessibility requirements by calling
19062 Check_Allocator_Discrim_Accessibility.
19063 (Resolve_Equality_Op): Handle comparisons of anonymous access to
19064 subprogram types in the same fashion as other anonymous access types.
19065 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
19066 message that is not a continuation message.
19067 (Resolve_Type_Conversion): Add missing support for conversion to
19069 (Resolve_Actuals): Introduce a transient scope around the call if an
19070 actual is a call to a function returning a limited type, because the
19071 resulting value must be finalized after the call.
19072 (Resolve_Actuals): If the call was given in prefix notations, check
19073 whether an implicit 'Access reference or implicit dereference must be
19074 added to make the actual conform to the controlling formal.
19076 2007-06-06 Robert Dewar <dewar@adacore.com>
19077 Javier Miranda <miranda@adacore.com>
19079 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
19080 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
19081 overriding of an inherited private subprogram now there is no need to
19082 inherit its dispatching slot and reduce the size of the dispatch table.
19083 Set_All_DT_Position now ensures that the same slot is now assigned to
19084 both entities. This is required to statically build the dispatch table.
19085 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
19086 of calling Set_All_DT_Position to re-evaluate the position of the
19087 entries in the dispatch table. Such reevaluation is not desired if
19088 the tagged type is already frozen.
19090 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
19091 Gary Dismukes <dismukes@adacore.com>
19092 Robert Dewar <dewar@adacore.com>
19093 Javier Miranda <miranda@adacore.com>
19095 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
19096 reference acts as an lvalue when the attribute name modifies the prefix
19097 (Is_Coextension_Root): New routine.
19098 (Mark_Static_Coextensions): New routine.
19099 (Type_Access_Level): Revise code for checking the level of the
19100 anonymous access type of a return object.
19101 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
19102 (Matches_Prefixed_View_Profile): Remove the no longer necessary
19103 retrieval of the corresponding controlling record type.
19104 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
19105 concurrent types declared within a generic as well as class wide types.
19106 Emit a mode incompatibility error whenever a protected entry or routine
19107 override an interface routine whose first parameter is not of mode
19108 "out", "in out" or access to variable.
19109 (Overrides_Synchronized_Primitive): Rename to
19110 Find_Overridden_Synchronized_Primitive.
19111 (Collect_Interface_Components): New subprogram that collects all the
19112 components of a tagged record containing tags of secondary dispatch
19114 (Add_Global_Declaration): New procedure
19115 (Abstract_Interface_List): Handle properly the case of a subtype of a
19117 (Type_Access_Level): In the case of a type whose parent scope is a
19118 return statement, call Type_Access_Level recursively on the enclosing
19119 function's result type to determine the level of the return object's
19121 (Build_Elaboration_Entity): Build name of elaboration entity from the
19122 scope chain of the entity, rather than the unit name of the file name.
19123 (Check_Nested_Access): New procedure.
19124 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
19125 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
19126 (Get_Renamed_Entity): Utility routine for performing common operation
19127 of chasing the Renamed_Entity field of an entity.
19129 2007-06-06 Robert Dewar <dewar@adacore.com>
19131 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
19133 (Check_A_Call): Add check for entry call which was causing blowup
19135 2007-06-06 Olivier Hainque <hainque@adacore.com>
19137 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
19138 special code on ia64-vms to handle major incompatibilities between the
19139 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
19140 this routine with a very different set of arguments and expectations on
19143 2007-06-06 Thomas Quinot <quinot@adacore.com>
19145 * socket.c (__gnat_close_signalling_fd): New function.
19146 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
19147 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
19148 New supporting functions for task safe Netdb operations.
19150 2007-06-06 Thomas Quinot <quinot@adacore.com>
19151 Olivier Hainque <hainque@adacore.com>
19153 * a-except-2005.ads, a-except-2005.adb
19154 (Raise_From_Controlled_Operation): New procedure in
19155 (private part of) Ada.Exceptions (standard runtime version). Used to
19156 provide informational exception message when Program_Error is raised as
19157 a result of an Adjust or Finalize operation propagating an exception.
19158 (Rmsg_28): Fix description for E.4(18) check.
19159 (Raise_Current_Excep): Call Debug_Raise_Exception just before
19160 propagation starts, to let debuggers know about the event in a reliable
19162 Take the address of E and dereference to make sure it is homed on stack
19163 and prevent the stores from being deleted, necessary for proper
19164 debugger behavior on "break exception" hits.
19165 (Local_Raise): Moved to System.Exceptions
19167 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
19168 exception message from the current occurrence and raise Program_Error
19169 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
19171 2007-06-06 Jose Ruiz <ruiz@adacore.com>
19172 Arnaud Charlet <charlet@adacore.com>
19174 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
19177 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
19178 priority associated to a lock.
19180 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
19181 assertion to take into account case of no abort restriction.
19182 (Initialize_Protection_Entries): Add initialization for the field
19183 New_Ceiling associated to the protected object.
19184 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
19187 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
19188 since this function needs to be set consistently with Update_Exception.
19190 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
19191 since this function needs to be set consistently with Update_Exception.
19193 * s-taskin.ads: Update comments on
19194 Interrupt_Server_Blocked_On_Event_Flag.
19195 (Unbind_Handler): Fix handling of server_task wakeup
19196 (Server_Task): Set self's state so that Unbind_Handler can take
19197 appropriate actions.
19198 (Common_ATCB): Now use a constant from System.Parameters to determine
19199 the max size of the Task_Image field.
19201 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
19202 Initialize_Analyzer function.
19203 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
19204 take into account case of no abort restriction.
19205 ([Vulnerable_]Complete_Master): Modify assertion.
19207 * s-tataat.adb (Finalize): Use the nestable versions of
19208 Defer/Undefer_Abort.
19210 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
19212 * s-tpobop.ads: Update comments.
19214 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
19215 of locking the object manually, to avoid inconsistencies between
19216 Lock/Unlock_Entry assertions.
19218 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
19220 application and System.Parameters.No_Abort is True.
19221 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
19222 (Unbind_Handler): Fix handling of server_task wakeup
19223 (Server_Task): Set self's state so that Unbind_Handler can take
19224 appropriate actions.
19226 2007-06-06 Thomas Quinot <quinot@adacore.com>
19228 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
19229 declarations instead of an explicit null body, for conciseness.
19231 2007-06-06 Robert Dewar <dewar@adacore.com>
19233 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
19234 illegal aggregate and the type is still Any_Composite.
19235 (Subtypes_Statically_Match): Fix problem of empty discriminant list
19237 2007-06-06 Ed Schonberg <schonberg@adacore.com>
19239 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
19240 to prevent subsequent expansion.
19242 2007-06-06 Robert Dewar <dewar@adacore.com>
19244 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
19246 2007-06-06 Ed Schonberg <schonberg@adacore.com>
19247 Robert Dewar <dewar@adacore.com>
19249 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
19251 (Write_Itype): Handle case of string literal subtype, which
19252 comes up in this context.
19253 (Update_Itype): when debugging expanded code, update sloc of itypes
19254 associated with defining_identifiers and ranges, for gdb use.
19255 (Sprint_Node_Actual): Add static keyword to object or exception
19256 declaration output if Is_Statically_Allocated is True.
19257 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
19258 or task body, so that the tree carries the proper Sloc information for
19260 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
19262 2007-06-06 Arnaud Charlet <charlet@adacore.com>
19264 * s-secsta.adb (Chunk): Ensure this object has a static size known at
19265 compile time, to avoid dynamic memory allocation
19266 (Elaboration code): Only use dynamic memory allocation when needed.
19268 2007-06-06 Quentin Ochem <ochem@adacore.com>
19270 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
19272 (Stack_Analyzer): Added field "Overflow_Guard"
19273 (Task_Result): Added field "Overflow_Guard".
19274 (Index_Str): New constant.
19275 (Task_Name_Str): New constant.
19276 (Actual_Size_Str): New constant.
19277 (Pattern_Array_Element_Size): New constant.
19278 (Get_Usage_Range): New subprogram.
19279 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
19280 Now align the output.
19282 (Initialize): Added value for Overflow_Guard.
19283 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
19284 Update the value of the overflow guard according to the actual
19285 beginning of the pattern array.
19286 (Initialize_Analyzer): Added parameter Overflow_Guard.
19287 Take this parameter into accound when computing the max size.
19288 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
19289 (Report_Result): Removed extra useless procedure.
19290 Updated call to Output_Result.
19291 Moved full computation of the Task_Result here.
19293 2007-06-06 Thomas Quinot <quinot@adacore.com>
19295 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
19296 Thread_Blocking_IO, always True by default, set False on a per-runtime
19298 Add Windows-specific constants
19299 Add new constant Need_Netdb_Buffer.
19300 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
19301 not, whether to use getXXXbyYYY_r.
19303 * gsocket.h: Add new constant Need_Netdb_Buffer.
19304 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
19305 not, whether to use getXXXbyYYY_r.
19307 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
19309 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
19310 than their first call.
19311 Add type Dummy_Communication_Block used in the generation of the pre-
19312 defined dispatching primitive _disp_asynchronous_select.
19313 (Storage_Element): Put Pragma Universal_Aliasing on it.
19315 2007-06-06 Vincent Celier <celier@adacore.com>
19317 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
19320 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
19321 letter if it is not followed by a '/' or a '\'.
19322 (Windows): New Boolean function
19324 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
19326 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
19328 (Containing_Directory): Raise Use_Error when the directory is a root
19330 (Extension): When returning the result, use a conversion to Result_Type,
19331 not a qualification.
19333 2007-06-06 Robert Dewar <dewar@adacore.com>
19335 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
19336 (Set_Style_Check_Options): Recognize new -gnatyg style switch
19338 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
19339 Warn_On_Non_Local_Exception to False, to turn off warnings for
19340 No_Exception_Propagation in ZFP runtime.
19341 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
19343 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
19345 2007-06-06 Vincent Celier <celier@adacore.com>
19347 * switch-b.adb (Scan_Binder_Switches): Add processing for new
19350 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
19351 (Scan_Make_Switches): Recognize new switch -aP
19353 2007-06-06 Matthew Gingell <gingell@adacore.com>
19354 Jose Ruiz <ruiz@adacore.com>
19356 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
19357 VxWorks task descriptor in the Ada run time, call a C subprogram
19358 (__gnat_get_stack_info) that extracts the required information.
19360 * sysdep.c: Back out temporary lynxos workaround.
19361 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
19362 time the stack information associated to the currently executing task.
19363 Only VxWorks systems require this function.
19365 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
19367 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
19368 add the stack bias if the offset is computed from a frame address.
19369 (__gnat_backtrace): Adjust for above change.
19371 2007-06-06 Thomas Quinot <quinot@adacore.com>
19373 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
19374 PE_Non_Transportable_Actual.
19375 (By_Descriptor_Last): New constant.
19376 (By_Copy_Return): Likewise.
19378 2007-06-06 Vincent Celier <celier@adacore.com>
19380 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
19383 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
19384 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
19385 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
19386 Add missing comment for /OPTIMIZE=SPACE
19387 Add entry for OPTIMIZE=SPACE
19388 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
19389 Add documentation for new qualifiers corresponding to -gnatw.c/.C
19391 2007-06-06 Vincent Celier <celier@adacore.com>
19392 Robert Dewar <dewar@adacore.com>
19394 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
19397 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
19398 Document gnatbind switch -a
19399 (case Constructions): Document that variables declarations are allowed
19400 for previously declared variables.
19401 Fix external lib project example
19402 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
19403 Indicate that "#if not X or Y then" is not allowed in input files to
19405 Document gnatw.x and gnatw.X warning flags
19406 Mention -Winline switch to activate warnings when back-end inlining is
19408 Add gnatcheck rule descriptions
19409 Describe how to use the GNAT driver to call a tool on a closure.
19410 Describe how to run project-wide checks or metrics.
19411 Document gnatbind's -R option
19412 Updated to account for Ada 2005 support
19414 * gnat_rm.texi (Case Construction): Allow variable declarations for
19415 previously declared variables.
19416 (Representation Clauses and Pragmas): Lift restriction on alignment
19417 clauses for record types.
19418 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
19419 Document No_Exception_Propagation restriction
19420 Document No_Body pragma
19421 Updated to account for Ada 2005 support; corrected some typos
19422 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
19424 * gnat-style.texi: Make it clear that we never use mode IN for
19425 procedures or functions
19427 * ug_words: Add entries for -gnatw.x and -gnatw.X
19428 Add entries for -gnatw.c/.C
19430 2007-06-06 Pascal Obry <obry@adacore.com>
19431 Vincent Celier <celier@adacore.com>
19433 * makegpr.adb (Add_Archive_Path): Use untouched object and library
19434 dirs and library name.
19435 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
19437 (Build_Library): Idem.
19438 (Compile_Individual_Sources): Idem.
19439 (Compile_Link_With_Gnatmake): Idem.
19440 (Compile_Sources): Idem.
19441 (Get_Imported_Directories): Idem.
19442 (Link_Executables): Idem. Same change for the executable dir.
19443 (Check_Compilation_Needed): C_Source_Path new variable containing
19444 the canonical form of Source_Path to check against the source names
19445 in the dependency file.
19446 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
19447 verbose mode, display the name of the object directory we're changing
19449 (Saved_Switches): New name of table X_Switches
19450 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
19451 (Usage): New line for switch -aP
19452 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
19453 testing if a directory should be added to the search path.
19455 2007-06-06 Javier Miranda <miranda@adacore.com>
19457 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
19458 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
19459 declaration after freezing point of all its associated tagged types;
19460 otherwise such types are frozen too early.
19462 2007-06-06 Robert Dewar <dewar@adacore.com>
19464 * a-reatim.adb: Documentation addition
19466 * g-cgideb.adb: Minor code reorganization
19468 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
19469 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
19470 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
19472 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
19473 function. Change name New_Scope to Push_Scope
19474 (Get_Debug_Flag_K): Remove unused obsolete function.
19476 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
19479 * makeusg.adb: Update Copyright notice
19480 Add line for switch -aP
19482 * makeusg.adb: Fix wording of some usage messages
19484 * s-assert.adb (Raise_Assert_Failure): Add call to
19485 Debug_Raise_Assert_Failure.
19487 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
19488 (2, Standard'Alignment) for compatibility with AAMP (where alignment
19489 is restricted to 1).
19491 * s-wchjis.adb: Remove use of System.Pure_Exceptions
19493 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
19494 node location to No_Location when we're not debugging the expanded
19497 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
19499 * misc.c (enumerate_modes): Consider log2_b to always be one.
19501 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
19503 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
19505 2007-05-02 Pascal Obry <obry@adacore.com>
19507 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
19508 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
19509 encoding support of Stream_IO.
19510 (Write_Unit): Idem.
19512 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
19513 filename and corresponding encoding to match the OS requirement.
19514 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
19515 routine will fail on specific devices like CON: AUX: ...
19517 PR ada/29856: Add missing braces
19519 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
19522 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
19524 2007-04-21 Jan Hubicka <jh@suse.cz>
19526 * misc.c (gnat_expand_body): Don't call target for destructors,
19527 avoid redundant check on syntax errors.
19529 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
19531 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
19532 instead of checking GIMPLE_STMT_P in chain_next.
19534 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
19537 * system-linux-alpha.ads: Disable constant condition warning for the
19538 Default_Bit_Order variable.
19539 * system-linux-s390.ads: Likewise.
19540 * system-linux-s390x.ads: Likewise.
19541 * system-linux-sparc.ads: Likewise.
19543 2007-04-06 Javier Miranda <miranda@adacore.com>
19544 Matt Heaney <heaney@adacore.com>
19545 Robert Dewar <dewar@adacore.com>
19547 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
19548 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
19549 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
19550 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
19551 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
19552 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
19553 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
19554 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
19555 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
19556 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
19557 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
19558 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
19559 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
19560 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
19561 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
19562 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
19563 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
19564 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
19565 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
19566 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
19567 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
19568 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
19569 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
19570 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
19571 s-taprop-tru64.adb, s-taprop-irix.adb,
19572 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
19573 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
19574 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
19575 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
19576 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
19577 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
19578 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
19579 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
19580 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
19581 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
19582 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
19583 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
19584 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
19585 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
19586 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
19587 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
19588 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
19589 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
19590 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
19591 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
19593 Update documentation.
19596 2007-04-06 Robert Dewar <dewar@adacore.com>
19598 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
19599 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
19600 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
19601 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
19602 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
19603 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
19604 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
19605 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
19606 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
19607 system-hpux-ia64.ads, targparm.adb,
19608 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
19610 * system.ads: Move Functions_Return_By_DSP to obsolete section,
19611 kept for bootstrap purposes only.
19613 2007-04-06 Arnaud Charlet <charlet@adacore.com>
19615 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
19616 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
19617 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
19618 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
19620 2007-04-06 Robert Dewar <dewar@adacore.com>
19622 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
19623 (Local_Raise): New dummy procedure called when a raise is converted
19624 to a local goto. Used for debugger to detect that the exception
19627 * debug.adb: Document new d.g flag (expand local raise statements to
19628 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
19630 * exp_sel.adb: Use Make_Implicit_Exception_Handler
19632 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
19633 suppress warnings for unused handlers.
19634 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
19635 warnings for raise statements not handled locally.
19636 (Get_RT_Exception_Entity): New function
19637 (Get_Local_Call_Entity): New function
19638 (Find_Local_Handler): New function
19639 (Warn_If_No_Propagation): New procedure
19640 (Expand_At_End_Handler): Call Make_Implicit_Handler
19641 (Expand_Exception_Handlers): Major additions to deal with local handlers
19642 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
19643 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
19646 * exp_ch11.ads (Get_RT_Exception_Entity): New function
19647 (Get_Local_Call_Entity): New function
19649 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
19650 of restrictions that the binder will never suggest adding.
19652 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
19655 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
19656 be with'ed in the presence of pragma Restriction
19657 (No_Exception_Propagation).
19659 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
19661 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
19662 parameter, then the handler is not a suitable target for a local raise,
19663 and this is a violation of restriction No_Exception_Propagation.
19664 (Analyze_Handled_Statements): Analyze choice parameters in exception
19665 handlers before analyzing statement sequence (needed for proper
19666 detection of local raise statements).
19667 (Analyze_Raise_Statement): Reraise statement is a violation of the
19668 No_Exception_Propagation restriction.
19670 * s-rident.ads: Add new restriction No_Exception_Propagation
19672 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
19673 function, like Make_Exception_Handler but sets Local_Raise_Statements
19675 (Add_Unique_Serial_Number): Deal with case where this is called during
19676 processing of configuration pragmas.
19678 2007-04-06 Thomas Quinot <quinot@adacore.com>
19679 Pat Rogers <rogers@adacore.com>
19680 Pascal Obry <obry@adacore.com>
19682 * g-stsifd-sockets.adb: New file.
19684 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
19685 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
19686 g-socthi-vms.adb: Move signalling
19687 fd management to a nested package, so that they can conveniently be
19688 moved to a subunit that is shared across Windows, VMS, and VxWorks
19689 (Ada implementation) or completed with imported bodies from socket.c
19691 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
19693 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
19694 the signalling file descriptor.
19695 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
19696 signalling file descriptor.
19697 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
19698 instead of creating a pair of sockets for signalling here.
19700 * g-socthi.adb: Ditto.
19701 Set the runtime process to ignore SIGPIPEs on platforms that support
19702 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
19704 * g-socthi-mingw.adb: Ditto.
19705 (WS_Version): Use Windows 2.2.
19706 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
19708 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
19709 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
19711 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
19712 added GNAT byte swapping facility
19713 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
19715 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
19717 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
19719 (__gnat_create_signalling_fds): New subprogram.
19720 Set the runtime process to ignore SIGPIPEs on platforms that support
19721 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
19723 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
19724 Vincent Celier <celier@adacore.com>
19726 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
19727 New version of Ada.Calendar which supports the new upper bound of Ada
19728 time (2399-12-31 86_399.999999999).
19729 The following modifications have been made to the package:
19730 - New representation of time as count of nanoseconds since the start of
19731 Ada time (1901-1-1 0.0).
19732 - Target independent Split and Time_Of routines which service both
19733 Ada 95 and Ada 2005 code.
19734 - Target independent interface to the Ada 2005 children of Calendar.
19735 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
19736 - Handling of non-leap centenial years.
19737 - Updated clock function.
19738 - Updated arithmetic and comparison operators.
19740 * a-caldel.adb (To_Duration): Add call to target independent routine in
19741 Ada.Calendar to handle the conversion of time to duration.
19743 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
19745 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
19747 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
19748 targets do not have a natural time zone, GMT is used as a default.
19749 (__gnat_get_task_options): New.
19751 * a-direct.adb (Modification_Time): Add with and use clauses for
19752 Ada.Calendar and Ada.
19753 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
19754 since it is no longer needed.
19755 (Duration_To_Time): Removed.
19756 (OS_Time_To_Long_Integer): Removed.
19757 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
19758 Formatting Time_Of routines which automatically handle time zones,
19759 buffer periods and leap seconds.
19761 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
19762 target independent routines in Ada.Calendar.
19764 * a-calfor.ads, a-calfor.adb:
19765 Code cleanup and addition of validity checks in various routines.
19766 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
19769 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
19770 independent routine in Ada.Calendar.
19772 2007-04-06 Olivier Hainque <hainque@adacore.com>
19775 (convert_addresses): Adjust prototype and dummy definition to expect an
19776 extra file_name argument.
19778 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
19779 filling the now expected file_name argument with the appropriate
19781 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
19782 (tracebk): Array of void * instead of char *, corresponding to what
19783 convert_addresses expects.
19784 (exename): New static global, to hold the executable file name to be
19785 used in all convert_addresses invocations.
19786 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
19788 (__gnat_gmem_a2l_initialize): Resolve exename.
19789 (__gnat_convert_addresses): Use exename as the convert_addresses
19790 file_name argument.
19792 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
19793 "convert_addresses", now expecting a filename argument. Import the
19794 necessary entities to compute the filename to use and pass it to
19797 2007-04-06 Matt Gingell <gingell@adacore.com>
19799 * system-aix.ads: Back out previous change.
19800 (Functions_Return_By_DSP): Removed
19802 2007-04-06 Pascal Obry <obry@adacore.com>
19804 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
19805 or the monotonic used by Ada.Real_Time) to compute the sleep duration
19808 2007-04-06 Jose Ruiz <ruiz@adacore.com>
19810 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
19811 function. Its value changes in different VxWorks versions, and it is
19812 now handled by the function __gnat_get_task_options.
19814 * s-taprop-vxworks.adb (Create_Task): Call the function
19815 __gnat_get_task_options to get the required options for creating a task.
19817 2007-04-06 Pascal Obry <obry@adacore.com>
19818 Thomas Quinot <quinot@adacore.com>
19820 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
19821 dealing with filename.
19822 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
19823 filename from a standard string to a wide-string depending on the
19825 (__gnat_freopen): Idem.
19826 (__gnat_current_time): New function (wrapper for time(3) standard C
19829 * g-os_lib.ads (Current_Time): New function. Returns the current
19830 system time as an OS_Time value.
19832 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
19833 (Monotonic_Clock): Same.
19835 2007-04-06 Quentin Ochem <ochem@adacore.com>
19837 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
19839 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
19841 2007-04-06 Jose Ruiz <ruiz@adacore.com>
19843 * a-retide.adb: Add elaboration code to ensure that the tasking run
19844 time is initialized when using delay operations even when no task is
19847 2007-04-06 Javier Miranda <miranda@adacore.com>
19849 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
19850 component Num_Prim_Ops.
19851 (Set_Num_Prim_Ops): Removed.
19852 Remove all the assertions because all the routines of this
19853 package are inline always.
19854 (Get_Offset_Index): Add support to primary dispatch tables.
19855 Move the documentation about the dispatch table to a-tags.ads
19856 (Set_External_Tag): Removed
19857 (Inherit_TSD): Removed.
19858 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
19859 moved to a-tags.ads
19860 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
19861 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
19862 of the TSD field "Table" because this field has been renamed to
19864 (Inherit_CPP_DT): Removed.
19865 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
19866 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
19867 declarations have been moved to a-tags.ads
19868 (Check_Size): Removed.
19869 (Expanded_Name): Updated to get access to the new field of TSD
19870 containing the address of the expanded name.
19871 (Get_Access_Level/Set_Access_Level): Removed.
19872 (Get_Predefined_Prim_Op_Address): Removed.
19873 (Set_Predefined_Prim_Op_Address): Removed.
19874 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
19875 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
19876 (Set_Expanded_Name): Removed.
19877 (Inherit_DT): Removed.
19878 (Inherit_CPP_DT): Removed.
19879 (Set_RC_Offset): Removed.
19880 (Set_TSD): Removed.
19881 (Base_Address): New function that displaces "this" to point to the base
19882 of the object (that is, to point to the primary tag of the object).
19884 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19885 Javier Miranda <miranda@adacore.com>
19887 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
19888 anonymous access component, do not create a master_id if type already
19889 has one, as may happen if the type is a subcomponent of a packed array
19891 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
19892 Initialize_Tag): Remove code associated with the old CPP pragmas.
19893 CPP_Virtual and CPP_Vtable are no longer supported.
19894 (Build_Offset_To_Top_Internal): Add support for concurrent record types
19895 (Build_Offset_To_Top_Functions): Add support for concurrent record types
19896 (Freeze_Record_Type): Remove call to
19897 Init_Predefined_Interface_Primitives.
19898 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
19899 code required to initialize the tags of the secondary dispatch tables.
19900 This leaves the algoritm more clear.
19901 (Init_Secondary_Tags): Add support for concurrent record types
19902 (Make_Predefined_Primitive_Specs): Code cleanup.
19903 (Predefined_Primitive_Bodies): Code cleanup.
19904 (Build_Master_Renaming): New local subprogram.
19905 (Expand_N_Full_Type_Declaration): Build the master_id associated with
19906 anonymous access to task type components.
19907 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
19908 subtype indication are resolved during analysis, and must not be done
19910 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
19912 2007-04-06 Geert Bosch <bosch@adacore.com>
19913 Ed Schonberg <schonberg@adacore.com>
19914 Javier Miranda <miranda@adacore.com>
19915 Bob Duff <duff@adacore.com>
19917 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
19918 for conversion of a Float_Type'Truncation to integer.
19920 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
19921 check if a node is an attribute that can be handled directly by the
19923 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
19924 attributes that can be handled directly by the back end.
19925 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
19926 use new predicate Is_Access_Protected_Subprogram_Type.
19927 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
19928 and Unchecked_Union if it is generated as part of the default Output
19929 procedure for a type with default discriminants.
19930 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
19931 if we are compiling under restriction No_Dispatching_Calls.
19932 (Constrained): Use Underlying_Type, in case the type is private without
19933 discriminants, but the full type has discriminants.
19934 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
19935 call to Build_Get_Access_Level.
19936 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
19937 interface objects requires a call to the run-time subprogram that
19938 returns the base address of the object.
19939 (Valid_Conversion): Improve error message on illegal attempt to store
19940 an anonymous access to subprogram value into a record component.
19942 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
19944 (Simplify_Type_Conversion): New procedure that performs simplification
19945 of Int_Type (Float_Type'Truncation (X)).
19946 (Resolve_Type_Conversion): Call above procedure after resolving operand
19947 and before performing checks. This replaces the existing ineffective
19949 (Set_String_Literal_Subtype): When creating the internal static lower
19950 bound subtype for a string literal, use a newly created copy of the
19951 subtree representing the lower bound.
19952 (Resolve_Call): Exclude build-in-place function calls from transient
19953 scope treatment. Update comments to describe this exception.
19954 (Resolve_Equality_Op): In case of dispatching call check violation of
19955 restriction No_Dispatching_Calls.
19956 (Resolve_Call): If the call returns an array, the context imposes the
19957 component type of the array, and the function has one non-defaulted
19958 parameter, rewrite the call as the indexing of a call with a single
19959 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
19961 (Resolve_Actuals): If an actual is an allocator for an access parameter,
19962 the master of the created object is the innermost enclosing statement.
19963 (Remove_Conversions): For a binary operator, check if type of second
19964 formal is numeric, to check if an abstract interpretation is present
19965 in the case of exponentiation as well.
19967 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19968 Bob Duff <duff@adacore.com>
19970 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
19971 copying a parameter list in a call, set properly the First_Named_Formal
19972 and Next_Named_Formal fields in the new list and in the enclosing call.
19973 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
19974 names, to ease typing in the debugger. Improve comments.
19975 (Watch_Node): New variable, intended to be set in the debugger.
19976 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
19977 called when the watched node is created.
19978 (New_Node_Debugging_Output): Combined version of local procedures
19979 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
19980 with a parameter so that conditional breakpoints like "if Node = 12345"
19982 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
19983 Add Elist1 function
19985 2007-04-06 Thomas Quinot <quinot@adacore.com>
19986 Ed Schonberg <schonberg@adacore.com>
19987 Gary Dismukes <dismukes@adacore.com>
19989 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
19990 required for a conversion between two access-to-unconstrained-array
19992 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
19993 to discriminant constraints on discriminant objects. This rule must
19994 apply as well to discriminants of protected types in private components.
19995 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
19996 object of a null-excluding access type then don't require the
19997 the object declaration to have an expression and don't emit a
20000 2007-04-06 Arnaud Charlet <charlet@adacore.com>
20001 Eric Botcazou <botcazou@adacore.com>
20003 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
20006 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
20007 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
20010 * fe.h (Compiler_Abort): Add third parameter.
20012 * misc.c (internal_error_function): Build third argument from current
20013 input location and pass it to Compiler_Abort.
20015 2007-04-06 Gary Dismukes <dismukes@adacore.com>
20017 * cstand.adb (Create_Standard): When the target's storage unit size is
20018 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
20021 2007-04-06 Nicolas Roche <roche@adacore.com>
20023 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
20024 absolute path can have the following form: device:/a/b. In this case
20025 '/' should be inserted between the path and the filename.
20027 2007-04-06 Olivier Hainque <hainque@adacore.com>
20028 Eric Botcazou <botcazou@adacore.com>
20030 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
20031 VAR_DECL to a CONST_DECL we make for a public constant when we know the
20032 corresponding definition has created the so made visible variable.
20033 Handle anonymous access to protected subprogram.
20034 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
20035 object with an address clause volatile. Re-enable original fix.
20036 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
20038 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
20039 associated with either the Equivalent or Root type, instead of the
20041 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
20042 subtree for every field of a global record type.
20043 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
20044 discriminants, invoke again variable_size on its newly computed sizes.
20046 2007-04-06 Robert Dewar <dewar@adacore.com>
20047 Thomas Quinot <quinot@adacore.com>
20048 Ed Schonberg <schonberg@adacore.com>
20049 Bob Duff <duff@adacore.com>
20051 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
20052 (Next_Component_Or_Discriminant): New function and procedure
20053 (First_Index, First_Literal, Master_Id,
20054 Set_First_Index, Set_First_Literal, Set_Master_Id):
20055 Add missing Ekind assertions.
20056 (Is_Access_Protected_Subprogram_Type): New predicate.
20057 (Has_RACW): New entity flag, set on package entities to indicate that
20058 the package contains the declaration of a remote accecss-to-classwide
20060 (E_Return_Statement): This node type has the Finalization_Chain_Entity
20061 attribute, in case the result type has controlled parts.
20062 (Requires_Overriding): Add this new flag, because "requires
20063 overriding" is subtly different from "is abstract" (see AI-228).
20064 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
20065 Is_Abstract_Type. Make sure these are called only when appropriate.
20066 (Has_Pragma_Unreferenced_Objects): New flag
20068 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
20069 class-wide, the tag of the right-hand side must be an exact match, not
20070 an ancestor of that of the object on left-hand side.
20071 (Move_Activation_Chain): New procedure to create the call to
20072 System.Tasking.Stages.Move_Activation_Chain.
20073 (Expand_N_Extended_Return_Statement): Generate code to call
20074 System.Finalization_Implementation.Move_Final_List at the end of a
20075 return statement if the function's result type has controlled parts.
20076 Move asserts to Build_In_Place_Formal.
20077 (Move_Final_List): New function to create the call statement.
20078 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
20079 tagged type, replace generation of call to the run-time subprogram
20080 CW_Membership by call to Build_CW_Membership.
20081 (Expand_N_Return_Statement): Replace generation of call to the run-time
20082 subprogram Get_Access_Level by call to Build_Get_Access_Level.
20083 (Expand_N_Simple_Function_Return): Replace generation of call to the
20084 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
20086 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
20087 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
20088 access to protected operations.
20089 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
20090 master and chain actual parameters to a build-in-place function call
20092 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
20094 (Make_Build_In_Place_Call_In_Allocator,
20095 Make_Build_In_Place_Call_In_Anonymous_Context,
20096 Make_Build_In_Place_Call_In_Assignment,
20097 Make_Build_In_Place_Call_In_Object_Declaration): Call
20098 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
20099 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
20100 stubbed procedure with a null body, replace the call with a null
20101 statement without using the full inlining machinery, for efficiency
20102 and to avoid invalid values in source file table entries.
20104 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
20105 renamings of calls to build-in-place functions.
20107 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
20108 provides the functionality of RTE_Available to record components.
20109 (RTU_Entity): The function Entity has been renamed to RTU_Entity
20110 to avoid undesired overloading.
20111 (Entity): New subprogram that returns the entity for the referened
20112 unit. If this unit has not been loaded, it returns Empty.
20113 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
20114 Remove no longer used entities.
20115 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
20116 (RE_Type_Specific_Data): New entity.
20117 (RE_Move_Any_Value): New entity.
20118 (RE_TA_A, RE_Get_Any_Type): New entities.
20119 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
20120 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
20121 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
20122 (Entity): New subprogram that returns the entity for the referened
20123 unit. If this unit has not been loaded, it returns Empty.
20124 (RTE): Addition of a new formal that extends the search to the scopes
20125 of the record types found in the chain of the package.
20127 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
20128 "abstract subprograms must be visible" message, whether or not the type
20129 is an interface; that is, remove the special case for interface types.
20130 (Analyze_Function_Return): Remove error message "return of task objects
20131 is not yet implemented" because this is now implemented.
20132 (Create_Extra_Formals): Add the extra master and activation chain
20133 formals in case the result type has tasks.
20134 Remove error message "return of limited controlled objects is not yet
20136 (Create_Extra_Formals): Add the extra caller's finalization list formal
20137 in case the result type has controlled parts.
20138 (Process_Formals): In case of access formal types there is no need
20139 to continue with the analysis of the formals if we already notified
20141 (Check_Overriding_Indicator): Add code to check overriding of predefined
20143 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
20144 flags for formals that do not require them,.
20145 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
20146 hidden entity is use visible or directly visible.
20147 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
20148 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
20149 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
20150 New_Overloaded_Entity): Split Is_Abstract flag into
20151 Is_Abstract_Subprogram and Is_Abstract_Type.
20153 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
20154 a return statement's finalization list to the caller's list, used for
20155 build-in-place functions with result type with controlled parts.
20156 Remove no longer used entities.
20158 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
20159 longer needed, because the full type is now limited, and therefore a
20160 pass-by-reference type.
20161 (Foreign_Task_Level): New constant.
20163 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
20164 move tasks from the activation chain belonging to a return statement to
20165 the one passed in by the caller, and update the master to the one
20166 passed in by the caller.
20167 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
20168 of unactivated tasks, so we don't kill the ones that are being returned
20169 by a build-in-place function.
20170 (Create_Task): Ignore AI-280 for foreign threads.
20172 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20173 Robert Dewar <dewar@adacore.com>
20174 Bob Duff <duff@adacore.com>
20175 Gary Dismukes <dismukes@adacore.com>
20177 * errout.adb (Unwind_Internal_Type): Use predicate
20178 Is_Access__Protected_Subprogram_Type.
20180 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
20181 (Freeze_Entity, packed array case): Do not override explicitly set
20182 alignment and size clauses.
20183 (Freeze_Entity): An entity declared in an outer scope can be frozen if
20184 the enclosing subprogram is a child unit body that acts as a spec.
20185 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
20186 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
20187 Remove all code for DSP option
20189 * layout.adb (Layout_Record_Type): Use First/
20190 Next_Component_Or_Discriminant
20191 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
20192 to handle properly the anonymous access case.
20194 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
20195 for all access attributes, because overload resolution should work the
20196 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
20197 causes the error message for the ambiguous "X'Access = Y'Access" and
20198 "X'Unrestricted_Access = Y'Access" and so forth to match.
20199 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
20200 now that anonymous access to protected operations have their own kind.
20201 (Resolve_Attribute): In case of dispatching call check the violation of
20202 restriction No_Dispatching_Calls.
20203 (Check_Array_Type): Check new -gnatyA array index style option
20205 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
20206 attempt to derive from a synchronized tagged type.
20207 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
20208 type, inherit the class-wide type already created, because it may
20209 already have been used in a self-referential anonymous access component.
20210 (Mentions_T): Recognize self-referential anonymous access components
20211 that use (a subtype of) the class-wide type of the enclosing type.
20212 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
20213 Derived_Type for Prev formal on call to
20214 Check_Anonymous_Access_Components rather than Empty.
20215 (Make_Incomplete_Type_Declaration): Add test for case where the type has
20216 a record extension in deciding whether to create a class-wide type,
20217 rather than just checking Tagged_Present.
20218 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
20219 to stand-alone object declarations as well as component declarations.
20220 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
20221 prevent accidental overwriting when enclosing package appears in
20222 a limited_with_clause.
20223 (Array_Type_Declaration): If the component type is an anonymous access,
20224 the associated_node for the itype is the type declaration itself.
20225 (Add_Interface_Tag_Components): Modified to support concurrent
20226 types with abstract interfaces.
20227 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
20228 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
20229 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
20230 to complete the decoration of synchronized interface types. Add also
20231 a call to Check_Abstract_Interfaces to verify the ARM rules.
20232 (Derive_Interface_Subprograms): Modified to support concurrent types
20233 with abstract interfaces.
20234 (Analyze_Subtype_Indication): Resolve the range with the given subtype
20235 mark, rather than delaying the full resolution depending on context.
20236 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
20237 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
20238 Array_Type_Declaration,Build_Derived_Record_Type,
20239 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
20240 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
20241 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
20242 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
20243 called only when appropriate.
20244 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
20246 (Analyze_Subtype_Declaration): For an access subtype declaration, create
20247 an itype reference for the anonymous designated subtype, to prevent
20248 scope anonmalies in gigi.
20249 (Build_Itype_Reference): New utility, to simplify construction of such
20252 2007-04-06 Vincent Celier <celier@adacore.com>
20254 * errutil.adb (Initialize): Initialize warnings table, if all warnings
20255 are suppressed, supply an initial dummy entry covering all possible
20258 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
20259 and start with only one, such as "-RTS=none".
20260 (Collect_Arguments): Do not check for sources outside of projects.
20261 Do not collect arguments if project is externally built.
20262 (Compile_Sources): Do nothing, not even check if the source is up to
20263 date, if its project is externally built.
20264 (Compile): When compiling a predefined source, add -gnatpg
20265 as the second switch, after -c.
20266 (Compile_Sources): Allow compilation of Annex J renames without -a
20267 (Is_In_Object_Directory): Check if the ALI file is in the object
20268 even if there is no project extension.
20269 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
20270 gnatbind if the ALI file effectively exists.
20271 (Initialize): Add the directory where gnatmake is invoked in front of
20272 the path if it is invoked from a bin directory, even without directory
20273 information, so that the correct GNAT tools will be used when spawned
20274 without directory information.
20276 * makeusg.adb: Change switch -S to -eS
20277 Add lines for new switches -we, -wn and -ws
20278 Add line for new switch -p
20280 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
20281 Treat_As_Error and there are warnings.
20283 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
20284 -gnatww Change gnatmake switch -S to -eS
20285 (Scan_Make_Switches): Code reorganisation. Process separately multi
20286 character switches and single character switches.
20287 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
20288 False when switch is not recognized by gnatmake.
20289 (Scan_Make_Switches): Set Setup_Projects True when -p or
20290 --create-missing-dirs is specified.
20292 * fname.adb (Is_Predefined_File_Name): Return True for annex J
20293 renamings Calendar, Machine_Code, Unchecked_Conversion and
20294 Unchecked_Deallocation only when Renamings_Included is True.
20296 * par.adb: Allow library units Calendar, Machine_Code,
20297 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
20298 when -gnatg is not specified.
20299 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
20300 there is no need to generate always a record_definition_node in case
20301 of synchronized interface types.
20302 (SIS_Entry_Active): Initialize global variable to False
20303 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
20304 indicate cases where AI-447 says "not null" is legal.
20306 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
20308 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
20309 files with with several lines starting with the object fileb name.
20310 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
20312 (Initialize): Add the directory where gprmake is invoked in front of the
20313 path, if it is invoked from a bin directory or with directory
20314 information, so that the correct GNAT tools will be used when invoked
20316 (Check_Compilation_Needed): Process correctly backslashes on Windows.
20318 * vms_data.ads: Update switches/qualifiers
20320 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20321 Thomas Quinot <quinot@adacore.com>
20324 If the array component is a discriminated record, the array aggregate
20325 is non-static even if the component is given by an aggregate with
20327 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
20328 (Convert_Aggr_In_Allocator): If the allocator is for an access
20329 discriminant and the type is controlled. do not place on a finalization
20330 list at this point. The proper list will be determined from the
20332 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
20333 initialize record controller if needed, before the components, to ensure
20334 that they are properly finalized.
20335 (Build_Record_Aggr_Code): For the case of an array component that has a
20336 corresponding array aggregate in the record aggregate, perform sliding
20339 2007-04-06 Javier Miranda <miranda@adacore.com>
20340 Gary Dismukes <dismukes@adacore.com>
20341 Ed Schonberg <schonberg@adacore.com>
20343 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
20344 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
20346 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
20347 accessibility on class-wide allocators if the allocator occurs at the
20348 same scope level as the allocator's type. The check is guaranteed to
20349 succeed in that case, even when the expression originates from a
20350 parameter of the containing subprogram.
20351 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
20352 under No_Dispatching_Calls restriction. During the semantic analysis
20353 we already notified such violation.
20354 (Tagged_Membership): Constant folding. There is no need to check
20355 the tag at run-time if the type of the right operand is non
20356 class-wide abstract.
20357 Replace call to Is_Ancestor by call to Is_Parent
20358 to support concurrent types with interface types.
20359 (Expand_N_Allocator): Add an assertion associated with the generation
20361 (Expand_N_Slice): Do not enable range check to nodes associated
20362 with the frontend expansion of the dispatch table.
20363 (Is_Local_Access_Discriminant): Subsidiary function to
20364 Expand_N_Allocator.
20365 (Tagged_Membership): Replace generation of call to the run-time
20366 subprogram CW_Membership by call to Build_CW_Membership.
20367 (Expand_Allocator_Expression): Replace generation of call to the
20368 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
20370 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
20371 initialize most the TSD components by means of an aggregate.
20372 Modify the declaration of the object containing the TSD
20373 because we now expand code that has a higher level of abstraction.
20374 The TSD has a discriminant containing the Inheritance Depth Level,
20375 value that is used in the membership test but also to fix the size
20376 of the table of ancestors.
20377 (Expand_Interface_Conversion): Insert function body at the closest place
20378 to the conversion expression, to prevent access-before-elaboration
20379 errors in the backend.
20380 Code improved to reduce the size of the dispatch table if
20381 compiling under restriction No_Dispatching_Calls plus code cleanup.
20382 Code reorganization plus removal of calls to Set_Num_Prim_Ops
20383 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
20384 (Expand_Dispatching_Call): Minor code reorganization plus addition of
20385 code to return immediately if compiling under No_Dispatching_Calls
20387 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
20388 CPP_Virtual and CPP_Vtable are no longer supported.
20389 (Expand_Interface_Conversion): Add missing support for interface type
20391 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
20392 Is_Parent to support concurrent types with interfaces.
20393 (Init_Predefined_Interface_Primitives): Removed.
20394 (Make_Secondary_DT): Modified to support concurrent record types.
20395 (Set_All_DT_Position): Modified to support concurrent record types.
20396 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
20397 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
20398 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
20399 with CW_Membership.
20400 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
20401 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
20402 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
20403 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
20404 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
20405 (Expand_Dispatching_Call): Replace generation of call to the run-time
20406 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
20407 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
20409 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
20410 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
20411 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
20412 Build_Set_Prim_Op_Address.
20413 (Get_Remotely_Callable): Subprogram removed.
20414 (Init_Predefined_Interface_Primitives): Replace generation of call to
20415 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
20418 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
20419 First (Parameter_Associations ()) with the call to First_Actual that
20420 returns an actual parameter expression for both named and positional
20423 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
20424 check violation of restriction No_Dispatching_Calls.
20425 (Check_Controlling_Type): A formal of a tagged incomplete type is a
20426 controlling argument.
20428 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
20429 First/Next_Component_Or_Discriminant
20430 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
20431 (Find_Implemented_Interface): Removed. All the calls to this subprogram
20432 specify Any_Limited_Interface, and this functionality is already
20433 provided by the function Has_Abstract_Interfaces.
20434 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
20435 support concurrent types implementing interfaces.
20436 (Find_Implemented_Interface): Removed. All the calls to this subprogram
20437 specify kind Any_Limited_Interface, and this functionality is already
20438 provided by the function Has_Abstract_Interfaces.
20439 (Remove_Side_Effects): replace Controlled_Type by
20440 CW_Or_Controlled_Type whenever the issue is related to
20441 using or not the secondary stack.
20443 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
20444 P_Interface_Type_Definition to fulfill the new interface (the formal
20445 Is_Synchronized is no longer required).
20447 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
20448 Update dependencies.
20450 * exp_atag.ads, exp_atag.adb: New file
20452 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20453 Bob Duff <duff@adacore.com>
20454 Cyrille Comar <comar@adacore.com>
20456 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
20457 anonymous, use finalization list of enclosing dynamic scope.
20458 (Expand_N_Package_Declaration): For a library package declaration
20459 without a corresponding body, generate RACW subprogram bodies in the
20460 spec (just as we do for the task activation call).
20461 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
20462 Is_Abstract_Type. Make sure these are called only when appropriate.
20463 Remove all code for DSP option
20464 (CW_Or_Controlled_Type): new subprogram.
20466 2007-04-06 Eric Botcazou <botcazou@adacore.com>
20467 Ed Schonberg <schonberg@adacore.com>
20468 Gary Dismukes <dismukes@adacore.com>
20470 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
20471 parameter. If it is set to true, return a result capped according to
20472 the global upper bound for the index of an entry family.
20473 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
20474 (Build_Find_Body_Index): Adjust for above change.
20475 (Entry_Index_Expression): Likewise.
20476 (Is_Potentially_Large_Family): New function extracted from...
20477 (Collect_Entry_Families): ...here. Call it to detect whether the family
20478 is potentially large.
20479 (Build_Entry_Count_Expression): If the family is potentially large, call
20480 Family_Size with 'Cap' set to true.
20481 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
20482 a protected version of an operation declared in the private part of
20483 a protected object, because they may be invoked through a callback.
20484 (Set_Privals): If the type of a private component is an anonymous access
20485 type, do not create a new itype for each protected body.
20486 If the body of a protected operation creates
20487 controlled types (including allocators for class-widetypes), the
20488 body of the corresponding protected subprogram must include a
20490 (Build_Activation_Chain_Entity): Build the chain entity for extended
20492 (Type_Conformant_Parameters): Use common predicate Conforming_Types
20493 to determine whether operation overrides an inherited primitive.
20494 (Build_Wrapper_Spec): Add code to examine the parents while looking
20495 for a possible overriding candidate.
20496 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
20497 hold an actual parameter value since its initialization is separated
20498 from the the declaration. Prevents errors on null-excluding access
20501 2007-04-06 Thomas Quinot <quinot@adacore.com>
20502 Pablo Oliveira <oliveira@adacore.com>
20504 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
20505 Do an Unchecked_Conversion to handle the passage from the Underlying
20506 Type to the Base Type when calling Build_To_Any_Call and
20507 Build_From_Any_Call.
20508 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
20509 E_Constant, depending upon Variable formal.
20510 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
20511 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
20512 parameter that requires an extra constrained parameter, declare
20513 temporary for actual as a variable, not a constant.
20514 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
20515 the unit being compiled is the one that contains the stub type.
20516 Change primitive operation name for the RACW associated with a RAS
20517 from Call to _Call so it cannot clash with any legal identifier.
20518 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
20520 (Append_RACW_Bodies): New subprogram.
20521 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
20522 Add_Receiving_Stubs_To_Declarations functions.
20523 When expanding a package body, this list correspond to the
20524 statements in the HSS at the end of the pacakge.
20525 When expanding a package spec, this list correspond to the
20527 (Add_Receiving_Stubs_To_Declarations): Append the function
20528 registering the receiving stubs at the end of the 'Stmts' list.
20529 (RCI_Package_Locator): Pass the new Version generic formal when
20530 instantiating a RCI_Locator package.
20531 (Build_From_Any_Function): To compute the High bound for an
20532 unconstrained array actual, we add the Low bound with the length.
20533 Thus we must convert the low bound and the length to an appropriate
20534 type before doing the sum.
20535 (Build_Subprogram_Receiving_Stubs, PolyORB):
20536 * Retrieve the extra formals parameters at the
20537 end of the parameter stream.
20538 * Use Move_Any_Value to write back out parameters
20539 after executing the request as it is more efficient
20540 than Copy_Any_Value.
20541 * Build the any containing Extra Formals with the
20542 appropriate typecode.
20543 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
20544 empty Component_List.
20545 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
20546 the tree the declaration for an object that serves as actual parameter
20547 in server-side stubs.
20548 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
20549 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
20550 Use Build_Actual_Object_Declaration to prepare the actuals.
20551 (Add_Parameter_To_NVList): Set the parameter mode to In for
20552 Extra Constrained Parameters.
20553 (Build_General_Calling_Stubs): Set the parameter type to boolean for
20554 Extra Constrained parameters.
20555 (Build_To_Any_Function, Build_From_Any_Function,
20556 Built_TypeCode_Function): When Typ is implicit, call the correct
20557 function with the first not implicit parent type.
20558 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
20559 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
20560 typecode from the Etype. Therefore we retrieve the correct typecode
20561 with a call to Get_Any_Type.
20562 (Copy_Specification): Do controlling formal type substitution based on
20563 Is_Controlling_Formal flag, instead of caller-provided object type.
20564 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
20565 a RACW primitive operation, we might get a subprogram declaration for an
20566 ancestor of the RACW designated type (not for the designated type
20567 itself), in the case where this operation is inherited. In this case we
20568 have no easy means of determining the original tagged type for which
20569 the primitive was declared, so instead we now rely on
20570 Copy_Specification to use the Is_Controlling_Formal flag to determine
20571 which formals require type substitution.
20573 2007-04-06 Robert Dewar <dewar@adacore.com>
20574 Ed Schonberg <schonberg@adacore.com>
20576 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
20577 GNAT.Current_Exception are not allowed if pragma Restrictions
20578 (No_Exception_Propagation) is set and in any case make the associated
20579 handler unsuitable as a target for a local raise statement.
20580 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
20581 run-time subprogram CW_Membership by call to Build_CW_Membership.
20582 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
20583 by a function call, a temporary must be created before expanding the
20584 Constructor_Call itself, to prevent out-of-order elaboration in the
20585 back-end when stack checking is enabled..
20587 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20589 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
20590 result are the bounds of the left operand, not the right.
20592 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20595 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
20596 discriminant defaults.
20597 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
20598 (Make_Component_List_Attributes): Ditto.
20600 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20601 Bob Duff <duff@adacore.com>
20603 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
20604 an association with a box as providing a value even though the
20605 initialization procedure for the type is not available.
20606 (Resolve_Record_Aggregate): Check that a choice of an association with a
20607 box corresponds to a component of the type.
20608 (Resolve_Record_Aggregate): Split Is_Abstract flag into
20609 Is_Abstract_Subprogram and Is_Abstract_Type.
20611 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
20614 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
20615 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
20616 called only when appropriate.
20618 2007-04-06 Olivier Hainque <hainque@adacore.com>
20620 * g-alleve.ads (Low Level Vector type definitions): Map each to the
20621 associated vector view instead of all to the unsigned char view.
20623 * g-altcon.adb (Generic_Conversions): New internal generic package,
20624 offering facilities for all the Vector/View conversion routines
20625 implemented by this unit.
20626 (To_View/To_Vector - all versions): Reimplemented in a systematic
20627 manner, using the internal Generic_Conversions facilities.
20629 2007-04-06 Pascal Obry <obry@adacore.com>
20631 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
20633 (Create): Free the source string before storing the new one.
20635 2007-04-06 Vincent Celier <celier@adacore.com>
20637 * g-debpoo.adb (Validity): New package with a complete new
20638 implementation of subprograms Is_Valid and Set_Valid.
20639 (Is_Valid): Move to local package Validity
20640 (Set_Valid): Move to local package Validity
20642 2007-04-06 Arnaud Charlet <charlet@adacore.com>
20643 Pablo Oliveira <oliveira@adacore.com>
20645 * g-expect.adb (Get_Command_Output): When expanding the output buffer
20646 we must ensure that there is enough place for the new data we are going
20649 2007-04-06 Thomas Quinot <quinot@adacore.com>
20651 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
20654 2007-04-06 Jose Ruiz <ruiz@adacore.com>
20655 Vincent Celier <celier@adacore.com>
20657 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
20658 (Stack_String): Add this String that contains the name of the Stack
20659 package in the project file.
20660 (Packages_To_Check_By_Stack): Add this list that contains the packages
20661 to be checked by gnatstack, which are the naming and the stack packages.
20662 (Check_Files): If no .ci files were specified for gnatstack we add all
20663 the .ci files belonging to the projects, including binder generated
20665 (Non_VMS_Usage): Document that gnatstack accept project file switches.
20666 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
20667 Add gnatstack to the list of commands that use project file related
20668 switches, and get the single attribute Switches from the stack package
20669 in a project file when calling gnatstack. Parse the -U flag for
20670 processing files belonging to all projects in the project tree.
20671 Remove all processing for command Setup
20673 * prj-attr.adb: Add new package Stack with single attribute Switches
20675 * vms_conv.ads (Command_Type): Add command Stack.
20676 Move to body declarations that are only used in the body: types Item_Id,
20677 Translation_Type, Item_Ptr, Item and its subtypes.
20679 * vms_conv.adb: (Initialize): Add data for new command Stack.
20680 Add declarations moved from the spec: types Item_Id, Translation_Type,
20681 Item_Ptr, Item and its subtypes.
20682 (Cargs_Buffer): New table
20683 (Cargs): New Boolean global variable
20684 (Process_Buffer): New procedure to create arguments
20685 (Place): Put character in table Buffer or Cargs_Buffer depending on the
20687 (Process_Argument): Set Cargs when processing qualifiers for GNAT
20689 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
20690 empty, for table Cargs_Buffer.
20691 (Initialize): Remove component Setup in Command_List
20693 2007-04-06 Vincent Celier <celier@adacore.com>
20695 * gprep.adb (Process_Files.Process_One_File): Use full file name when
20696 issuing pragma Source_Reference.
20698 2007-04-06 Emmanuel Briot <briot@adacore.com>
20700 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
20701 [[:xdigit:]] character class.
20702 Also raise an exception when an invalid character class is used.
20704 2007-04-06 Pascal Obry <obry@adacore.com>
20706 * i-cstrea.ads: (fopen): Add encoding parameter.
20708 Change reference from a-sysdep.c to sysdep.c in comment.
20709 Update copyright notice.
20710 This set of patch add support for the encoding form parameter.
20712 * mingw32.h (S2WSU): New macro to convert from a string to a
20713 wide-string using the UTF-8 encoding. The S2WS macro supports now only
20714 standard 8bits encoding.
20715 (WS2SU): As above but converting from wide-sring to string.
20716 This is needed as it is necessary to have access to both versions in the
20717 runtime for the form parameter encoding support.
20718 This set of patch add support for the encoding form parameter.
20719 (S2WS): Improve implementation to handle cases where the filename is not
20720 UTF-8 encoded. In this case we default to using the current code page
20721 for the conversion.
20723 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
20724 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
20725 the constants defined in adaint.h.
20726 (fopen): Add encoding parameter.
20729 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
20730 encoding. This is needed for the Reset routine (freopen low level-call).
20732 * s-fileio.adb (Open): Decode encoding form parameter and set the
20733 corresponding encoding value into AFCB structure.
20734 (Reset): Pass the encoding value to freopen.
20735 (Close): Move the call to Lock_Task to the beginning of the procedure.
20737 2007-04-06 Geert Bosch <bosch@adacore.com>
20738 Robert Dewar <dewar@adacore.com>
20740 * i-fortra.ads: Add Double_Complex type.
20742 * impunit.adb: (Is_Known_Unit): New function
20743 Add Gnat.Byte_Swapping
20745 Add new Ada 2005 units
20746 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
20747 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
20748 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
20749 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
20751 * impunit.ads (Is_Known_Unit): New function
20753 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
20754 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
20755 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
20756 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
20757 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
20758 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
20761 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
20763 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
20765 2007-04-06 Eric Botcazou <botcazou@adacore.com>
20766 Arnaud Charlet <charlet@adacore.com>
20768 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
20769 __gnat_adjust_context_for_raise.
20770 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
20771 implementation of floating point operations as native x86 targets.
20772 So the FPU should be initialized in the same way using finit. Fix
20773 floating point operations accuracy issues.
20774 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
20775 member in struct sigaction, so as to avoid warning for incompatible
20778 2007-04-06 Serguei Rybin <rybin@adacore.com>
20780 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
20781 switches from previously loaded tree
20783 2007-04-06 Thomas Quinot <quinot@adacore.com>
20785 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
20786 cases where a given dependency has a body or not.
20787 (Write_With_File_Names): New subprogram, common code for the two cases
20790 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20791 Javier Miranda <miranda@adacore.com>
20793 * lib-xref.ads, lib-xref.adb:
20794 Modify the loop that collects type references, to include interface
20795 types that the type implements. List each of these interfaces when
20796 building the entry for the type.
20797 (Generate_Definition): Initialize component Def and Typ of new entry
20798 in table Xrefs, to avoid to have these components unitialized.
20799 (Output_References): Split Is_Abstract flag into
20800 Is_Abstract_Subprogram and Is_Abstract_Type.
20801 (Generate_Reference): Add barrier to do not generate the warning
20802 associated with Ada 2005 entities with entities generated by the
20805 2007-04-06 Robert Dewar <dewar@adacore.com>
20806 Arnaud Charlet <charlet@adacore.com>
20807 Vincent Celier <celier@adacore.com>
20809 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
20810 Update 'Exception Handling Control' chapter which was outdated.
20811 Minor fix to documentation of -gnatwq
20812 Remove section "Adapting the Run Time to a New C++ Compiler" because
20813 it is now obsolete.
20814 Add passage on need of -nostart-files in some non-ada-main cases.
20815 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
20816 Update documentation about Interfacing with C++
20817 Add documentation for new gnatmake switch -p
20818 Add missing protocol part in URLs.
20820 Document pragma Compile_Time_Error
20821 Add documentation for Object_Size indicating that stand alone
20822 objects can have a larger size in some cases.
20823 Add node for GNAT.Byte_Swapping, GNAT.SHA1
20824 Update reference to the Ravenscar profile.
20825 Document pragma Unreferenced_Objects
20827 * gnat-style.texi: Fix typo
20829 2007-04-06 Vincent Celier <celier@adacore.com>
20831 * mlib.adb (Building_Library): Only output "building a library..." in
20834 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
20835 files in verbose mode.
20837 * mlib-utl.adb (Ar): Only output the first object files when not in
20839 (Gcc): Do not display all the object files if not in verbose mode, only
20842 2007-04-06 Robert Dewar <dewar@adacore.com>
20844 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
20845 it no longer destroys the contents of Name_Buffer or Name_Len and
20846 non-standard and invalid names are handled better.
20847 (Get_Decoded_Name_String): Improve performance by using
20848 Name_Has_No_Encodings flag in the name table.
20849 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
20850 Used for debugging printouts.
20852 2007-04-06 Robert Dewar <dewar@adacore.com>
20853 Javier Miranda <miranda@adacore.com>
20854 Bob Duff <duff@adacore.com>
20856 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
20857 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
20858 there is no need to generate always a record_definition_node in case
20859 of synchronized interface types.
20860 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
20861 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
20862 illegal in Ada 95, in cases where it is legal. Change the warnings to
20863 errors in other cases. Don't give the error unless the "not null"
20864 parses properly. Correct the source position at which the error occurs.
20865 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
20866 P_Null_Exclusion, to suppress "not null" warnings.
20867 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
20868 associated goto statements.
20870 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
20873 * scans.ads (Type_Token_Location): New flag
20875 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
20876 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
20877 P_Null_Exclusion, to suppress "not null" warnings.
20879 2007-04-06 Robert Dewar <dewar@adacore.com>
20880 Javier Miranda <miranda@adacore.com>
20881 Bob Duff <duff@adacore.com>
20882 Vincent Celier <celier@adacore.com>
20884 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
20885 (Extensions_Allowed): No longer sets Ada_Version
20886 Entry for pragma Unreferenced_Objects
20888 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
20889 system.tasking if pragma priority used in a procedure
20890 (Analyze_Pragma, case Warning): Handle dot warning switches
20891 (Process_Compile_Time_Warning_Or_Error): New procedure
20892 (Analyze_Pragma): Add processing for Compile_Time_Error
20893 Add support for extra arguments External_Name and Link_Name.
20894 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
20895 (Process_Import_Or_Interface): Add support for the use of pragma Import
20897 (Extensions_Allowed): No longer affects Ada_Version
20898 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
20899 Is_Abstract_Type. Make sure these are called only when appropriate.
20900 Add processing for pragma Unreferenced_Objects
20902 * snames.h, snames.ads, snames.adb: Add entry for pragma
20904 Add new standard name Minimum_Binder_Options for new gprmake
20905 Add new standard names for gprmake: Archive_Suffix,
20906 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
20907 Library_Support, Library_Version_Options,
20908 Shared_Library_Minimum_Options,
20909 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
20910 Change Name_Call to Name_uCall so that it cannot clash with a legal
20912 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
20913 Append C_Plus_Plus to convention identifiers as synonym for CPP
20914 Add new standard names Stack and Builder_Switches
20915 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
20916 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
20917 Run_Path_Option, Toolchain_Version.
20918 Entry for pragma Unreferenced_Objects
20920 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
20921 switches, without repetition of "eD". Make sure that last character of
20922 -gnatep= switch is not taken as -gnat switch character.
20923 Complete rewrite of circuit for handling saving compilation options
20924 Occasioned by need to support dot switchs for -gnatw, but cleans up
20926 -gnatX does not affect Ada_Version
20927 Include -gnatyA in -gnatg style switches
20929 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
20930 warnings on return objects.
20931 (Warn_On_Useless_Assignment): Exclude warnings on return objects
20932 (Set_Dot_Warning_Switch): New procedure
20933 (Check_References): Add missing case of test for
20934 Has_Pragma_Unreferenced_Objects
20935 (Output_Unreferenced_Messages): Implement effect of new pragma
20936 Unreferenced_Objects, remove special casing of limited controlled
20939 2007-04-06 Vincent Celier <celier@adacore.com>
20941 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
20942 the default project path, initially done during elaboration of the
20944 If the prefix returned by Sdefault is null, get the prefix from a call
20945 to Executable_Prefix_Path.
20946 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
20949 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
20950 canonical directory name to open the directory from which files are
20952 (Record_Other_Sources): Idem.
20953 (Locate_Directory): Add the possibility to create automatically missing
20954 directories when Setup_Projects is True.
20955 Call Locate_Directory so that the directory will be created when
20956 Setup_Projects is True, for object dir, library dir, library ALI dir,
20957 library source copy dir and exec dir.
20959 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
20962 2007-04-06 Robert Dewar <dewar@adacore.com>
20964 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
20965 Use First/Next_Component_Or_Discriminant
20966 (Analyze_Record_Representation_Clause):
20967 Use First/Next_Component_Or_Discriminant
20968 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
20969 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
20970 definition if type is unconstrained.
20971 (Adjust_Record_For_Reverse_Bit_Order): New procedure
20972 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
20973 Is_Abstract_Subprogram and Is_Abstract_Type.
20974 (Adjust_Record_For_Reverse_Bit_Order): New procedure
20976 * repinfo.adb (List_Record_Info): Use First/
20977 Next_Component_Or_Discriminant.
20979 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
20982 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
20983 Include -gnatyA in default switches
20985 * opt.ads: (Warn_On_Non_Local_Exception): New flag
20986 (Warn_On_Reverse_Bit_Order): New flag
20987 (Extensions_Allowed): Update the documentation.
20988 (Warn_On_Questionable_Missing_Parens): Now on by default
20990 * usage.adb: Add documentation of -gnatw.x/X switches
20991 Document new -gnatyA style switch
20992 -gnatq warnings are on by default
20994 2007-04-06 Ed Falis <falis@adacore.com>
20996 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
20997 full word is no longer compared twice.
20999 2007-04-06 Ed Schonberg <schonberg@adacore.com>
21001 * sem_ch10.adb (Install_Limited_Context_Clauses.
21002 Expand_Limited_With_Clause): Use a new copy of selector name in the
21003 call to Make_With_Clause. This fixes the tree structure for ASIS
21004 purposes. Nothing is changed in the compiler behaviour.
21005 (Process_Body_Clauses): Handle properly use clauses whose prefix is
21006 a package renaming.
21007 (Install_Limited_With_Clauses): Do not install non-limited view when it
21008 is still incomplete.
21010 2007-04-06 Ed Schonberg <schonberg@adacore.com>
21011 Gary Dismukes <dismukes@adacore.com>
21013 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
21014 when capturing size information, instead of base type, which for a
21015 formal array type will be the unconstrained type.
21016 (Analyze_Formal_Object_Declaration): Add check for illegal default
21017 expressions for a formal in object of a limited type.
21018 (Instantiate_Object): Ditto.
21019 (Check_Formal_Package_Instance): Skip entities that are formal objects,
21020 because they were defaulted in the formal package and no check applies
21022 (Check_Formal_Package_Instance): Extend conformance check to other
21023 discrete types beyond Integer.
21024 (Process_Default): Copy directly the unmatched formal. A generic copy
21025 has already been performed in Analyze_Formal_Package.
21026 (Analyze_Associations): If a formal subprogram has no match, check for
21027 partial parametrization before looking for a default, to prevent
21029 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
21030 not set the instantiation environment before analyzing the actuals.
21031 Fixes regression on 8515-003 with implementation of AI-133.
21032 Set_Instance_Env checks whether the generic unit is a predefined
21033 unit, in which case the instance must be analyzed with the latest Ada
21034 mode. This setting must take place after analysis of the actuals,
21035 because the actuals must be analyzed and frozen in the Ada mode extant
21036 outside of the current instantiation.
21037 (Save_Env, Restore_Env): Preserve and restore the configuration
21038 parameters so that predefined units can be compiled in the proper Ada
21040 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
21041 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
21042 and Is_Abstract_Type.
21043 (Analyze_Formal_Package): For better error recovery, Add exception
21044 handler to catch Instantion_Error, which can be raised in
21045 Analyze_Associations
21047 2007-04-06 Ed Schonberg <schonberg@adacore.com>
21048 Bob Duff <duff@adacore.com>
21049 Gary Dismukes <dismukes@adacore.com>
21051 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
21052 prefix type is a discriminated subtype of the type of the formal.
21053 (Analyze_Allocator): Collect all coextensions regardless of the context.
21054 Whether they can be allocated statically is determined in exp_ch4.
21055 (Analyze_Selected_Component): If the prefix is a limited view and the
21056 non-limited view is available, use the non-limited one.
21057 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
21058 therefore illegal), suggest a qualified expression rather than a type
21059 conversion, because a type conversion would be illegal in this context.
21060 (Anayze_Allocator): Trace recursively all nested allocators so that all
21061 coextensions are on the corresponding list for the root. Do no mark
21062 coextensions if the root allocator is within a declaration for a stack-
21063 allocated object, because the access discriminants will be allocated on
21065 (Analyze_Call): Remove restriction on calls to limited functions for the
21066 cases of generic actuals for formal objects, defaults for formal objects
21067 and defaults for record components.
21068 (Analyze_Allocator): Before analysis, chain coextensions on the proper
21069 element list. Their expansion is delayed until the enclosing allocator
21070 is processed and its finalization list constructed.
21071 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
21072 for an operation with the given name among the primitive operations of
21073 the corresponding record type.
21074 (Analyze_Selected_Component): If the prefix is a task type that
21075 implements an interface, and there is no entry with the given name,
21076 check whether there is another primitive operation (e.g. a function)
21078 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
21079 properly the indexing of a function call written in prefix form, where
21080 the function returns an array type, and all parameters of the function
21081 except the first have defaults.
21082 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
21083 the original operands, rather than relocating them, for efficiency and
21084 to work properly when an operand is overloaded.
21085 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
21086 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
21087 (Analyze_Selected_Component): If the prefix is a private extension, only
21088 scan the visible components, not those of the full view.
21089 (Try_Primitive_Operation): If the operation is a procedure, collect all
21090 possible interpretations, as for a function, because in the presence of
21091 classwide parameters several primitive operations of the type can match
21092 the given arguments.
21094 2007-04-06 Ed Schonberg <schonberg@adacore.com>
21095 Robert Dewar <dewar@adacore.com>
21097 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
21098 tag-indeterminate call to an abstract function, when the left-hand side
21100 (Analyze_Loop_Statement): Improve detection of infinite loops
21102 2007-04-06 Ed Schonberg <schonberg@adacore.com>
21103 Thomas Quinot <quinot@adacore.com>
21105 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
21106 out of Analyze_Package_Declaration, because processing must be applied
21107 to package bodies as well, for deferred constants completed by pragmas.
21108 (Analyze_Package_Declaration): When the package declaration being
21109 analyzed does not require an explicit body, call Check_Completion.
21110 (May_Need_Implicit_Body): An implicit body is required when a package
21111 spec contains the declaration of a remote access-to-classwide type.
21112 (Analyze_Package_Body): If the package contains RACWs, append the
21113 pending subprogram bodies generated by exp_dist at the end of the body.
21114 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
21115 Is_Abstract_Subprogram and Is_Abstract_Type.
21116 (Preserve_Full_Attributes): The full entity list is not an attribute
21117 that must be preserved from full to partial view.
21119 * sem_dist.adb (Add_RAS_Dereference_TSS):
21120 Change primitive name to _Call so it cannot clash with any legal
21121 identifier, and be special-cased in Check_Completion.
21122 Mark the full view of the designated type for the RACW associated with
21123 a RAS as Comes_From_Source to get proper view switching when installing
21124 private declarations.
21125 Provite a placeholder nested package body along with the nested spec
21126 to have a place for Append_RACW_Bodies to generate the calling stubs
21127 and stream attributes.
21129 2007-04-06 Ed Schonberg <schonberg@adacore.com>
21130 Robert Dewar <dewar@adacore.com>
21132 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
21133 that is a limited view, check the non-limited view if available.
21134 (Undefined): Refine error message for missing with of Text_IO
21135 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
21136 to distinguish real missing with cases.
21137 Fix format of all missing with messages
21138 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
21139 renaming as body when renamed entity is abstract.
21141 2007-04-06 Ed Schonberg <schonberg@adacore.com>
21142 Javier Miranda <miranda@adacore.com>
21144 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
21145 predicate recursive, to handle complex expressions on literals whose
21146 spurious ambiguity comes from the abstract interpretation of some
21148 (Interface_Present_In_Ancestor): Add support to concurrent record
21150 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
21151 Is_Abstract_Subprogram and Is_Abstract_Type.
21153 2007-04-06 Ed Schonberg <schonberg@adacore.com>
21154 Javier Miranda <miranda@adacore.com>
21156 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
21157 dereference of a local object R created as a reference to another
21158 object O, use the access level of O.
21159 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
21160 rather than local Same_Formal_Type, to check whether protected operation
21161 overrides an inherited one.
21162 (Same_Formal_Type): New predicate, used when matching signatures of
21163 overriding synchronized operations, to handle the case when a formal
21164 has a type that is a generic actual.
21165 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
21166 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
21167 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
21168 syntactic ambiguities involving indexing of function calls that return
21170 (Abstract_Interface_List): New subprogram that returns the list of
21171 abstract interfaces associated with a concurrent type or a
21172 concurrent record type.
21173 (Interface_Present_In_Parent): New subprogram used to check if a
21174 given type or some of its parents implement a given interface.
21175 (Collect_Abstract_Interfaces): Add support for concurrent types
21176 with interface types.
21177 (Has_Abstract_Interfaces): Add support for concurrent types with
21179 (Is_Parent): New subprogram that determines whether E1 is a parent
21180 of E2. For a concurrent type its parent is the first element of its
21181 list of interface types; for other types this function provides the
21182 same result than Is_Ancestor.
21183 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
21184 (Collect_Synchronized_Interfaces): Removed because the subprogram
21185 Collect_Abstract_Interfaces provides this functionality.
21186 (Collect_Abstract_Interfaces): Minor update to give support to
21187 concurrent types and thus avoid undesired code duplication.
21188 (Get_Subprogram_Entity): Handle entry calls.
21189 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
21191 (Enter_Name): Do not give -gnatwh hiding warning for record component
21192 entities, they never result in hiding.
21194 2007-04-06 Ed Schonberg <schonberg@adacore.com>
21195 Robert Dewar <dewar@adacore.com>
21197 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
21198 to chain nested components that are allocators for access discriminants
21199 of the enclosing object.
21200 Add N_Push and N_Pop nodes
21201 New field Exception_Label added
21202 (Local_Raise_Statements): New field in N_Exception_Handler_Node
21203 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
21204 (Is_Coextension): New flag for allocators, to mark allocators that
21205 correspond to access discriminants of dynamically allocated objects.
21206 (N_Block_Statement): Document the fact that the corresponding entity
21207 can be an E_Return_Statement.
21208 (Is_Coextension): New flag for allocators.
21209 Remove all code for DSP option
21211 * sprint.ads, sprint.adb: Display basic information for class_wide
21212 subtypes. Add handling of N_Push and N_Pop nodes
21214 2007-04-06 Arnaud Charlet <charlet@adacore.com>
21216 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
21217 before propagating exception.
21219 2007-04-06 Olivier Hainque <hainque@adacore.com>
21221 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
21222 an address always within the call instruction from a return address.
21224 2007-04-06 Olivier Hainque <hainque@adacore.com>
21225 Eric Botcazou <botcazou@adacore.com>
21227 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
21228 expression with a COMPOUND_EXPR including the call instead of emitting
21229 the call directly here.
21230 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
21231 high bound is constant and the slice is empty. Tidy.
21232 (tree_transform, case N_Op_Not): Handle properly the case where the
21233 operation applies to a private type whose full view is a modular type.
21234 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
21235 Address_Clause, use the associated Expression as the GNAT tree
21236 representing the choice value to ensure the corresponding GCC tree is
21237 of the proper kind.
21238 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
21239 instead of just the operands, as the base GCC stabilize_reference does.
21240 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
21241 requested; otherwise fail.
21242 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
21244 2007-04-06 Thomas Quinot <quinot@adacore.com>
21246 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
21247 implementation of UI_Div.
21248 (UI_Div): Reimplement as a call to UI_Div_Rem.
21249 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
21250 remainder, avoiding the cost of a multiplication and a subtraction.
21251 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
21252 provides both quotient and remainder in a single computation.
21253 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
21254 functions for uint.
21255 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
21256 is undefined if the given n is not inversible.
21258 2007-04-06 Olivier Hainque <hainque@adacore.com>
21260 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
21261 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
21264 2007-04-06 Eric Botcazou <botcazou@adacore.com>
21265 Olivier Hainque <hainque@adacore.com>
21267 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
21268 when updating the contents of the old pointer to an unconstrained array.
21269 (end_subprog_body): Set error_gnat_node to Empty.
21270 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
21271 (unchecked_convert): For subtype to base type conversions, require that
21272 the source be a subtype if it is an integer type.
21273 (builtin_decls): New global, vector of available builtin functions.
21274 (gnat_pushdecl): Add global builtin function declaration nodes to the
21275 builtin_decls list.
21276 (gnat_install_builtins): Adjust comments.
21277 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
21278 calling gnat_pushdecl, so that it knows when it handed a builtin
21279 function declaration node.
21280 (builtin_decl_for): Search the builtin_decls list.
21282 2007-04-06 Eric Botcazou <botcazou@adacore.com>
21284 * s-stchop-vxworks.adb:
21285 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
21287 2007-04-06 Robert Dewar <dewar@adacore.com>
21288 Arnaud Charlet <charlet@adacore.com>
21290 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
21292 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
21294 Add mention of -Sev (set initialize_scalars option from environment
21295 variable at run time) in gnatbind usage message.
21297 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
21299 * fname-uf.ads: Minor comment fix
21301 * osint.ads: Change pragma Elaborate to Elaborate_All
21303 * par-load.adb: Add documentation.
21305 * sem_cat.ads, sem_cat.adb: Minor code reorganization
21307 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
21309 * s-secsta.ads: Extra comments
21311 * s-soflin.ads: Minor comment fixes
21313 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
21315 * s-wchcon.ads: Minor comment addition
21317 * treepr.adb: Minor change in message
21318 (Print_Name,Print_Node): Make these debug printouts more robust: print
21319 "no such..." instead of crashing on bad input.
21321 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
21323 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
21324 instead of gnat_signed_or_unsigned_type.
21325 * utils.c (gnat_signed_or_unsigned_type): Remove.
21326 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
21327 * gigi.h (gnat_signed_or_unsigned_type): Remove
21329 2007-03-09 Roger Sayle <roger@eyesopen.com>
21331 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
21332 fold with the result of buildN.
21333 * decl.c (gnat_to_gnu_entity): Likewise.
21334 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
21335 * utils.c (finish_record_type, merge_sizes, max_size, convert):
21337 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
21338 nonbinary_modular_operation, build_binary_op, build_unary_op,
21339 build_cond_expr): Likewise.
21341 * utils.c (convert): Use fold_build1 when casting values to void.
21342 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
21343 fold_convert instead of convert when appropriate.
21345 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
21347 * Make-lang.in: Add install-pdf target as copied from
21348 automake v1.10 rules.
21350 2007-02-28 Andreas Schwab <schwab@suse.de>
21352 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
21353 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
21354 (doc/gnat-style.info): Likewise.
21356 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
21358 * gnat-style.texi: Standardize title page.
21359 * gnat_rm.texi: Likewise.
21360 * gnat_ugn.texi: Likewise.
21362 2007-02-25 Mark Mitchell <mark@codesourcery.com>
21364 * decl.c (annotate_value): Adjust for refactoring of tree_map
21367 2007-02-24 Mark Mitchell <mark@codesourcery.com>
21369 * decl.c (annotate_value): Adjust for refactoring of tree_map
21372 2007-02-21 Ed Schonberg <schonberg@adacore.com>
21375 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
21376 untagged derived type, add hidden components to keep discriminant
21377 layout consistent, when a given discriminant of the derived type
21378 constraints several discriminants of the parent type.
21380 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
21381 Sandra Loosemore <sandra@codesourcery.com>
21383 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
21384 build the call expression.
21385 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
21386 * utils.c (max_size) <tcc_exceptional>: Delete.
21387 <tcc_vl_exp>: New case.
21388 <tcc_expression>: Delete CALL_EXPR subcase.
21389 (build_global_cdtor): Use build_call_nary instead of build3.
21390 * utils2.c (build_call_1_expr): Likewise.
21391 (build_call_2_expr): Likewise.
21392 (build_call_0_expr): Likewise.
21393 (build_call_alloc_dealloc): Likewise.
21395 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
21397 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
21398 get_action_description_for): Replace _Unwind_Word with _uleb128_t
21399 and _Unwind_SWord with _sleb128_t.
21401 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
21403 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
21404 * decl.c: Include gt-ada-decl.h.
21405 (annotate_value_cache): New.
21406 (annotate_value): Use it instead of TREE_COMPLEXITY.
21408 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
21410 * misc.c, utils2.c: Fix comment typos.
21412 2007-01-24 Roger Sayle <roger@eyesopen.com>
21414 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
21415 TREE_CONSTANT_OVERFLOW.
21416 (allocatable_size_p, annotate_value): Likewise.
21417 * trans.c (gnat_to_gnu): Likewise.
21418 * utils.c (unchecked_convert): Likewise.
21419 * utils2.c (build_simple_component_ref): Likewise.
21421 2007-01-23 Richard Guenther <rguenther@suse.de>
21424 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
21425 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
21426 (gnatboot3): Likewise.
21427 (GNATBIND): Do not define.
21428 * Makefile.in (GNATBIND): Do not define.
21430 2007-01-08 Richard Guenther <rguenther@suse.de>
21432 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
21433 * trans.c (gnat_to_gnu): Likewise.
21435 2006-12-07 Geoffrey Keating <geoffk@apple.com>
21437 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
21438 * adaint.c: Likewise.
21440 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
21442 Merge from gimple-tuples-branch:
21443 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
21445 * ada-tree.h (lang_tree_node): Handle gimple tuples.
21446 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
21447 GIMPLE_MODIFY_STMT.
21449 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
21451 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
21452 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
21455 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
21458 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
21459 if the initializer takes into account the padding.
21461 2006-11-11 Richard Guenther <rguenther@suse.de>
21463 * trans.c (maybe_stabilize_reference): Remove handling of
21464 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
21466 2006-11-05 Arnaud Charlet <charlet@adacore.com>
21469 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
21470 (To_Target_Priority): New function.
21472 2006-10-31 Robert Dewar <dewar@adacore.com>
21474 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
21475 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
21476 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
21477 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
21478 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
21479 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
21480 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
21481 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
21482 a-szbzha.adb: Minor reformatting. Fix header.
21484 * a-numaux-x86.adb: Add parentheses for use of unary minus
21485 * a-ngcefu.adb: Supply missing parentheses for unary minus
21486 * a-ngcoty.adb: Add parens for use of unary minus
21487 * a-ngelfu.adb: Add missing parens for unary minus
21488 * a-tifiio.adb: Add parentheses for uses of unary minus
21490 2006-10-31 Robert Dewar <dewar@adacore.com>
21491 Bob Duff <duff@adacore.com>
21492 Ed Schonberg <schonberg@adacore.com>
21494 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
21495 with multiplying operator.
21496 (Expected_Type_Is_Any_Real): New function to determine from the Parent
21497 pointer whether the context expects "any real type".
21498 (Resolve_Arithmetic_Op): Do not give an error on calls to the
21499 universal_fixed "*" and "/" operators when they are used in a context
21500 that expects any real type. Also set the type of the node to
21501 Universal_Real in this case, because downstream processing requires it
21502 (mainly static expression evaluation).
21503 Reword some continuation messages
21504 Add some \\ sequences to continuation messages
21505 (Resolve_Call): Refine infinite recursion case. The test has been
21506 sharpened to eliminate some false positives.
21507 Check for Current_Task usage now includes entry barrier, and is now a
21508 warning, not an error.
21509 (Resolve): If the call is ambiguous, indicate whether an interpretation
21510 is an inherited operation.
21511 (Check_Aggr): When resolving aggregates, skip associations with a box,
21512 which are priori correct, and will be replaced by an actual default
21513 expression in the course of expansion.
21514 (Resolve_Type_Conversion): Add missing support for conversion from
21515 a class-wide interface to a tagged type. Minor code cleanup.
21516 (Valid_Tagged_Converion): Add support for abstact interface type
21518 (Resolve_Selected_Component): Call Generate_Reference here rather than
21519 during analysis, and use May_Be_Lvalue to distinguish read/write.
21520 (Valid_Array_Conversion): New procedure, abstracted from
21521 Valid_Conversion, to incorporate accessibility checks for arrays of
21522 anonymous access types.
21523 (Valid_Conversion): For a conversion to a numeric type occurring in an
21524 instance or inlined body, no need to check that the operand type is
21525 numeric, since this has been checked during analysis of the template.
21526 Remove legacy test for scope name Unchecked_Conversion.
21528 * sem_res.ads: Minor reformatting
21530 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
21531 (PE_Current_Task_In_Entry_Body): New exception code
21532 (SE_Restriction_Violation): Removed, not used
21534 * a-except.ads: Update comments.
21536 * types.h, types.ads: Add definition for Validity_Check
21537 (PE_Current_Task_In_Entry_Body): New exception code
21538 (SE_Restriction_Violation): Removed, not used
21540 2006-10-31 Thomas Quinot <quinot@adacore.com>
21542 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
21545 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21546 Jose Ruiz <ruiz@adacore.com>
21548 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
21549 part of Ada.Calendar: all subprogram raise Unimplemented.
21550 (Split_W_Offset): Temp function body, raising Unimplemented
21552 * a-calend.ads, a-calend-vms.ads:
21553 Add imported variable Invalid_TZ_Offset used to designate targets unable
21554 to support time zones.
21555 (Unimplemented): Temporary function raised by the body of new
21557 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
21558 unit provides handling of leap seconds and is used by the new Ada 2005
21559 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
21560 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
21561 version returns an extra value which is the offset to UTC.
21563 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
21564 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
21565 (Split_W_Offset): New function body.
21566 (Time_Of): When a date is close to UNIX epoch, compute the time for
21567 that date plus one day (that amount is later substracted after
21568 executing mktime) so there are no problems with time zone adjustments.
21570 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
21572 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
21573 a-catizo.ads, a-catizo.adb: New files.
21575 * impunit.adb: Add new Ada 2005 entries
21577 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
21578 Rename all occurences of "__gnat_localtime_r" to
21579 "__gnat_localtime_tzoff".
21580 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
21581 zone data and calculate the GMT offset.
21582 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
21583 Use the field "tm_gmtoff" to extract the GMT offset.
21584 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
21585 the external variable "timezone" to calculate the GMT offset.
21587 2006-10-31 Arnaud Charlet <charlet@adacore.com>
21588 Jose Ruiz <ruiz@adacore.com>
21590 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
21591 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
21592 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
21593 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
21594 System.Any_Priority to a POSIX priority on the target.
21596 * system-linux-ia64.ads:
21597 Extend range of Priority types on Linux to use the whole range made
21598 available by the system.
21600 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
21601 function maps from System.Any_Priority to a POSIX priority on the
21603 (PTHREAD_PRIO_PROTECT): Set real value.
21604 (PTHREAD_PRIO_INHERIT): Now a function.
21605 (SIGCPUFAIL): New signal.
21606 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
21607 are documented as reserved by the OS.
21609 * system-aix.ads: Use the full range of priorities provided by the
21612 * s-taprop-posix.adb: Call new function To_Target_Priority.
21613 (Set_Priority): Take into account Task_Dispatching_Policy and
21614 Priority_Specific_Dispatching pragmas when determining if Round Robin
21615 must be used for scheduling the task.
21617 * system-linux-x86_64.ads, system-linux-x86.ads,
21618 system-linux-ppc.ads: Extend range of Priority types on Linux to use
21619 the whole range made available by the system.
21621 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
21622 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
21623 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
21624 when deallocating the TCB in order to avoid potential references to
21626 (Set_Priority): Take into account Task_Dispatching_Policy and
21627 Priority_Specific_Dispatching pragmas when determining if Round Robin
21628 or FIFO within priorities must be used for scheduling the task.
21630 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
21631 the Thread field (to be used internally by the run-time system) and the
21632 kernel-level task id in the LWP field (to be used by the debugger).
21633 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
21634 instance, and propagate the current task options to the spawned task.
21635 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
21636 (Initialize): Set Round Robin dispatching when the corresponding pragma
21639 2006-10-31 Robert Dewar <dewar@adacore.com>
21641 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
21642 system-linux-hppa.ads, system-hpux-ia64.ads,
21643 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
21644 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
21645 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
21646 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
21647 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
21648 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
21649 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
21650 Default_Bit_Order) to kill constant condition warnings for references
21653 2006-10-31 Vincent Celier <celier@adacore.com>
21654 Eric Botcazou <ebotcazou@adacore.com>
21656 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
21657 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
21658 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
21659 Ext_To, when building the library file name
21661 * mlib-tgt-vxworks.adb: ditto.
21662 (Get_Target_Suffix): Add support for x86 targets.
21664 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
21666 * mlib-tgt-darwin.adb:
21667 Use Append_To, instead of Ext_To, when building the library file name
21668 (Flat_Namespace): New global variable.
21669 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
21670 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
21671 (Link_Shared_Libgcc): Delete.
21672 (Build_Dynamic_Library): Adjust for above changes.
21674 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
21676 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
21678 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
21679 (Initialize): Add type conversions required by above change.
21681 2006-10-31 Jose Ruiz <ruiz@adacore.com>
21683 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
21684 (getpid): New body for this function that uses the underlying taskIdSelf
21685 function for VxWorks 5 and VxWorks 6 in kernel mode.
21686 (unsigned_int): New type, modular to allow logical bit operations.
21687 (taskOptionsGet): New imported function.
21689 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
21690 field to be compliant with the type used by the corresponding operating
21693 2006-10-31 Pascal Obry <obry@adacore.com>
21694 Eric Botcazou <ebotcazou@adacore.com>
21695 Vincent Celier <celier@adacore.com>
21697 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
21698 ASCII version of the registry API. This is needed as the GNAT runtime
21699 is now UNICODE by default.
21701 (get_gcc_version): Do not hardcode the return value.
21702 (__gnat_file_time_name): On Windows properly set the default returned
21703 value to -1 which corresponds to Invalid_Time.
21704 (__gnat_fopen): New routine. A simple wrapper on all plateforms
21705 except on Windows where it does conversion for unicode support.
21706 (__gnat_freopen): Idem.
21707 (__gnat_locate_exec_on_path): If environment variable PATH does not
21708 exist, return a NULL pointer
21710 * adaint.h: (__gnat_fopen): Declare.
21711 (__gnat_freopen): Likewise.
21713 * mingw32.h (_tfreopen): Define this macro here for older MingW
21715 Activate the unicode support on platforms using a MingW runtime
21716 version 3.9 or newer.
21718 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
21719 This is needed for proper unicode support on Windows.
21722 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
21723 Nicolas Setton <setton@adacore.com>
21724 Olivier Hainque <hainque@adacore.com>
21725 Gary Dismukes <dismukes@adacore.com>
21727 * gigi.h: (tree_code_for_record_type): Declare.
21728 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
21729 (get_global_renaming_pointers): Rename to
21730 invalidate_global_renaming_pointers.
21731 (static_ctors): Delete.
21732 (static_dtors): Likewise.
21733 (gnat_write_global_declarations): Declare.
21734 (create_var_decl): Adjust descriptive comment to indicate that the
21735 subprogram may return a CONST_DECL node.
21736 (create_true_var_decl): Declare new function, similar to
21737 create_var_decl but forcing the creation of a VAR_DECL node.
21738 (get_global_renaming_pointers): Declare.
21739 (add_global_renaming_pointer): Likewise.
21741 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
21743 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
21744 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
21746 (gnat_to_gnu_entity): Remove From_With_Type from computation for
21748 <E_Access_Type>: Use the Non_Limited_View as the full view of the
21749 designated type if the pointer comes from a limited_with clause. Make
21750 incomplete designated type if it is in the main unit and has a freeze
21752 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
21753 Underlying_Full_View similarly. Return earlier if the full view already
21754 has an associated tree.
21755 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
21756 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
21757 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
21758 reference type built for objects with an address clause.
21759 Use create_true_var_decl with const_flag set for
21760 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
21762 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
21763 for Character and Wide_Character types. This info is read by the
21764 dwarf-2 writer, and is needed to be able to use the command "ptype
21765 character" in the debugger.
21766 (gnat_to_gnu_entity): When generating a type representing
21767 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
21768 so that debug writers can distinguish it from ordinary integers.
21769 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
21770 addition to TREE_READONLY to assert the constantness of variables for
21771 elaboration purposes.
21772 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
21773 parameters to call new Einfo function First_Formal_With_Extras.
21774 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
21775 protected type with its corresponding discriminant, to obtain a usable
21777 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
21778 for a multiple elaboration of the "equivalent" type.
21779 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
21780 into record_global_renaming_pointer.
21781 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
21782 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
21783 <E_Array_Subtype>: Likewise.
21784 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
21785 incomplete subtypes and incomplete subtypes of incomplete types visible
21786 through a limited with clause.
21787 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
21788 the base index type for the maximum size of the array only if they are
21790 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
21791 expression into a SAVE_EXPR if stabilization failed.
21793 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
21794 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
21795 by lower level compilation passes.
21796 (gnat_genericize): New function, lowering a function body to GENERIC.
21797 Turn the type of RESULT_DECL into a real reference type if the decl
21798 has been marked DECL_BY_REFERENCE, and adjust references to the latter
21800 (gnat_genericize_r): New function. Tree walking callback for
21802 (convert_from_reference, is_byref_result): New functions. Helpers for
21804 (create_type_decl): Call gnat_pushdecl before calling
21805 rest_of_decl_compilation, to make sure that field TYPE_NAME of
21806 type_decl is properly set before calling the debug information writers.
21807 (write_record_type_debug_info): The heuristics which compute the
21808 alignment of a field in a variant record might not be accurate. Add a
21809 safety test to make sure no alignment is set to a smaller value than
21810 the alignment of the field type.
21811 (make_dummy_type): Use the Non_Limited_View as the underlying type if
21812 the type comes from a limited_with clause. Do not loop on the full view.
21813 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
21814 (dummy_node_table): New global variable, moved from decl.c.
21815 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
21816 (save_gnu_tree): Use above macros.
21817 (get_gnu_tree): Likewise.
21818 (present_gnu_tree): Likewise.
21819 (init_dummy_type): New function, moved from decl.c. Use above macros.
21820 (make_dummy_type): Likewise.
21821 (tree_code_for_record_type): New function extracted from make_dummy_type
21822 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
21823 (static_ctors): Change it to a vector, make static.
21824 (static_dtors): Likewise.
21825 (end_subprog_body): Adjust for above change.
21826 (build_global_cdtor): Moved from trans.c.
21827 (gnat_write_global_declarations): Emit global constructor and
21828 destructor, and call cgraph_optimize before emitting debug info for
21829 global declarations.
21830 (global_decls): New global variable.
21831 (gnat_pushdecl): Store the global declarations in global_decls, for
21833 (gnat_write_global_declarations): Emit debug information for global
21835 (create_var_decl_1): Former create_var_decl, with an extra argument to
21836 state whether the creation of a CONST_DECL is allowed.
21837 (create_var_decl): Behavior unchanged. Now a wrapper around
21838 create_var_decl_1 allowing CONST_DECL creation.
21839 (create_true_var_decl): New function, similar to create_var_decl but
21840 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
21841 (create_field_decl): Do not always mark the field as addressable
21842 if its type is an aggregate.
21843 (global_renaming_pointers): New static variable.
21844 (add_global_renaming_pointer): New function.
21845 (get_global_renaming_pointers): Likewise.
21847 * misc.c (gnat_dwarf_name): New function.
21848 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
21849 (gnat_post_options): Add comment about structural alias analysis.
21850 (gnat_parse_file): Do not call cgraph_optimize here.
21851 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
21853 * trans.c (process_freeze_entity): Don't abort if we already have a
21854 non dummy GCC tree for a Concurrent_Record_Type, as it might
21855 legitimately have been elaborated while processing the associated
21856 Concurrent_Type prior to this explicit freeze node.
21857 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
21858 exception handler volatile if it is of variable size.
21859 (process_type): Remove bypass for types coming from a limited_with
21861 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
21862 actual, convert the corresponding gnu_actual to the real destination
21863 type when necessary.
21864 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
21865 originally TREE_READONLY but whose elaboration cannot be performed
21867 Part of fix for F504-021.
21868 (tree_transform, subprogram cases): Change loops on formal parameters to
21869 call new Einfo function First_Formal_With_Extras.
21870 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
21871 stemming from type conversion for the lhs.
21872 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
21873 number of bits per unit for components of records.
21874 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
21875 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
21876 with At_End_Proc after the SJLJ EH cleanup.
21877 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
21879 (elaborate_all_entities): Do not retest type_annotate_only.
21880 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
21881 result type of an abstract subprogram, which may be an itype associated
21882 with an anonymous access result (related to AI-318-02).
21883 (build_global_cdtor): Move to utils.c.
21884 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
21885 this choice is not a null tree nor an integer constant.
21886 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
21887 on the body of elaboration routines instead of mark_unvisited.
21888 (add_stmt): Do not mark the tree.
21889 (add_decl_expr): Tweak comment.
21890 (mark_unvisited): Delete.
21891 (unshare_save_expr): New static function.
21892 (call_to_gnu): Issue an error when making a temporary around a
21893 procedure call because of non-addressable actual parameter if the
21894 type of the formal is by_reference.
21895 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
21896 after building the elaboration routine.
21898 2006-10-31 Bob Duff <duff@adacore.com>
21900 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
21901 as finalization-started, so we can raise Program_Error on 'new'.
21903 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
21904 collection has already started.
21906 * s-finimp.ads (Collection_Finalization_Started): Added new special
21907 flag value for indicating that a collection's finalization has started.
21909 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
21910 create a task whose master has already waited for dependent tasks.
21912 2006-10-31 Robert Dewar <dewar@adacore.com>
21914 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
21916 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
21917 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
21918 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
21919 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
21920 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
21921 a-except-2005.ads: Add pragma Preelaborable_Warning
21923 2006-10-31 Robert Dewar <dewar@adacore.com>
21924 Jose Ruiz <ruiz@adacore.com>
21926 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
21928 * ali.adb (Get_Name): Properly handle scanning of wide character names
21929 encoded with brackets notation.
21930 (Known_ALI_Lines): Add S lines to this list.
21931 (Scan_ALI): Acquire S (priority specific dispatching) lines.
21932 New flag Elaborate_All_Desirable in unit table
21934 * ali.ads (Priority_Specific_Dispatching): Add this range of
21935 identifiers to be used for Priority_Specific_Dispatching table entries.
21936 (ALIs_Record): Add First_Specific_Dispatching and
21937 Last_Specific_Dispatching that point to the first and last entries
21938 respectively in the priority specific dispatching table for this unit.
21939 (Specific_Dispatching): Add this table for storing each S (priority
21940 specific dispatching) line encountered in the input ALI file.
21941 New flag Elaborate_All_Desirable in unit table
21943 * bcheck.adb: (Check_Configuration_Consistency): Add call to
21944 Check_Consistent_Dispatching_Policy.
21945 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
21946 verifying that the use of Priority_Specific_Dispatching,
21947 Task_Dispatching_Policy, and Locking_Policy is consistent across the
21950 * bindgen.adb: (Public_Version_Warning): function removed.
21951 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
21952 required information from ALI files in order to initialize the table
21953 containing the specific dispatching policy.
21954 (Gen_Adainit_Ada): Generate the variables required for priority specific
21955 dispatching entries (__gl_priority_specific_dispatching and
21956 __gl_num_specific_dispatching).
21957 (Gen_Adainit_C): Generate the variables required for priority specific
21958 dispatching entries (__gl_priority_specific_dispatching and
21959 __gl_num_specific_dispatching).
21960 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
21962 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
21963 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
21965 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
21966 a call to gnat_set_globals.
21967 Generate a string containing settings from
21968 Priority_Specific_Dispatching pragma entries.
21969 (Gen_Object_Files_Options): Do not include the runtime libraries when
21970 pragma No_Run_Time is specified.
21972 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
21973 consistency with s-intman-posix.adb.
21974 (__gnat_error_handler, case FreeBSD): Account for the fact that the
21975 handler is installed with SA_SIGINFO.
21976 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
21977 FreeBSD ZCX support, copied from Linux version.
21978 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
21979 sigfillset, and sigemptyset so the routines defined by MaRTE.
21980 (__gl_priority_specific_dispatching): Add this variable that stores the
21981 string containing priority specific dispatching policies in the
21983 (__gl_num_specific_dispatching): Add this variable that indicates the
21984 highest priority for which a priority specific dispatching pragma
21986 (__gnat_get_specific_dispatching): Add this routine that returns the
21987 priority specific dispatching policy, as set by a
21988 Priority_Specific_Dispatching pragma appearing anywhere in the current
21989 partition. The input argument is the priority number, and the result
21990 is the upper case first character of the policy name.
21991 (__gnat_set_globals): Now a dummy function.
21992 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
21993 mechargs instead of sigargs, as the latter can be retrieved from the
21994 former and sigargs is not what we want on ia64.
21995 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
21997 (__gnat_adjust_context_for_raise, ia64-vms): New function.
21998 (tasking_error): Remove unused symbol.
21999 (_abort_signal): Move this symbol to the IRIX specific part since this
22000 is the only target that uses this definition.
22001 (Check_Abort_Status): Move this symbol to the IRIX specific part since
22002 this is the only target that uses this definition.
22003 (Lock_Task): Remove unused symbol.
22004 (Unlock_Task): Remove unused symbol.
22006 * lib-writ.adb (Write_ALI): Output new S lines for
22007 Priority_Specific_Dispatching pragmas.
22008 Implement new flag BD for elaborate body desirable
22010 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
22011 (Specific_Dispatching): Add this table for storing the entries
22012 corresponding to Priority_Specific_Dispatching pragmas.
22013 Document new BD flag for elaborate body desirable
22015 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
22018 2006-10-31 Javier Miranda <miranda@adacore.com>
22020 * a-tags.ads, a-tags.adb:
22021 (Predefined_DT): New function that improves readability of the code.
22022 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
22023 Inherit_DT): Use the new function Predefined_DT to improve code
22025 (Register_Interface_Tag): Update assertion.
22026 (Set_Interface_Table): Update assertion.
22027 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
22028 determining progenitor interfaces in Tags.
22029 (Inherit_CPP_DT): New subprogram.
22031 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
22032 analysis of the thunk code.
22033 (Expand_Interface_Conversion): Handle run-time conversion of
22034 access to class wide types.
22035 (Expand_Dispatching_Call): When generating the profile for the
22036 subprogram itype for a dispatching operation, properly terminate the
22037 formal parameters chaind list (set the Next_Entity of the last formal
22039 (Collect_All_Interfaces): Removed. This routine has been moved to
22040 sem_util and renamed as Collect_All_Abstract_Interfaces.
22041 (Set_All_DT_Position): Hidden entities associated with abstract
22042 interface primitives are not taken into account in the check for
22043 3.9.3(10); this check is done with the aliased entity.
22044 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
22045 interfacing with CPP by default.
22046 (Expand_Interface_Conversion): Add missing support for static conversion
22047 from an interface to a tagged type.
22048 (Collect_All_Interfaces): Add new out formal containing the list of
22049 abstract interface types to cleanup the subprogram Make_DT.
22050 (Make_DT): Update the code to generate the table of interfaces in case
22051 of abstract interface types.
22052 (Is_Predefined_Dispatching_Alias): New function that returns true if
22053 a primitive is not a predefined dispatching primitive but it is an
22054 alias of a predefined dispatching primitive.
22055 (Make_DT): If the ancestor of the type is a CPP_Class and we are
22056 compiling under full ABI compatibility mode we avoid the generation of
22057 calls to run-time services that fill the dispatch tables because under
22058 this mode we currently inherit the dispatch tables in the IP subprogram.
22059 (Write_DT): Emit an "is null" indication for a null procedure primitive.
22060 (Expand_Interface_Conversion): Use an address as the type of the formal
22061 of the internally built function that handles the case in which the
22062 target type is an access type.
22064 2006-10-31 Robert Dewar <dewar@adacore.com>
22066 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
22068 2006-10-31 Robert Dewar <dewar@adacore.com>
22070 * bindusg.ads, bindusg.adb:
22071 Change to package and rename procedure as Display, which
22072 now ensures that it only outputs usage information once.
22074 2006-10-31 Jose Ruiz <ruiz@adacore.com>
22076 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
22079 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
22082 2006-10-31 Robert Dewar <dewar@adacore.com>
22083 Ed Schonberg <schonberg@adacore.com>
22085 * treepr.adb: Use new subtype N_Membership_Test
22087 * checks.ads, checks.adb: Add definition for Validity_Check
22088 (Range_Or_Validity_Checks_Suppressed): New function
22089 (Ensure_Valid): Test Validity_Check suppressed
22090 (Insert_Valid_Check): Test Validity_Check suppressed
22091 (Insert_Valid_Check): Preserve Do_Range_Check flag
22092 (Validity_Check_Range): New procedure
22093 (Expr_Known_Valid): Result of membership test is always valid
22094 (Selected_Range_Checks): Range checks cannot be applied to discriminants
22095 by themselves. Disabling those checks must also be done for task types,
22096 where discriminants may be used for the bounds of entry families.
22097 (Apply_Address_Clause_Check): Remove side-effects if address expression
22098 is non-static and is not the name of a declared constant.
22099 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
22100 Code cleanup and new error messages.
22101 (Enable_Range_Check): Test for some cases of suppressed checks
22102 (Generate_Index_Checks): Suppress index checks if index checks are
22103 suppressed for array object or array type.
22104 (Apply_Selected_Length_Checks): Give warning for compile-time detected
22105 length check failure, even if checks are off.
22106 (Ensure_Valid): Do not generate a check on an indexed component whose
22107 prefix is a packed boolean array.
22108 * checks.adb: (Alignment_Checks_Suppressed): New function
22109 (Apply_Address_Clause_Check): New procedure, this is a completely
22110 rewritten replacement for Apply_Alignment_Check
22111 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
22112 we request a discriminal value only in case of discriminants.
22113 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
22114 assignments where the target subtype is unconstrained and the target
22115 object is a parameter or dereference (other aliased cases are known
22116 to be unconstrained).
22118 2006-10-31 Robert Dewar <dewar@adacore.com>
22120 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
22121 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
22122 vms_conv.adb: Fix bad table increment values (much too small)
22124 * table.adb (Realloc): Make sure we get at least some new elements
22125 Defends against silly small values for table increment
22127 2006-10-31 Robert Dewar <dewar@adacore.com>
22128 Ed Schonberg <schonberg@adacore.com>
22129 Bob Duff <duff@adacore.com>
22131 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
22132 entities. Move other fields around to make this possible
22133 (Is_Derived_Type): Add missing call to Is_Type.
22134 (Extra_Formals): New function for subprograms, entries, subprogram
22136 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
22137 (First_Formal_With_Extras): New function for subprogs, entries, subp
22139 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
22140 Add node information for E_Return_Statement.
22141 (Elaborate_Body_Desirable): New flag
22142 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
22143 to be Is_Inherently_Limited_Type, because return-by-reference has
22144 no meaning in Ada 2005.
22145 (E_Return_Statement): New entity kind.
22146 (Return_Applies_To): Field of E_Return_Statement.
22147 (Is_Return_Object): New flag in object entities.
22148 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
22149 (Must_Have_Preelab_Init): New flag
22150 (Known_To_Have_Preelab_Init): New flag
22151 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
22152 (Is_Visible_Formal): New flag on entities in formal packages.
22153 (Low_Bound_Known): New flag
22154 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
22156 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
22157 output when Id is an incomplete subtype.
22159 2006-10-31 Robert Dewar <dewar@adacore.com>
22161 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
22162 Avoid abbreviation Creat
22163 (Finalize): List all sources in extended mail source if -gnatl
22165 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
22166 (Finalize): Implement new -gnatl=xxx switch to output listing to file
22167 (Set_Specific_Warning_On): New procedure
22168 (Set_Specific_Warning_Off): New procedure
22169 Add implementation of new insertion \\
22170 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
22171 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
22173 (Error_Msg_Internal): Make sure that we set Last_Killed to
22174 True when a message from another package is suppressed.
22175 Implement insertion character ~ (insert string)
22176 (First_Node): Minor adjustments to get better placement.
22179 Implement new -gnatl=xxx switch to output listing to file
22182 Implement new -gnatl=xxx switch to output listing to file
22184 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
22185 (Commands_To_Stdout): New flag
22186 Implement new -gnatl=xxx switch to output listing to file
22187 New switch Dump_Source_Text
22188 (Warn_On_Deleted_Code): New warning flag for -gnatwt
22189 Define Error_Msg_Line_Length
22190 (Warn_On_Assumed_Low_Bound): New switch
22192 * osint.ads, osint.adb
22193 (Normalize_Directory_Name): Fix bug.
22194 Implement new -gnatl=xxx switch to output listing to file
22195 (Concat): Removed, replaced by real concatenation
22196 Make use of concatenation now allowed in compiler
22197 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
22198 we find the 'lib' or 'bin' directory even when the tool has been
22199 invoked with a relative path.
22200 (Executable_Name): New function taking string parameters.
22202 * osint-c.ads, osint-c.adb:
22203 Implement new -gnatl=xxx switch to output listing to file
22205 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
22208 Implement new -gnatl=xxx switch to output listing to file
22209 Recognize new -gnatL switch
22210 (no longer keep in old warning about old style usage)
22211 Use concatenation to simplify code
22212 Recognize -gnatjnn switch
22213 (Scan_Front_End_Switches): Clean up handling of -gnatW
22214 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
22216 2006-10-31 Robert Dewar <dewar@adacore.com>
22218 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
22219 (Set_Specific_Warning_Off): New procedure
22220 (Warning_Specifically_Suppressed): New function
22221 (Validate_Specific_Warnings): New procedure
22222 (Output_Msg_Text): Complete rewrite to support -gnatjnn
22224 * err_vars.ads: Implement insertion character ~ (insert string)
22226 2006-10-31 Bob Duff <duff@adacore.com>
22227 Ed Schonberg <schonberg@adacore.com>
22229 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
22230 the parent part is a build-in-place function call, generate assignments.
22231 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
22232 are build-in-place function calls.
22233 (Replace_Self_Reference): New subsidiary of
22234 Make_OK_Assignment_Statement, to replace an access attribute that is a
22235 self-reference into an access to the appropriate component of the
22236 target object. Generalizes previous mechanism to handle self-references
22237 nested at any level.
22238 (Is_Self_Referential_Init): Remove, not needed.
22239 (Is_Self_Referential_Init): New predicate to simplify handling of self
22240 referential components in record aggregates.
22241 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
22242 check for presence of entity before checking for self-reference.
22243 (Has_Default_Init_Comps): Return True if a component association is a
22244 self-reference to the enclosing type, which can only come from a
22245 default initialization.
22246 (Make_OK_Assignment_Statement): If the expression is of the form
22247 Typ'Acc, where Acc is an access attribute, the expression comes from a
22248 default initialized self-referential component.
22249 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
22250 that has been derived from several abstract interfaces we must also
22251 initialize the tags of the secondary dispatch tables.
22253 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22254 Thomas Quinot <quinot@adacore.com>
22255 Javier Miranda <miranda@adacore.com>
22256 Robert Dewar <dewar@adacore.com>
22259 (Expand_Access_To_Protected_Op): If the context indicates that an access
22260 to a local operation may be transfered outside of the object, create an
22261 access to the wrapper operation that must be used in an external call.
22262 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
22263 target, pass the Valid attribute applied to a floating-point prefix on
22264 to the back end without expansion.
22265 (Storage_Size): Use the new run-time function Storage_Size to retrieve
22266 the allocated storage when it is specified by a per-object expression.
22267 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
22268 Nothing to do here, the attribute has been rewritten during semantic
22270 (Expand_Attribute_Reference): Handle expansion of the new Priority
22272 (Find_Fat_Info): Handle case of universal real
22273 (Expand_Access_To_Protected_Op): Fix use of access to protected
22274 subprogram from inside the body of a protected entry.
22275 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
22276 'Access and 'Unrestricted_Access, to transform the attribute reference
22277 into a fat pointer.
22278 (Is_Constrained_Aliased_View): New predicate to help determine whether a
22279 subcomponent's enclosing variable is aliased with a constrained subtype.
22280 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
22281 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
22282 an aliased prefix must be known to be constrained in order to use True
22283 for the attribute value, and now it's possible for some aliased views
22284 to be unconstrained.
22286 2006-10-31 Robert Dewar <dewar@adacore.com>
22288 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
22289 (Expand_Entity_Reference): Correct error of not handling subprogram
22290 formals in current_value processing.
22292 2006-10-31 Javier Miranda <miranda@adacore.com>
22293 Robert Dewar <dewar@adacore.com>
22294 Ed Schonberg <schonberg@adacore.com>
22295 Gary Dismukes <dismukes@adacore.com>
22297 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
22298 register in the final list objects containing class-wide interfaces;
22299 otherwise we incorrectly register the tag of the interface in the final
22301 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
22302 generate the wrapper if the parent primitive is abstract. This is
22303 required to report the correct error message.
22304 (Expand_N_Subtype_Indication): Do validity checks on range
22305 (Clean_Task_Names): If an initialization procedure includes a call to
22306 initialize a task (sub)component, indicate that the procedure will use
22307 the secondary stack.
22308 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
22309 compatibility for interfacing with CPP by default.
22310 (Expand_N_Object_Declaration): Only build an Adjust call when the
22311 object's type is a nonlimited controlled type.
22312 * exp_ch3.adb: Add with and use of Exp_Ch6.
22313 (Expand_N_Object_Declaration): Check for object initialization that is a
22314 call to build-in-place function and apply Make_Build_In_Place_Call_In_
22315 Object_Declaration to the call.
22316 (Freeze_Type): When the designated type of an RACW was not frozen at the
22317 point where the RACW was declared, validate the primitive operations
22318 with respect to E.2.2(14) when it finally is frozen.
22319 (Build_Initialization_Call,Expand_Record_Controller): Rename
22320 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
22321 return-by-reference has no meaning in Ada 2005.
22322 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
22323 to register tag of the immediate ancestor interfaces in the
22324 run-time structure.
22325 (Init_Secondary_Tags): Moved to the specification to allow the
22326 initialization of extension aggregates with abstract interfaces.
22327 (Build_Master_Renaming): Make public, for use by function declarations
22328 whose return type is an anonymous access type.
22329 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
22330 Insert_List_Before_And_Analyze after the generation of the specs
22331 associated with null procedures.
22332 (Expand_Tagged_Root): Update documentation in its specification.
22333 (Init_Secondary_Tags): Update documentation.
22334 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
22335 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
22336 then generate code to inherit the contents of the dispatch table
22337 directly from the ancestor.
22338 (Expand_Record_Controller): Insert controller component after tags of
22339 implemented interfaces.
22340 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
22341 create null procedure overridings when null procedures are inherited
22343 (Make_Null_Procedure_Specs): New procedure to generate null procedure
22344 declarations for overriding null primitives inherited from interfaces.
22345 (Is_Null_Interface_Procedure): New function in
22346 Make_Null_Procedure_Specs.
22347 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
22348 immediate ancestor of a tagged type is an abstract interface type we
22349 must generate the specification of the predefined primitives associated
22350 with controlled types (because the dispatch table of the ancestor is
22351 null and hence these entries cannot be inherited). This is required to
22352 elaborate well the dispatch table.
22354 2006-10-31 Javier Miranda <miranda@adacore.com>
22355 Ed Schonberg <schonberg@adacore.com>
22356 Bob Duff <duff@adacore.com>
22357 Gary Dismukes <dismukes@adacore.com>
22358 Robert Dewar <dewar@adacore.com>
22360 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
22362 (Expand_N_In): Do validity checks on range
22363 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
22364 (Expand_N_Allocator): For "new T", if the object is constrained by
22365 discriminant defaults, allocate the right amount of memory, rather than
22366 the maximum for type T.
22367 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
22368 when the allocator is initialized by a build-in-place call, since the
22369 allocator is already rewritten as a reference to the function result,
22370 and this prevents an unwanted duplication of the function call.
22371 Add with and use of Exp_Ch6.
22372 (Expand_Allocator_Expresssion): Check for an allocator whose expression
22373 is a call to build-in-place function and apply
22374 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
22375 untagged designated types).
22376 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
22377 optimization if source or target is biased.
22378 (Expand_N_Allocator): Add comments for case of an allocator within a
22379 function that returns an anonymous access type designating tasks.
22380 (Expand_N_Allocator): apply discriminant checks for access
22381 discriminants of anonymous access types (AI-402, AI-416)
22383 2006-10-31 Bob Duff <duff@adacore.com>
22384 Robert Dewar <dewar@adacore.com>
22385 Gary Dismukes <dismukes@adacore.com>
22386 Ed Schonberg <schonberg@adacore.com>
22388 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
22390 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
22391 (Expand_N_Assignment_Statement): Call
22392 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
22393 build-in-place function call. Currently, this can happen only for
22394 assignments that come from aggregates.
22395 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
22396 in order to alleviate the upward compatibility introduced by AI-318.
22397 (Expand_N_Extended_Return_Statement): Add support for handling the
22398 return object as a build-in-place result.
22399 (Expand_Non_Function_Return): Implement simple return statements nested
22400 within an extended return.
22401 (Enable_New_Return_Processing): Turn on the new processing of return
22403 (Expand_Non_Function_Return): For a return within an extended return,
22404 don't raise Program_Error, because Sem_Ch6 now gives a warning.
22405 (Expand_N_Extended_Return_Statement): Implement AI-318
22406 (Expand_Simple_Function_Return): Ditto.
22407 (Expand_N_If_Statement): Handle new -gnatwt warning
22408 (Expand_N_Case_Statement): Handle new -gnatwt warning
22409 (Expand_N_Assignment): Handle assignment to the Priority attribute of
22410 a protected object.
22411 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
22412 validity checking of assignments to elementary record components.
22413 (Expand_N_Return_Statement): return Class Wide types on the secondary
22414 stack independantly of their controlled status since with HIE runtimes,
22415 class wide types are not potentially controlled anymore.
22417 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
22420 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
22421 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
22422 it expects a block, procedure, or task. The return statement will get
22423 turned into a block, and Expand_Cleanup_Actions will happen then.
22425 2006-10-31 Robert Dewar <dewar@adacore.com>
22426 Ed Schonberg <schonberg@adacore.com>
22427 Bob Duff <duff@adacore.com>
22428 Gary Dismukes <dismukes@adacore.com>
22430 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
22432 (Expand_Inlined_Call): Tagged types are by-reference types, and
22433 therefore should be replaced by a renaming declaration in the expanded
22434 body, as is done for limited types.
22435 (Expand_Call): If this is a call to a function with dispatching access
22436 result, propagate tag from context.
22437 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
22439 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
22440 build-in-place when the right-hand side of an assignment is a
22441 build-in-place function call.
22442 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
22443 of the explicit dereference of the allocator to the result subtype of
22444 the build-in-place function. This is needed to satisfy type checking
22445 in cases where the caller's return object is created by an allocator for
22446 a class-wide access type and the type named in the allocator is a
22448 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
22449 conversion of the reference to the declared object to the result subtype
22450 of the build-in-place function. This is needed to satisfy type checking
22451 in cases where the declared object has a class-wide type. Also, in the
22452 class-wide case, change the type of the object entity to the specific
22453 result subtype of the function, to avoid passing a class-wide object
22454 without explicit initialization to the back end.
22455 (Register_Interface_DT_Entry): Moved outside the body of
22456 Freeze_Subprogram because this routine is now public; it is called from
22457 Check_Dispatching_Overriding to handle late overriding of abstract
22458 interface primitives.
22459 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
22460 adding an implicit access actual on a call to a build-in-place function.
22461 (Expand_Actuals): Test for an actual parameter that is a call to a
22462 build-in-place function and apply
22463 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
22464 (Is_Build_In_Place_Function): New function to determine whether an
22465 entity is a function whose calls should be handled as build-in-place.
22466 (Is_Build_In_Place_Function_Call): New function to determine whether an
22467 expression is a function call that should handled as build-in-place.
22468 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
22469 calls to build-in-place functions as the initialization of an allocator.
22470 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
22471 handling calls to build-in-place functions in contexts that do not
22472 involve init of a separate object (for example, actuals of subprogram
22474 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
22475 handling calls to build-in-place functions as the initialization of an
22476 object declaration.
22477 (Detect_Infinite_Recursion): Add explicit parameter Process to
22478 instantiation of Traverse_Body to avoid unreferenced warning.
22479 (Check_Overriding_Inherited_Interfaces): Removed.
22480 (Register_Interface_DT_Entry): Code cleanup.
22481 (Register_Predefined_DT_Entry): Code cleanup.
22482 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
22483 inlined statements if within a transient scope.
22484 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
22485 formal parameters with occurrences of actuals in inlined body, establish
22486 visibility on the proper view of the actual's subtype for the body's
22488 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
22489 compatibility mode and we have an imported CPP subprogram because
22490 for now we assume that imported CPP primitives correspond with
22491 objects whose constructor is in the CPP side (and therefore we
22492 don't need to generate code to register them in the dispatch table).
22493 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
22494 aligned selected component.
22495 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
22496 the actual of an in-mode parameter is a type conversion.
22497 (Expand_Actuals): If the call does not come from source and the actual
22498 is potentially misaligned, let gigi handle it rather than rejecting the
22499 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
22500 Class Wide types as returning by reference independantly of their
22501 controlled status since with HIE runtimes class wide types are not
22502 potentially controlled anymore.
22504 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22506 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
22507 references that are private components of the protected object.
22508 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
22509 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
22510 instantiation to deal with warnings.
22511 (Initialize_Protection): If expression for priority is non-static, use
22512 System_Priority as its expected type, in case the expression has not
22515 2006-10-31 Robert Dewar <dewar@adacore.com>
22517 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
22518 initialization of Homonym_Len.
22519 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
22520 names from fully qualified name. Fixes problem of duplicate
22521 external names differing only in the presence of such a block name.
22523 2006-10-31 Thomas Quinot <quinot@adacore.com>
22524 Pablo Oliveira <oliveira@adacore.com>
22526 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
22527 subprogram Ids, even if they are not yet assigned.
22528 (Build_Subprogram_Id): It is now this function that will take care of
22529 calling Assign_Subprogram_Ids if necessary.
22530 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
22531 should be done only once they are assigned.
22532 (Build_From_Any_Function, case of tagged types): Add missing call to
22534 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
22535 type for an RACW type.
22536 (Add_RACW_Features): When processing an RACW declaration for which the
22537 designated type is already frozen, enforce E.2.2(14) rules immediately.
22538 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
22539 special reordering of controlling formals.
22541 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
22542 associated stub type for an RACW type.
22544 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22546 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
22547 fixed-point operations in an integer context, i.e. as operands of a
22548 conversion to an integer type, indicate that result must be rounded.
22550 2006-10-31 Robert Dewar <dewar@adacore.com>
22552 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
22553 cases, pass the encoding method, since it is now required by the run
22556 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
22557 assumption that Str'First = 1.
22558 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
22559 it on to the Value_Wide_Wide_Character call.
22560 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
22561 properly handles a string of the form quote-encoded_wide_char-quote.
22563 * s-wchcnv.adb: Minor reformatting
22565 2006-10-31 Javier Miranda <miranda@adacore.com>
22567 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
22568 run-time membership test to ensure that the constructed object
22569 implements the target abstract interface.
22571 2006-10-31 Robert Dewar <dewar@adacore.com>
22573 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
22574 Machine_Attribute pragma internally to implement the user pragma.
22575 Add processing for pragma Interface so that it is now completely
22576 equivalent to pragma Import.
22578 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
22579 so that it can be applied to all entities, including record components
22580 and enumeration literals.
22581 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
22582 priority ranges are correct, verify compatibility against task
22583 dispatching and locking policies, and if everything is correct an entry
22584 is added to the table containing priority specific dispatching entries
22585 for this compilation unit.
22586 (Delay_Config_Pragma_Analyze): Delay processing
22587 Priority_Specific_Dispatching pragmas because when processing the
22588 pragma we need to access run-time data, such as the range of
22589 System.Any_Priority.
22590 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
22591 Allow pragma Unreferenced as a context item
22592 Add pragma Preelaborable_Initialization
22593 (Analyze_Pragma, case Interface): Interface is extended so that it is
22594 now syntactically and semantically equivalent to Import.
22595 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
22596 insertion characters.
22597 Add handling for Pragma_Wide_Character_Encoding
22598 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
22599 never supercedes a real restriction, and that a real restriction
22600 always supercedes a warning.
22601 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
22604 2006-10-31 Bob Duff <duff@adacore.com>
22605 Ed Schonberg <schonberg@adacore.com>
22606 Robert Dewar <dewar@adacore.com>
22608 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
22609 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
22610 Is_Inherently_Limited_Type, because return-by-reference has no meaning
22612 (Find_Node_To_Be_Wrapped): Use new method of determining the result
22613 type of the function containing a return statement, because the
22614 Return_Type field was removed. We now use the Return_Applies_To field.
22616 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
22617 (Build_Task_Image_Decl): If procedure is not called from an
22618 initialization procedure, indicate that function that builds task name
22619 uses the sec. stack. Otherwise the enclosing initialization procedure
22620 will carry the indication.
22621 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
22622 N_Object_Declaration instead.
22623 (Kill_Dead_Code): New interface to implement -gnatwt warning for
22624 conditional dead code killed, and change implementation accordingly.
22625 (Insert_Actions): Add N_Return_Object_Declaration case.
22626 Correct comment to mention N_Extension_Aggregate node.
22627 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
22628 attempts to save information for global variables which cannot be
22630 (Get_Current_Value_Condition): Handle conditions the other way round
22631 (constant on left). Also handle right operand of AND and AND THEN
22632 (Set_Current_Value_Condition): Corresponding changes
22633 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
22634 (Get_Current_Value_Condition): Handle simple boolean operands
22635 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
22636 (Get_Current_Value_Condition): If the variable reference is within an
22637 if-statement, does not appear in the list of then_statments, and does
22638 not come from source, treat it as being at unknown location.
22639 (Get_Current_Value_Condition): Enhance to allow while statements to be
22640 processed as well as if statements.
22641 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
22643 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
22644 of loop. This is safe now that we fixed Kill_Current_Values.
22645 (OK_To_Do_Constant_Replacement): Check whether current scope is
22646 Standard, before examining outer scopes.
22648 2006-10-31 Vincent Celier <celier@adacore.com>
22650 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
22651 When True, apply VMS treatment to children of packages A, G, I and S.
22654 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
22656 2006-10-31 Robert Dewar <dewar@adacore.com>
22657 Ed Schonberg <schonberg@adacore.com>
22659 * freeze.adb: Add handling of Last_Assignment field
22660 (Warn_Overlay): Supply missing continuation marks in error msgs
22661 (Freeze_Entity): Add check for Preelaborable_Initialization
22663 * g-comlin.adb: Add Warnings (Off) to prevent new warning
22665 * g-expect.adb: Add Warnings (Off) to prevent new warning
22667 * lib-xref.adb: Add handling of Last_Assignment field
22668 (Generate_Reference): Centralize handling of pragma Obsolescent here
22669 (Generate_Reference): Accept an implicit reference generated for a
22670 default in an instance.
22671 (Generate_Reference): Accept a reference for a node that is not in the
22672 main unit, if it is the generic body corresponding to an subprogram
22675 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
22677 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
22679 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
22681 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
22682 use clauses, to avoid messages on packages used to qualify, and also
22683 to avoid messages from obsolescent units.
22684 (Warn_On_Useless_Assignments): Don't generate messages for imported
22685 and exported variables.
22686 (Warn_On_Useless_Assignments): New procedure
22687 (Output_Obsolescent_Entity_Warnings): New procedure
22688 (Check_Code_Statement): New procedure
22690 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
22691 Change name Is_Ada_2005 to Is_Ada_2005_Only
22692 (Last_Assignment): New field for useless assignment warning
22694 2006-10-31 Olivier Hainque <hainque@adacore.com>
22696 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
22697 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
22699 2006-10-31 Bob Duff <duff@adacore.com>
22700 Robert Dewar <dewar@adacore.com>
22701 Ed Schonberg <schonberg@adacore.com>
22703 * g-awk.adb (Default_Session, Current_Session): Compile this file in
22704 Ada 95 mode, because it violates the new rules for AI-318.
22706 * g-awk.ads: Use overloaded subprograms in every case where we used to
22707 have a default of Current_Session. This makes the code closer to be
22708 correct for both Ada 95 and 2005.
22710 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
22711 code, relying on the fact that the compiler generates a warning
22712 instead of an error in -gnatg mode.
22714 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
22715 E_Return_Statement entity kind.
22716 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
22718 * par.adb (P_Interface_Type_Definition): Addition of one formal to
22719 report an error if the reserved word abstract has been previously found.
22720 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
22722 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
22723 parenthesized range attribute usage
22724 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
22726 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
22727 in the syntax for extended_return_statement. This is not in the latest
22728 RM, but the ARG is expected to issue an AI allowing this.
22729 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
22730 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
22731 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
22732 P_Return_Statement): Parse the new syntax for extended_return_statement.
22734 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
22735 Output_End_Missing): Add error-recovery code for the new
22736 extended_return_statement syntax; that is, the new E_Return entry on
22739 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
22740 limited to nonlimited, because otherwise we violate the new Ada 2005
22741 rules about returning limited types in function Create_AST_Handler in
22744 * sem.adb (Analyze): Add cases for new node kinds
22745 N_Extended_Return_Statement and N_Return_Object_Declaration.
22747 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
22748 type is in the same category as type of context before applying check,
22749 to prevent anomalies in instantiations.
22750 (Resolve_Aggregate): Remove test for limited components in aggregates.
22751 It's unnecessary in Ada 95, because if it has limited components, then
22752 it must be limited. It's wrong in Ada 2005, because limited aggregates
22754 (Resolve_Record_Aggregate): Move check for limited types later, because
22755 OK_For_Limited_Init requires its argument to have been resolved.
22756 (Get_Value): When copying the component default expression for a
22757 defaulted association in an aggregate, use the sloc of the aggregate
22758 and not that of the original expression, to prevent spurious
22759 elaboration errors, when the expression includes function calls.
22760 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
22761 were missing. We also didn't handle qualified expressions. Now also
22762 allow function calls. Use new common routine OK_For_Limited_Init.
22763 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
22764 with space can upper case letter).
22766 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
22767 Has_Static_Discriminants flag
22768 (Record_Type_Declaration): Diagnose an attempt to declare an interface
22769 type with discriminants.
22770 (Process_Range_Expr_In_Decl): Do validity checks on range
22771 (Build_Discriminant_Constraints): Use updated form of
22772 Denotes_Discriminant.
22773 (Process_Subtype): If the subtype is a private subtype whose full view
22774 is a concurrent subtype, introduce an itype reference to prevent scope
22776 (Build_Derived_Record_Type, Collect_Interface_Primitives,
22777 Record_Type_Declaration): The functionality of the subprograms
22778 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
22779 is now performed by a single routine.
22780 (Build_Derived_Record_Type): If the type definition includes an explicit
22781 indication of limitedness, then the type must be marked as limited here
22782 to ensure that any access discriminants will not be treated as having
22783 a local anonymous access type.
22784 (Check_Abstract_Overriding): Issue a detailed error message when an
22785 abstract subprogram was not overridden due to incorrect mode of its
22787 (Analyze_Private_Extension_Declaration): Add support for the analysis of
22788 synchronized private extension declarations. Verify that the ancestor is
22789 a limited or synchronized interface or in the generic case, the ancestor
22790 is a tagged limited type or synchronized interface and all progenitors
22791 are either limited or synchronized interfaces.
22792 Derived_Type_Declaration): Check for presence of private extension when
22793 dealing with synchronized formal derived types.
22794 Process_Full_View): Enchance the check done on the usage of "limited" by
22795 testing whether the private view is synchronized.
22796 Verify that a synchronized private view is completed by a protected or
22798 (OK_For_Limited_Init_In_05): New function.
22799 (Analyze_Object_Declaration): Move check for limited types later,
22800 because OK_For_Limited_Init requires its argument to have been resolved.
22801 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
22802 in order to alleviate the upward compatibility introduced by AI-318.
22803 (Constrain_Corresponding_Record): If the constraint is for a component
22804 subtype, mark the itype as frozen, to avoid out-of-scope references to
22805 discriminants in the back-end.
22806 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
22807 this subprogram against wrong sources.
22808 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
22809 discriminant of limited type completed with a protected type, when the
22810 discriminant is used to constrain a private component of the type, and
22811 expansion is disabled.
22812 (Find_Type_Of_Object): Do not treat a return subtype that is an
22813 anonymous subtype as a local_anonymous_type, because its accessibility
22814 level is the return type of the enclosing function.
22815 (Check_Initialization): In -gnatg mode, turn the error "cannot
22816 initialize entities of limited type" into a warning.
22817 (OK_For_Limited_Init): Return true for generated nodes, since it
22818 sometimes violates the legality rules.
22819 (Make_Incomplete_Declaration): If the type for which an incomplete
22820 declaration is created happens to be the currently visible entity,
22821 preserve the homonym chain when removing it from visibility.
22822 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
22823 inherited subprograms.
22824 (Access_Definition): If this is an access to function that is the return
22825 type of an access_to_function definition, context is a type declaration
22826 and the scope of the anonymous type is the current one.
22827 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
22828 incomplete subtype to the set of private dependents of the original
22830 (Constrain_Discriminated_Type): Emit an error message whenever an
22831 incomplete subtype is being constrained.
22832 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
22833 corresponding subtype of the full view of the original incomplete type.
22834 (Check_Incomplete): Properly detect invalid usage of incomplete types
22837 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
22839 * g-catiio.ads, g-catiio.adb (Value): New function.
22840 Given an input String, try and parse a valid Time value.
22842 2006-10-31 Vincent Celier <celier@adacore.com>
22844 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
22845 Integer_Address arithmetic, as in Set_Valid.
22847 2006-10-31 Arnaud Charlet <charlet@adacore.com>
22848 Robert Dewar <dewar@adacore.com>
22850 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
22851 handling executable extension manually and duplicating code.
22853 * make.adb: Implement new -S switch
22854 (Gnatmake): Use new function Osint.Executable_Name instead
22855 of handling executable extension manually.
22857 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
22858 is specified, the executable name ends with this suffix.
22859 Take advantage of Osint.Executable_Name instead of duplicating code.
22861 * switch-m.adb: Recognize new gnatmake -S switch
22863 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
22865 (Get_Target_Parameters): Set Executable_Extension_On_Target if
22868 * makeusg.adb: Add line for gnatmake -S switch
22870 2006-10-31 Vincent Celier <celier@adacore.com>
22872 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
22873 call it with -static-libgcc, as there are some platforms, such as
22874 Darwin, where one of these two switches is compulsory to link.
22876 2006-10-31 Vincent Celier <celier@adacore.com>
22878 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
22879 instead of ADA_PROJECT_PATH, for the project path.
22880 (Gnatls): When displaying the project path directories, use host dir
22883 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
22884 names in the project path, as absolute paths may correspond to
22885 multi-valued VMS logical names.
22887 2006-10-31 Vincent Celier <celier@adacore.com>
22889 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
22890 absolute path name.
22891 (Locate_Regular_File): Ditto
22892 (Change_Dir): Remove, no longer used
22893 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
22894 on Windows. Get it calling Get_Current_Dir.
22895 (OpenVMS): Remove imported boolean, no longer needed.
22896 (Normalize_Pathname)[VMS]: Do not resolve directory names.
22897 (Pid_To_Integer): New function to convert a Process_Id to Integer
22899 2006-10-31 Thomas Quinot <quinot@adacore.com>
22901 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
22902 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
22904 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
22907 2006-10-31 Robert Dewar <dewar@adacore.com>
22909 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
22910 initial letter o as a zero.
22912 2006-10-31 Robert Dewar <dewar@adacore.com>
22914 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
22916 2006-10-31 Robert Dewar <dewar@adacore.com>
22918 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
22920 (Layout_Variant_Record): Retrieve the discriminants from the entity
22921 rather than from the type definition, because in the case of a full
22922 type for a private type we need to take the discriminants from the
22924 (Layout_Component_List): When applying the Max operator to variants with
22925 a nonstatic size, check whether either operand is static and scale that
22926 operand from bits to storage units before applying Max.
22927 (Layout_Type): In VMS, if a C-convention access type has no explicit
22928 size clause (and does not inherit one in the case of a derived type),
22929 then the size is reset to 32 from 64.
22931 2006-10-31 Vincent Celier <celier@adacore.com>
22933 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
22934 its file has already been loaded, according to the unit being loaded,
22935 not to the current value of Multiple_Unit_Index.
22937 2006-10-31 Thomas Quinot <quinot@adacore.com>
22938 Eric Botcazou <ebotcazou@adacore.com>
22939 Arnaud Charlet <charlet@adacore.com>
22941 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
22942 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
22944 (a-except.o): Pass it to the compiler.
22945 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
22946 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
22947 a-calend-mingw.adb version.
22949 * Makefile.rtl: Added s-dsaser.
22950 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
22951 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
22952 Ada.Dispatching.Round_Robin.
22953 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
22955 * Make-lang.in: Remove all references to gt-ada-decl.h.
22956 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
22958 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
22959 Update dependencies.
22961 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
22963 2006-10-31 Vincent Celier <celier@adacore.com>
22965 * mlib-utl.adb (Initialized): Remove, no longer used
22966 (Initialize): Remove, no longer used
22967 (Ar): If Ar_Exec is null, get the location of the archive builder and,
22968 if there is one, the archive indexer. Fail if the archive builder cannot
22970 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
22973 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22975 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
22976 Process_Body_Clauses): If the context of a body includes a use clause
22977 for P.Q then a with_clause for P in the same body is not redundant,
22978 even if the spec also has a with_clause on P.
22979 Add missing continuation mark to error msg
22980 (Build_Limited_Views): A limited view of a type is tagged if its
22981 declaration includes a record extension.
22982 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
22983 node, even if the subunit has errors. This avoids malfunction by
22984 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
22985 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
22986 generation of obsolescent messages for with statements (cannot do
22987 this too early, or we cannot implement avoiding the messages in the
22988 case of obsolescent units withing obsolescent units).
22989 (Install_Siblings): If the with_clause is on a remote descendant of
22990 an ancestor of the current compilation unit, find whether there is
22991 a sibling child unit that is immediately visible.
22992 (Remove_Private_With_Clauses): New procedure, invoked after completing
22993 the analysis of the private part of a nested package, to remove from
22994 visibility the private with_clauses of the enclosing package
22996 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
22997 now centralized in Generate_Reference.
22998 (Install_Limited_Context_Clauses): Remove superfluous error
22999 message associated with unlimited view visible through use
23000 and renamings. In addition, at the point in which the error
23001 is reported, we add the backslash to the text of the error
23002 to ensure that it is reported as a single error message.
23003 Use new // insertion for some continuation messages
23004 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
23005 to create implicit with_clause for parent unit mentioned in original
23006 limited_with_clause.
23007 (Install_Limited_With_Unit): Set entity of parent identifiers if the
23008 unit is a child unit. For ASIS queries.
23009 (Analyze_Subunit): If the subunit appears within a child unit, make all
23010 ancestor child units directly visible again.
23012 2006-10-31 Robert Dewar <dewar@adacore.com>
23014 * par-ch10.adb (P_Context_Clause): Minor error message fix
23016 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
23017 Javier Miranda <miranda@adacore.com>
23019 * par-ch12.adb: Grammar update and cleanup.
23020 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
23021 support for synchronized derived type definitions.
23022 Add the new actual Abstract_Present to every call to
23023 P_Interface_Type_Definition.
23024 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
23025 a formal object declaration with an access definition or a subtype mark
23026 with a null exclusion.
23027 (P_Generic_Association): Handle association with box, and others_choice
23028 with box, to support Ada 2005 partially parametrized formal packages.
23030 2006-10-31 Robert Dewar <dewar@adacore.com>
23031 Javier Miranda <miranda@adacore.com>
23033 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
23034 (P_Type_Declaration): Remove barrier against the reserved word "limited"
23035 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
23036 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
23037 private extensions.
23038 (P_Type_Declaration): Add the new actual Abstract_Present to every call
23039 to P_Interface_Type_Definition.
23040 (P_Interface_Type_Definition): Addition of one formal to report an error
23041 if the reserved word abstract has been previously found.
23042 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
23043 object renaming declaration with an access definition or subtype mark
23044 with a possible null exclusion.
23046 * par-ch9.adb: Minor error msg fix
23048 * par-load.adb: Add missing continuation mark to error msg
23050 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
23052 2006-10-31 Vincent Celier <celier@adacore.com>
23054 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
23055 unknown attribute in unknown package or in package that does not need
23057 (Parse_Package_Declaration): Do not issue warning for unknown package in
23060 2006-10-31 Vincent Celier <celier@adacore.com>
23062 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
23063 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
23066 2006-10-31 Vincent Celier <celier@adacore.com>
23068 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
23069 on VMS, change "__" to '.' before checking the name.
23070 (Record_Ada_Source): Always add the source file name in the list of
23071 of sources, even if it is not the first time, as it is for another
23073 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
23074 dot, instead of replacing only the first '_'.
23076 * prj-part.adb (Parse): Convert project file path to canonical form
23078 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
23079 extended, the project id of the project extending it is recorded in its
23080 data, even when it has already been processed as an imported project.
23082 2006-10-31 Robert Dewar <dewar@adacore.com>
23084 * repinfo.adb (List_Entities): Don't list entities from renaming
23087 2006-10-31 Arnaud Charlet <charlet@adacore.com>
23088 Robert Dewar <dewar@adacore.com>
23090 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
23091 only a restriction warning is active for the given restriction. This is
23092 desirable because we do not want to modify code in the case where only
23094 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
23095 causes overriding of real restrictions.
23096 Take advantage of new No_Restrictions constant.
23098 * raise.h: (__gnat_set_globals): Change profile.
23100 2006-10-31 Arnaud Charlet <charlet@adacore.com>
23102 * rtsfind.adb: Remove s-polint from comment as it exists no more.
23105 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
23106 Move all the entities in obsolete package System.PolyORB_Interface to
23107 System.Partition_Interface.
23108 (RE_Storage_Size): New function in System.Tasking.
23109 (RE_Get_Ceiling): New entity.
23110 (RE_Set_Ceiling): New entity.
23111 (RO_PE_Get_Ceiling): New entity.
23112 (RO_RE_Set_Ceiling): New entity.
23113 (Inherit_CPP_DT): New entity
23115 2006-10-31 Robert Dewar <dewar@adacore.com>
23117 * scng.adb (Scan, case of numeric literal): Better msg for identifier
23118 starting with a digit.
23120 2006-10-31 Ed Schonberg <schonberg@adacore.com>
23121 Thomas Quinot <quinot@adacore.com>
23122 Javier Miranda <miranda@adacore.com>
23123 Gary Dismukes <dismukes@adacore.com>
23125 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
23126 properly an attempt to apply Unchecked_Access to a protected operation.
23127 (OK_Self_Reference): New subprogram to check the legality of an access
23128 attribute whose prefix is the type of an enclosing aggregate.
23129 Generalizes previous mechanism to handle attribute references nested
23130 arbitrarily deep within the aggregate.
23131 (Analyze_Access_Attribute): An access attribute whose prefix is a type
23132 can appear in an aggregate if this is a default-initialized aggregate
23133 for a self-referential type.
23134 (Resolve_Attribute, case Access): Ditto.
23135 Add support for new implementation defined attribute Stub_Type.
23136 (Eval_Attribute, case Attribute_Stub_Type): New case.
23137 (Analyze_Attribute, case Attribute_Stub_Type): New case.
23138 (Stream_Attribute_Available): Implement using new subprogram from
23139 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
23140 Has_Specified_Stream_Attribute flag.
23141 Disallow Storage_Size and Storage_Pool for access to subprogram
23142 (Resolve_Attribute, case 'Access et al): Take into account anonymous
23143 access types of return subtypes in extended return statements. Remove
23144 accessibility checks on anonymous access types when Unchecked_Access is
23146 (Analyze_Attribute): Add support for the use of 'Class to convert
23147 a class-wide interface to a tagged type.
23148 Add support for the attribute Priority.
23149 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
23150 whether the designated type is discriminated with a constrained partial
23151 view and require static matching in that case.
23152 Add local variable Des_Btyp. The Designated_Type
23153 of an access to incomplete subtype is either its non-limited view if
23154 coming from a limited with or its etype if regular incomplete subtype.
23156 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
23157 Fix predicate to identify and allow cases of (expander-generated)
23158 references to tag of designated object of a RACW.
23159 (Validate_Static_Object_Name): In Ada 2005, a formal object is
23160 non-static, and therefore cannot appear as a primary in a preelaborable
23162 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
23163 Has_Read_Write_Attributes.
23164 (Has_Read_Write_Attributes): Reimplement in termes of
23165 Has_Stream_Attribute_Definition.
23166 (Missing_Read_Write_Attributes): When checking component types in a
23167 record, unconditionally call Missing_Read_Write_Attributes recursively
23168 (remove guard checking for Is_Record_Type / Is_Access_Type).
23170 2006-10-31 Robert Dewar <dewar@adacore.com>
23172 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
23173 useless assignments here and conditionalize it on absence of exception
23175 (Analyze_Exception_Handlers): Small code reorganization of error
23176 detection code, for new handling of formal packages.
23178 2006-10-31 Ed Schonberg <schonberg@adacore.com>
23179 Hristian Kirtchev <kirtchev@adacore.com>
23181 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
23182 that has been constant-folded, preserve information of original tree,
23184 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
23185 generated private extension declaration if the formal derived type is
23186 synchronized. Carry synchronized present over to the generated private
23188 (Validate_Derived_Type_Instance): Ensure that the actual of a
23189 synchronized formal derived type is a synchronized tagged type.
23190 (Instantiate_Formal_Package): When creating the instantiation used to
23191 validate the actual package of a formal declared without a box, check
23192 whether the formal itself depends on a prior actual.
23193 (Instantiate_Formal_Subprogram): Create new entities for the defining
23194 identifiers of the formals in the renaming declaration, for ASIS use.
23195 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
23196 a renaming declaration or a subtype declaration for an actual in an
23197 instance, capture location information of declaration in generic, for
23199 (Instantiate_Formal_Package): Add comments on needed additional tests.
23200 AI-317 (partial parametrization) is fully implemented.
23201 (Validate_Private_Type_Instance): Add check for actual which
23202 must have preelaborable initialization
23203 Use new // insertion for some continuation messages
23204 (Analyze_Formal_Object_Declaration): Change usage of Expression to
23205 Default_Expression. Add type retrieval when the declaration has an
23206 access definition. Update premature usage of incomplete type check.
23207 (Check_Access_Definition): New subsidiary routine. Check whether the
23208 current compilation version is Ada 05 and the supplied node has an
23210 (Instantiate object): Alphabetize local variables. Handle the creation
23211 of new renaming declarations with respect to the kind of definition
23212 used - either an access definition or a subtype mark. Guard against
23213 unnecessary error message in the context of anonymous access types after
23214 they have been resolved. Add check for required null exclusion in a
23215 formal object declaration.
23216 (Switch_View): A private subtype of a non-private type needs to be
23217 switched (the base type can have been switched without its private
23218 dependents because of the last branch of Check_Private_View.
23219 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
23221 (Instantiate_Type): Emit an error message whenever a class-wide type of
23222 a tagged incomplete type is used as a generic actual.
23223 (Find_Actual_Type): Extend routine to handle a component type in a child
23224 unit that is imported from a formal package in a parent.
23225 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
23226 agree on constrainedness, rather than checking against ultimate ancestor
23227 (Instantiate_Subprogram_Body): Create a cross-reference link to the
23228 generic body, for navigation purposes.
23230 2006-10-31 Robert Dewar <dewar@adacore.com>
23231 Thomas Quinot <quinot@adacore.com>
23233 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
23235 (New_Stream_Subprogram): When processing an attribute definition clause
23236 for a stream-oriented subprogram, record an entity node occurring at
23237 the point of clause to use for checking the visibility of the clause,
23238 as defined by 8.3(23) as amended by AI-195.
23239 (New_Stream_Subprogram): New procedure, factoring behaviour from both
23240 New_Stream_Function and New_Stream_Procedure.
23241 (New_Stream_Function, New_Stream_Procedure): Removed.
23242 (Analyze_Attribute_Definition_Clause, case Address): Check new
23243 Alignment_Check check
23245 2006-10-31 Ed Schonberg <schonberg@adacore.com>
23246 Javier Miranda <miranda@adacore.com>
23247 Robert Dewar <dewar@adacore.com>
23249 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
23250 generate the same errors compiling under -gnatc.
23251 (Try_Object_Operation): If no candidate interpretation succeeds, but
23252 there is at least one primitive operation with the right name, report
23253 error in call rather than on a malformed selected component.
23254 (Analyze_Selected_Component): If the prefix is an incomplete type from
23255 a limited view, and the full view is available, use the full view to
23256 determine whether this is a prefixed call to a primitive operation.
23257 (Operator_Check): Verify that a candidate interpretation is a binary
23258 operation before checking the type of its second formal.
23259 (Analyze_Call): Add additional warnings for function call contexts not
23261 (Analyze_Allocator): Move the check for "initialization not allowed for
23262 limited types" after analyzing the expression. This is necessary,
23263 because OK_For_Limited_Init looks at the structure of the expression.
23264 Before analysis, we don't necessarily know what sort of expression it
23265 is. For example, we don't know whether F(X) is a function call or an
23266 indexed component; the former is legal in Ada 2005; the latter is not.
23267 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
23268 were missing. We also didn't handle qualified expressions. Now also
23269 allow function calls. Use new common routine OK_For_Limited_Init.
23270 (Analyze_Type_Conversion): Do not perform some legality checks in an
23271 instance, because the error message will be redundant or spurious.
23272 (Analyze_Overloaded_Selected_Component): Do not do style check when
23273 setting an entity, since we do not know it is the right entity yet.
23274 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
23275 (Analyze_Overloaded_Selected_Component): Same change
23276 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
23277 since regular incomplete subtypes are transformed into corresponding
23278 subtypes of their full views.
23279 (Complete_Object_Operation): Treat name of transformed subprogram call
23280 as coming from source, for browsing purposes.
23281 (Try_Primitive_Operation): If formal is an access parameter, compare
23282 with base type of object to determine whether it is a primitive
23284 (Operator_Check): If no interpretation of the operator matches, check
23285 whether a use clause on any candidate might make the operation legal.
23286 (Try_Class_Wide_Operation): Check whether the first parameter is an
23287 access type whose designated type is class-wide.
23289 2006-10-31 Robert Dewar <dewar@adacore.com>
23290 Ed Schonberg <schonberg@adacore.com>
23291 Gary Dismukes <dismukes@adacore.com>
23293 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
23294 warn on infinite loops.
23295 Add \\ to some continuation messages
23296 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
23297 (Process_Bounds): If the bounds are integer literals that result from
23298 constant-folding, and they carry a user-defined type, preserve that type
23299 rather than treating this as an integer range.
23300 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
23301 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
23302 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
23303 left hand side of assignment.
23304 (Analyze_Assignment): Add suport to manage assigments to the attribute
23305 priority of a protected object.
23306 (Check_Possible_Current_Value_Condition): Allow fully qualified names
23307 not just identifiers.
23308 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
23309 or AND THEN for possible tracking.
23310 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
23311 case of while loops so we can track values in the loop body.
23313 2006-10-31 Ed Schonberg <schonberg@adacore.com>
23314 Hristian Kirtchev <kirtchev@adacore.com>
23315 Bob Duff <duff@adacore.com>
23317 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
23318 procedure cannot be a protected operation (it is a basic_declaration,
23319 not a subprogram_declaration).
23320 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
23321 Subp. Add logic for entry processing.
23322 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
23323 Determine whether an entry or subprogram of a protected or task type
23324 override an inherited primitive of an implemented interface.
23325 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
23326 Update the actual used in calls to Check_Overriding_Indicator.
23327 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
23328 generate the proper reference to the parent unit, for cross-reference.
23329 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
23331 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
23332 (Add_Extra_Formal): Revise procedure to allow passing in associated
23333 entity, scope, and name suffix, and handle setting of the new
23334 Extra_Formals field.
23335 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
23336 pass new parameters. Add support for adding the new extra access formal
23337 for functions whose calls are treated as build-in-place.
23338 (Analyze_A_Return_Statement): Correct casing in error message.
23339 Move Pop_Scope to after Analyze_Function_Return, because an extended
23340 return statement really is a full-fledged scope. Otherwise, visibility
23341 doesn't work right. Correct use of "\" for continuation messages.
23342 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
23343 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
23344 the node doesn't get properly marked as analyzed.
23345 (Analyze_Subprogram_Body): If subprogram is a function that returns
23346 an anonymous access type that denotes a task, build a Master Entity
23348 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
23349 proper usage of null exclusion in a result definition.
23350 (Process_Formals): Code cleanup and new error message.
23351 (Process_Formals): Detect incorrect application of null exclusion to
23353 (Conforming_Types): Handle conformance between [sub]types and itypes
23354 generated for entities that have null exclusions applied to them.
23355 (Maybe_Primitive_Operation): Add an additional type retrieval when the
23356 base type is an access subtype. This case arrises with null exclusions.
23357 (New_Overloaded_Entity): Do not remove the overriden entity from the
23358 homonym chain if it corresponds with an abstract interface primitive.
23359 (Process_Formals): Replace membership test agains Incomplete_Kind with a
23360 call to the synthesized predicate Is_Incomplete_Type.
23361 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
23363 (Analyze_Subprogram_Declaration): Check that abstract interface
23364 primitives are abstract or null.
23365 (Analyze_Subprogram_Specification): Remove previous check for abstract
23366 interfaces because it was not complete.
23367 (Has_Interface_Formals): Removed.
23369 2006-10-31 Ed Schonberg <schonberg@adacore.com>
23370 Javier Miranda <miranda@adacore.com>
23372 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
23373 of Analyze_Package_Body, to create Itype references for anonymous
23374 access types created in the package declaration, whose designated types
23375 may have only a limited view.
23376 (Analyze_Package_Specification): For the private part of a nested
23377 package, install private_with_clauses of enclosing compilation unit if
23378 we are in its visible part.
23379 (Declare_Inherited_Private_Subprograms): Complete barrier
23380 to ensure that the primitive operation has an alias to some parent
23381 primitive. This is now required because, after the changes done for the
23382 implementation of abstract interfaces, the contents of the list of
23383 primitives has entities whose alias attribute references entities of
23384 such list of primitives.
23385 (Analyze_Package_Specification): Simplify code that handles parent units
23386 of instances and formal packages.
23387 (Uninstall_Declarations): Check the convention consistency among
23388 primitive overriding operations of a tagged record type.
23390 2006-10-31 Robert Dewar <dewar@adacore.com>
23391 Hristian Kirtchev <kirtchev@adacore.com>
23392 Javier Miranda <miranda@adacore.com>
23393 Ed Schonberg <schonberg@adacore.com>
23395 * sem_ch8.adb: Minor error msg rewording
23396 (Undefined): When checking for misspellings, invert arguments (to get
23397 expected and found set right)
23398 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
23399 (Analyze_Generic_Renaming): Same fix
23400 (Use_One_Package): Do not take into account the internal entities of
23401 abstract interfaces during the analysis of entities that are marked
23402 as potentially use-visible.
23403 (Find_Type): Handle the case of an attribute reference for
23404 implementation defined attribute Stub_Type (simply let the analysis of
23405 the attribute reference rewrite it).
23406 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
23407 type that appears in a Use_Type clause.
23408 (Analyze_Object_Renaming): Add support for renaming of the Priority
23410 (Find_Type): In Ada 2005, a task type can be used within its own body,
23411 when it appears in an access definition.
23412 (Analyze_Object_Renaming): Remove warning on null_exclusion.
23413 (Analyze_Object_Renaming): Introduce checks for required null exclusion
23414 in a formal object declaration or in a subtype declaration.
23415 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
23416 (Check_Null_Exclusion): New local routine to
23417 Analyze_Subprogram_Renaming. Check whether the formals and return
23418 profile of a renamed subprogram have required null exclusions when
23419 their counterparts of the renaming already impose them.
23420 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
23421 Determine whether an entity is inside a generic scope.
23422 (In_Open_Scope): First pass of documentation update.
23423 (Find_Expanded_Name): Add support for shadow entities associated with
23424 limited withed packages. This is required to handle nested packages.
23425 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
23426 that makes a renaming of a limited withed package illegal.
23428 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
23429 Ed Schonberg <schonberg@adacore.com>
23431 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
23432 Check_Overriding_Indicator.
23433 (Analyze_Task_Definition): Ditto.
23434 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
23435 (Check_Overriding_Indicator): To find overridden interface operation,
23436 examine only homonyms that have an explicit subprogram declaration, not
23437 inherited operations created by an unrelated type derivation.
23438 (Check_Overriding_Indicator): When checking for the presence of "null"
23439 in a procedure, ensure that the queried node is a procedure
23441 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
23442 type when the formal is an access to variable.
23443 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
23444 (Analyze_Task_Type): Same addition
23445 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
23446 provide navigation capabilities for entries.
23448 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
23449 Ed Schonberg <schonberg@adacore.com>
23450 Javier Miranda <miranda@adacore.com>
23451 Gary Dismukes <dismukes@adacore.com>
23453 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
23454 inherited from an interface ancestor by another interface in the
23455 context of an instance as 'late'.
23456 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
23457 of a call to a function that dispatches on access result.
23458 (Check_Dispatching_Operation): In case of late overriding of a primitive
23459 that covers abstract interface subprograms we register it in all the
23460 secondary dispatch tables associated with abstract interfaces.
23461 (Check_Dispatching_Call): Add check that a dispatching call is not made
23462 to a function with a controlling result of a limited type. This is a
23463 current implementation restriction.
23464 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
23465 (Check_Dispatching_Operation): Do no emit a warning if the controlling
23466 argument is an interface type that is a generic formal.
23467 (Is_Interface_Subprogram): Removed.
23468 (Check_Dispatching_Operation): If the subprogram is not a dispatching
23469 operation, check the formals to handle the case in which it is
23470 associated with an abstract interface type.
23472 2006-10-31 Robert Dewar <dewar@adacore.com>
23473 Ed Schonberg <schonberg@adacore.com>
23475 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
23476 Add new calls to this procedure during traversal
23477 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
23478 another unit if expansion is disabled.
23480 2006-10-31 Robert Dewar <dewar@adacore.com>
23482 * sem_eval.adb (Compile_Time_Compare): Make use of information from
23483 Current_Value in the conditional case, to evaluate additional
23484 comparisons at compile time.
23486 2006-10-31 Ed Schonberg <schonberg@adacore.com>
23487 Hristian Kirtchev <kirtchev@adacore.com>
23488 Javier Miranda <miranda@adacore.com>
23490 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
23491 subprogram type to provide better diagnostics in case of ambiguity.
23492 (Covers): Handle coverage of formal and actual anonymous access types in
23493 the context of generic instantiation.
23494 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
23495 abstract interface types; this is required to handle concurrent types
23496 with discriminants and abstract interface types.
23497 (Covers): Include type coverage of both regular incomplete subtypes and
23498 incomplete subtypes of incomplete type visibles through a limited with
23501 2006-10-31 Robert Dewar <dewar@adacore.com>
23502 Hristian Kirtchev <kirtchev@adacore.com>
23503 Ed Schonberg <schonberg@adacore.com>
23505 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
23506 messages for entities in packages which are not used.
23507 (Collect_Synchronized_Interfaces): New procedure.
23508 (Overrides_Synchronized_Primitive): New function.
23509 (Denotes_Discriminant): Extend predicate to apply to task types.
23510 Add missing continuation marks in error msgs
23511 (Unqualify): New function for removing zero or more levels of
23512 qualification from an expression. There are numerous places where this
23513 ought to be used, but we currently only deal properly with zero or one
23515 (In_Instance); The analysis of the actuals in the instantiation of a
23516 child unit is not within an instantiation, even though the parent
23517 instance is on the scope stack.
23518 (Safe_To_Capture_Value): Exclude the case of variables that are
23520 (Check_Obsolescent): Removed
23521 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
23522 is an aliased view, even when rewritten as a reference to the target
23523 object in an assignment.
23524 (Get_Subprogram_Entity): New function
23525 (Known_To_Be_Assigned): New function
23526 (Type_Access_Level): Compute properly the access level of a return
23527 subtype that is an anonymous access type.
23528 (Explain_Limited_Type): Correct use of "\" for continuation messages.
23529 (Is_Transfer): The new extended_return_statement causes a transfer of
23531 (Has_Preelaborable_Initialization): New function
23532 (Has_Null_Exclusion): New function. Given a node N, determine whether it
23533 has a null exclusion depending on its Nkind.
23534 Change Is_Lvalue to May_Be_Lvalue
23535 (May_Be_Lvalue): Extensive additional code to deal with subprogram
23536 arguments (IN parameters are not Lvalues, IN OUT parameters are).
23537 (Safe_To_Capture_Value): Extend functionality so it can be used for
23538 the current value condition case.
23539 (Has_Compatible_Alignment): New function
23540 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
23541 objects to handle the Ada 2005 case, where aliasedness no longer implies
23542 that the object is constrained. In particular, for dereferenced names,
23543 the designated object must be assumed to be unconstrained.
23544 (Kill_Current_Values): Properly deal with the case where we encounter
23545 a loop in the scope chain.
23546 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
23548 (Compile_Time_Constraint_Error): Improve error message in error case
23550 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
23551 associated with entities of abstract interface primitives.
23552 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
23554 2006-10-31 Robert Dewar <dewar@adacore.com>
23556 * s-osinte-tru64.adb:
23557 Mark Asm statements Volatile to prevent warnings (seems a
23558 reasonable change anyway)
23561 * s-mastop-irix.adb: Add Volatile to Asm statements
23562 Suppresses warning, and seems appropriate in any case
23564 * s-osinte-vms.adb: Add Volatile to Asm statement
23566 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
23568 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
23570 Add call to Check_Code_Statement
23572 2006-10-31 Robert Dewar <dewar@adacore.com>
23573 Ed Schonberg <schonberg@adacore.com>
23574 Bob Duff <duff@adacore.com>
23576 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
23577 Synchronized_Present): Add Formal_Derived_Type_Definition and
23578 Private_Extension_Declaration to the list of assertions.
23579 (Is_Entry_Barrier_Function): New flag
23580 (Has_Self_Reference): New flag on aggregates, to indicate that they
23581 contain a reference to the enclosing type, inserted through a default
23583 (Next_Rep_Item): Move from Node4 to Node5.
23584 (Entity): Add this field for N_Attribute_Definition_Clause.
23585 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
23586 (N_Return_Object_Declaration): Remove this node kind. We now use
23587 N_Object_Declaration instead.
23588 (Actual_Designated_Subtype): Move to a different place to make room in
23589 N_Extended_Return_Statement.
23590 (Procedure_To_Call): Move to a different place to make room in
23591 N_Extended_Return_Statement.
23592 (Return_Type): Removed this field to make room in return statements
23594 (Return_Statement_Entity): New field in return statements, in part to
23595 replace Return_Type, and in part to support the fact that return
23596 statements are now pushed on the scope stack during semantic analysis.
23597 (Return_Object_Declarations): New field to support extended return
23599 (N_Extended_Return_Statement): New node for extended_return_statement
23601 (N_Return_Object_Declaration): New node for part of
23602 extended_return_statement nonterminal. Needed because all the necessary
23603 fields won't fit in N_Extended_Return_Statement.
23604 Generic_associations now carry the Box_Present flag, to indicate a
23605 default for an actual in a partially parametrized formal package.
23607 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
23608 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
23609 and for the new predefined dispatching policies: EDF_Across_Priorities,
23610 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
23611 Introduce new name Stub_Type for implementation defined attribute.
23612 Add pragma Preelaborable_Initialization
23613 Add entry for Priority attribute.
23614 Add Pragma_Wide_Character_Encoding
23615 (Get_Convention_Name): Given a convention id, this function returns the
23616 corresponding name id from the names table.
23618 2006-10-31 Ed Schonberg <schonberg@adacore.com>
23619 Robert Dewar <dewar@adacore.com>
23620 Bob Duff <duff@adacore.com>
23622 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
23623 print null exclusion twice in the case of an access definition,
23624 Implement new -gnatL switch
23625 Remove N_Return_Object_Declaration. We now use
23626 N_Object_Declaration instead. Implement the case for
23627 N_Extended_Return_Statement. Alphabetize the cases.
23628 Add cases for new nodes N_Extended_Return_Statement and
23629 N_Return_Object_Declaration. The code is not yet written.
23630 Update the output for N_Formal_Object_Declaration
23631 and N_Object_Renaming_Declaration.
23632 (Write_Itype): Account for the case of a modular integer subtype whose
23633 base type is private.
23635 2006-10-31 Arnaud Charlet <charlet@adacore.com>
23637 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
23638 Remove elaboration code, now done in the binder.
23640 * s-rident.ads: Make this unit Preelaborate.
23641 (No_Restrictions): New constant used to clean up code and follow
23642 preelaborate constraints.
23645 Add System.Restrictions dependence, referenced directly from the
23646 binder generated file.
23648 2006-10-31 Gary Dismukes <dismukes@adacore.com>
23650 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
23651 True when AAMP extended floating-point is in use (48-bit). Change type
23652 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
23653 the two byte array types on AFloat. Change type of IV_Ilf overlay
23654 variable from Byte8 to ByteLF. Add appropriate initializations of
23655 floating-point overlays for AAMP cases.
23657 2006-10-31 Javier Miranda <miranda@adacore.com>
23659 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
23660 (Get_Ceiling): New subprogram that returns
23661 the ceiling priority of the protected object.
23662 (Set_Ceiling): New subprogram that sets the new ceiling priority of
23663 the protected object.
23665 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
23667 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
23669 2006-10-31 Jose Ruiz <ruiz@adacore.com>
23671 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
23672 requeuing to the same protected object to give higher priority tasks
23673 the opportunity to execute.
23675 2006-10-31 Robert Dewar <dewar@adacore.com>
23677 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
23678 add more precise check for the character sequence that follows '[' to
23679 avoid possible confusion in case if '[' is the last character of a
23681 (Scan_Wide): Always allow brackets encoding
23683 2006-10-31 Olivier Hainque <hainque@adacore.com>
23685 * s-stchop.ads: make this unit preelaborate. This is desirable in
23686 general and made mandatory by the use of this unit by s-taprop which
23687 is itself preelaborate.
23689 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
23690 Td_Events component.
23692 2006-10-31 Vincent Celier <celier@adacore.com>
23694 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
23697 2006-10-31 Vincent Celier <celier@adacore.com>
23699 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
23701 2006-10-31 Vincent Celier <celier@adacore.com>
23703 * makegpr.adb (Check_Compilation_Needed): Take into account path names
23705 (Check_Compilation_Needed): When checking a C or C++ source, do not
23706 resolve symbolic links.
23707 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
23708 When not in verbose mode and Ellipse is True, display "..." for the
23709 first argument with Display set to False.
23710 (Build_Global_Archive): Always set Display True for the first object
23711 file. Call Display_Command with Ellipse set to True.
23713 2006-10-31 Matt Heaney <heaney@adacore.com>
23715 * a-crbtgo.ads: Commented each subprogram
23717 * a-crbtgo.adb: Added reference to book from which algorithms were
23720 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
23721 indicate which child.
23722 (Generic_Conditional_Insert): changed parameter name from "Success" to
23724 (Generic_Unconditional_Insert_With_Hint): improved algorithm
23726 * a-coorse.adb (Replace_Element): changed parameter name in call to
23727 conditional insert operation.
23729 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
23731 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
23734 * a-ciorse.adb (Replace_Element): changed parameter name in call to
23735 conditional insert operation.
23737 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
23740 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
23741 instead of mode inout.
23743 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
23745 (Generic_Read): preserve existing buckets array if possible
23746 (Generic_Write): don't send buckets array length anymore
23748 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
23749 instead of mode inout.
23751 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
23752 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
23754 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
23755 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
23756 (Replace_Element): local operation is now an instantiation
23758 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
23759 check current length.
23760 (Generic_Replace_Element): new operation
23762 2006-10-31 Doug Rupp <rupp@adacore.com>
23764 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
23765 Call TBK$SYMBOLIZE without omitting parameters.
23767 2006-10-31 Vincent Celier <celier@adacore.com>
23769 * symbols-processing-vms-ia64.adb,
23770 symbols-processing-vms-alpha.adb (Process): Do not include symbols
23771 that come from generic instantiations in bodies.
23773 2006-10-31 Pat Rogers <rogers@adacore.com>
23775 * a-rttiev.ads, a-rttiev.adb:
23776 This is a significant redesign primarily for the sake of automatic
23777 timer task termination but also to fix a design flaw.
23778 Therefore we are now using an RTS lock, instead of a protected
23779 object, to provide mutual exclusion to the queue of pending events
23780 and the type Timing_Event is no longer a protected type.
23782 2006-10-31 Robert Dewar <dewar@adacore.com>
23783 Cyrille Comar <comar@adacore.com>
23784 Ben Brosgol <brosgol@adacore.com>
23786 * debug.adb: Update flags documentation
23788 * gnat_ugn.texi: Add documentation for new -gnatwq switch
23789 Clean up documentation for several other warning switches
23790 Clarify how task stack size can be specified with various
23791 versions of Windows.
23792 Add note that -gnatVo includes ranges including loops
23793 Add documentation for -gnatL switch
23794 Add note on elaboration warning for initializing variables
23795 Add documentation for new -gnatwt warning switch
23796 Document new form of pragma Warnings (On|Off, string)
23797 Add comment on use of pragma Warnings to control warnings
23798 Add documentation for -gnatjnn switch
23799 Modify section on interfacing with C for VMS 64-bit.
23800 Add doc for -gnatVe/E
23801 Add documentation of new warning flags -gnatww/-gnatwW
23802 Add warnings about address clause overlays to list of warnings
23803 (Exception Handling Control): Document that the option --RTS must be
23804 used consistently for gcc and gnatbind.
23805 Clarify that inlining is not always possible
23806 Update documentation on pragma Unchecked_Union.
23809 Add documentation for new extended version of pragma Obsolescent
23810 Add documentation for implementation defined attribute 'Stub_Type.
23811 Add note on use of Volatile in asm statements
23812 Add documentation on use of pragma Unreferenced in context clause
23813 Document new form of pragma Warnings (On|Off, pattern)
23814 Document pragma Wide_Character_Encoding
23815 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
23816 enforced if code generation is active.
23817 Add section on pragma Suppress to document GNAT specific check
23819 Clarify difference between No_Dispatching_Calls & No_Dispatch.
23820 Add documentation for pragma Restrictions (No_Elaboration_Code)
23823 Add comments on layout of subprogram local variables in the
23824 presence of nested subprograms.
23826 * ug_words: Resync.
23828 * elists.ads: Minor reformatting
23829 Node returns Node_Or_Entity_Id (doc change only)
23831 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
23833 * g-arrspl.ads (Create): Update comments.
23835 * sem.ads: Add details on the handling of the scope stack.
23837 * usage.adb: Update documentation.
23839 * validsw.ads, validsw.adb:
23840 Add definition of Validity_Check_Components and implement -gnatVe/E
23842 * vms_data.ads: Add missing VMS qualifiers.
23844 * s-addope.ads: Add documentation on overflow and divide by zero
23846 2006-10-31 Robert Dewar <dewar@adacore.com>
23847 Thomas Quinot <quinot@adacore.com>
23848 Arnaud Charlet <charlet@adacore.com>
23850 * fmap.adb: Put routines in alpha order
23852 * g-boumai.ads: Remove redundant 'in' keywords
23854 * g-cgi.adb: Minor reformatting
23856 * g-cgi.ads: Remove redundant 'in' keywords
23858 * get_targ.adb: Put routines in alpha order
23860 * prj-attr.ads: Minor reformatting
23862 * s-atacco.ads: Minor reformatting
23864 * scn.adb: Put routines in alpha order
23866 * sinput-l.adb: Minor comment fix
23868 * sinput-p.adb: Minor comment fix
23870 * s-maccod.ads: Minor reformatting
23872 * s-memory.adb: Minor reformatting
23874 * s-htable.adb: Fix typo in comment.
23876 * s-secsta.adb: Minor comment update.
23878 * s-soflin.adb: Minor reformatting
23881 Add comment about odd qualification in Storage_Offset declaration
23884 Remove unnecessary 'in' keywords for formal parameters.
23886 * treeprs.adt: Minor reformatting
23888 * urealp.adb: Put routines in alpha order
23890 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
23893 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
23895 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
23897 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
23898 workaround as on other platforms.
23900 * g-eacodu-vms.adb: Remove redundant 'in' keywords
23901 * g-expect-vms.adb: Remove redundant 'in' keywords
23903 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
23904 clear error message if the list-of-files file cannot be opened.
23906 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
23907 equality operator is always visible.
23909 * lang.opt: Woverlength-strings: New option.
23912 Update copyright, since nmake.ads and nmake.adb have changed.
23914 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
23915 (Binder_Output_Time_Stamps_Set): removed.
23916 (Old_Binder_Output_Time_Stamp): idem.
23917 (New_Binder_Output_Time_Stamp): idem.
23918 (Recording_Time_From_Last_Bind): idem.
23919 (Recording_Time_From_Last_Bind): Make constant.
23921 * output.ads, output.adb (Write_Str): Allow LF characters
23922 (Write_Spaces): New procedure
23924 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
23926 * inline.adb: Minor reformatting
23928 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
23930 * s-mastop-vms.adb: Remove redundant 'in' keywords
23932 * s-osprim-vms.adb: Remove redundant 'in' keywords
23934 * s-trafor-default.adb: Remove redundant 'in' keywords
23936 * 9drpc.adb: Remove redundant 'in' keywords
23938 * s-osinte-mingw.ads: Minor reformatting
23940 * s-inmaop-posix.adb: Minor reformatting
23942 * a-direio.ads: Remove quotes from Compile_Time_Warning message
23944 * a-exexda.adb: Minor code reorganization
23946 * a-filico.adb: Minor reformatting
23948 * a-finali.adb: Minor reformatting
23950 * a-nudira.ads: Remove quote from Compile_Time_Warning message
23952 * a-numeri.ads: Minor reformatting
23954 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
23956 * exp_pakd.ads: Fix obsolete comment
23958 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
23959 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
23960 Probably not a bug, but certainly neater and more efficient.
23962 * a-tienio.adb: Minor reformatting
23964 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
23965 Avoid assuming low bound of string is 1.
23967 * gnatbind.adb: Change Bindusg to package and rename procedure as
23968 Display, which now ensures that it only outputs usage information once.
23969 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
23971 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
23974 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
23976 (Match): Add pragma Assert to ensure that Matches'First is zero
23978 * g-regpat.ads (Match): Document that Matches lower bound must be zero
23980 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
23981 documented preconditions (also kills warnings about bad indexes).
23983 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
23985 (Build_Import_Library): Ditto;
23987 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
23989 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
23991 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
23992 lower bound of choice table is 1.
23994 * sem_case.ads (Analyze_Choices): Document that lower bound of
23997 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
24000 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
24001 and add appropriate Assert pragma to suppress warnings.
24003 * atree.h, atree.ads, atree.adb
24004 Change Elist24 to Elist25
24005 Add definitions of Field28 and Node28
24006 (Traverse_Field): Use new syntactic parent table in sinfo.
24008 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
24010 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
24012 * exp_tss.adb: Put routines in alpha order
24014 * fe.h: Remove redundant declarations.
24016 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
24018 * utils.c (builtin_function): Rename to gnat_builtin_function.
24019 Move common code to add_builtin_function.
24020 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
24021 gnat_builtin_function.
24022 * gigi.h (builtin_function): Rename to gnat_builtin_function.
24023 Change the signature.
24025 2006-10-16 Brooks Moses <bmoses@stanford.edu>
24027 * Makefile.in: Add TEXI2PDF definition.
24028 * Make-lang.in: Add "ada.pdf" target.
24030 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
24032 * decl.c, utils.c: Fix comment typos.
24033 * utils.c: Fix a typo.
24035 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
24037 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
24038 on "pure" Ada subprograms if SJLJ exceptions are used.
24039 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
24040 on the declaration node of JMPBUF_SAVE.
24041 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
24042 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
24043 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
24045 2006-08-20 Laurent Guerby <laurent@guerby.net>
24048 g-socket.adb (Bind_Socket): Call Set_Address.
24050 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
24053 * decl.c (same_discriminant_p): New static function.
24054 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
24055 subtype and we have discriminants, fix up the COMPONENT_REFs
24056 for the discriminants to make them reference the corresponding
24057 fields of the parent subtype after it has been built.
24059 2006-09-15 Roger Sayle <roger@eyesopen.com>
24062 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
24063 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
24065 2006-09-13 Olivier Hainque <hainque@adacore.com>
24068 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
24069 of a SAVE_EXPR, just make the operand addressable/not-readonly and
24070 let the common gimplifier code make and propagate a temporary copy.
24071 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
24072 out/in-out actuals and defer setting the addressable/readonly bits
24075 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
24078 * decl.c (components_to_record): Defer emitting debug info for the
24079 record type associated with the variant until after we are sure to
24082 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
24085 * gigi.h (gnat_internal_attribute_table): Declare.
24086 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
24087 * utils.c (gnat_internal_attribute_table): New global variable.
24088 (builtin_function): Always call decl_attributes on the builtin.
24089 (handle_const_attribute): New static function.
24090 (handle_nothrow_attribute): Likewise.
24092 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
24094 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
24096 2006-06-23 Olivier Hainque <hainque@adacore.com>
24098 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
24099 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
24101 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
24102 Eric Botcazou <ebotcazou@adacore.com>
24105 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
24106 check-gnat into check-acats.
24108 2006-06-17 Karl Berry <karl@gnu.org>
24110 * gnat-style.texi (@dircategory): Use "Software development"
24111 instead of "Programming", following the Free Software Directory.
24113 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24116 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
24118 2006-06-06 Laurent Guerby <laurent@guerby.net>
24121 mlib-utl.adb: Use Program_Name.
24123 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
24125 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
24126 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
24127 trans.c, utils.c: Fix comment typos. Follow spelling
24129 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
24132 2006-05-19 Nicolas Setton <setton@adacore.com>
24134 * misc.c (gnat_dwarf_name): New function.
24135 (LANG_HOOKS_DWARF_NAME): Define to it.
24137 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
24139 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
24140 (ada/misc.o): Likewise.
24141 (ada/utils.o): Likewise.
24143 2006-04-08 Aurelien Jarno <aurel32@debian.org>
24145 * Makefile.in: Add Ada support for GNU/kFreeBSD.
24146 * s-osinte-kfreebsd-gnu.ads: New file.
24148 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
24150 * Make-lang.in: Rename docdir to gcc_docdir.
24152 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
24154 * gigi.h (get_ada_base_type): Delete.
24155 * utils2.c (get_ada_base_type): Likewise.
24156 * trans.c (convert_with_check): Operate in the real base type.
24158 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24160 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
24162 2006-03-02 Richard Sandiford <richard@codesourcery.com>
24164 * utils.c (create_var_decl): Use have_global_bss_p when deciding
24165 whether to make the decl common.
24167 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
24169 * Make-lang.in (Ada): Remove.
24170 (.PHONY): Remove Ada
24172 2006-02-17 Ed Schonberg <schonberg@adacore.com>
24174 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
24175 aggregate, check the interpretations of the other operand to find one
24176 that may be a boolean array.
24178 (Analyze_Selected_Component): Fix flow-of-control typo in case where
24179 the prefix is a private extension.
24181 2006-02-17 Eric Botcazou <botcazou@adacore.com>
24184 * utils2.c (find_common_type): If both input types are BLKmode and
24185 have the same constant size, keep using the first one.
24187 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
24189 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
24191 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
24193 2006-02-17 Jose Ruiz <ruiz@adacore.com>
24195 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
24196 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
24197 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
24198 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
24199 Abort_Defer/Undefer pairs to avoid the possibility of a task being
24200 aborted while owning a lock.
24202 2006-02-17 Javier Miranda <miranda@adacore.com>
24203 Robert Dewar <dewar@adacore.com>
24205 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
24206 through an access to class-wide interface we force the displacement of
24207 the pointer to the allocated object to reference the corresponding
24208 secondary dispatch table.
24209 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
24210 if Long_Shifts are supported on the target, even if 64 bit divides
24211 are not supported (configurable run time mode).
24212 (Expand_N_Type_Conversion): Do validity check if validity checks on
24213 operands are enabled.
24214 (Expand_N_Qualified_Expression): Do validity check if validity checks
24215 on operands are enabled.
24217 2006-02-17 Ed Schonberg <schonberg@adacore.com>
24219 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
24220 must be materialized when the renamed expression is an explicit
24223 2006-02-17 Ed Schonberg <schonberg@adacore.com>
24225 * freeze.adb (Statically_Discriminated_Components): Return false if
24226 the bounds of the type of the discriminant are not static expressions.
24228 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
24229 the bounds of the discriminant type are not static.
24231 2006-02-17 Robert Dewar <dewar@adacore.com>
24233 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
24234 then we close To if it is valid.
24236 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
24238 * init.c (facility_resignal_table): new array
24239 (__gnat_default_resignal_p): enhance default predicate to resignal if
24240 VMS condition has one of the predefined facility codes.
24242 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
24244 * Makefile.in: Use VMS64 specialized versions of several units in
24245 Interfaces.C hierarchy to be compatible with HP C default size choices.
24246 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
24248 2006-02-17 Ed Schonberg <schonberg@adacore.com>
24250 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
24251 instantiation, the corresponding entity is the related_instance of the
24252 wrapper package created for the instance.
24254 2006-02-17 Ed Schonberg <schonberg@adacore.com>
24256 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
24257 the current instance is nested within another instance in a child unit.
24259 2006-02-17 Javier Miranda <miranda@adacore.com>
24260 Ed Schonberg <schonberg@adacore.com>
24262 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
24263 type we cannot inherit the primitive operations; we inherit the
24264 Corresponding_Record_Type (which has the list of primitive operations).
24265 (Check_Anonymous_Access_Types): When creating anonymous access types for
24266 access components, use Rewrite in order to preserve the tree structure,
24268 (Analyze_Object_Declaration): For limited types with access
24269 discriminants with defaults initialized by an aggregate, obtain
24270 subtype from aggregate as for other mutable types.
24271 (Derived_Type_Declaration): If the derived type is a limited interface,
24272 set the corresponding flag (Is_Limited_Record is not sufficient).
24274 2006-02-17 Ed Schonberg <schonberg@adacore.com>
24276 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
24277 to inline a function that returns an unconstrained type, the return
24278 expression must be the first variable declared in the body of the
24281 2006-02-17 Javier Miranda <miranda@adacore.com>
24283 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
24284 abstract interface type, the static analysis is not enough to know if
24285 the interface is implemented or not by the source tagged type. Hence
24286 we must pass the work to the expander to generate the required code to
24287 evaluate the conversion at run-time.
24288 (Resolve_Equality_Op): Do not apply previous
24289 transformation if expansion is disasbled, to prevent anomalies when
24290 locating global references in a generic unit.
24292 2006-02-17 Vincent Celier <celier@adacore.com>
24294 * snames.ads, snames.adb: New standard names for new project attributes:
24295 archive_builder, archive_indexer, compiler_pic_option,
24296 config_body_file_name, config_body_file_name_pattern,
24297 config_file_switches, config_file_unique, config_spec_file_name,
24298 config_spec_file_name_pattern, default_builder_switches,
24299 default_global_compiler_switches, default_language,
24300 dependency_file_kind, global_compiler_switches, include_path,
24301 include_path_file, language_kind, linker_executable_option,
24302 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
24303 roots, runtime_project.
24305 2006-02-17 Matthew Heaney <heaney@adacore.com>
24307 * a-convec.ads, a-convec.adb:
24308 (operator "&"): handle potential overflow for large index types
24309 (Insert): removed Contraint_Error when using large index types
24310 (Insert_Space): removed Constraint_Error for large index types
24311 (Length): moved constraint check from Length to Insert
24313 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
24314 as not null access.
24315 Explicit raise statements now include an exception message.
24316 (operator "&"): handle potential overflow for large index types
24317 (Insert): removed Contraint_Error when using large index types
24318 (Insert_Space): removed Constraint_Error for large index types
24319 (Length): moved constraint check from Length to Insert
24321 2006-02-17 Robert Dewar <dewar@adacore.com>
24323 * s-wchcnv.adb: Document handling of [ on output (we do not change
24324 this to ["5B"] and the new comments say why not.
24327 Add note for -gnatVo that this now includes the cases of type
24328 conversions and qualified expressions.
24329 Add comments on handling of brackets encoding for Text_IO
24331 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
24332 Thomas Quinot <quinot@adacore.com>
24333 Robert Dewar <dewar@adacore.com>
24334 Javier Miranda <miranda@adacore.com>
24336 * expander.adb: Fix typo in comment
24338 * exp_pakd.adb: Fix typo
24339 Minor comment reformatting.
24341 * g-dyntab.adb: Minor reformatting
24343 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
24344 aliased subprograms to look for the abstract interface subprogram.
24346 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
24348 * env.c (__gnat_setenv): Use size_t.
24349 (__gnat_unsetenv): Likewise.
24350 (__gnat_clearenv): Likewise.
24352 2006-02-16 Arnaud Charlet <charlet@adacore.com>
24354 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
24356 2006-02-13 Arnaud Charlet <charlet@adacore.com>
24358 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
24359 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
24360 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
24361 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
24362 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
24363 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
24364 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
24365 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
24366 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
24369 2006-02-13 Jose Ruiz <ruiz@adacore.com>
24371 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
24372 protection against race conditions is not needed.
24373 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
24375 (Set_Specific_Handler): Add mutual exclusive access to the specific
24377 (Specific_Handler): Add mutual exclusive access for retrieving the
24380 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
24383 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
24384 Fall_Back_Handler and Specific_Handler.
24386 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
24387 termination handlers.
24388 Set two different owerflow depending on the maximal stack size.
24390 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
24391 protection against race conditions is not needed when executing the
24392 task termination handler.
24394 2006-02-13 Robert Dewar <dewar@adacore.com>
24396 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
24397 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
24398 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
24399 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
24400 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
24401 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
24402 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
24403 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
24404 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
24405 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
24406 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
24407 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
24408 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
24409 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
24410 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
24411 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
24412 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
24413 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
24414 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
24415 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
24416 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
24417 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
24418 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
24419 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
24420 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
24421 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
24422 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
24423 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
24424 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
24425 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
24426 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
24427 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
24428 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
24429 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
24432 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
24434 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
24435 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
24436 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
24437 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
24438 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
24439 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
24440 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
24441 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
24442 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
24444 2006-02-13 Arnaud Charlet <charlet@adacore.com>
24446 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
24447 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
24448 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
24449 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
24450 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
24451 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
24452 replaced by anonymous access type.
24453 (pthread_sigmask): Now take an access sigset_t
24455 * s-osinte-hpux.ads: Ditto.
24456 (pthread_mutex_t, pthread_cond_t): Update definitions to support
24457 properly 32 and 64 bit ABIs.
24459 2006-02-13 Pascal Obry <obry@adacore.com>
24461 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
24462 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
24463 s-taprop-linux.adb, s-taprop-solaris.adb,
24464 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
24465 adjustement is already done when calling this routine.
24467 2006-02-13 Pascal Obry <obry@adacore.com>
24469 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
24470 table to take advantage of the 16 priority levels available on Windows
24471 2000 and XP. On NT4 there are only 7 priority levels, this is properly
24472 supported by this new mapping.
24474 2006-02-13 Nicolas Setton <setton@adacore.com>
24476 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
24477 (get_encoding): New subprogram. Extracts the encodings from an encoded
24480 2006-02-13 Pascal Obry <obry@adacore.com>
24481 Nicolas Roche <roche@adacore.com>
24482 Arnaud Charlet <charlet@adacore.com>
24484 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
24486 (__gnat_try_lock): Add unicode support by using a specific section on
24488 (__gnat_get_current_dir): Idem.
24489 (__gnat_open_read): Idem.
24490 (__gnat_open_rw): Idem.
24491 (__gnat_open_create): Idem.
24492 (__gnat_create_output_file): Idem.
24493 (__gnat_open_append): Idem.
24494 (__gnat_open_new): Idem.
24495 (__gnat_file_time_name): Idem.
24496 (__gnat_set_file_time_name): Idem.
24497 (__gnat_stat): Idem.
24498 (win32_no_block_spawn): Idem.
24499 (__gnat_locate_exec_on_path): Idem.
24500 (__gnat_opendir): New routine.
24501 (__gnat_closedir): Idem.
24502 (__gnat_readdir): Add new parameter length (pointer to int). Update
24503 implementation to use it and add specific Win32 code for Unicode
24505 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
24506 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
24507 (convert_addresses): Do not define this dummy routine on VMS.
24509 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
24510 runtime Unicode support will be activated.
24511 (S2WS): String to Wide-String conversion. This version just copy a
24512 string in non Unicode version.
24513 (WS2S): Wide-String to String conversion. This version just copy a
24514 string in non Unicode version.
24516 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
24517 (Open): Now import __gnat_opendir from adaint.c.
24518 (Read): Change the implementation to support unicode characters. It is
24519 not possible to use strlen() on Windows as this version supports only
24520 standard ASCII characters. So the length of the directory entry is now
24521 returned from the imported __gnat_readdir routine.
24522 Update copyright notice.
24524 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
24525 (opendir): Moved to adaint.c.
24527 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
24528 (Get_Directory): Fix wrong indexing.
24529 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
24530 __gnat_getenv from env.c
24531 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
24534 * env.h, env.c: New file.
24536 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
24537 adaint.c by __gnat_getenv from env.c
24539 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
24540 adaint.c by __gnat_getenv from env.c
24542 * Make-lang.in: Add env.o in the list of C object needed by gnat1
24544 Update dependencies.
24546 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24547 Olivier Hainque <hainque@adacore.com>
24548 Eric Botcazou <ebotcazou@adacore.com>
24550 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
24552 * gigi.h (value_factor_p): Add prototype and description, now public.
24554 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
24555 promotion for field with rep clause if the associated size was proven
24557 Expand comments describing attempts to use a packable type.
24558 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
24559 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
24560 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
24561 necessary since these are not different types and pointers may
24562 actually designate any subtype in this hierarchy.
24563 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
24564 discriminants but put them into record only if not Unchecked_Union;
24565 pass flag to components_to_record showing Unchecked_Union.
24566 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
24567 components before variants; don't set TYPE_UNCHECKED_UNION_P.
24568 (components_to_record): New argument UNCHECKED_UNION.
24569 Remove special case code for Unchecked_Union and instead use main code
24570 with small changes.
24573 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
24574 variable with the expression being built, only its inner field.
24576 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
24577 emit_sequence_entry_statements.
24578 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
24579 (establish_gnat_vms_condition_handler): Move before
24580 Subprogram_Body_to_gnu.
24581 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
24582 for a subprogram if it has a foreign convention or is exported.
24583 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
24584 substituted for a CONST_DECL.
24585 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
24586 Etype to assoc_to_constructor.
24587 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
24588 discriminants of Unchecked_Union.
24589 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
24590 don't need cluttering preprocessor directives.
24591 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
24592 condition handler as current in the compiled function.
24593 (body_with_handlers_p): New function. Tell whether a given sequence of
24594 statements node is attached to a package or subprogram body and involves
24595 exception handlers possibly nested within inner block statements.
24596 (emit_sequence_entry_statements): New function, to emit special
24597 statements on entry of sequences when necessary. Establish GNAT
24598 condition handler in the proper cases for VMS.
24599 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
24600 emit_sequence_entry_statements.
24602 * utils2.c (find_common_type): If both input types are BLKmode and
24603 have a constant size, use the smaller one.
24604 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
24607 * utils.c (value_factor_p): Make public, to allow uses from other gigi
24609 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
24610 (convert, case UNION_TYPE): Remove special treatment for unchecked
24614 (update_pointer_to): Update variants of pointer types to unconstrained
24615 arrays by attaching the list of fields of the main variant.
24617 2006-02-13 Arnaud Charlet <charlet@adacore.com>
24618 Robert Dewar <dewar@adacore.com>
24620 * a-exexpr.adb, a-exexpr-gcc.adb
24621 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
24622 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
24623 Remove code unused for exception propagation for the compiler itself
24624 from a-except.adb and update to still share separate packages.
24626 * a-except.ads, a-except.adb: Ditto.
24627 Add comments that this version is now used only by the compiler and
24628 other basic tools. The full version that includes the Ada 2005 stuff
24629 is in separate files a-except-2005.ads/adb. The reason is that we do
24630 not want to cause bootstrap problems with compilers not recognizing
24632 Add exception reason code PE_Implicit_Return
24633 Add new exception reason code (Null Exception_Id)
24635 * a-except-2005.adb, a-except-2005.ads: New files.
24637 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
24639 * s-wchcon.adb: New file.
24641 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
24642 (traceback.o deps): Likewise.
24643 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
24644 Activate build of GMEM instrumentation library on VMS targets.
24645 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
24646 Use a-except-2005.ads/adb for all run-time library builds unless
24647 specified otherwise.
24648 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
24649 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
24650 Use s-parame.adb on all native platforms.
24651 Use s-parame-vxworks.adb on all vxworks platforms.
24652 Add env.c env.h in LIBGNAT_SRCS
24653 Add env.o in LIBGNAT_OBJS
24654 (GNATMAKE_OBJS): Remove ctrl_c.o object.
24655 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
24656 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
24657 supports VxWorks 6 RTPs.
24658 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
24659 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
24661 * types.h, types.ads (Terminate_Program): New exception
24662 Add comment on modifying multiple versions of a-except.adb when the
24663 table of exception reasons is modified.
24664 Add exception reason code PE_Implicit_Return
24665 Add new exception reason code (Null Exception_Id)
24667 * clean.adb (Initialize): Get the target parameters before checking
24668 if target is OpenVMS. Move the OpenVMS specific code here from package
24669 body elaboration code.
24671 2006-02-13 Thomas Quinot <quinot@adacore.com>
24672 Vincent Celier <celier@adacore.com>
24673 Robert Dewar <dewar@adacore.com>
24675 * ali-util.adb (Get_File_Checksum): Update to account for change in
24676 profile of Initialize_Scanner.
24678 * gprep.adb (Gnatprep): Update to account for change in profile of
24679 Initialize_Scanner.
24680 (Process_One_File): Same.
24682 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
24683 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
24684 that behaviour using the new Unit information recorded in the source
24685 files table, rather than going through all units every time.
24686 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
24687 (Get_Source_Unit): Same.
24689 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
24690 change in profile of Initialize_Scanner.
24691 (Prepare_To_Preprocess): Same.
24693 * lib.ads: Fix typo in comment (templace -> template).
24695 * prj-part.adb (Parse_Single_Project): Update to account for change in
24696 profile of Initialize_Scanner.
24698 * scn.adb (Initialize_Scanner): Account for change in profile of
24699 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
24700 Also record the association of the given Source_File_Index to the
24701 corresponding Unit_Number_Type.
24703 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
24705 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
24706 Remove Unit formal for generic scanner: this formal
24707 is only relevant to Scn (the scanner instance used to parse Ada source
24708 files), not to other instances. Update comment accordingly.
24709 (Scan): Use new function Snames.Is_Keyword_Name.
24711 * sinfo-cn.adb: Fix typo in comment.
24713 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
24716 * sinput.ads (Source_File_Record): New component Unit, used to capture
24717 the unit identifier (if any) associated to a source file.
24719 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
24720 Unit in Source_File_Record.
24722 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
24723 in profile of Initialize_Scanner.
24725 * scans.adb (Initialize_Ada_Keywords): New procedure
24727 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
24728 Ada keywords in the Namet table, without the need to call
24729 Initialize_Scanner.
24731 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
24732 (Is_Keyword_Name): New function
24734 * snames.ads: Add subtype Configuration_Pragma_Names
24735 Add pragma Ada_2005 (synonym for Ada_05)
24736 (Is_Keyword_Name): New function
24738 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
24740 2006-02-13 Arnaud Charlet <charlet@adacore.com>
24742 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
24745 * a-stwima.adb (To_Set): Add extra check when N = 0.
24747 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
24749 2006-02-13 Arnaud Charlet <charlet@adacore.com>
24751 * s-parame-mingw.adb, s-parame-linux.adb,
24752 s-parame-solaris.adb: Removed, replaced by s-parame.adb
24754 * s-parame-vxworks.ads: Fix typo.
24756 * s-parame-vxworks.adb: New file.
24758 * s-parame.adb: Version now used by all native platforms.
24759 (Default_Stack_Size): Use 2 megs for default stack size and use
24760 __gl_default_stack_size when available.
24761 (Minimum_Stack_Size): Use 12K.
24763 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
24764 (Create_Task): Refine implementation taking advantage of the XP stack
24765 size support. On XP, we now create the thread using the flag
24766 STACK_SIZE_PARAM_IS_A_RESERVATION.
24768 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
24770 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
24771 XP and 0 on older Windows versions.
24773 * interfac-vms.ads: Removed, no longer used.
24775 2006-02-13 Matthew Heaney <heaney@adacore.com>
24777 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
24778 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
24779 a-cohase.adb: All explicit raise statements now include an exception
24782 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
24783 (Update_Element_Preserving_Key): renamed op to just Update_Element.
24784 Explicit raise statements now include an exception message
24786 * a-cihase.ads, a-cohase.ads: Removed comment.
24788 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
24789 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
24790 a-szbzha.adb, a-szfzha.ads: New files.
24792 2006-02-13 Matthew Heaney <heaney@adacore.com>
24794 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
24797 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
24799 * lang.opt: Wvariadic-macros: New option.
24800 Wold-style-definition: Likewise.
24801 Wmissing-format-attribute: Likewise.
24803 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
24804 -Wold-style-definition and -Wmissing-format-attribute.
24806 2006-02-13 Robert Dewar <dewar@adacore.com>
24808 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
24810 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
24812 2006-02-13 Nicolas Roche <roche@adacore.com>
24814 * a-envvar.adb, a-envvar.ads: New files.
24816 2006-02-13 Douglas Rupp <rupp@adacore.com>
24818 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
24820 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
24822 2006-02-13 Pat Rogers <rogers@adacore.com>
24824 * a-rttiev.adb, a-rttiev.ads: New files.
24826 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
24828 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
24829 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
24831 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
24833 2006-02-13 Robert Dewar <dewar@adacore.com>
24835 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
24836 sem_case.adb: Minor code reorganization (not Present should be No)
24838 2006-02-13 Geert Bosch <bosch@adacore.com>
24839 Gary Dismukes <dismukes@adacore.com>
24841 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
24842 0, since the lower bound of the actual string may be greater than one.
24845 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
24846 layout is requested.
24848 2006-02-13 Vincent Celier <celier@adacore.com>
24850 * back_end.adb (Scan_Compiler_Arguments): Check if
24851 Search_Directory_Present is True and, if it is, add the argument in
24852 the source search directory path.
24854 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
24855 Search_Directory_Present to True.
24857 2006-02-13 Joel Brobecker <brobecke@adacore.com>
24859 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
24860 volatile, to tell the compiler to preserve this variable at any level
24862 (Gen_Versions_Ada): Temporarily work around codegen bug.
24864 2006-02-13 Vincent Celier <celier@adacore.com>
24866 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
24867 gcc to link with option -shared-libgcc.
24868 (Gnatlink): Remove duplicate switches -shared-libgcc
24870 2006-02-13 Robert Dewar <dewar@adacore.com>
24872 * gnatvsn.ads (Current_Year): New constant, used to easily update
24873 copyright on all GNAT tools.
24875 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
24878 2006-02-13 Robert Dewar <dewar@adacore.com>
24880 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
24881 after hyphen (small aesthetic change useful for a range of numbers
24883 Suppress range checks for a couple of assignments which otherwise
24884 cause validity checks with validity checking turned on.
24886 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
24887 Improvement in error message for object.
24888 (Rep_Item_Too_Late): Remove '!' in warning message.
24890 2006-02-13 Robert Dewar <dewar@adacore.com>
24891 Eric Botcazou <ebotcazou@adacore.com>
24893 * err_vars.ads: Suppress range checks for a couple of assignments
24894 which otherwise cause validity checks with validity checking turned on.
24897 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
24898 Make message unconditional if it is a warning.
24899 (Error_Msg_NEL): Always output warning messages.
24900 Suppress range checks for a couple of assignments which otherwise
24901 cause validity checks with validity checking turned on.
24903 * errout.ads (Message Insertion Characters): Document that '!' is
24904 implied by '?' in error messages.
24906 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
24907 (Gnat1drv): Use a goto to end of main subprogram instead of
24908 Exit_Program (E_Success) so that finalization can occur normally.
24910 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
24912 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
24915 2006-02-13 Vincent Celier <celier@adacore.com>
24917 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
24918 Unchecked_Conversion functions.
24919 (Modification_Time): Use direct conversion of OS_Time to Calendar time
24920 when OpenVMS returns False.
24922 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
24923 a-dirval.adb (OpenVMS): New Boolean function
24925 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24926 Thomas Quinot <quinot@adacore.com>
24928 * checks.adb (Build_Discriminant_Checks): If the expression being
24929 checks is an aggregate retrieve the values of its discriminants to
24930 generate the check, rather than creating a temporary and a reference
24932 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
24933 (Install_Null_Excluding_Check): Ditto
24934 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
24935 not for the renamed object, so that the actual itype is attached in the
24938 2006-02-13 Robert Dewar <dewar@adacore.com>
24939 Vincent Celier <celier@adacore.com>
24941 * debug.adb: Eliminate numeric switches for binder/gnatmake
24943 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
24944 switches for the compiler.
24945 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
24946 (Scan_Make_Switches): When failing with an illegal switch, output an
24947 error message with the full switch.
24948 Eliminate numeric switches for binder/gnatmake
24950 * switch.ads, switch.adb (Bad_Switch): New procedure
24952 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
24953 Remove 0-9 as debug flag character possibilities
24954 -d is now controlling the primary stack size when its value is a
24955 positive. Also add checks against invalid values, and support for kb,
24956 mb. Ditto for -D switch.
24958 2006-02-13 Robert Dewar <dewar@adacore.com>
24959 Serguei Rybin <rybin@adacore.com>
24961 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
24962 save/restore routines.
24963 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24964 were not always properly handled previously.
24965 Since we are changing the tree format anyway, also get rid of the
24966 junk obsolete Immediate_Errors flag.
24967 (Tree_Read): Change the way of reading Tree_Version_String - now we
24968 read the version string from the tree even if its length is not the
24969 same as the length of the version string computed from Gnatvsn.
24970 (Search_Directory_Present): New Boolean flag for the compiler.
24971 Define Tree_Version_String as a dynamic string.
24972 (Default_Stack_Size): new variable, used to handle switch -d.
24975 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
24976 only for main unit.
24977 Add pragma Ada_2005 (synonym for Ada_05)
24978 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24979 were not always properly handled previously.
24981 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
24982 explicit Ada_95 to Ada_2005.
24984 2006-02-13 Javier Miranda <miranda@adacore.com>
24985 Robert Dewar <dewar@adacore.com>
24986 Ed Schonberg <schonberg@adacore.com>
24988 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
24989 against errors in the source program: a private types for which the
24990 corresponding full type declaration is missing and pragma CPP_Virtual
24992 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
24993 (Is_Known_Null): New flag
24994 (Has_Pragma_Pure): New flag
24995 (No_Return): Present in all entities, set only for procedures
24996 (Is_Limited_Type): A type whose ancestor is an interface is limited if
24997 explicitly declared limited.
24998 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
24999 entities. Only used for component marked Is_Tag. If present it stores
25000 the Offset_To_Top function used to provide this value in tagged types
25001 whose ancestor has discriminants.
25003 * exp_ch2.adb: Update status of new Is_Known_Null flag
25005 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
25007 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
25008 the categorization sense if Is_Pure was set by pragma Pure_Function.
25010 2006-02-13 Quentin Ochem <ochem@adacore.com>
25011 Olivier Hainque <hainque@adacore.com>
25013 * bindusg.adb: Updated documentation for -d and -D switches.
25015 * raise.h (__gnat_set_globals): added new parameter for
25016 Default_Stack_Size.
25018 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
25019 (__gnat_handle_vms_condition): Adjust context before raise.
25020 (__gnat_install_handler): Restore the global vector setup for GCC
25021 versions before 3.4, as the frame based circtuitry is not available
25023 (__gnat_set_globals): added a parameter default_stack_size
25024 (__gl_default_stack_size): new variable.
25026 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25028 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
25029 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
25030 does not exist in the Ada RM.
25031 (Compatible_Int_Bounds): Determine whether two integer range bounds
25032 are of equal length and have the same start and end values.
25033 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
25034 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
25035 aggregate when it is part of an object declaration.
25036 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
25037 constrains discriminants of its parent, add explicitly the discriminant
25038 constraints of the ancestor by retrieving them from the
25039 stored_constraint of the parent.
25041 2006-02-13 Robert Dewar <dewar@adacore.com>
25043 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
25044 attribute Mechanism_Code is applied to renamed subprogram, modify
25045 prefix to point to base subprogram.
25046 Max/Min attributes now violate Restriction No_Implicit_Conditionals
25048 * sinfo.ads: Document that Mechanism_Code cannot be applied to
25049 renamed subprograms so that the front-end must replace the prefix
25052 2006-02-13 Javier Miranda <miranda@adacore.com>
25053 Gary Dismukes <dismukes@adacore.com>
25055 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
25056 availability of RE_Interface_Tag.
25057 (Build_Initialization_Call): Fix wrong access to the discriminant value.
25058 (Freeze_Record_Type): Do not generate the tables associated with
25059 timed and conditional dispatching calls through synchronized
25060 interfaces if compiling under No_Dispatching_Calls restriction.
25061 When compiling for Ada 2005, for a nonabstract
25062 type with a null extension, call Make_Controlling_Function_Wrappers
25063 and insert the wrapper function declarations and bodies (the latter
25064 being appended as freeze actions).
25065 (Predefined_Primitive_Bodies): Do not generate the bodies of the
25066 predefined primitives associated with timed and conditional
25067 dispatching calls through synchronized interfaces if we are
25068 compiling under No_Dispatching_Calls.
25069 (Build_Init_Procedure): Use RTE_Available to check if a run-time
25070 service is available before generating a call.
25071 (Make_Controlling_Function_Wrappers): New procedure.
25072 (Expand_N_Full_Type_Declaration): Create a class-wide master for
25073 access-to-limited-interfaces because they can be used to reference
25074 tasks that implement such limited interface.
25075 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
25076 procedure spec and body of the Offset_To_Top function that is generated
25077 when the parent of a type with discriminants has secondary dispatch
25079 (Init_Secondary_Tags): Handle the case in which the parent of the type
25080 containing secondary dispatch tables has discriminants to generate the
25081 correct arguments to call Set_Offset_To_Top.
25082 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
25084 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
25085 Add Wide_[Wide_]Expanded_Name.
25086 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
25087 the same functionality of Get_Prim_Op_Address but applied to predefined
25088 primitive operations because the pointers to the predefined primitives
25089 are now saved in a separate table.
25090 (Parent_Size): Modified to get access to the separate table of primitive
25091 operations or the parent type.
25092 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
25093 functionality of Set_Prim_Op_Address but applied to predefined primitive
25095 (Set_Signature): New subprogram used to store the signature of a DT.
25096 (Displace): If the Offset_To_Top value is not static then call the
25097 function generated by the expander to get such value; otherwise use
25098 the value stored in the table of interfaces.
25099 (Offset_To_Top): The type of the actual has been changed to Address to
25100 give the correct support to tagged types with discriminants. In this
25101 case this value is stored just immediately after the tag field.
25102 (Set_Offset_To_Top): Two new formals have been added to indicate if the
25103 offset_to_top value is static and hence pass this value to the run-time
25104 to store it in the table of interfaces, or else if this value is dynamic
25105 and then pass to the run-time the address of a function that is
25106 generated by the expander to provide this value for each object of the
25109 * rtsfind.ads (Default_Prin_Op_Count): Removed.
25110 (Default_Prim_Op_Count): New entity
25111 (Get_Predefined_Prim_Op_Address): New entity
25112 (Set_Predefined_Prim_Op_Address): New entity
25113 (RE_Set_Signature): New entity
25115 2006-02-13 Thomas Quinot <quinot@adacore.com>
25116 Ed Schonberg <schonberg@adacore.com>
25118 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
25119 Make_Adjust_Call done for a newly-allocated object.
25121 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
25122 in a subprogram are wrapped in a cleanup block, indicate that the
25123 subprogram contains an inner block with an exception handler.
25124 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
25125 Adjust call is for a newly-allocated object. In that case we must not
25126 assume that the finalization list chain pointers are correct (since they
25127 come from a bit-for-bit copy of the original object's pointers) so if
25128 the attach level would otherwise be zero (no change), we set it to 4
25129 instead to cause the pointers to be reset to null.
25131 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
25132 reset chain pointers to null.
25134 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25136 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
25137 string, and the context requires a loop for the assignment (e.g.
25138 because the left-hand side is packed), generate a unique name for the
25139 temporary that holds the string, to prevent spurious name clashes.
25141 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25142 Javier Miranda <miranda@adacore.com>
25143 Robert Dewar <dewar@adacore.com>
25144 Gary Dismukes <dismukes@adacore.com>
25146 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
25147 return unconstrained arrays.
25149 (Expand_Call): An indirect call through an access parameter of a
25150 protected operation is not a protected call.
25151 Add circuit to raise CE in Ada 2005 mode following call
25152 to Raise_Exception.
25153 (Register_DT_Entry): Do nothing if
25154 the run-time does not give support to abstract interfaces.
25155 (Freeze_Subprogram): In case of dispatching operations, do not generate
25156 code to register the operation in the dispatch table if the source
25157 is compiled with No_Dispatching_Calls.
25158 (Register_Predefined_DT_Entry): Generate code that calls the new
25159 run-time subprogram Set_Predefined_Prim_Op_Address instead of
25160 Set_Prim_Op_Address.
25162 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
25163 on array assignments if the right-hand side is a function call that has
25164 been inlined. Check is performed on the assignment in the block.
25165 (Process_Bounds): If bounds and range are overloaded, apply preference
25166 rule for root operations to disambiguate, and diagnose true ambiguity.
25167 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
25168 a tag-indeterminate right-hand side even when Expander_Active is True.
25169 Needed to ensure that dispatching calls to T'Input are allowed and
25170 get the tag of the target class-wide object.
25172 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
25173 an inherited primitive operation that already overrides several
25174 abstract interface primitives. For transitivity, the new entity must
25175 also override all the abstract interface primitives covered by the
25176 inherited overriden primitive.
25177 Emit warning if new entity differs from homograph in same scope only in
25178 that one has an access parameter and the other one has a parameter of
25179 a general access type with the same designated type, at the same
25180 position in the signature.
25181 (Make_Inequality_Operator): Use source locations of parameters and
25182 subtype marks from corresponding equality operator when creating the
25183 tree structure for the implicit declaration of "/=". This does not
25184 change anything in behaviour except that the decoration of the
25185 components of the subtree created for "/=" allows ASIS to get the
25186 string images of the corresponding identifiers.
25187 (Analyze_Return_Statement): Remove '!' in warning message.
25188 (Check_Statement_Sequence): Likewise.
25189 (Analyze_Subprogram_Body): For an access parameter whose designated type
25190 is an incomplete type imported through a limited_with clause, use the
25191 type of the corresponding formal in the body.
25192 (Check_Returns): Implicit return in No_Return procedure now raises
25193 Program_Error with a compile time warning, instead of beging illegal.
25194 (Has_Single_Return): Function returning unconstrained type cannot be
25195 inlined if expression in unique return statement is not an identifier.
25196 (Build_Body_To_Inline): It is possible to inline a function call that
25197 returns an unconstrained type if all return statements in the function
25198 return the same local variable. Subsidiary procedure Has_Single_Return
25199 verifies that the body conforms to this restriction.
25201 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
25202 same type, and one of them is of an anonymous access type, convert
25203 the other operand to it, so that this is a valid binary operation for
25205 (Resolve_Type_Conversion): Handle subtypes of protected types and
25206 task types when accessing to the corresponding record type.
25207 (Resolve_Allocator): Add '\' in 2-line warning message.
25208 Remove '!' in warning message.
25209 (Resolve_Call): Add '\' in 2-line warning message.
25210 (Valid_Conversion): Likewise.
25211 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
25212 resulting type may be an access type with an implicit dereference.
25213 Obtain the proper component from the designated type.
25214 (Make_Call_Into_Operator): Handle properly a call to predefined equality
25215 given by an expanded name with prefix Standard, when the operands are
25216 of an anonymous access type.
25217 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
25218 Explicit_Dereference and Resolve_Selected_Component, to verify that the
25219 prefix of the expression is not of an incomplete type. Allows full
25220 diagnoses of all semantic errors.
25221 (Resolve_Actuals): If the actual is an allocator whose directly
25222 designated type is a class-wide interface we build an anonymous
25223 access type to use it as the type of the allocator. Later, when
25224 the subprogram call is expanded, if the interface has a secondary
25225 dispatch table the expander will add a type conversion to force
25226 the displacement of the pointer.
25227 (Resolve_Call): If a function that returns an unconstrained type is
25228 marked Inlined_Always and inlined, the call will be inlined and does
25229 not require the creation of a transient scope.
25230 (Check_Direct_Boolean_Op): Removed
25231 (Resolve_Comparison_Op): Remove call to above
25232 (Resolve_Equality_Op): Remove call to above
25233 (Resolve_Logical_Op): Inline above, since this is only call.
25234 (Valid_Conversion): Handle properly conversions between arrays of
25235 convertible anonymous access types.
25238 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
25239 the literal in an unchecked conversion, because GCC 4.x needs a static
25240 value for a string bound.
25242 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25243 Hristian Kirtchev <kirtchev@adacore.com>
25245 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
25246 components of the corresponding record, take into account component
25247 definitions that are access definitions.
25248 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
25249 procedure is not considered a dispatching call and will be expanded
25252 2006-02-13 Javier Miranda <miranda@adacore.com>
25254 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
25255 controlling argument of the dispatching call is an abstract interface
25256 class-wide type then we use it directly.
25257 Check No_Dispatching_Calls restriction.
25258 (Default_Prim_Op_Position): Remove the code that looks for the last
25259 entity in the list of aliased subprograms. This code was wrong in
25261 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
25262 when the source is compiled with the No_Dispatching_Calls restriction.
25263 (Init_Predefined_Interface_Primitives): No need to inherit primitives
25264 if we are compiling with restriction No_Dispatching_Calls.
25265 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
25266 subprograms if we are compiling under No_Dispatching_Calls restriction.
25267 (Make_DT): Generate a dispatch table with a single dummy entry if
25268 we are compiling with the No_Dispatching_Calls restriction. In
25269 addition, in this case we don't generate code that calls to the
25270 following run-time subprograms: Set_Type_Kind, Inherit_DT.
25271 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
25272 of this subprogram if compiling with the No_Dispatching_Calls
25274 (Expand_Type_Conversion): Instead of using the actual parameter,
25275 the argument passed as parameter to the conversion function was
25276 erroneously referenced by the expander.
25277 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
25278 Set_Predefined_Primitive_Op_Address and Set_Signature.
25279 (Expand_Dispatching_Call): Generate call to
25280 Get_Predefined_Prim_Op_Address for predefined primitives.
25281 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
25282 predefined primitives.
25283 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
25284 primitives we reserve one dummy entry to ensure that the tag does not
25285 point to some memory that is associated with some other object. In
25286 addition, remove all the old code that generated the assignments
25287 associated with the signature of the dispatch table and replace them
25288 by a call to the new subprogram Set_Signature.
25289 (Set_All_DT_Position): Change the algorithm because now we have a
25290 separate dispatch table associated with predefined primitive operations.
25291 (Expand_Interface_Conversion): In case of non-static offset_to_top
25292 add explicit dereference to get access to the object after the call
25293 to displace the pointer to the object.
25294 (Expand_Interface_Thunk): Modify the generation of the actual used
25295 in the calls to the run-time function Offset_To_Top to fulfil its
25297 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
25299 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25301 * exp_dist.adb (Copy_Specification): For access parameters, copy
25302 Null_Exclusion flag, which will have been set for stream subprograms
25305 2006-02-13 Pascal Obry <obry@adacore.com>
25307 * expect.c (__gnat_expect_portable_execvp): New implementation. The
25308 previous implementation was using the C runtime spawnve routine but
25309 the corresponding wait was using directly the Win32 API. This was
25310 causing some times a lock when waiting for an event using
25311 WaitForSingleObject in __gnat_waitpid. This new implementation uses
25312 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
25313 API fixes this problem.
25315 2006-02-13 Robert Dewar <dewar@adacore.com>
25317 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
25320 2006-02-13 Thomas Quinot <quinot@adacore.com>
25322 * exp_pakd.ads: Fix typos in comments.
25324 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
25325 array reference that is an explicit dereference, mark the converted
25326 (packed) array reference as analyzed to prevent a forthcoming
25327 reanalysis from resetting its type to the original (non-packed) array
25330 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25331 Javier Miranda <miranda@adacore.com>
25332 Eric Botcazou <ebotcazou@adacore.com>
25334 * exp_util.ads, exp_util.adb (Find_Prim_Op,
25335 Is_Predefined_Primitive_Operation): When
25336 searching for the predefined equality operator, verify that operands
25337 have the same type.
25338 (Is_Predefined_Dispatching_Operation): Remove the code that looks
25339 for the last entity in the list of aliased subprograms. This code
25340 was wrong in case of renamings.
25341 (Set_Renamed_Subprogram): New procedure
25342 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
25343 Exp_Type constant computed when entering this subprogram.
25344 (Known_Null): New function
25345 (OK_To_Do_Constant_Replacement): New function
25346 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
25347 (Side_Effect_Free): An attribute reference 'Input is not free of
25348 side effect, unlike other attributes that are functions. (from code
25350 (Remove_Side_Effects): Expressions that involve packed arrays or records
25351 are copied at the point of reference, and therefore must be marked as
25352 renamings of objects.
25353 (Is_Predefined_Dispatching_Operation): Return false if the operation is
25354 not a dispatching operation.
25357 (Remove_Side_Effects): Lift enclosing type conversion nodes for
25358 elementary types in all cases.
25360 2006-02-13 Javier Miranda <miranda@adacore.com>
25362 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
25363 task types when accessing to the corresponding record type.
25364 Remove '!' in warning message.
25366 2006-02-13 Olivier Hainque <hainque@adacore.com>
25368 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
25369 to avoid useless and space inefficient overalignments on targets where
25370 Max_Alignment is larger than 16.
25372 2006-02-13 Pascal Obry <obry@adacore.com>
25374 * g-catiio.adb (Sec_Number): New type used to compute the number of
25375 seconds since 1-1-1970.
25376 (Image) [Natural]: The parameter was an Integer, as we can't deal with
25377 negative numbers (years, months...) it is better to have a Natural here.
25379 (Image) [Number]: Change parameter from Long_Integer to Number.
25380 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
25381 overflow for dates past year 2038.
25383 2006-02-13 Matthew Heaney <heaney@adacore.com>
25385 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
25388 2006-02-13 Arnaud Charlet <charlet@adacore.com>
25390 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
25392 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
25393 finalization can occur normally.
25395 2006-02-13 Vincent Celier <celier@adacore.com>
25397 * gnatcmd.adb (Rules_Switches): New table
25398 (Add_To_Rules_Switches): New procedure
25399 (GNATCmd): For command CHECK, put all options following "-rules" in the
25400 Rules_Switches table. Append these -rules switches after the -cargs
25403 2006-02-13 Robert Dewar <dewar@adacore.com>
25405 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
25406 These two cases were generating incorrect output, and if this unit
25407 was built with checks on, generated a discriminant mismatch constraint
25410 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25411 Robert Dewar <dewar@adacore.com>
25413 * lib-xref.adb (Get_Type_Reference): For a private type whose full
25414 view is an array type, indicate the component type as well, for
25415 navigation purposes.
25416 (Generate_Reference): Don't consider array ref on LHS to be a case
25417 of violating pragma Unreferenced.
25418 Do not give Ada 2005 warning except on real reference.
25420 2006-02-13 Vincent Celier <celier@adacore.com>
25422 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
25423 main source, add switch -mdebug-main=_ada_ so that the executable can
25424 be debugged by the standard VMS debugger.
25425 (Gnatmake): Set No_Main_Subprogram to True when there is no main
25426 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
25427 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
25428 of the last source, as the binding and linking phases are never
25430 Set all executable obsolete when rebuilding a library.
25432 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
25435 2006-02-13 Javier Miranda <miranda@adacore.com>
25438 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
25439 code to improve the error message reported when the program has
25440 declarations of abstract interface types and it is not compiled with
25441 the -gnat05 switch.
25442 (P_Access_Definition): Reorganize the code to improve the error
25443 message reported when the new Ada 2005 syntax for anonymous
25444 access types is used and the program is not compiled with the
25447 2006-02-13 Robert Dewar <dewar@adacore.com>
25449 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
25450 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
25453 2006-02-13 Javier Miranda <miranda@adacore.com>
25455 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
25456 against source containing syntax errors.
25458 2006-02-13 Vincent Celier <celier@adacore.com>
25460 * prj.adb (Reset): Initialize the first element of table Namings with
25461 the standard naming data.
25463 2006-02-13 Vincent Celier <celier@adacore.com>
25465 * prj.ads (Error_Warning): New enumeration type
25467 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
25468 unknown, use the location of the project to report the error.
25469 (When_No_Sources): New global variable
25470 (Report_No_Ada_Sources): New procedure
25471 (Check): New parameter When_No_Sources. Set value of global variable
25473 (Find_Sources): Call Report_No_Ada_Sources when appropriate
25474 (Get_Sources_From_File): Ditto
25475 (Warn_If_Not_Sources): Better warning messages indicating the unit name
25478 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
25479 Call Prj.Proc.Process with parameter When_No_Sources.
25481 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
25482 Call Recursive_Check with parameter When_No_Sources.
25483 (Recursive_Check): New parameter When_No_Sources. Call itself and
25484 Prj.Nmsc.Check with parameter When_No_Sources.
25485 (Process): New parameter When_No_Sources. Call Check with parameter
25487 (Copy_Package_Declarations): New procedure to copy renamed parameters
25488 and setting the location of the declared attributes to the location
25489 of the renamed package.
25490 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
25493 2006-02-13 Vincent Celier <celier@adacore.com>
25495 * prj-makr.adb (Make): Preserve the comments from the original project
25497 When removing nodes (attributes Source_Dirs, Source_Files,
25498 Source_List_File and package Naming), save the comments and attach the
25499 saved comments to the newly created nodes.
25500 Do not add a with clause for the naming package if one already exists.
25502 2006-02-13 Javier Miranda <miranda@adacore.com>
25503 Gary Dismukes <dismukes@adacore.com>
25504 Robert Dewar <dewar@adacore.com>
25506 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
25508 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
25509 aliased entities to look for the overriden abstract interface
25511 (Is_Interface_Subprogram): Complete documentation.
25512 (Check_Dispatching_Operation): Do not generate code to register the
25513 operation in the dispatch table if the source is compiled with
25514 restriction No_Dispatching_Calls.
25515 (Override_Dispatching_Operation): Check for illegal attempt to override
25516 No_Return procedure with procedure that is not No_Return
25517 (Check_Dispatching_Call): Suppress the check for an abstract operation
25518 when the original node of an actual is a tag-indeterminate attribute
25519 call, since the attribute, which must be 'Input, can never be abstract.
25520 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
25521 call to the Input attribute (even when rewritten).
25522 (Propagate_Tag): Augment comment to indicate the possibility of a call
25523 to an Input attribute.
25525 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
25526 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
25528 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
25529 No_Wide_Characters is no longer partition-wide
25530 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
25533 2006-02-13 Douglas Rupp <rupp@adacore.com>
25535 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
25537 2006-02-13 Javier Miranda <miranda@adacore.com>
25539 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
25540 handles default-initialized components to keep separate the management
25541 of this feature but also avoid the unrequired resolution and
25542 expansion of components that do not have partially initialized
25544 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
25545 (Check_Bounds): Likewise.
25546 (Check_Length): Likewise.
25548 2006-02-13 Javier Miranda <miranda@adacore.com>
25549 Ed Schonberg <schonberg@adacore.com>
25551 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
25552 abstract interface type call analyze_and_resolve to expand the type
25553 conversion into the corresponding displacement of the
25554 reference to the base of the object.
25555 (Eval_Attribute, case Width): For systems where IEEE extended precision
25556 is supported, the maximum exponent occupies 4 decimal digits.
25557 (Accessibility_Message): Add '\' in 2-line warning message.
25558 (Resolve_Attribute): Likewise.
25559 (case Attribute_Access): Significantly revise checks
25560 for illegal access-to-subprogram Access attributes to properly enforce
25561 the rules of 3.10.2(32/2).
25562 Diagnose use of current instance with an illegal attribute.
25564 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
25566 (Enclosing_Generic_Unit): New function to return a node's innermost
25567 enclosing generic declaration node.
25568 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
25569 (Type_Access_Level): The accessibility level of anonymous acccess types
25570 associated with discriminants is that of the current instance of the
25571 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
25572 (Compile_Time_Constraint_Error): Handle case of conditional expression.
25573 (Kill_Current_Values_For_Entity): New function
25574 (Enter_Name): Change formal type to Entity_Id
25576 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
25577 Ed Schonberg <schonberg@adacore.com>
25578 Gary Dismukes <dismukes@adacore.com>
25580 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
25581 Analyze_Compilation_Unit.
25582 Detect and warn on redundant with clauses detected in a package spec
25583 and/or body when -gnatwr is used.
25584 (Analyze_Context): Analyze config pragmas before other items
25585 (Install_Context_Items): Don't analyze config pragmas here
25586 (Install_Limited_Withed_Unit): Set limited entity of package in
25587 with_clause so that cross-reference information or warning messages on
25588 unused packages can be properly generated
25589 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
25590 has Error_Posted set. Prevent infinite loops in illegal programs.
25591 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
25592 to the point of the error test requiring the current unit to be private.
25593 This ensures that private with clauses are not exempted from the basic
25594 checking for being a descendant of the same library unit parent as a
25595 withed private descendant unit.
25596 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
25597 handle private with clauses properly, as well as to account for cases
25598 where the withed unit is a public descendant of a private ancestor
25599 (in which case the current unit must be a descendant of the private
25600 ancestor's parent). The spec comments were updated accordingly. Also,
25601 the old error message in this subprogram was replaced with error
25602 messages that mirror the errors tested and reported by
25603 Check_Private_Child_Unit.
25604 Parameter and variable names improved for readability.
25605 (Install_Limited_Context_Clauses): Remove test for a withed unit being
25606 private as the precondition for calling
25607 Check_Private_Limited_Withed_Unit since that subprogram has been
25608 revised to test public units as well as private units.
25610 2006-02-13 Thomas Quinot <quinot@adacore.com>
25611 Robert Dewar <dewar@adacore.com>
25612 Ed Schonberg <schonberg@adacore.com>
25613 Javier Miranda <miranda@adacore.com>
25615 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
25616 that Scope_Stack.First = 1.
25617 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
25618 were not always properly handled previously.
25619 (Formal_Entity): Complete rewrite, to handle properly some complex case
25620 with multiple levels of parametrization by formal packages.
25621 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
25622 to the corresponding derived type declaration for proper semantics.
25624 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
25625 (Check_Component): Enforce restriction on components of
25626 unchecked_unions: a component in a variant cannot contain tasks or
25628 (Unchecked_Union): Allow nested variants and multiple discriminants, to
25630 Add pragma Ada_2005 (synonym for Ada_05)
25631 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
25632 were not always properly handled previously.
25633 Document that pragma Propagate_Exceptions has no effect
25634 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
25635 (Set_Convention_From_Pragma): Check that if a convention is
25636 specified for a dispatching operation, then it must be
25637 consistent with the existing convention for the operation.
25638 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
25639 longer required to specify an vtable-ptr component in the record. For
25640 compatibility reasons we leave the support for the previous definition.
25641 (Analyze_Pragma, case No_Return): Allow multiple arguments
25643 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
25644 non-overrideen inherited operation with a controlling result as
25645 illegal only its implicit declaration comes from the derived type
25646 declaration of its result's type.
25647 (Check_Possible_Deferred_Completion): Relocate the object definition
25648 node of the subtype indication of a deferred constant completion rather
25649 than directly analyzing it. The analysis of the generated subtype will
25650 correctly decorate the GNAT tree.
25651 (Record_Type_Declaration): Check whether this is a declaration for a
25652 limited derived record before analyzing components.
25653 (Analyze_Component_Declaration): Diagnose record types not explicitly
25654 declared limited when a component has a limited type.
25655 (Build_Derived_Record_Type): Code reorganization to check if some of
25656 the inherited subprograms of a tagged type cover interface primitives.
25657 This check was missing in case of a full-type associated with a private
25659 (Constant_Redeclaration): Check that the subtypes of the partial and the
25660 full view of a constrained deferred constant statically match.
25661 (Mentions_T): A reference to the current type in an anonymous access
25662 component declaration must be an entity name.
25663 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
25664 class_wide type to refer to full type, not to the incomplete one.
25665 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
25666 available. Required to give support to the certified run-time.
25667 (Analyze_Component_Declaration): In case of anonymous access components
25668 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
25669 (Process_Discriminants): For an access discriminant, use the
25670 discriminant specification as the associated_node_for_itype, to
25671 simplify accessibility checks.
25673 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25674 Javier Miranda <miranda@adacore.com>
25676 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
25677 abstract interpretations on an operator, remove interpretations that
25678 yield Address or a type derived from it, if one of the operands is an
25680 (Try_Object_Operation.Try_Primitive_Operation,
25681 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
25682 location when creating the new reference to a primitive or class-wide
25683 operation as a part of rewriting a subprogram call.
25684 (Try_Primitive_Operations): If context requires a function, collect all
25685 interpretations after the first match, because there may be primitive
25686 operations of the same type with the same profile and different return
25687 types. From code reading.
25688 (Try_Primitive_Operation): Use the node kind to choose the proper
25689 operation when a function and a procedure have the same parameter
25691 (Complete_Object_Operation): If formal is an access parameter and prefix
25692 is an object, rewrite as an Access reference, to match signature of
25693 primitive operation.
25694 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
25695 by an expanded name with prefix Standard, when the operands are of an
25696 anonymous access type.
25697 (Remove_Abstract_Operations): If the operation is abstract because it is
25698 inherited by a user-defined type derived from Address, remove it as
25699 well from the set of candidate interpretations of an overloaded node.
25700 (Analyze_Membership_Op): Membership test not applicable to cpp-class
25703 2006-02-13 Bob Duff <duff@adacore.com>
25705 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
25706 redundant use clauses.
25707 In particular, if the scope of two use clauses overlaps, but one is not
25708 entirely included in the other, we should not warn. This can happen
25709 with nested packages.
25710 (Analyze_Subprogram_Renaming): Protect the compiler against previously
25711 reported errors. The bug was reported when the compiler was built
25712 with assertions enabled.
25713 (Find_Type): If the node is a 'Class reference and the prefix is a
25714 synchronized type without a corresponding record, return the type
25717 2006-02-13 Javier Miranda <miranda@adacore.com>
25719 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
25720 if this is the full-declaration associated with a private declaration
25721 that implement interfaces, then the private type declaration must be
25723 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
25724 as aliased. The use of the 'access attribute is not available for such
25725 object (for this purpose the object should be explicitly marked as
25726 aliased, but being an anonymous type this is not possible).
25728 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25729 Robert Dewar <dewar@adacore.com>
25731 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
25732 compilation unit is an elaboration scope.
25733 (Add_Task_Proc): Add '\' in 2-line warning message.
25734 (Activate_All_Desirable): Deal with case of unit with'ed by parent
25736 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25737 Javier Miranda <miranda@adacore.com>
25739 * sem_type.adb (Write_Overloads): Improve display of candidate
25741 (Add_One_Interp): Do not add to the list of interpretations aliased
25742 entities corresponding with an abstract interface type that is an
25743 immediate ancestor of a tagged type; otherwise we have a dummy
25744 conflict between this entity and the aliased entity.
25745 (Disambiguate): The predefined equality on universal_access is not
25746 usable if there is a user-defined equality with the proper signature,
25747 declared in the same declarative part as the designated type.
25748 (Find_Unique_Type): The universal_access equality operator defined under
25749 AI-230 does not cover pool specific access types.
25750 (Covers): If one of the types is a generic actual subtype, check whether
25751 it matches the partial view of the other type.
25753 2006-02-13 Thomas Quinot <quinot@adacore.com>
25755 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
25756 line. This is necessary to allow In_Extended_Main_Unit to provide
25757 correct results for itypes while writing out expanded source.
25758 (Close_File): No need to update the source_index_table here since it's
25759 now done for each line.
25761 2006-02-13 Ed Schonberg <schonberg@adacore.com>
25762 Robert Dewar <dewar@adacore.com>
25764 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
25765 preserve the source unit where the itype is declared, and prevent a
25767 (Note_Implicit_Run_Time_Call): New procedure
25768 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
25771 * sprint.ads: Document use of $ for implicit run time routine call
25773 2006-02-13 Quentin Ochem <ochem@adacore.com>
25775 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
25778 2006-02-13 Bob Duff <duff@adacore.com>
25780 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
25781 Scan_Unsigned, so we do not scan leading blanks and sign twice.
25782 Integer'Value("- 5") and Integer'Value("-+5") now correctly
25783 raise Constraint_Error.
25785 * s-vallli.adb (Scan_Long_Long_Integer): Call
25786 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
25787 do not scan leading blanks and sign twice.
25788 Integer'Value("- 5") and Integer'Value("-+5") now correctly
25789 raise Constraint_Error.
25791 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
25792 Scan_Long_Long_Unsigned): Split out most of the processing from
25793 Scan_Long_Long_Unsigned out into
25794 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
25795 This prevents scanning leading blanks and sign twice.
25796 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
25799 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
25800 out most of the processing from Scan_Unsigned out into
25801 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
25802 This prevents scanning leading blanks and sign twice.
25804 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
25805 use with Modular'Value attribute.
25806 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
25809 2006-02-13 Robert Dewar <dewar@adacore.com>
25811 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
25813 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
25815 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
25816 (PPC VxWorks): Likewise.
25817 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
25818 (forced_callee): Make non-inlinable and non-pure.
25819 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
25821 2006-02-13 Arnaud Charlet <charlet@adacore.com>
25822 Ben Brosgol <brosgol@adacore.com>
25823 Robert Dewar <dewar@adacore.com>
25825 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
25827 Document that gnatbind -M option is for cross environments only.
25828 Added description of using gnatmem to trace gnat rtl allocs and deallocs
25829 Add note on use of $ to label implicit run time calls
25830 Add documentation for -gnatyI (check mode IN)
25831 Updated chapter on compatibility with HP Ada
25832 VMS-oriented edits.
25833 Ran spell and corrected errors
25834 Add documentation for gnatbind -d and rework documentation of -D
25836 Add subprogram/data elimination section.
25837 Minor editing of annex A.
25838 Add section for gnatcheck.
25839 Add documentation for restriction No_Dispatching_Calls
25840 Add documentation for pragma Ada_2005
25841 Remove mention of obsolete pragma Propagate_Exceptions
25842 Document that pragma Unreferenced can appear after DO in ACCEPT
25843 Clarify Pure_Function for library level units
25844 Mention Max/Min in connection with No_Implicit_Conditionals
25845 No_Wide_Characters restriction is no longer partition-wide
25846 Add a nice example for Universal_Literal_String attribute
25847 Document that pragma No_Return can take multiple arguments
25849 * ug_words: Added entry for gnatcheck
25851 * g-ctrl_c.ads (Install_Handler): Enhance comments
25853 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
25855 * g-trasym.ads: Add documentation on how to do off line symbolic
25856 traceback computation.
25858 * s-fatgen.adb: Add comments for Unaligned_Valid
25860 * stand.ads: Fix typo in comment
25862 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
25864 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
25866 2006-02-06 Roger Sayle <roger@eyesopen.com>
25868 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
25870 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25873 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
25874 implementation that calls __main.
25876 2006-01-25 Peter O'Gorman <peter@pogma.com>
25879 * Makefile.in (GCC_LINK): Remove quotes.
25880 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
25883 (powerpc-darwin): Pass -shared-libgcc when building shared library.
25885 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25888 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
25890 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25892 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
25894 2005-12-12 Arnaud Charlet <charlet@adacore.com>
25896 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
25899 2005-12-12 Arnaud Charlet <charlet@adacore.com>
25901 * Make-lang.in: Update dependencies
25903 2005-12-12 Arnaud Charlet <charlet@adacore.com>
25905 * Make-lang.in: Add rule for ada/exp_sel.o
25907 2005-12-12 Arnaud Charlet <charlet@adacore.com>
25909 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
25911 2005-12-09 Arnaud Charlet <charlet@adacore.com>
25913 * gnatvsn.ads (Library_Version): Bump to version 4.2
25914 (ASIS_Version_Number): Bumped.
25916 2005-12-09 Doug Rupp <rupp@adacore.com>
25918 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
25919 Ada bind file prefix on VMS from b$ to b__.
25920 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
25923 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
25924 Targparm.OpenVMS_On_Target.
25925 (Object_Suffix): Initialize with target object suffix.
25926 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
25928 * butil.adb: Change some Hostparm.OpenVMS checks to
25929 Targparm.OpenVMS_On_Target.
25931 * clean.adb: Change some Hostparm.OpenVMS checks to
25932 Targparm.OpenVMS_On_Target.
25933 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
25934 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
25935 Ada bind file prefix on VMS from b$ to b__.
25937 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
25938 --GCC so that Get_Target_Parameters can find system.ads.
25939 (Gnatlink): Call Get_Target_Parameters in mainline.
25940 Initialize standard packages for Targparm.
25941 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
25942 (Process_Args): Also Check for object files with target object
25944 (Make_Binder_File_Names): Create with target object extension.
25945 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
25948 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
25949 Targparm.OpenVMS_On_Target.
25950 ({declaration},Build_Library,Check_Library): Change Ada bind file
25951 prefix on VMS from b$ to b__.
25953 * osint-b.adb: Change some Hostparm.OpenVMS checks to
25954 Targparm.OpenVMS_On_Target.
25955 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
25958 * targext.c: New file.
25960 * Makefile.in: add support for vxworks653 builds
25961 (../../vxaddr2line): gnatlink with targext.o.
25962 (TOOLS_LIBS): Move targext.o to precede libgnat.
25963 (init.o, initialize.o): Minor clean up in dependencies.
25964 (GNATLINK_OBJS): Add targparm.o, snames.o
25965 Add rules fo building targext.o and linking it explicitly with all
25967 Also add targext.o to gnatlib.
25969 * Make-lang.in: Add rules for building targext.o and linking it in
25970 with gnat1 and gnatbind.
25971 Add entry for exp_sel.o.
25973 * osint.adb Change some Hostparm.OpenVMS checks to
25974 Targparm.OpenVMS_On_Target.
25975 (Object_File_Name): Use target object suffix.
25977 * osint.ads (Object_Suffix): Remove, no longer used.
25978 (Target_Object_Suffix): Initialize with target object suffix.
25980 * rident.ads: Add special exception to license.
25982 * targparm.adb (Get_Target_Parameters): Set the value of
25983 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
25985 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
25987 * targparm.ads: Add special exception to license.
25989 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
25991 (Copy_File): Make sure from file is closed if error on to file
25992 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
25994 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
25995 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
25997 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
25998 target object suffix.
26000 2005-12-09 Jose Ruiz <ruiz@adacore.com>
26001 Quentin Ochem <ochem@adacore.com>
26002 Florian Villoing <villoing@adacore.com>
26004 * a-taster.ads, a-taster.adb: New files.
26006 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
26007 link to the version that does nothing. This way the task termination
26008 routine is not executed twice for the environment task when finishing
26009 because of an unhandled exception.
26011 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
26012 handler because of an unhandled exception.
26014 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
26015 System.Tasking.Utilities instead of that in System.Tasking.Stages.
26017 * s-finimp.adb (initialization code): Modify the soft link for the
26018 finalization of the global list instead of Adafinal.
26020 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
26021 non-tasking version of the soft link for task termination. We do
26022 nothing since if we are using the non-tasking version it
26023 means that the task termination functionality is not used.
26024 (Null_Finalize_Global_List): Add this null version for the procedure
26025 in charge of finalizing the global list for controlled objects.
26026 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
26027 instead for handling run-time termination in a more flexible way.
26028 (Adafinal_NT): This new procedure will take care of finalizing the
26029 global list for controlled objects if needed, but no tasking
26032 * s-tarest.adb (Task_Lock): Do not try to lock again the
26033 Global_Task_Lock if we already own it. Otherwise, we get blocked in
26034 some run-time operations.
26035 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
26036 until all nested locks have been released.
26037 (Task_Wrapper): Call the fall-back task termination handler. It
26038 applies to all tasks but the environment task.
26039 (Finalize_Global_Tasks): Add the call for the task termination
26040 procedure for the environment task.
26041 (Task_Wrapper): suppress warnings around declaration of
26042 Secondary_Stack_Address.
26044 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
26045 moved to the Common_ATCB record.
26046 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
26047 Common_ATCB record.
26048 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
26049 Common_ATCB record.
26051 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
26052 Fall_Back_Handler, and Specific_Handler.
26054 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
26055 defined in Ada.Task_Termination, to avoid circular dependencies.
26056 (Termination_Handler): Redefine this type here, alredy defined in
26057 Ada.Task_Termination, for avoiding circular dependencies.
26058 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
26059 for storing task termination handlers. In addition,
26060 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
26061 Common_ATCB because it is used by both the regular and the restricted
26063 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
26064 Common_ATCB because it is used by both the regular and the restricted
26066 (Common_ATCB): Added a dynamic task analyzer field.
26068 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
26069 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
26070 (Task_Wrapper): Call the task termination handler. It applies to all
26071 tasks but the environment task.
26072 (Finalize_Global_Tasks): Call the task termination procedure for the
26073 environment task. The call to Finalize_Global_List is now performed
26074 using the soft links mechanism.
26075 (Task_Wrapper): added dynamic stack analysis.
26077 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
26078 potentially blocking operations has been moved from
26079 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
26080 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
26081 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
26082 this run-time check.
26084 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
26085 of task termination procedure.
26086 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
26087 link for the task termination procedure.
26089 * bindusg.adb: (Bindusg): Added documentation for -u option.
26091 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
26092 (Get_Main_C): Add handling of dynamic stack analysis.
26093 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
26095 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
26096 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
26097 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
26099 * opt.ads: Added flags used by dynamic stack measurement.
26100 (Max_Line_Length): Remove (not used anymore)
26102 * s-io.ads, s-io.adb (Standard_Error): new subprogram
26103 (Standart_Output): new subprogram
26104 (Set_Output): new subprogram
26105 (Put): now uses the value of Current_Out to know if the output has to be
26106 send to stderr or stdout.
26108 * s-stausa.ads: Complete implementation.
26110 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
26112 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
26113 list of Ada 05 files.
26114 (GNAT Library Units): Add AltiVec files.
26116 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
26117 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
26118 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
26120 2005-12-09 Nicolas Setton <setton@adacore.com>
26122 * adaint.c (__gnat_locate_regular_file): Return immediately if
26123 file_name is empty.
26125 2005-12-09 Javier Miranda <miranda@adacore.com>
26126 Hristian Kirtchev <kirtchev@adacore.com>
26128 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
26129 to the specification because the frontend generates code that uses this
26131 (Set_Interface_Table): Add missing assertion.
26132 Update documentation describing the run-time structure.
26133 (Displace): New subprogram that displaces the pointer to the object
26134 to reference one of its secondary dispatch tables.
26135 (IW_Membership): Modified to use the new table of interfaces.
26136 (Inherit_TSD): Modified to use the new table of interfaces.
26137 (Register_Interface_Tag): Use the additional formal to fill the
26138 contents of the new table of interfaces.
26139 (Set_Interface_Table): New subprogram that stores in the TSD the
26140 pointer to the table of interfaces.
26141 (Set_Offset_To_Top): Use the additional formal to save copy of
26142 the offset value in the table of interfaces.
26143 Update structure of GNAT Primary and Secondary dispatch table diagram.
26144 Add comment section on GNAT dispatch table prologue.
26145 (Offset_To_Signature): Update the constant value of the Signature field.
26146 (Dispatch_Table): Update comment on hidden fields in the prologue.
26147 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
26148 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
26149 the type of formal parameter T to Tag, introduce additional assertions.
26150 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
26152 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
26154 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
26155 in all the calls to Expand_Interface_Thunk. Instead of referencing the
26156 record component containing the tag of the secondary dispatch table we
26157 have to use the Offset_To_Top run-time function to get this information;
26158 otherwise if the pointer to the base of the object has been displace
26159 we get a wrong value if we use the 'position attribute.
26161 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
26162 all the calls to Expand_Interface_Thunk.
26163 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
26164 interfaces; hence the call to Set_Interface_Table was clearly wrong.
26165 (Collect_All_Interfaces): Modify the internal subprogram Collect to
26166 ensure that the interfaces implemented by the ancestors are placed
26167 at the header of the generated list.
26168 (Expand_Interface_Conversion): Handle the case in which the displacement
26169 associated with the interface conversion is not statically known. In
26170 this case we generate a call to the new run-time subprogram Displace.
26171 (Make_DT): Generate and fill the new table of interfaces.
26172 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
26173 Get_Tagged_Kind and Set_Tagged_Kind.
26174 (Tagged_Kind): New function that determines the tagged kind of a type
26175 with respect to limitedness and concurrency and returns a reference to
26177 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
26178 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
26179 primary dispatch table for a type.
26180 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
26181 secondary dispatch table respectively of a tagged type.
26183 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
26184 (Expand_Interface_Conversion): New subprogram to indicate if the
26185 displacement of the type conversion is statically known.
26186 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
26188 * rtsfind.ads (RE_Offset_To_Top): New entity
26189 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
26190 accessible to users.
26191 (Re_Displace): New entity
26192 (RE_Interface_Data): New entity
26193 (RE_Set_Interface_Data): New_Entity
26194 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
26195 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
26196 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
26197 RE_TK_Tagged, RE_TK_Task.
26199 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
26200 Init_Secondary_Tags_Internal to allow its use with interface types and
26201 also to generate the code for the new additional actual required
26202 by Set_Offset_To_Top.
26203 (Build_Init_Statements): In case of components associated with abstract
26204 interface types there is no need to generate a call to its IP.
26205 (Freeze_Record_Type): Generate Select Specific Data tables only for
26207 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
26208 the bodies and specifications of the predefined primitive operations
26209 dealing with dispatching selects and abort, 'Callable, 'Terminated only
26210 for concurrent types.
26212 * exp_sel.ads, exp_sel.adb: New files.
26214 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
26215 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
26216 properly protected objects and attach handler in the case of the
26217 restricted profile.
26218 Move embeded package Select_Expansion_Utilities into a separate external
26220 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
26221 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
26222 (Build_K, Build_S_Assignment): New subprograms, part of the select
26223 expansion utilities.
26224 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
26225 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
26226 where the trigger is a dispatching procedure of a limited tagged type.
26228 2005-12-09 Olivier Hainque <hainque@adacore.com>
26230 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
26231 pointer initialization values. Make a SAVE_EXPR instead. Add comments
26232 about the use and expansion of SAVE_EXPRs in the various possible
26233 renaming handling cases.
26234 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
26235 abusing DECL_FCONTEXT.
26237 2005-12-09 Matthew Heaney <heaney@adacore.com>
26239 * a-convec.adb (Merge): Added assertions to check whether vector params
26242 * a-coinve.adb (Merge): Added assertions to check whether vector params
26245 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
26247 (Cursor'Read): raises PE
26249 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
26250 to its default value.
26252 * a-cihama.adb: Manually check whether cursor's key and elem are
26255 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
26256 (Merge): Assert that target and source lists are in order
26257 (Swap): Declare non-const temporaries, to pass to Splice
26259 * a-cdlili.ads: (Splice): Changed param name and param mode
26261 * a-cdlili.adb: (Splice): Changed param name and param mode
26262 (Merge): Assert that target and source lists are in order
26263 (Swap): Declare non-const temporaries, to pass to Splice
26265 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
26266 (Write): declare Stream param as not null
26268 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
26269 an exception message.
26271 2005-12-09 Thomas Quinot <quinot@adacore.com>
26272 Robert Dewar <dewar@adacore.com>
26274 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
26275 which is the absolute maximum length we can support.
26277 * frontend.adb: For the processing of configuration pragma files,
26278 remove references to Opt.Max_Line_Length, which is not checked anymore.
26280 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
26283 * scn.adb, scng.adb:
26284 Always check line length against the absolute supported maximum,
26285 Hostparm.Max_Line_Length.
26287 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
26288 value for the maximum line length is Max_Line_Length (not
26289 Column_Number'Last).
26290 Minor error msg update
26291 (Set_Style_Check_Options): New interface returning error msg
26292 Minor code reorganization (processing for 'M' was out of alpha order)
26294 * switch-c.adb: New interface for Set_Style_Check_Options
26296 * stylesw.ads (Set_Style_Check_Options): New interface returning error
26299 2005-12-09 Javier Miranda <miranda@adacore.com>
26301 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
26302 with IP subprogram were only supported if there were limited types.
26304 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
26305 records with IP subprogram were only supported if there were limited
26308 2005-12-09 Olivier Hainque <hainque@adacore.com>
26309 Eric Botcazou <ebotcazou@adacore.com>
26311 * trans.c (tree_transform, emit_check): Adjust calls to
26312 build_call_raise, passing the now expected GNAT_NODE argument.
26314 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
26315 source line information than what the current global locus indicates
26318 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
26319 field has overflowed.
26320 (build_call_raise): Add a GNAT_NODE argument to convey better source
26321 line information than what the current global locus indicates when
26323 (build_component_ref): Adjust call to build_call_raise.
26325 2005-12-09 Pascal Obry <obry@adacore.com>
26327 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
26328 the iterator is quitting iteration on parent directory.
26330 2005-12-09 Javier Miranda <miranda@adacore.com>
26332 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
26333 and the assignment to a class-wide object, before the assignment we
26334 generate a run-time check to ensure that the tag of the Target is
26335 covered by the tag of the source.
26337 2005-12-09 Robert Dewar <dewar@adacore.com>
26339 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
26340 parameter in call to Image_Wide_Character.
26342 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
26343 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
26344 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
26345 annoying FFFE/FFFF inconsistency.
26347 2005-12-09 Robert Dewar <dewar@adacore.com>
26348 Javier Miranda <miranda@adacore.com>
26349 Ed Schonberg <schonberg@adacore.com>
26351 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
26352 of type conversion.
26353 (Find_Interface): New subprogram that given a tagged type and one of its
26354 component associated with the secondary table of an abstract interface
26355 type, return the entity associated with such abstract interface type.
26356 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
26357 base type to create anonymous subtype, because entity may be a locally
26358 declared subtype or generic actual.
26359 (Find_Interface): New subprogram that given a tagged type and one of its
26360 component associated with the secondary table of an abstract interface
26361 type, return the entity associated with such abstract interface type.
26363 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
26364 conversion cannot be handled at compile time. In this case we pass this
26365 information to the expander to generate the appropriate code.
26367 2005-12-09 Robert Dewar <dewar@adacore.com>
26368 Ed Schonberg <schonberg@adacore.com>
26369 Gary Dismukes <dismukes@adacore.com>
26370 Javier Miranda <miranda@adacore.com>
26371 Hristian Kirtchev <kirtchev@adacore.com>
26373 * einfo.adb (Itype_Printed): New flag
26374 (Is_Limited_Type): Derived types do not inherit limitedness from
26375 interface progenitors.
26376 (Is_Return_By_Reference_Type): Predicate does not apply to limited
26379 * einfo.ads (Itype_Printed): New flag
26380 Move Is_Wrapper_Package to proper section
26381 Add missing Inline for Is_Volatile
26383 * output.ads, output.adb (Write_Erase_Char): New procedure
26384 (Save/Restore_Output_Buffer): New procedures
26385 (Save/Restore_Output_Buffer): New procedures
26387 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
26388 Add missing support for anonymous access type
26389 (Write_Id): Insert calls to Write_Itype
26390 (Write_Itype): New procedure to output itypes
26392 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
26393 use of "limited" in declaration.
26395 * sinfo.ads, sinfo.adb:
26396 Formal derived types can carry an explicit "limited" indication.
26398 * sem_ch3.adb: Add with and use of Targparm.
26399 (Create_Component): If Frontend_Layout_On_Target is True and the
26400 copied component does not have a known static Esize, then reset
26401 the size and positional fields of the new component.
26402 (Analyze_Component_Declaration): A limited component is
26403 legal within a protected type that implements an interface.
26404 (Collect_Interfaces): Do not add to the list the interfaces that
26405 are implemented by the ancestors.
26406 (Derived_Type_Declaration): If the parent of the full-view is an
26407 interface perform a transformation of the tree to ensure that it has
26408 the same parent than the partial-view. This simplifies the job of the
26409 expander in order to generate the correct object layout, and it is
26410 needed because the list of interfaces of the full-view can be given in
26412 (Process_Full_View): The parent of the full-view does not need to be
26413 a descendant of the parent of the partial view if both parents are
26415 (Analyze_Private_Extension_Declaration): If declaration has an explicit
26416 "limited" the parent must be a limited type.
26417 (Build_Derived_Record_Type): A derived type that is explicitly limited
26418 must have limited ancestor and progenitors.
26419 (Build_Derived_Type): Ditto.
26420 (Process_Full_View): Verify that explicit uses of "limited" in partial
26421 and full declarations are consistent.
26422 (Find_Ancestor_Interface): Remove function.
26423 (Collect_Implemented_Interfaces): New procedure used to gather all
26424 implemented interfaces by a type.
26425 (Contain_Interface): New function used to check whether an interface is
26427 (Find_Hidden_Interface): New function used to determine whether two
26428 lists of interfaces constitute a set equality. If not, the first
26429 differing interface is returned.
26430 (Process_Full_View): Improve the check for the "no hidden interface"
26431 rule as defined by AI-396.
26433 2005-12-09 Robert Dewar <dewar@adacore.com>
26435 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
26436 types, not on record subtypes.
26437 (Freeze_Entity): Code cleanup. Add barrier to the loop
26438 that generates the references for primitive operations. This allows to
26439 remove an unnecessary exception handler.
26440 Code reformatting and comment clean ups.
26442 2005-12-09 Vincent Celier <celier@adacore.com>
26444 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
26445 If GNAT CHECK is called with a project file, but with no
26446 source on the command line, call gnatcheck with all the compilable
26447 sources of the project.
26448 Take into account the new command Check, for gnatcheck. Treat as for
26449 other ASIS tools: take into account project, specific package Check and
26451 For ASIS tools, add the switches in package Compiler for
26452 the invocation of the compiler.
26454 * prj-attr.adb: Add package Check and its attributes
26456 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
26458 * vms_conv.adb (Initialize): Change Params of command Check to
26460 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
26461 Add data for new command Check
26463 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
26465 Add qualifiers for Check command options
26466 (Command_Type): New command Check
26468 2005-12-09 Thomas Quinot <quinot@adacore.com>
26470 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
26471 command line switch overruns the output buffer.
26473 2005-12-09 Robert Dewar <dewar@adacore.com>
26475 * sem_prag.adb: Processing for new pragma Complete_Representation
26476 (Analyze_Pragma, case Debug): Implement two argument form.
26478 * par-prag.adb: Entry for new pragma Complete_Representation
26479 (Prag, case Debug): Recognize two argument form of pragma Debug
26480 New interface for Set_Style_Check_Options.
26482 * sem_ch13.adb: Implement new pragma Complete_Representation.
26484 * snames.adb, snames.ads, snames.h: Entry for new pragma
26485 Complete_Representation.
26487 2005-12-09 Gary Dismukes <dismukes@adacore.com>
26489 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
26490 available user-specified stream attributes on limited parameters to
26491 also test the type directly rather than only its underlying type (for
26492 Ada 95) and, in the case of Ada 2005, to check that the user-specified
26493 attributes are visible at the point of the subprogram declaration.
26494 For Ada 2005, the error message is modified to indicate that the
26495 type's stream attributes must be visible (again, only for -gnat05).
26497 2005-12-09 Ed Schonberg <schonberg@adacore.com>
26499 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
26500 anonymous access types.
26502 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
26503 matching of anonymous access types and anonymous access to subprogram
26504 types. 'R'M 4.9.1 (2/2).
26506 2005-12-09 Ed Schonberg <schonberg@adacore.com>
26508 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
26509 rule prematurely when operands are universal, remaining ambiguities
26510 will be removed during resolution.
26513 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
26514 that are Ada 2005 functions.
26515 (Has_Abstract_Interpretation): Subsidiary to
26516 Remove_Conversions, to remove ambiguities caused by abstract operations
26517 on numeric types when operands are universal.
26519 2005-12-09 Robert Dewar <dewar@adacore.com>
26521 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
26522 for case where spec is categorized.
26524 2005-12-09 Javier Miranda <miranda@adacore.com>
26526 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
26527 types use the corresponding record type. This was not needed before
26528 the implementation of Ada 2005 synchronized types because
26529 concurrent types were never tagged types in Ada 95.
26531 2005-12-09 Ed Schonberg <schonberg@adacore.com>
26533 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
26534 first subtype of the type of the expression to verify that it is a
26537 2005-12-09 Robert Dewar <dewar@adacore.com>
26539 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
26542 2005-12-09 Quentin Ochem <ochem@adacore.com>
26543 Robert Dewar <dewar@adacore.com>
26544 Ed Falis <falis@adacore.com>
26545 Florian Villoing <villoing@adacore.com>
26546 Thomas Quinot <quinot@adacore.com>
26547 Arnaud Charlet <charlet@adacore.com>
26549 * gnat_ugn.texi: Created section "Stack Related Tools"
26550 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
26551 "Stack Related Tools"
26552 Added subsection "Static Stack Usage Analysis"
26553 Added subsection "Dynamic Stack Usage Analysis"
26554 Include documentation of itypes in sprint listing (-gnatG)
26555 Documented gnatbind -D switch (default sec stack size for fixed sec
26557 Added Interrupt_State and Persistent_BSS to list of configuration
26559 Add missing doc for maximum value of nnn in -gnatyMnnn
26561 * gnat_rm.texi: Document the AltiVec binding.
26562 Add documentation for pragma Complete_Representation
26563 Shortened an overly long line (> 79 chars)
26564 Clarify documentation of unchecked conversion in implementation
26566 Document two argument form of pragma Debug
26568 * types.ads (Column_Number): Update documentation.
26570 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
26571 library level Finalize_Storage_Only objects (these are not attached to
26572 any finalization list).
26574 * system-mingw.ads: (Underlying_Priorities): Update comment.
26576 2005-12-09 Robert Dewar <dewar@adacore.com>
26578 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
26579 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
26580 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
26581 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
26582 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
26583 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
26584 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
26585 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
26588 2005-12-09 Robert Dewar <dewar@adacore.com>
26590 * s-vaflop-vms-alpha.adb: (Ne_F): New function
26591 (Ne_G): New function
26593 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
26594 for tag assignment.
26595 (Rewrite_Comparison): Handle case where operation is not a comparison
26596 and ignore, and also handle type conversion case.
26598 2005-12-09 Thomas Quinot <quinot@adacore.com>
26600 * exp_aggr.ads: Fix typo in comment.
26601 ???-mark Convert_Aggr_In_Assignment as needing documentation.
26603 2005-12-09 Gary Dismukes <dismukes@adacore.com>
26605 * layout.adb: Replace various uses of byte by storage unit throughout.
26606 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
26607 static size, convert to storage units before returning, to conform to
26610 2005-12-09 Matthew Gingell <gingell@adacore.com>
26612 * g-exctra.ads: Fix typo in comment.
26614 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26616 * utils.c: Minor reformatting.
26618 2005-12-09 Robert Dewar <dewar@adacore.com>
26621 Further comment fixes to make the status of the default file clear
26623 * s-bitops.adb: Clarify comment for Bits_Array
26625 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
26627 * Make-lang.in (ada.install-normal): Remove.
26629 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
26631 * Make-lang.in: Remove all dependencies on s-gtype.
26633 2005-12-05 Richard Guenther <rguenther@suse.de>
26635 * utils.c (convert): Use fold_convert where appropriate.
26637 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
26639 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
26642 2005-12-02 Richard Guenther <rguenther@suse.de>
26644 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
26646 2005-12-01 Roger Sayle <roger@eyesopen.com>
26648 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
26651 2005-11-23 Laurent Guerby <laurent@guerby.net>
26653 * mlib-prj.adb (Build_Library): Initialize Delete.
26655 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
26657 * socket.c: Add extern int h_errno for rtems since networking header
26658 files are not available at this point in a tool bootstrap. Newlib
26659 only has basic C library header files.
26661 2005-11-19 Richard Guenther <rguenther@suse.de>
26662 Roger Sayle <roger@eyesopen.com>
26665 * misc.c (internal_error_function): Don't use vsprintf to format
26666 the error message text, instead use pp_format_text and the new
26667 pretty printer APIs. This allows handling of %qs, %w, etc.
26669 2005-11-18 Laurent Guerby <laurent@guerby.net>
26672 * Makefile.in: Use s-auxdec-empty for RTEMS.
26674 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26677 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
26678 a temporary if taking the address of something that is neither
26679 reference, declaration, or constant, since the gimplifier
26680 can't handle that case.
26682 2005-11-17 Laurent Guerby <laurent@guerby.net>
26685 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
26687 2005-11-16 Richard Guenther <rguenther@suse.de>
26689 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
26691 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
26694 * raise-gcc.c: Add missing stdarg.h include.
26696 2005-11-16 Richard Guenther <rguenther@suse.de>
26698 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
26699 (ada/misc.o): Likewise.
26701 2005-11-14 Thomas Quinot <quinot@adacore.com>
26703 * g-soccon.ads: Minor reformatting. Update comments.
26705 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
26706 gain visibility on the declaration of struct timeval.
26708 * g-soccon-freebsd.ads,
26709 g-soccon-darwin.ads,
26710 g-soccon-tru64.ads,
26714 g-soccon-solaris.ads,
26716 g-soccon-mingw.ads,
26717 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
26719 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
26720 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
26721 g-soccon-linux-x86.ads: New files.
26723 * g-socthi-mingw.adb:
26724 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
26726 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
26727 (time_t, suseconds_t): New types constructed to match the tv_sec
26728 and tv_usec fields of C struct timeval.
26729 (Timeval): Construct structure in terms of the new types.
26730 (Host_Errno): New function (imported from socket.c), returns last hosts
26733 * g-socthi-vxworks.adb: Add error handling circuitry.
26735 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
26736 components of struct timeval.
26737 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
26738 (Check_Selector): In error conditions, clear internal socket sets to
26739 avoid a memory leak.
26740 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
26741 Send_Timeout, Receive_Timeout.
26743 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
26744 the tv_sec and tv_usec fields of C struct timeval.
26745 (Timeval): Construct structure in terms of the new types.
26746 (Host_Errno): New function (imported from socket.c), returns last hosts
26749 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
26750 hosts database last error code.
26752 * gen-soccon.c: Complete value expansion should not be performed on
26753 TARGET, as it has the form of a math expression, and some components
26754 may be platform-defined macros.
26755 For VxWorks, generate the OK and ERROR values.
26756 New constants giving the sizes of the components of C struct timeval.
26758 2005-11-14 Robert Dewar <dewar@adacore.com>
26759 Ed Schonberg <schonberg@adacore.com>
26762 * types.ads: Include All_Checks in Suppress_Array
26764 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
26765 not(a=b), since we no longer do this rewriting, and hence it is not
26767 (Elaboration_Checks_Suppressed): Add special casing to
26768 deal with different cases of static and dynamic elaboration checks (all
26769 checks does not count in the first case, but does in the second).
26770 (Expr_Known_Valid): Do not assume that the result of any arbitrary
26771 function call is valid, since this is not the case.
26772 (Ensure_Valid): Do not apply validity check to a real literal
26773 in a universal or fixed context
26775 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
26776 elementary types using the operator in standard. It is cleaner not to
26777 modify the programmers intent, especially in the case of floating-point.
26778 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
26779 it did not matter because we always rewrote a/=b to not(a=b).
26780 (Expand_Allocator_Expression): For an allocator expression whose nominal
26781 subtype is an unconstrained packed type, convert the expression to its
26782 actual constrained subtype.
26783 Implement warning for <= or >= where < or > not possible
26784 Fix to Vax_Float tests (too early in many routines, causing premature
26785 Vax_Float expansions.
26787 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
26788 to be used with packages and generic packages as well as with
26790 (Suppress): Set All_Checks, but not Elaboration_Check, for case
26791 of pragma Suppress (All_Checks)
26792 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
26793 a string literal for precise control over warnings.
26794 Avoid raise of pragma in case of unrecognized pragma and just return
26797 * sem_prag.ads: Minor reformatting
26799 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
26800 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
26801 Switch. Do not handle any exception.
26802 Include -gnatwx as part of -gnatg (warn on redundant parens)
26803 Allow optional = after -gnatm
26804 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
26805 longer sets Elaboration_Checks.
26806 Code to set warning mode moved to Sem_Warn
26807 so that it can be shared by pragma processing.
26809 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
26812 * s-taprop-solaris.adb:
26813 Change some <= to =, to avoid new warning
26815 * a-exexda.adb, prj-proc.adb:
26816 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
26817 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
26819 2005-11-14 Robert Dewar <dewar@adacore.com>
26821 * exp_vfpt.adb: Handle /= case
26822 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
26823 so that we do not get duplicate scaling for fixed point conversions.
26825 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
26827 2005-11-14 Matthew Gingell <gingell@adacore.com>
26829 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
26830 Increase default priority on Lynx from 15 to 17, and meet the Ada
26831 requirement that Default_Priority be ((Priority'First +
26832 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
26834 2005-11-14 Vincent Celier <celier@adacore.com>
26836 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
26837 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
26838 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
26839 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
26840 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
26841 mlib-tgt-lynxos.adb (DLL_Prefix): New function
26843 2005-11-14 Doug Rupp <rupp@adacore.com>
26845 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
26848 2005-11-14 Arnaud Charlet <charlet@adacore.com>
26850 * s-traces-default.adb, s-trafor-default.ads,
26851 s-tratas-default.adb: Fix compilation errors.
26853 2005-11-14 Jose Ruiz <ruiz@adacore.com>
26855 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
26856 raising the exception so the memory used is freed.
26858 2005-11-14 Arnaud Charlet <charlet@adacore.com>
26860 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
26861 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
26862 (convert_address): Update comments and list of platforms using this.
26864 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
26867 2005-11-14 Pascal Obry <obry@adacore.com>
26868 Vincent Celier <celier@adacore.com>
26870 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
26873 * memroot.adb: Remove redundant with/use clause on
26874 System.Storage_Elements.
26876 2005-11-14 Arnaud Charlet <charlet@adacore.com>
26878 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
26879 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
26880 related code to a-exexpr.adb
26881 (Save_Occurrence_And_Private): Move GCC EH related code to
26883 (Raise_Current_Excep): Add new variable Id with pragma
26884 volatile, to ensure that the variable lives on stack.
26886 * a-exexpr-gcc.adb, raise-gcc.c: New file.
26888 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
26890 Move GCC EH related code to a-exexpr-gcc.adb
26892 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
26894 Split the Linux version of g-soccon into separate variants for 32 and 64
26896 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
26897 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
26898 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
26899 of host variable $(RANLIB_FLAGS).
26900 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
26901 Code clean up: remove unused/obsolete targets.
26902 (EH_MECHANISM): New variable introduced to differenciate between the
26903 two EH mechanisms statically.
26904 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
26905 (LIBGNAT_OBJS): Add raise-gcc.o
26906 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
26907 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
26908 supports VxWorks 6 RTPs.
26909 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
26910 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
26912 * raise.c: Move all GCC EH-related routines to raise-gcc.c
26914 2005-11-14 Jose Ruiz <ruiz@adacore.com>
26916 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
26917 deferral level, when abort is not allowed, to a later stage (the
26919 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
26920 it will not get changed by the generated code. It was previously done
26923 2005-11-14 Thomas Quinot <quinot@adacore.com>
26924 Olivier Hainque <hainque@adacore.com>
26925 Eric Botcazou <ebotcazou@adacore.com>
26928 Factor common code to build a storage type for an unconstrained object
26929 from a fat or thin pointer type and a constrained object type.
26930 (annotate_value): Handle BIT_AND_EXPR.
26931 (annotate_rep): Don't restrict the back annotation of inherited
26932 components to the type_annotate_only case.
26933 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
26934 we are not defining the type.
26935 <E_Record_Type>: Likewise.
26936 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
26937 to get advantage of the new maybe_stabilize_reference interface, to
26938 ensure that what we reference is indeed stabilized instead of relying
26939 on assumptions on what the stabilizer does.
26940 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
26941 type imported through a limited_with clause, use its non-limited view.
26942 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
26944 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
26945 of #if sections + explicit comparisons of convention identifiers.
26946 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
26947 before early-returning for certain types when code generation is
26949 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
26950 nullification of gnu_expr we do for objects with address clause and
26951 that we are not defining.
26952 (elaborate_expression_1): Do not create constants when creating
26953 variables needed by the debug info: the dwarf2 writer considers that
26954 CONST_DECLs is used only to represent enumeration constants, and emits
26956 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
26957 object with an address clause into an indirect reference, drop the
26958 initializing expression.
26960 (STACK_CHECK_BUILTIN): Delete.
26961 (STACK_CHECK_PROBE_INTERVAL): Likewise.
26962 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
26963 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
26964 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
26965 corresponding to the renamed object as ignored for debugging purposes.
26967 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
26968 related): For a prefix that is a dereference of a fat or thin pointer,
26969 if there is an actual subtype provided by the front-end, use that
26970 subtype to build an actual type with bounds template.
26971 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
26972 is provided by the front-end, use that subtype to compute the size of
26973 the deallocated object.
26974 (gnat_to_gnu): When adding a statement into an elaboration procedure,
26975 check for a potential violation of a No_Elaboration_Code restriction.
26976 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
26977 with extra arguments to control whether to recurse through non-values
26978 and to let the caller know if the stabilization has succeeded.
26979 (gnat_stabilize_reference): Now a simple wrapper around
26980 maybe_stabilize, for common uses without restriction on lvalues and
26981 without need to check for the success indication.
26982 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
26983 pass false instead of 0 as the FORCE argument which is a bool.
26984 (Identifier_to_gnu): Remove checks ensuring that an renamed object
26985 attached to a renaming pointer has been properly stabilized, as no such
26986 object is attached otherwise.
26987 (call_to_gnu): Invoke create_var_decl to create the temporary when the
26988 function uses the "target pointer" return mechanism.
26989 Reinstate conversion of the actual to the type of the formal
26990 parameter before any other specific treatment based on the passing
26991 mechanism. This turns out to be necessary in order for PLACEHOLDER
26992 substitution to work properly when the latter type is unconstrained.
26994 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
26996 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
26997 with extra arguments to control whether to recurse through non-values
26998 and to let the caller know if the stabilization has succeeded.
27000 * utils2.c (gnat_build_constructor): Only sort the fields for possible
27001 static output of record constructor if all the components are constant.
27002 (gnat_build_constructor): For a record type, sort the list of field
27003 initializers in increasing bit position order.
27004 Factor common code to build a storage type for an unconstrained object
27005 from a fat or thin pointer type and a constrained object type.
27006 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
27007 types variants, and process special cases of VIEW_CONVERT expressions
27008 as their NOP_EXPR counterpart to ensure we get to the
27009 CORRESPONDING_VARs associated with CONST_DECls.
27010 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
27011 on the right-hand side.
27013 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
27015 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
27016 are converting back to its original type.
27017 (convert) <JM input>: Fallthrough regular conversion code instead of
27018 extracting the object if converting to a type variant.
27019 (create_var_decl): When a variable has an initializer requiring code
27020 generation and we are at the top level, check for a potential violation
27021 of a No_Elaboration_Code restriction.
27022 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
27023 SIZE and SIZE_UNIT which we need for later back-annotations.
27024 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
27025 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
27026 is an unchecked union.
27027 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
27028 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
27029 main variant, just replace the VIEW_CONVERT_EXPR.
27030 <UNION_TYPE>: Revert 2005-03-02 change.
27032 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
27034 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
27036 2005-11-14 Matthew Heaney <heaney@adacore.com>
27038 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
27039 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
27040 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
27041 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
27042 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
27043 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
27044 Compiles against the spec for ordered maps described in sections
27045 A.18.6 of the most recent (August 2005) AI-302 draft.
27047 2005-11-14 Olivier Hainque <hainque@adacore.com>
27049 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
27050 to ensure bias adjustments take place when need be and to prevent
27051 occurrences of intermediate overflows.
27053 2005-11-14 Matthew Gingell <gingell@adacore.com>
27054 Olivier Hainque <hainque@adacore.com>
27056 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
27059 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
27060 tracebacks on ia64 HP-UX and provide explanatory comment.
27061 Enable backtraces on ia64 GNU/Linux.
27062 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
27063 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
27065 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
27066 Javier Miranda <miranda@adacore.com>
27068 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
27069 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
27070 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
27071 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
27073 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
27074 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
27077 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
27078 subprogram that generates the external name associated with a
27079 secondary dispatch table.
27080 (Get_Secondary_DT_External_Name): New subprogram that generates the
27081 external name associated with a secondary dispatch table.
27083 2005-11-14 Emmanuel Briot <briot@adacore.com>
27085 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
27086 line in the ALI file to include both an instantiation reference, and a
27089 2005-11-14 Vincent Celier <celier@adacore.com>
27091 * clean.adb (Check_Project): Look for Ada code in extending project,
27092 even if Ada is not specified as a language.
27093 Use new function DLL_Prefix for DLL_Name
27094 (Clean_Interface_Copy_Directory): New procedure
27095 (Clean_Library_Directory): New procedure
27096 (Clean_Directory): Remove procedure, no longer used
27097 (Clean_Project): Do not delete any file in an externally built project
27099 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
27100 directory of an extending project, even when there are no Ada source
27102 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
27103 (Set_Ada_Paths.Add.Recursive_Add): Ditto
27105 * mlib-prj.adb (Check_Library): For all library projects, get the
27106 library file timestamp.
27107 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
27108 (Build_Library): Use new function DLL_Prefix for the DLL_Name
27109 (Clean): Remove procedure, no longer used
27110 (Ultimate_Extension_Of): New function
27111 (Build_Library): When cleaning the library directory, only remove an
27112 existing library file and any ALI file of a source of the project.
27113 When cleaning the interface copy directory, remove any source that
27114 could be a source of the project.
27116 * prj.ads, prj.adb (Project_Empty): Add values of new components
27117 Library_TS and All_Imported_Projects.
27118 (Project_Empty): Add values for new components of Project_Data:
27119 Library_ALI_Dir and Display_Library_ALI_Dir
27121 * prj-attr.adb: New project level attribute name Library_ALI_Dir
27123 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
27124 attribute Library_ALI_Dir.
27125 (Check_Library_Attributes): The library directory cannot be the same as
27126 any source directory of the project tree.
27127 (Check_Stand_Alone_Library): The interface copy directory cannot be
27128 the same as any source directory of the project tree.
27130 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
27131 all temporary files.
27133 2005-11-14 Robert Dewar <dewar@adacore.com>
27134 Ed Schonberg <schonberg@adacore.com>
27136 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
27137 (Check_Elab_Call): A call within a protected body is never an
27138 elaboration call, and does not require checking.
27139 (Same_Elaboration_Scope): Take into account protected types for both
27141 (Activate_Elaborate_All_Desirable): New procedure
27143 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
27146 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
27147 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
27149 * lib-writ.ads, lib-writ.adb:
27150 Implement new AD/ED for Elaborate_All/Elaborate desirable
27151 Use new Elaborate_All_Desirable flag in N_With_Clause node
27153 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
27154 N_Free_Statement nodes.
27155 Define new class N_Subprogram_Instantiation
27156 Add Elaborate_Desirable flag to N_With_Clause node
27157 Add N_Delay_Statement (covering two kinds of delay)
27159 * debug.adb: Introduce d.f flag for compiler
27160 Add -da switch for binder
27162 2005-11-14 Ed Schonberg <schonberg@adacore.com>
27163 Cyrille Comar <comar@adacore.com>
27165 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
27166 for task component, in the case of a limited aggregate. The enclosed
27167 object declaration will create it earlier. Otherwise, in the case of a
27168 nested aggregate, the object may appear in the wrong scope.
27169 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
27170 (Gen_Assign): If the component being assigned is an array type and the
27171 expression is itself an aggregate, wrap the assignment in a block to
27172 force finalization actions on the temporary created for each row of the
27174 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
27175 structures are initialized after all discriminants are set so that
27176 they can be accessed even when their offset is dynamic.
27178 2005-11-14 Robert Dewar <dewar@adacore.com>
27179 Hristian Kirtchev <kirtchev@adacore.com>
27181 * sem_attr.adb: Implement Machine_Rounding attribute
27182 (Analyze_Access_Attribute): The access attribute may appear within an
27183 aggregate that has been expanded into a loop.
27184 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
27185 'Terminated whenever the prefix is of a task interface class-wide type.
27186 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
27187 the prefix is of a task interface class-wide type.
27189 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
27192 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
27193 Remove pragma Inline for [Unaligned_]Valid.
27194 Add comments that Valid routines do not work for Vax_Float
27196 * exp_attr.adb: Implement Machine_Rounding attribute
27198 * snames.h: Add entry for Machine_Rounding attribute
27200 2005-11-14 Javier Miranda <miranda@adacore.com>
27201 Robert Dewar <dewar@adacore.com>
27202 Hristian Kirtchev <kirtchev@adacore.com>
27204 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
27205 and related): For a prefix that is an explicit dereference of an
27206 access to unconstrained packed array type, annotate the dereference
27207 with an actual subtype so GIGI can make a correct size computation.
27208 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
27209 'Unrestricted_Access, if the designated type is an interface we
27210 add a type conversion to force the displacement of the pointer
27211 to the secondary dispatch table.
27212 Use Universal_Real instead of Long_Long_Float when we need a high
27213 precision float type for the generated code (prevents gratuitous
27214 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
27215 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
27216 'Terminated for task interface class-wide objects. Generate a call to
27217 the predefined dispatching routine used to retrieve the _task_id from
27218 a task corresponding record.
27219 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
27221 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
27222 (Check_Dispatching_Operation): Protect the frontend againts
27223 previously detected errors.
27225 * Makefile.rtl: Add new instantiations of system.fat_gen
27227 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
27228 Change name of instantiated package for better consistency
27229 with newly added system.fat_gen instantiations.
27231 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
27232 s-fvagfl.ads: New files.
27234 2005-11-14 Cyrille Comar <comar@adacore.com>
27235 Thomas Quinot <quinot@adacore.com>
27237 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
27238 assignment of a value of a tagged type that has been rewritten to a
27239 block statement, it is known by construction that no checks are
27240 necessary for the statements within the block: analyze it with checks
27242 (Expand_N_If_Statement): When killing a dead then-branch in an
27243 if-statement that has elsif_parts, recompute the Current_Value node
27244 for any entity whose value is known from the condition of the first
27246 (Expand_N_Return_Statement): When returning a mutable record, convert
27247 the return value into its actual subtype in order to help the backend
27248 to return the actual size instead of the maximum. This is another
27249 aftermath of not returning mutable records on the sec-stack anymore.
27251 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
27252 handling of error msg for suspicious reverse range iteration.
27253 (Check_Possible_Current_Value_Condition): Move declaration from body to
27254 spec, to allow this subprogram to be called from exp_ch5.
27256 2005-11-14 Thomas Quinot <quinot@adacore.com>
27258 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
27259 generate a set of nested array aggregates instead of a single flat
27260 aggregate for multi-dimensional arrays.
27262 2005-11-14 Pascal Obry <obry@adacore.com>
27264 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
27265 by spawnve is a process handle, no need to convert. Add a parameter
27266 close to control wether the process handle must be closed.
27267 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
27268 a process handle, not need to convert.
27269 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
27271 * g-expect.adb: (Kill): Document the new close parameter.
27272 (Close): Do not release the process handle in the kill there as
27273 waitpid() is using it.
27274 (Send_Signal): Release the process handle.
27276 2005-11-14 Robert Dewar <dewar@adacore.com>
27278 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
27279 need a high precision float type for the generated code (prevents
27280 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
27283 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
27284 need a high precision float type for the generated code (prevents
27285 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
27287 (Expand_Width_Attribute): In configurable run-time, the attribute is not
27288 allowed on non-static enumeration subtypes. Force a load error to emit
27289 the correct diagnostic.
27291 2005-11-14 Thomas Quinot <quinot@adacore.com>
27292 Robert Dewar <dewar@adacore.com>
27293 Ed Schonberg <schonberg@adacore.com>
27295 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
27296 subtype to compute the size of the designated object at run-time,
27297 create such a subtype and store it in the Actual_Designated_Subtype
27298 attribute of the N_Free_Statement.
27299 Generate itype for classwide designated object in both cases of
27300 user-specified storage pool: specific and class-wide, not only in the
27302 Raise CE when trying to set a not null access type object to null.
27303 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
27304 an explicit loop, because freeze nodes make its position variable.
27306 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
27309 2005-11-14 Javier Miranda <miranda@adacore.com>
27311 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
27312 Build_Stream_Procedure): Add the null-excluding attribute to the first
27314 This has no semantic meaning under Ada95 mode but it is a
27315 requirement under Ada05 mode.
27317 * par-ch3.adb (P_Access_Definition): Addition of warning message if
27318 the null exclusion is used under Ada95 mode
27319 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
27320 (P_Access_Definition): Remove assertion that forbids the use of
27321 the null-exclusion feature in Ada95.
27323 2005-11-14 Robert Dewar <dewar@adacore.com>
27325 * impunit.adb: Exclude container helper units not intended for use by
27328 2005-11-14 Ed Schonberg <schonberg@adacore.com>
27330 * freeze.adb (Freeze_Entity): For an access formal that is an access
27331 to subprogram, freeze the anonymous subprogram type at the same time,
27332 to prevent later freezing in the wrong scope, such as the enclosing
27334 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
27335 subprogram whenever available.
27337 2005-11-14 Arnaud Charlet <charlet@adacore.com>
27340 * gnatvsn.ads (Library_Version): Bump to 4.1
27342 2005-11-14 Robert Dewar <dewar@adacore.com>
27344 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
27345 Storage_Offset to avoid wrap around causing invalid results.
27347 2005-11-14 Pascal Obry <obry@adacore.com>
27349 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
27351 (Scan_Bind_Arg): Fail with an error message if -M option is used
27352 on a native compiler.
27354 2005-11-14 Robert Dewar <dewar@adacore.com>
27355 Vincent Celier <celier@adacore.com>
27357 * gprep.adb: Implement -C switch to scan comments
27359 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
27361 * scans.ads: Comment updates (including new use of Tok_Comment in
27364 * opt.ads: Add documentation for flags that are used by gprmake,
27365 currently and in the next version of gprmake.
27366 (Verbosity_Level): New variable
27367 Add Replace_In_Comments switch
27369 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
27371 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
27373 2005-11-14 Arnaud Charlet <charlet@adacore.com>
27375 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
27376 message, friendlier.
27378 2005-11-14 Robert Dewar <dewar@adacore.com>
27380 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
27382 2005-11-14 Doug Rupp <rupp@adacore.com>
27384 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
27386 2005-11-14 Robert Dewar <dewar@adacore.com>
27388 * interfac.ads: Change declarations of IEEE float types so that we no
27389 longer need a separate version of this package for VMS.
27391 2005-11-14 Ed Schonberg <schonberg@adacore.com>
27393 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
27394 internal entity created for the declaration of a child subprogram body
27395 with no spec as coming from source, to generate proper cross-reference
27398 2005-11-14 Vincent Celier <celier@adacore.com>
27400 * make.adb (Compile_Sources): Change verbose message to minimum
27401 verbosity level High for "is in an Ada library", "is a read-only
27402 library" and "is an internal library",
27403 (Create_Binder_Mapping_File): Path name of ALI file for library project
27404 must include the library directory, not the object directory.
27405 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
27406 for new switches -vl, -vm and -vh.
27407 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
27408 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
27409 (Compile_Sources): Do not attempt to compile if an ALI file is missing
27410 in a project that is externally built.
27411 (Compute_All_Imported_Projects): New procedure
27412 (Gnatmake): Check if importing libraries should be regenerated because
27413 at least an imported library is more recent.
27414 (Initialize): For each project compute the list of the projects it
27415 imports directly or indirectly.
27416 (Add_Library_Search_Dir): New procedure, used in place of
27417 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
27418 put in the search paths.
27419 (Add_Source_Search_Dir): New procedure, used in place of
27420 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
27421 put in the search paths.
27422 (Mark_Directory): Resolve the absolute path the directory before marking
27425 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
27426 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
27427 Switch. Do not handle any exception.
27428 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
27429 so that the switch is recognized as valid.
27430 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
27432 2005-11-14 GNAT Script <nobody@adacore.com>
27434 * Make-lang.in: Makefile automatically updated
27436 2005-11-14 Pascal Obry <obry@adacore.com>
27438 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
27440 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
27441 In both cases the last argument was dropped.
27443 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
27445 * namet.h: (Column_Numbe): New type.
27446 (Get_Column_Number): Define to sinput__get_column_number.
27447 (Instantiation): Define to sinput__instantiation.
27448 (Get_Column_Number): Declare.
27449 (Instantiation): Likewise.
27451 2005-11-14 Robert Dewar <dewar@adacore.com>
27453 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
27454 syntax, which could cause compiler hangs.
27456 2005-11-14 Vincent Celier <celier@adacore.com>
27458 * prj-ext.adb: Take into account new environment variable
27459 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
27461 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
27462 normalize its path name, making it absolute and resolving symbolic
27463 links, and replace the original if resolved path is different.
27465 2005-11-14 Vincent Celier <celier@adacore.com>
27467 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
27468 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
27470 2005-11-14 Emmanuel Briot <briot@adacore.com>
27472 * prj-pp.adb (Print): Do not output the with statement if the
27473 associated name is empty, which happens for virtual extending projects.
27474 (Print): Preserve the "extends all" attribute when printing the project.
27476 * prj-tree.ads (String_Value_Of): Add comment about returned value for
27477 a virtual extending project.
27479 2005-11-14 Ed Schonberg <schonberg@adacore.com>
27481 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
27482 rhs of an assignment even if the type is unconstrained, when the
27483 context is non-expanding.
27484 In an inlined body, if the context type is private,
27485 resolve with its full view, which must be a composite type.
27487 2005-11-14 Robert Dewar <dewar@adacore.com>
27488 Ed Schonberg <schonberg@adacore.com>
27490 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
27491 Do not give obsolescent warning on with of subprogram (since we
27493 (Analyze_With_Clause): Add test for obsolescent package
27494 (Install_Context_Clauses): If the unit is the body of a child unit, do
27495 not install twice the private declarations of the parents, to prevent
27496 circular lists of Use_Clauses in a parent.
27497 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
27498 compiling body of child unit.
27499 Use new class N_Subprogram_Instantiation
27500 (Expand_With_Clause): If this is a private with_clause for a child unit,
27501 appearing in the context of a package declaration, then the implicit
27502 with_clauses generated for parent units are private as well.
27503 (License_Check): Do not generate message if with'ed unit is internal
27505 2005-11-14 Gary Dismukes <dismukes@adacore.com>
27506 Ed Schonberg <schonberg@adacore.com>
27507 Thomas Quinot <quinot@adacore.com>
27509 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
27510 names are internal, because they will not have a corresponding partner
27511 in the actual package.
27512 (Analyze_Formal_Package): Move the setting of the formal package spec's
27513 Generic_Parent field so that it occurs prior to analyzing the package,
27514 to allow proper operation of Install_Parent_Private_Declarations.
27515 (Analyze_Package_Instantiation): Set the instantiated package entity's
27516 Package_Instantiation field.
27517 (Get_Package_Instantiation_Node): Move declaration to package spec.
27518 Retrieve the N_Package_Instantiation node when the Package_Instantiation
27520 (Check_Generic_Child_Unit): Within an inlined call, the only possible
27521 instantiation is Unchecked_Conversion, for which no parents are needed.
27522 (Inline_Instance_Body): Deinstall and record the use_clauses for all
27523 parent scopes of a scope being removed prior to inlining an instance
27525 (Analyze_Package_Instantiation): Do not perform front-end inlining when
27526 the current context is itself an instance within a non-instance child
27527 unit, to prevent scope stack errors.
27528 (Save_References): If the node is an aggregate that is an actual in a
27529 call, rewrite as a qualified expression to preserve some type
27530 information, to resolve possible ambiguities in the instance.
27531 (Instance_Parent_Unit): New global variable to record the ultimate
27532 parent unit associated with a generic child unit instance (associated
27533 with the existing Parent_Unit_Visible flag).
27534 (type Instance_Env): New component Instance_Parent_Unit for stacking
27535 parents recorded in the global Instance_Parent_Unit.
27536 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
27538 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
27539 it's not a top-level unit, and only do this if Instance_Parent_Unit is
27540 not already set. Replace test of Is_Child_Unit with test of parent's
27541 scope against package Standard. Add comments and a ??? comment.
27542 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
27543 on a child instance parent to test that the parent equals
27544 Instance_Parent rather than simply checking that the unit is not a
27546 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
27547 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
27548 a formal interface are ancestors of the corresponding actual.
27549 (Validate_Formal_Interface_Type): Additional legality checks.
27550 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
27551 interface types with ancestors.
27552 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
27553 to diagnose attempts to use generic within its own declaration.
27555 2005-11-14 Ed Schonberg <schonberg@adacore.com>
27556 Javier Miranda <miranda@adacore.com>
27558 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
27560 (Build_Private_Derived_Type): The entity of the created full view of the
27561 derived type does not come from source. If after installing the private
27562 declarations of the parent scope the parent is still private, use its
27563 full view to construct the full declaration of the derived type.
27564 (Build_Derived_Record_Type): Relax the condition that controls the
27565 execution of the check that verifies that the partial view and
27566 the full view agree in the set of implemented interfaces. In
27567 addition, this test now only takes into account the progenitors.
27568 (Derive_Interface_Subprograms): No need to derive subprograms
27569 of ancestors that are interfaces.
27570 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
27572 Change name Is_Package to Is_Package_Or_Generic_Package
27573 (Complete_Subprograms_Derivation): Handle the case in which the full
27574 view is a transitive derivation of the ancestor of the partial view.
27575 (Process_Full_View): Rename local subprogram Find_Interface_In_
27576 Descendant to Find_Ancestor_Interface to leave the code more clear.
27577 Remove wrong code that avoids the generation of an error message
27578 when the immediate ancestor of the partial view is an interface.
27579 In addition some minor reorganization of the code has been done to
27580 leave it more clear.
27581 (Analyze_Type_Declaration): If type has previous incomplete tagged
27582 partial view, inherit properly its primitive operations.
27583 (Collect_Interfaces): Make public, for analysis of formal
27585 (Analyze_Interface_Declaration): New procedure for use for regular and
27586 formal interface declarations.
27587 (Build_Derived_Record_Type): Add support for private types to the code
27588 that checks if a tagged type implements abstract interfaces.
27589 (Check_Aliased_Component_Type): The test applies in the spec of an
27591 (Access_Type_Declaration): Clean up declaration of malformed type
27592 declared as an access to its own classwide type, to prevent cascaded
27594 (Collect_Interfaces): For private extensions and for derived task types
27595 and derived protected types, the parent may be an interface that must
27596 be included in the interface list.
27597 (Access_Definition): If the designated type is an interface that may
27598 contain tasks, create Master_Id for it before analyzing the expression
27599 of the declaration, which may be an allocator.
27600 (Record_Type_Declaration): Set properly the interface kind, for use
27601 in allocators, the creation of master id's for task interfaces, etc.
27603 2005-11-14 Javier Miranda <miranda@adacore.com>
27604 Ed Schonberg <schonberg@adacore.com>
27606 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
27607 omitted in case of stream attribute subprograms.
27608 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
27609 appear immediately after a subprogram body, when there is no previous
27610 subprogram declaration.
27611 Change name Is_Package to Is_Package_Or_Generic_Package
27612 (Process_Formals): A non null qualifier on a non null named access
27613 type is not an error, and is a warning only if Redundant_Constructs
27616 2005-11-14 Gary Dismukes <dismukes@adacore.com>
27617 Ed Schonberg <schonberg@adacore.com>
27619 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
27620 nested within Analyze_Package_Specification to install the private
27621 declarations and use clauses within each of the parent units of a
27622 package instance of a generic child package.
27623 (Analyze_Package_Specification): When entering a private part of a
27624 package associated with a generic instance or formal package, the
27625 private declarations of the parent must be installed (by calling new
27626 procedure Install_Parent_Private_Declarations).
27627 Change name Is_Package to Is_Package_Or_Generic_Package
27628 (Preserve_Full_Attributes): For a synchronized type, the corresponding
27629 record is absent in a generic context, which does not indicate a
27632 2005-11-14 Ed Schonberg <schonberg@adacore.com>
27634 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
27635 not try to rewrite a renamed stream attribute, because the operations
27636 on the type may not have been generated.
27637 Handle properly a renaming_as_body generated for a stream operation
27638 whose default is abstract because the object type itself is abstract.
27639 (Find_Type): If the type is incomplete and appears as the prefix of a
27640 'Class reference, it is tagged, and its list of primitive operations
27641 must be initialized properly.
27642 (Chain_Use_Clauses): When chaining the use clauses that appear in the
27643 private declaration of a parent unit, prior to compiling the private
27644 part of a child unit, find on the scope stack the proper parent entity
27645 on which to link the use clause.
27646 (Note_Redundant_Use): Emit a warning when a redundant use clause is
27648 (Analyze_Object_Renaming): An attribute reference is not a legal object
27649 if it is not a function call.
27651 2005-11-14 Robert Dewar <dewar@adacore.com>
27652 Ed Schonberg <schonberg@adacore.com>
27654 * sem_eval.adb: Implement d.f flag
27655 (Subtype_Statically_Match): A generic actual type has unknown
27656 discriminants when the corresponding actual has a similar partial view.
27657 If the routine is called to validate the signature of an inherited
27658 operation in a child instance, the generic actual matches the full view,
27660 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
27661 Ed Schonberg <schonberg@adacore.com>
27662 Robert Dewar <dewar@adacore.com>
27663 Thomas Quinot <quinot@adacore.com>
27665 * sem_res.adb (Resolve_Call): Provide a better error message whenever
27666 a procedure call is used as a select statement trigger and is not an
27667 entry renaming or a primitive of a limited interface.
27668 (Valid_Conversion): If the operand has a single interpretation do not
27669 remove address operations.
27670 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
27671 statement to inhibit warning.
27672 (Resolve_Unary_Op): Do not produce a warning when
27673 processing an expression of the form -(A mod B)
27674 Use Universal_Real instead of Long_Long_Float when we need a high
27675 precision float type for the generated code (prevents gratuitous
27676 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
27677 (Resolve_Concatenation_Arg): Improve error message when argument is an
27678 ambiguous call to a function that returns an array.
27679 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
27680 there is an implicit operator in the given scope if we are within an
27681 instance: legality check has been performed on the generic.
27682 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
27683 after resolving operand, to avoid false warnings on overloaded calls.
27685 2005-11-14 Ed Schonberg <schonberg@adacore.com>
27686 Javier Miranda <miranda@adacore.com>
27689 * sem_type.adb (Covers): In an inlined body, a composite type matches
27690 a private type whose full view is a composite type.
27691 (Interface_Present_In_Ancestor): Protect the frontend against
27692 previously detected errors to ensure that its compilation
27693 with assertions enabled gives the same output that its
27694 compilation without assertions.
27695 (Interface_Present_In_Ancestor): Add support for private types.
27696 Change name In_Actual to In_Generic_Actual (clean up)
27697 (Disambiguate): New predicate In_Actual, to recognize expressions that
27698 appear in the renaming declaration generated for generic actuals, and
27699 which must be resolved in the outer context.
27701 2005-11-14 Robert Dewar <dewar@adacore.com>
27702 Thomas Quinot <quinot@adacore.com>
27703 Hristian Kirtchev <kirtchev@adacore.com>
27704 Ed Schonberg <schonberg@adacore.com>
27706 * sem_util.ads, sem_util.adb: Change name Is_Package to
27707 Is_Package_Or_Generic_Package.
27708 (Check_Obsolescent): New procedure.
27709 (Set_Is_Public): Remove obsolete junk test.
27710 (Set_Public_Status): Do not set Is_Public on an object whose declaration
27711 occurs within a handled_sequence_of_statemets.
27712 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
27713 for a parameterless procedure.
27714 (Enter_Name): Recognize renaming declarations created for private
27715 component of a protected type within protected operations, so that
27716 the source name of the component can be used in the debugger.
27718 2005-11-14 Ed Schonberg <schonberg@adacore.com>
27719 Robert Dewar <dewar@adacore.com>
27721 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
27722 of a generic subprogram are not visible outside the body.
27723 (Set_Warning_Switch): New procedure (code to set warning mode moved
27724 here from Switch.C so that it can be shared by pragma processing.
27725 (Check_References): Special case warning for non-modified non-imported
27727 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
27728 form with a string literal argument
27730 2005-11-14 Javier Miranda <miranda@adacore.com>
27732 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
27734 (Write): Addition of "not null" to the anonymous access.
27735 (Read): Addition of "not null" to the anonymous access.
27736 (Write): Addition of "not null" to the anonymous access.
27738 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
27739 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
27740 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
27741 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
27742 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
27743 "not null" to the anonymous access.
27745 2005-11-14 Robert Dewar <dewar@adacore.com>
27747 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
27750 2005-11-14 Vincent Celier <celier@adacore.com>
27752 * switch.adb (Bad_Switch): New procedure
27753 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
27754 message when in error.
27756 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
27757 Too_Many_Output_Files): Remove declarations, no longer used.
27758 (Scan_Nat): New parameter Switch
27760 (Bad_Switch): New procedure
27762 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
27763 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
27764 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
27765 to Osint.Fail. Do not handle any exception.
27767 2005-11-14 Vincent Celier <celier@adacore.com>
27769 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
27770 designates a non existent directory.
27772 2005-11-14 Robert Dewar <dewar@adacore.com>
27774 * xgnatugn.adb: Replace invalid membership test by 'Valid
27776 2005-11-14 Vincent Celier <celier@adacore.com>
27778 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
27779 there is no object directory.
27781 2005-11-14 Robert Dewar <dewar@adacore.com>
27783 * usage.adb: Minor adjustment to output format, use nn instead of nnn
27784 (so that -gnateInnn does not run into next column)
27786 2005-11-14 Ed Falis <falis@adacore.com>
27788 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
27791 2005-11-14 Cyrille Comar <comar@adacore.com>
27793 * s-chepoo.ads: Add comments on Dereference.
27794 Remove unnecessary inherited abstract primitives.
27797 2005-11-14 Robert Dewar <dewar@adacore.com>
27799 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
27800 node parameter, not needed, since it is available as Declaration_Node.
27802 2005-11-14 Geert Bosch <bosch@adacore.com>
27804 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
27805 grammatically correct.
27807 2005-11-14 Vincent Celier <celier@adacore.com>
27809 * s-fileio.ads: Correct spelling error in comment
27811 2005-11-14 Cyrille Comar <comar@adacore.com>
27812 Robert Dewar <dewar@adacore.com>
27813 Vincent Celier <celier@adacore.com>
27814 Ben Brosgol <brosgol@adacore.com>
27815 Jose Ruiz <ruiz@adacore.com>
27816 Pascal Obry <obry@adacore.com>
27819 Document that -fstack-check is needed for strict compliance with the
27820 Ada 95 Reference Manual.
27821 Correct reference to VAX systems to meet HP guidelines
27822 Add documentation for new gnatmake switches -vl, -vm and -vh
27823 Replace DEC Ada by HP Ada
27824 Replace DIGITAL by HP
27825 Remove empty section on tools in compatibility section
27826 Clarify the Windows convention semantics.
27827 Document the Win32 calling convention.
27828 The Stdcall, Win32 and DLL convention are synonyms.
27829 Add a note in -gnatR description about zero size record components
27830 Note on new >= and <= warnings for -gnatwc
27831 Document that equal sign after -gnatm is optional.
27832 Note that strip is working fine on DLL built with a Library
27833 Project. The restriction apply only to DLL built with gnatdll.
27834 Update section about the way to debug a DLL.
27835 Update information about the DLL convention.
27836 Document -C switch for gnatprep
27837 Document new attribute Library_ALI_Dir
27838 Update elaboration doc to include implicit Elaborate pragmas now
27839 generated for subprogram instantiations.
27840 Document limitation on executable names that include spaces for --GCC,
27841 --GNATBIND, and --GNATLINK switches.
27842 Document that -w causes -gnatws to be added at start of gcc switches
27844 * gnat_rm.texi: Document that -mieee is needed for generating infinite
27845 and NaN values in case of overflow on machines that are not fully
27846 compliant with the IEEE floating-point standard.
27847 Create a section describing the set of compiler options needed for
27848 strict compliance with the Ada 95 Reference Manual.
27849 Add documentation for pragma Obsolescent applied to a package
27850 Clarify potential issues of mixed language programs related to the
27851 I/O buffering enabling in the elaboration of the GNAT runtime.
27852 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
27853 This documentation only patch adds extra documentsion for pragma
27854 Restrictions (No_Elaboration_Code), explaining why it is not possible
27855 to document this restriction in terms of allowed source constructs.
27856 Document string literal form of pragma Warnings
27857 Document new attribute Library_ALI_Dir
27858 Add documentation on stable attributes in project files that was missing
27860 * gnat-style.texi: Indicate that paragraphs within a single comment
27861 should be separated by empty comment lines
27863 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
27866 * bindusg.adb: Minor cleanup, put -m before -M for consistency
27868 2005-11-14 Robert Dewar <dewar@adacore.com>
27870 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
27871 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
27872 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
27873 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
27874 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
27875 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
27876 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
27877 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
27878 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
27879 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
27880 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
27881 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
27882 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
27883 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
27884 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
27885 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
27886 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
27887 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
27888 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
27889 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
27890 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
27891 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
27892 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
27893 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
27894 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
27895 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
27896 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
27897 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
27898 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
27899 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
27900 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
27901 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
27902 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
27903 system-interix.ads, system-solaris-sparc.ads,
27904 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
27905 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
27906 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
27907 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
27908 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
27909 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
27910 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
27911 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
27912 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
27913 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
27914 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
27915 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
27916 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
27917 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
27918 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
27919 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
27920 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
27921 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
27922 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
27923 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
27924 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
27925 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
27926 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
27927 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
27928 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
27929 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
27930 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
27931 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
27932 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
27933 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
27934 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
27935 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
27936 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
27937 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
27938 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
27939 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
27940 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
27941 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
27942 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
27943 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
27944 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
27945 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
27946 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
27947 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
27948 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
27949 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
27950 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
27951 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
27952 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
27953 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
27954 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
27955 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
27956 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
27957 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
27958 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
27959 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
27960 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
27961 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
27962 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
27963 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
27964 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
27965 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
27966 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
27967 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
27968 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
27969 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
27970 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
27971 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
27972 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
27973 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
27974 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
27975 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
27976 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
27977 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
27978 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
27979 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
27980 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
27981 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
27982 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
27983 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
27984 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
27985 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
27986 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
27987 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
27988 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
27989 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
27990 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
27991 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
27992 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
27993 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
27994 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
27995 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
27996 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
27997 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
27998 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
27999 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
28000 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
28001 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
28002 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
28003 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
28004 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
28005 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
28006 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
28007 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
28008 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
28009 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
28010 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
28011 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
28012 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
28013 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
28014 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
28015 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
28016 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
28017 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
28018 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
28019 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
28020 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
28021 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
28022 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
28023 a-numaux-darwin.ads, a-numaux-darwin.adb,
28024 a-swuwha.ads, a-stunha.ads: Minor reformatting
28026 2005-11-14 Robert Dewar <dewar@adacore.com>
28029 * osint-m.adb: Add pragma Elaborate_All for Osint
28031 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
28034 * trans.c (call_to_gnu): Restore statement lost in translation.
28036 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
28038 * init.c: Use the Linux-specific section for the IA-64/Linux target.
28039 (__gnat_adjust_context_for_raise): Add conditional code so that the
28040 IA-64 is also supported.
28042 2005-11-03 James E Wilson <wilson@specifix.com>
28045 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
28046 TREE_OVERFLOW check.
28048 2005-09-21 Olivier Hainque <hainque@adacore.com>
28051 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
28052 as we create them to store a size in bits.
28054 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
28062 * utils2.c (build_return_expr): New helper function.
28063 * gigi.h (build_return_expr): Declare it.
28064 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
28065 of manually building the RETURN_EXPR tree.
28066 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
28067 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
28068 build_binary_op for the "target pointer" case. Use build_return_expr
28069 instead of manually building the RETURN_EXPR tree.
28071 2005-09-16 Laurent Guerby <laurent@guerby.net>
28074 * s-tpinop.ads: Make this unit Preelaborate.
28076 2005-09-16 Andreas Jaeger <aj@suse.de>
28078 * socket.c: Add string.h for memcpy.
28080 2005-09-05 Arnaud Charlet <charlet@adacore.com>
28082 * dec-io.ads, dec-io.adb: Removed, no longer used.
28084 2005-09-01 Arnaud Charlet <charlet@adacore.com>
28086 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
28088 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
28089 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
28090 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
28091 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
28092 dependent units are Preelaborate.
28093 (Initialize): Call Interrupt_Managemeent.Initialize and
28094 OS_Primitives.Initialize to ensure proper initialization of this unit.
28095 Remove use of System.Soft_Links
28096 Make this unit Preelaborate.
28098 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
28099 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
28100 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
28101 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
28102 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
28103 s-tratas.ads, s-tasinf.ads: Minor reformatting.
28104 Add pragma Preelaborate, since these packages are suitable for this
28108 * s-traent-vms.ads, s-intman-dummy.adb,
28109 s-taprop-dummy.adb: Make this unit Preelaborate.
28111 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
28112 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
28113 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
28114 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
28115 s-intman-solaris.adb, s-intman-irix-athread.adb,
28116 s-intman-irix.adb: Mark this unit Preelaborate.
28117 (Initialize): New procedure.
28120 * s-taspri-linux.ads: Removed.
28122 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
28123 as done by other implementations (e.g. posix).
28125 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
28126 responsible for deferring abort.
28127 Mark this unit Preelaborate.
28129 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
28130 proper initialization of the tasking run-time.
28132 * s-tasdeb.ads: Mark this unit Preelaborate.
28133 (Known_Tasks): Add explicit default value to avoid elaboration code.
28135 * s-inmaop-vms.adb (Elaboration code): Add call to
28136 Interrupt_Management.Initialize since the elaboration code depends on
28137 proper initialization of this package.
28139 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
28140 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
28141 s-osprim-posix.adb: Make this unit Preelaborate.
28143 * a-calend.adb: Add call to OS_Primitives.Initialize
28145 * a-elchha.adb: Update use of Except.Id.Full_Name.
28146 Minor reformatting.
28147 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
28149 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
28150 Move with clauses outside Warnings Off now that dependent units are
28152 Use raise xxx with "..."; Ada 2005 form.
28154 * a-taside.ads, a-taside.adb:
28155 Remove some dependencies, to make it easier to make this unit truly
28157 Rewrite some code to be conformant with Preelaborate rules.
28159 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
28160 marked Preelaborate in the future.
28162 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
28163 these units Preelaborate.
28165 * s-exctab.adb: Update use of Except.Id.Full_Name.
28167 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
28168 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
28169 Set_Exc_Stack_Addr): Removed, no longer used.
28170 Remove reference to *Machine_State_Addr*, no longer needed.
28172 * s-stalib.ads: Mark this unit as Preelaborate[_05].
28173 (Exception_Data): Full_Name is now a System.Address so that this unit
28174 can be made Preelaborate.
28175 Clean up/simplify code thanks to Full_Name being a System.Address.
28176 Remove obsolete pragma Suppress (All_Checks), no longer needed.
28178 * s-taskin.ads, s-taskin.adb:
28179 Move with clauses outside Warnings Off now that dependent units are
28181 Make this unit Preelaborate.
28182 (Initialize): New proceduure, replace elaboration code and makes the
28183 set up of the tasking run-time cleaner.
28184 (Detect_Blocking): Now a function instead of a deferred boolean, to
28185 obey Preelaborate rules.
28187 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
28188 soft links, no longer used.
28190 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
28191 packages are suitable for this categorization.
28193 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
28194 since we compile run-time sources in Ada 2005 mode.
28195 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
28196 avoid having s-taprop*.adb depend on s-soflin and to avoid code
28198 Remove reference to *Machine_State_Addr*, no longer needed.
28200 2005-09-01 Arnaud Charlet <charlet@adacore.com>
28202 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
28203 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
28204 Remove reference to System.Exceptions.
28206 * s-mastop-x86.adb: Removed, no longer used.
28208 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
28210 * a-excach.adb: Minor reformatting.
28212 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
28213 instead fix new warnings that were hidden by this change.
28214 (AAA, ZZZ): Removed, replaced by...
28215 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
28216 are used instead of constants, to help make Ada.Exception truly
28218 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
28219 Raise_Storage_Error): File is now a System.Address, to simplify code.
28220 (Elab code): Removed, no longer used.
28221 (Null_Occurrence): Remove Warnings Off and make this construct
28223 Remove code related to front-end zero cost exception handling, since
28224 it is no longer used.
28225 Remove -gnatL/-gnatZ switches.
28227 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
28228 Update use of Except.Msg.
28230 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
28231 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
28232 to front-end zero cost exception handling, since it is no longer used.
28233 Remove -gnatL/-gnatZ switches.
28235 * lib-writ.ads: Minor reformatting
28238 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
28240 * Make-lang.in: Remove references to s-except.ads
28242 * s-except.ads: Removed, no longer used.
28244 * s-mastop.ads, s-mastop.adb:
28245 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
28246 Remove reference to System.Exceptions.
28248 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
28249 switch-b.adb: Remove code related to front-end zero cost exception
28250 handling, since it is no longer used.
28251 Remove -gnatL/-gnatZ switches.
28253 2005-09-01 Robert Dewar <dewar@adacore.com>
28254 Gary Dismukes <dismukes@adacore.com>
28255 Javier Miranda <miranda@adacore.com>
28257 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
28258 type by valid test and generate warning.
28259 (Tagged_Membership): Generate call to the run-time
28260 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
28261 Change formal name Subtype_Mark to Result_Definition in several calls to
28262 Make_Function_Specification.
28263 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
28264 check for proper accessibility of the operand of a class-wide allocator.
28265 The check can be left out if checks are suppressed or if the expression
28266 has a specific tagged type whose level is known to be safe.
28268 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
28269 generates the run-time check associated with null-excluding entities.
28270 (Expand_N_Return_Statement): Add tests to determine if the accessibility
28271 check on the level of the return expression of a class-wide function
28272 can be elided. The check usually isn't needed if the expression has a
28273 specific type (unless it's a conversion or a formal parameter). Also
28274 add a test for whether accessibility checks are suppressed. Augment
28275 the comments to describe the conditions for performing the check.
28277 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
28278 Javier Miranda <miranda@adacore.com>
28279 Gary Dismukes <dismukes@adacore.com>
28280 Ed Schonberg <schonberg@adacore.com>
28282 * a-tags.adb (IW_Membership): Give support to
28283 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
28284 subprogram has been extended to look for the tag in the ancestors tag
28286 Update the structure of the GNAT Dispatch Table to reflect the
28287 additional two tables used in dispatching selects.
28288 Introduce appropriate array types and record components in
28289 Type_Specific_Data to reflect the two tables.
28290 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
28291 the TSD of a tag, indexed by position.
28292 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
28293 operation kind in the TSD of a tag, indexed by position.
28295 * a-tags.ads: Introduce an enumeration type to capture different
28296 primitive operation kinds. Define a constant reflecting the number of
28297 predefined primitive operations.
28298 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
28299 of an entry wrapper.
28300 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
28301 callable entity of a primitive operation.
28303 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
28304 primitive operations used in dispatching selects for limited
28305 interfaces, limited tagged, task and protected types what implement a
28307 (Freeze_Type): Generate the bodies of the primitive operations used in
28308 dispatching selects for limited tagged, task and protected types that
28309 implement a limited interface. Generate statements to populate the two
28310 auxiliary tables used for dispatching in select statements.
28311 (Freeze_Record_Type): Add call to initialize the dispatch table entries
28312 associated with predefined interface primitive operations.
28313 (Build_Dcheck_Function): Change Set_Subtype_Mark to
28314 Set_Result_Definition.
28315 (Build_Variant_Record_Equality): Change Subtype_Mark to
28317 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
28318 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
28319 (Build_Assignment): Simplify the code that adds the run-time-check.
28320 (Expand_N_Object_Declaration): Code cleanup.
28322 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
28323 entries when there is a protected type that implements a limited
28326 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
28327 common routines used in expansion of dispatching selects.
28328 (Add_Private_Declarations): Select the appropriate protection type when
28329 there is a protected type that implements a limited interface.
28330 (Build_Parameter_Block): Generate a wrapped parameter block.
28331 (Build_Protected_Subprogram_Body): Select the appropriate type for
28332 locking entries when there is a protected type that implements a
28334 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
28335 classified as entry wrappers.
28336 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
28337 asynchronous selects.
28338 (Expand_N_Conditional_Entry_Call): Add support for expansion of
28339 dispatching conditional selects.
28340 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
28341 protection when there is a protected type that implements limited
28343 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
28345 (Extract_Dispatching_Call): Extract the entity of the name of a
28346 dispatching call, the object parameter, actual parameters and
28347 corresponding formals.
28348 (Make_Initialize_Protection): Correct logic of protection initialization
28349 when there is a protected type that implements a limited interface.
28350 (Parameter_Block_Pack): Populate a wrapped parameter block with the
28351 values of actual parameters.
28352 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
28353 block and assign them to the original actual parameters.
28355 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
28356 (Build_Protected_Sub_Specification): Change the type and name of the
28357 last formal to account for the increased variety of protection modes.
28359 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
28360 entities. Used to save the value of the Is_Hidden attribute when the
28361 limited-view is installed.
28362 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
28363 the attribute of procedures classified as entry wrappers.
28364 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
28365 entity of a primitive wrapper.
28366 (Write_Entity_Flags): Output the name and value of the
28367 Is_Primitive_Wrapper attribute.
28368 (Write_Field27_Name): Output the name and entity of the field Wrapped_
28370 (Underlying_Type): If we have an incomplete entity that comes from
28371 the limited view then we return the Underlying_Type of its non-limited
28372 view if it is already available.
28373 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
28374 including operators.
28375 (Write_Field26_Name): Add entry for Overridden_Operation
28376 (Overridden_Operation): New attribute of functions and procedures.
28378 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
28379 predefined position in the dispatch table for the primitive operations
28380 used in dispatching selects.
28381 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
28382 predefined primitive operations and replace it with
28383 Default_Prim_Op_Count.
28384 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
28385 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
28386 the names of the generated primitive operations used in dispatching
28388 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
28389 case of abstract interface types. They will be inherit by the objects
28390 implementing the interface.
28391 (Make_DT): There is no need to inherit the dispatch table of the
28392 ancestor interface for the elaboration of abstract interface types.
28393 The dispatch table will be inherited by the object implementing the
28395 (Copy_Secondary_DTs): Add documentation.
28396 (Validate_Position): Improve this static check in case of
28397 aliased subprograms because aliased subprograms must have
28399 (Init_Predefined_Interface_Primitives): New subprogram that initializes
28400 the entries associated with predefined primitives of all the secondary
28402 (Build_Anonymous_Access_Type): Removed.
28403 (Expand_Interface_Actuals): With the previous cleanup there is no need
28404 to build an anonymous access type. This allows further cleanup in the
28405 code generated by the expander.
28406 (Expand_Interface_Conversion): If the actual is an access type then
28407 build an internal function to handle the displacement. If the actual
28408 is null this function returns null because no displacement is
28409 required; otherwise performs a type conversion that will be
28410 expanded in the code that returns the value of the displaced actual.
28411 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
28412 conversions that have no effect in the generated code because no
28413 displacement is required. Code cleanup; use local variables to
28414 avoid repeated calls to the subprogram directly_designated_type().
28416 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
28417 Classify the primitive operations used in dispatching selects as
28419 (Implements_Limited_Interface): Determine whether some type either
28420 directly implements a limited interface or extends a type that
28421 implements a limited interface.
28422 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
28423 (Expand_Subtype_From_Expr): Do not build actual subtype if the
28424 expression is limited.
28425 (Find_Interface_Tag): Add code to handle class-wide types and
28426 entities from the limited-view.
28428 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
28429 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
28430 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
28431 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
28434 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
28435 of procedure name or prefix that appears as a trigger in a triggering
28438 * uintp.ads: Introduce constants Uint_11 and Uint_13.
28440 2005-09-01 Arnaud Charlet <charlet@adacore.com>
28442 * s-tataat.adb, a-tasatt.adb:
28443 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
28445 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
28446 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
28447 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
28450 2005-09-01 Arnaud Charlet <charlet@adacore.com>
28451 Jose Ruiz <ruiz@adacore.com>
28453 * s-taprop-vxworks.adb:
28454 Move with clauses outside Warnings Off now that dependent units are
28456 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
28457 initialization of this unit.
28458 (Specific): Add new procedures Initialize and Delete so that this
28459 package can be used for VxWorks 5.x and 6.x
28460 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
28461 differences between VxWorks 5.x and 6.x
28462 Minor reformatting.
28463 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
28465 Use only Preelaborate-compatible constructs.
28467 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
28468 Primitives.Operations.
28469 (Delete, Initialize): New procedures.
28471 * s-osinte-vxworks.adb: Body used to handle differences between
28472 VxWorks 5.x and 6.x
28473 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
28475 * s-osinte-vxworks.ads: Minor reformatting.
28476 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
28477 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
28479 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
28480 between Vxworks 5 and 6.
28481 (taskLock, taskUnlock): Removeed, no longer used.
28483 * adaint.c: The wait.h header is not located in the sys directory on
28484 VxWorks when using RTPs.
28485 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
28487 (__gnat_dup): dup is available on Vxworks when using RTPs.
28488 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
28490 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
28492 * expect.c: The wait.h header is not located in the sys directory on
28493 VxWorks when using RTPs.
28495 2005-09-01 Thomas Quinot <quinot@adacore.com>
28497 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
28499 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
28501 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
28502 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28503 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
28504 g-soccon-freebsd.ads: Add new constants:
28506 SO_RCVTIMEO/SO_SNDTIMEO
28510 Move all target-specific file inclusions and macro definitions to
28511 gsocket.h, in order to ensure that any C code in socket.c will see a
28512 set of constants that is consistent with the contents of g-soccon.ads.
28514 * gsocket.h: Code imported from gen-soccon.c:
28515 Move all target-specific file inclusions and macro definitions to
28516 gsocket.h, in order to ensure that any C code in socket.c will see a set
28517 of constants that is consistent with the contents of g-soccon.ads.
28518 This change also makes gen-soccon self-contained (removing dependencies
28519 upon GCC internal headers).
28521 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
28523 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
28525 * socket.c: Minor reformatting.
28527 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28528 Thomas Quinot <quinot@adacore.com>
28530 * fname-sf.adb, mlib-tgt.ads,
28531 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
28532 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
28533 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
28534 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
28535 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
28536 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
28537 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
28538 makegpr.adb: Remove redundant use_clauses.
28540 2005-09-01 Arnaud Charlet <charlet@adacore.com>
28542 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
28543 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
28544 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
28545 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
28546 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
28547 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
28548 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
28549 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
28550 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
28551 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
28552 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
28553 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
28554 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
28555 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
28556 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
28557 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
28558 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
28559 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
28560 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
28561 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
28562 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
28563 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
28564 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
28565 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
28566 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
28567 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
28568 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
28569 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
28570 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
28571 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
28572 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
28573 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
28574 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
28575 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
28576 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
28577 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
28578 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
28579 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
28580 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
28581 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
28582 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
28583 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
28584 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
28585 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
28586 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
28587 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
28588 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
28589 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
28590 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
28591 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
28592 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
28593 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
28594 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
28595 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
28596 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
28597 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
28598 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
28599 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
28600 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
28601 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
28602 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
28603 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
28604 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
28605 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
28606 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
28607 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
28608 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
28609 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
28610 and always use the no parameter form for consistency.
28612 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
28614 2005-09-01 Robert Dewar <dewar@adacore.com>
28616 * binde.adb: Minor reformatting
28617 (Find_Elab_Order): Output warning if -p used with static elab order
28619 2005-09-01 Robert Dewar <dewar@adacore.com>
28621 * checks.adb (Check_Needed): New procedure, deals with removing checks
28622 based on analysis of short-circuited forms. Also generates warnings for
28623 improper use of non-short-circuited forms.
28626 2005-09-01 Robert Dewar <dewar@adacore.com>
28628 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
28631 2005-09-01 Robert Dewar <dewar@adacore.com>
28633 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
28635 Implement new insertion char < (conditional warning)
28636 * errutil.adb, erroutc.adb: Implement new insertion char <
28637 (conditional warning).
28638 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
28639 (Error_Msg_Warn): New variable for < insertion char.
28640 * prj-nmsc.adb: Implement new errout insertion char < (conditional
28642 (Check_For_Source): Change value of Source_Id only after the current
28643 source has been dealt with.
28645 2005-09-01 Robert Dewar <dewar@adacore.com>
28646 Doug Rupp <rupp@adacore.com>
28648 * exp_attr.adb: Handle vax fpt for 'Valid attribute
28649 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
28650 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
28651 (Valid_D, Valid_F, Valid_G): New functions
28653 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28654 Hristian Kirtchev <kirtchev@adacore.com>
28655 Javier Miranda <miranda@adacore.com>
28657 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
28658 from object notation, the original node is unanalyzed and carries no
28659 semantic information, so that accessiblity checks must be performed on
28660 the type of the actual itself.
28661 (Expand_N_Subprogram_Declaration): Change last actual parameter for
28662 compatibility with Build_Protected_Sub_Specification.
28663 (Check_Overriding_Inherited_Interfaces): Add suport to handle
28664 overloaded primitives.
28665 (Register_Interface_DT_Entry): Use the new name of the formal
28666 the the calls to Expand_Interface_Thunk
28668 * exp_dbug.ads: Augment comments on encoding of protected types to
28669 include the generation of dispatching subprograms when the type
28670 implements at least one interface.
28672 * lib.ads: Extend information in Load_Stack to include whether a given
28673 load comes from a Limited_With_Clause.
28675 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
28676 whether a potential circularity is harmless, because it includes units
28677 loaded through a limited_with clause. Extends previous treatment which
28678 did not handle properly arbitrary combinations of limited and
28679 non-limited clauses.
28681 2005-09-01 Nicolas Setton <setton@adacore.com>
28683 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
28684 to be encoded as typ___XBLU_lowerbound__upperbound instead of
28685 typ___XB_lowerbound__upperbound.
28687 2005-09-01 Thomas Quinot <quinot@adacore.com>
28689 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
28690 dummy access formal for RACW/RAS TypeCode TSS.
28691 (Build_TypeCode_Call): Do not generate dummy null access actual for
28692 calls to the TypeCode TSS.
28694 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28696 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
28697 fully qualified name, to distinguish instances with the same local name.
28699 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
28702 2005-09-01 Robert Dewar <dewar@adacore.com>
28704 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
28707 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
28709 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
28710 (Free): New deallocation procedure for filter elements
28711 (Close): Deallocate any existing filter for the concerned connection
28713 2005-09-01 Laurent Pautet <pautet@adacore.com>
28715 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
28716 position set is provided, we compute one in order to reduce the maximum
28717 length of the keys. This computation first selects a character
28718 position between 1 and the minimum length of the keys in order to
28719 avoid reducing one of the keys to an empty string.
28720 (Initialize, Compute): When the ratio V to K is too low, the algorithm
28721 does not converge. The initialization procedure now comes with a
28722 maximum number of iterations such that when exceeded, an exception is
28723 raised in Compute. The user can initialize this ratio to another value
28725 Reformating and updated headers.
28727 2005-09-01 Javier Miranda <miranda@adacore.com>
28729 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
28730 that given an entity T creates and returns an Itype that duplicates the
28731 contents of T. The returned Itype has the null-exclusion
28732 attribute set to True, and its Etype attribute references T
28733 to keep the association between the two entities.
28734 Update copyright notice
28736 * sem_aggr.adb (Check_Can_Never_Be_Null,
28737 Aggregate_Constraint_Checks, Resolve_Aggregate,
28738 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
28740 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
28742 2005-09-01 Gary Dismukes <dismukes@adacore.com>
28743 Robert Dewar <dewar@adacore.com>
28744 Hristian Kirtchev <kirtchev@adacore.com>
28746 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
28749 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
28751 Call Set_Result_Definition instead of Set_Subtype_Mark.
28752 (P_Subprogram_Specification): Add parsing of anonymous access result
28753 plus null exclusions. Call Set_Result_Definition instead of
28756 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
28757 (P_Access_Type_Definition): Add parsing for an anonymous access result
28758 subtype, plus parsing for null exclusions. Call Set_Result_Definition
28759 instead of Set_Subtype_Mark.
28761 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
28762 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
28763 (Result_Definition): New function for N_Function_Specifications.
28764 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
28765 N_Function_Specification.
28766 (Set_Null_Exclusion_Present): Allow this flag for
28767 N_Function_Specification.
28768 (Set_Result_Definition): New procedure for N_Function_Specifications.
28769 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
28770 and N_Function_Specification.
28772 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
28773 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
28774 Add support for LIMITED NEW for Ada 2005 AI-419
28775 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
28776 syntax for anonymous access results.
28777 Replace Subtype_Mark field by Result_Definition in
28778 N_Function_Specification and N_Access_Definition specs.
28779 Add Null_Exclusion_Present to spec of N_Function_Specification.
28780 (Result_Definition): New function for N_Function_Specification and
28781 N_Access_Function_Definition.
28782 (Set_Result_Definition): New procedure for N_Function_Specification and
28783 N_Access_Function_Definition.
28785 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
28786 Result_Definition for cases of N_Access_Function_Definition and
28787 N_Function_Specification.
28788 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
28790 2005-09-01 Vincent Celier <celier@adacore.com>
28792 * lib-writ.adb: Update Copyright notice
28793 (Write_With_Lines): On platforms where file names are case-insensitive,
28794 record the file names in lower case.
28795 (Write_ALI): For D lines, on platforms where file names are
28796 case-insensitive, record the file names in lower case.
28798 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28799 Emmanuel Briot <briot@adacore.com>
28801 * lib-xref.adb (Output_Overridden_Op): Display information on
28802 overridden operation.
28804 * lib-xref.ads: Add documentation on overridden operations.
28806 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
28809 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
28810 overriding entity information.
28812 2005-09-01 Vincent Celier <celier@adacore.com>
28814 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
28815 including those that are inherited.
28817 2005-09-01 Robert Dewar <dewar@adacore.com>
28819 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
28821 * par-prag.adb: Implement new pragma Debug_Policy
28823 * sem_prag.adb Implement new pragma Debug_Policy
28824 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
28825 Component_Size attribute specification. Give warning for ignored pragma
28828 * snames.h, snames.ads, snames.adb: Introduce entries in
28829 Preset_Names for Name_Disp_Asynchronous_Select,
28830 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
28831 Name_Disp_Timed_Select.
28832 New pragma Debug_Policy
28834 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
28836 Switch -gnata also sets Debug_Pragmas_Enabled
28838 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
28839 handle an explicit -gnata when compiling predefined files.
28841 2005-09-01 Vincent Celier <celier@adacore.com>
28843 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
28844 directories of projects that have no Ada sources.
28846 2005-09-01 Robert Dewar <dewar@adacore.com>
28848 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
28849 (makes a difference for wide characters)
28851 * widechar.adb, widechar.ads:
28852 Add Wide_Char_Byte_Count feature to count chars vs bytes
28854 2005-09-01 Thomas Quinot <quinot@adacore.com>
28855 Ed Schonberg <schonberg@adacore.com>
28856 Robert Dewar <dewar@adacore.com>
28858 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
28859 'Address attribute reference with an overloaded prefix, use the
28860 location of the prefix (not the location of the attribute reference) as
28861 the error location.
28862 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
28863 a function renaming thereof, is a valid prefix for 'Size (where it is
28864 intepreted as a function call).
28865 (Statically_Denotes_Entity): New predicate to determine whether the
28866 prefix of an array attribute can be considered static.
28869 (Eval_Attr): Fix failure to evaluate Component_Size for
28870 unconstrained arrays (resulted in wrong value in packed case, since
28871 back end cannot handle this case)
28873 2005-09-01 Robert Dewar <dewar@adacore.com>
28875 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
28876 error msgs for most common cases.
28877 Use new errout insertion char < (conditional warning)
28879 2005-09-01 Javier Miranda <miranda@adacore.com>
28880 Ed Schonberg <schonberg@adacore.com>
28882 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
28883 become local to the whole package.
28884 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
28885 the package was already analyzed the new algorithm "replaces" the
28886 real entities by the shadow ones. This is required to ensure that
28887 the order of these entities in the homonym chains does not change;
28888 otherwise we can have undefined references at linking time because
28889 in case of conflicts the external name of the entities will have
28890 a suffix that depends on the order of the entities in the chain.
28891 (Remove_Limited_With_Clause): Complementary code that completes the
28892 new algorithm and replaces the shadow entities by the real ones.
28893 (Install_Limited_Withed_Unit): When unchaining entities before the
28894 installation of the shadow entities, only regular entities of the
28895 public part must be taken into account. This is required to
28896 keep this routine in synch with the work done by Remove_Limited_
28898 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
28899 even if unit is analyzed, because the analysis of the unit is
28900 idempotent in any case, and the limited view of the unit may have to
28901 be installed for proper visibility.
28902 (Expand_Limited_With_Clause): Even if the unit in the implicit
28903 with_clause has been analyzed already, a limited view of the package
28904 must be built for the current context, if it does not exist yet.
28906 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28907 Javier Miranda <miranda@adacore.com>
28908 Gary Dismukes <dismukes@adacore.com>
28910 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
28911 defining entity for the instance body, make a new defining identifier
28912 rather than copying the entity of the spec, to prevent accidental
28913 sharing of the entity list.
28914 (Check_Private_View): When exchanging views of private types, build the
28915 list of exchanged views as a stack, to ensure that on exit the exchanges
28916 are undone in the proper order.
28917 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
28918 Restore the compilation environment in case of instantiation_error.
28919 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
28920 for an anonymous access result.
28921 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
28922 (Formal_Entity): Handle properly the case of a formal package that
28923 denotes a generic package renaming.
28925 2005-09-01 Thomas Quinot <quinot@adacore.com>
28927 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
28928 clause if the array aggregate is surrounded by parentheses.
28930 2005-09-01 Cyrille Comar <comar@adacore.com>
28931 Gary Dismukes <dismukes@adacore.com>
28932 Ed Schonberg <schonberg@adacore.com>
28933 Javier Miranda <miranda@adacore.com>
28935 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
28937 to check if a type is Constrained in cases related to code generation
28938 (rather than semantic checking) since otherwise we do not generate
28939 similar code for mutable private types depending if their
28940 discriminants are visible or not.
28941 (Check_Abstract_Overriding): Do not complain about failure to override
28942 the primitive operations used in dispatching selects since they will
28943 always be overriden at the freeze point of the type.
28944 (Access_Definition): Separate out handling for resetting the scope
28945 of an anonymous access function result type. Retrieve the scope
28946 of the associated function rather than using Current_Scope, which
28947 does not have a consistent value (depends on whether we're in the
28948 middle of analyzing formal parameters). Add ??? comment about
28949 finding a cleaner way to handle the special cases of scope setting.
28950 (Process_Incomplete_Dependents): A protected operation is never a
28951 dispatching operation (only its wrapper may be).
28952 (Build_Derived_Record_Type): In case of tagged private types that
28953 implement interfaces add derivation of predefined primitive
28955 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
28956 by two parameters that are used in case of derivation from abstract
28957 interface types: No_Predefined_Prims is used to avoid the derivation
28958 of predefined primitives from the interface, and Predefined
28959 Prims_Only is used to complete the derivation predefined primitives
28960 in case of private tagged types implementing interfaces.
28961 Fix typo in comments
28962 (Find_Interface_In_Descendant): Protect the frontend against
28963 wrong code with large circularity chains.
28964 (Is_Private_Overriding): Add support for entities overriding interface
28965 subprograms. The test failed because Entities associated with overriden
28966 interface subprograms are always marked as hidden (and used to build
28967 the secondary dispatch table); in this case the overriden entity is
28968 available through the field abstract_interface_alias (cf. override_
28969 dispatching_operation)
28970 (Access_Definition): Set the scope of the type to Current_Scope for the
28971 case of a function with an anonymous access result type.
28972 (Access_Subprogram_Declaration): Handle creation of the type entity for
28973 an access-to-function type with an anonymous access result.
28974 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
28975 in handling for N_Access_Function_Definition.
28976 (Analyze_Subtype_Declaration): Modify the text of error message.
28977 (Derived_Type_Declaration): Modify the text of error message.
28978 (Process_Subtype): Modify the text of error message plus cleanup
28979 of one redundant error message.
28980 (Analyze_Component_Declaration): Code cleanup.
28981 (Analyze_Object_Declaration): Code cleanup.
28982 (Analyze_Subtype_Declaration): Propagate the null-exclusion
28983 attribute in case of access types. Code cleanup.
28984 (Array_Type_Declaration): Code cleanup.
28985 (Process_Discriminants): Create the new null-excluding itype
28986 if required. Code cleanup.
28987 (Process_Subtype): Create the new null-excluding itype if
28988 required. Code cleanup.
28989 (Build_Derived_Record_Type): Code cleanup to avoid calling
28990 twice the subprogram derive_subprograms in case of private
28991 types that implement interfaces. In this particular case the
28992 subprogram Complete_Subprograms_Derivation already does the
28993 job associated with the second call.
28995 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
28996 conversion to the full view when generating an operation for a
28997 discriminant whose type may currently be private.
28999 2005-09-01 Ed Schonberg <schonberg@adacore.com>
29000 Javier Miranda <miranda@adacore.com>
29002 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
29003 V (Obj.F), the rewriting does not involve the indexed component, but
29004 only the selected component itself.
29005 Do not apply the transformation if the analyzed node is an actual of a
29006 call to another subprogram.
29007 (Complete_Object_Operation): Retain the entity of the
29008 dispatching operation in the selector of the rewritten node. The
29009 entity will be used in the expansion of dispatching selects.
29010 (Analyze_One_Call): Improve location of the error message associated
29012 (Analyze_Selected_Component): No need to resolve prefix when it is a
29013 function call, resolution is done when parent node is resolved, as
29015 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
29016 when attempting to resolve a call transformed from its object notation.
29017 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
29018 of the argument list for each interpretation of the operation.
29019 (Try_Object_Operation): The designated type of an access parameter may
29020 be an incomplete type obtained through a limited_with clause, in which
29021 case the primitive operations of the type are retrieved from its full
29023 (Analyze_Call): If this is an indirect call, and the return type of the
29024 access_to_subprogram is incomplete, use its full view if available.
29026 2005-09-01 Javier Miranda <miranda@adacore.com>
29027 Gary Dismukes <dismukes@adacore.com>
29029 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
29030 access types the null-exclusion and access-to-constant attributes must
29032 (Analyze_Return_Statement): When the result type is an anonymous access
29033 type, apply a conversion of the return expression to the access type
29034 to ensure that appropriate accessibility checks are performed.
29035 (Analyze_Return_Type): For the case of an anonymous access result type,
29036 generate the Itype and set Is_Local_Anonymous_Access on the type.
29037 Add ??? placeholder for check to disallow returning a limited object
29038 in Ada 2005 unless it's an aggregate or a result of a function call.
29039 Change calls from Subtype_Mark to Result_Definition.
29040 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
29041 Result_Definition in call to Make_Function_Specification.
29042 (Build_Body_To_Inline): Change Set_Subtype_Mark to
29043 Set_Result_Definition.
29044 (Make_Inequality_Operator): Change formal Subtype_Mark to
29045 Result_Definition in call to Make_Function_Specification.
29046 (Process_Formals): Create the new null-excluding itype if required.
29047 (New_Overloaded_Entity): For an entity overriding an interface primitive
29048 check if the entity also covers other abstract subprograms in the same
29049 scope. This is required to handle the general case, that is, overriding
29050 other interface primitives and overriding abstract subprograms inherited
29051 from some abstract ancestor type.
29052 (New_Overloaded_Entity): For an overriding entity that comes from
29053 source, note the operation that it overrides.
29054 (Check_Conformance, Type_Conformant): Addition of one new formal
29055 to skip controlling formals in the analysis. This is used to
29056 handle overloading of abstract interfaces.
29057 (Base_Types_Match): Add missing case for types imported from
29058 limited-with clauses
29059 (New_Overloaded_Entity): Add barrier to protect the use of
29060 the "alias" attribute.
29062 2005-09-01 Ed Schonberg <schonberg@adacore.com>
29064 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
29065 verify that the procedure and the entry are mode conformant.
29066 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
29067 as a different operator, which is often a cut-and-paste error.
29069 2005-09-01 Javier Miranda <miranda@adacore.com>
29070 Ed Schonberg <schonberg@adacore.com>
29072 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
29073 used in controlling parameters exclude null because it is necessary to
29074 read the tag to dispatch, and null has no tag.
29075 (Override_Dispatching_Operation): If the previous operation is inherited
29076 from an interface, it becomes hidden and does not participate in later
29079 2005-09-01 Javier Miranda <miranda@adacore.com>
29080 Ed Schonberg <schonberg@adacore.com>
29081 Gary Dismukes <dismukes@adacore.com>
29083 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
29084 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
29085 the expander will generate the corresponding run-time check to evaluate
29087 (Resolve_Call): Check for legal type of procedure name or prefix that
29088 appears as a trigger in a triggering alternative.
29089 (Valid_Conversion): If expression is ambiguous and the context involves
29090 an extension of System, remove System.Address interpretations.
29091 (Resolve_Qualified_Expression): Reject the case of a specific-type
29092 qualification applied to a class-wide argument. Enhance comment
29093 to explain checking of Original_Node.
29094 (Resolve_Type_Conversion): The location of the error message was not
29095 general enough to handle the general case and hence it has been removed.
29096 In addition, this patch improves the text of the message.
29097 (Resolve_Type_Conversion): Add missing support for access to interface
29099 (Resolve_Type_Conversion): If the target is a class-wide interface type,
29100 do not expand if the expression is the actual in a call, because proper
29101 expansion will take place when the call itself is expanded.
29102 (Resolve_Allocator): If the context is an unchecked conversion, the
29103 allocator inherits its storage pool, if any, from the target type of
29106 2005-09-01 Ed Schonberg <schonberg@adacore.com>
29107 Javier Miranda <miranda@adacore.com>
29109 * sem_type.adb (Add_One_Interp): If a candidate operation is an
29110 inherited interface operation that has an implementation, use the
29111 implementation to avoid spurious ambiguities.
29112 (Interface_Present_In_Ancestor): In case of concurrent types we can't
29113 use the Corresponding_Record_Typ attribute to look for the interface
29114 because it is set by the expander (and hence it is not always
29115 available). For this reason we traverse the list of interfaces
29116 (available in the parent of the concurrent type).
29117 (Interface_Present_In_Ancestor): Handle entities from the limited view
29119 2005-09-01 Ed Schonberg <schonberg@adacore.com>
29121 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
29122 from the list of required components.
29123 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
29124 primitive procedure of a limited interface with a controlling first
29126 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
29128 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
29129 capture if it is generated in the second operand of a short-circuit
29131 Do not capture values for variables with address clauses.
29132 (Is_Object_Reference): Treat a function call as an object reference only
29133 if its type is not Standard_Void_Type.
29135 2005-09-01 Ed Schonberg <schonberg@adacore.com>
29137 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
29138 to a variable that is statically known to be constant.
29140 2005-09-01 Geert Bosch <bosch@adacore.com>
29141 Robert Dewar <dewar@adacore.com>
29143 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
29144 (VAXGF_Safe_First): Idem.
29146 2005-09-01 Robert Dewar <dewar@adacore.com>
29147 Arnaud Charlet <charlet@adacore.com>
29149 * g-dirope.ads: Minor reformatting
29150 Document that bounds of result of Base_Name match the input index
29152 Add documentation on environment variable syntax for Expand_Path
29154 * gnat_ugn.texi: Update documentation to include mention of -m switches
29155 Document new treatment of wide characters in max line length
29157 Remove -gnatL/-gnatZ switches, no longer used.
29158 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
29161 * gnat_rm.texi: Add doc for two argument form of pragma
29162 Float_Representation.
29163 Add documentation for pragma No_Strict_Aliasing
29164 Add note that explicit component clause overrides pragma Pack.
29165 Add documentation of pragma Debug_Policy
29167 2005-09-01 Matthew Heaney <heaney@adacore.com>
29169 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
29170 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
29171 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
29172 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
29173 draft (Draft 13, August 2005) of Ada Amendment 1.
29175 2005-09-01 Arnaud Charlet <charlet@adacore.com>
29177 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
29178 Note that the platform-specific version of g-soccon.ads for VMS is now
29179 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
29180 really is a package spec).
29181 Replace s-taspri-linux.ads by s-taspri-posix.ads
29182 Remove references to s-mastop-x86.adb
29184 * system-vxworks-xscale.ads: Removed, no longer used.
29185 * s-vxwork-xscale.ads: Removed, no longer used.
29187 2005-09-01 Robert Dewar <dewar@adacore.com>
29189 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
29190 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
29191 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
29192 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
29193 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
29194 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
29195 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
29196 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
29197 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
29198 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
29199 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
29200 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
29201 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
29202 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
29203 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
29204 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
29205 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
29206 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
29207 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
29208 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
29209 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
29211 2005-08-29 Arnaud Charlet <charlet@adacore.com>
29215 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
29217 2005-08-29 Arnaud Charlet <charlet@adacore.com>
29218 Doug Rupp <rupp@adacore.com>
29220 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
29222 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
29223 this code in the GNAT run-time.
29225 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
29228 * init.c (__gnat_error_handler [many]): Mark "msg" as const
29229 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
29231 (__gnat_inside_elab_final_code): Moved here from
29232 Standard_Library and only defined for the compiler.
29233 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
29234 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
29235 using RTPs because directly vectored Interrupt routines are not
29236 supported on this configuration.
29237 (getpid): Do not redefine this function on VxWorks when using RTPs
29238 because this primitive is well supported by the RTP libraries.
29239 (copy_msg): Correct the code that checks for buffer overflow.
29240 Discovered during code reading.
29242 2005-08-29 Olivier Hainque <hainque@adacore.com>
29244 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
29245 a library level mutable variable with an initializer, tell
29246 build_allocator to ignore the initializer's size. It may not be large
29247 enough for all the values that might be assigned to the variable later
29250 2005-08-29 Arnaud Charlet <charlet@adacore.com>
29251 Eric Botcazou <ebotcazou@adacore.com>
29253 * trans.c: Protect < in error msg with quote
29254 Replace GCC_ZCX by Back_End_Exceptions.
29255 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
29256 has been sufficiently aligned in the record.
29258 2005-08-15 James E. Wilson <wilson@specifix.com>
29260 * system-linux-alpha.ads: Change ia64 to alpha.
29262 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
29264 * decl.c, utils.c: Fix comment typos.
29266 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
29268 * decl.c, init.c, initialize.c: Fix comment typos.
29270 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
29272 Make CONSTRUCTOR use VEC to store initializers.
29273 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
29275 * trans.c (extract_values): Likewise.
29276 * utils.c (convert, remove_conversions): Likewise.
29277 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
29278 gnat_build_constructor): Likewise.
29280 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
29282 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
29284 (compare_field_bitpos): Likewise.
29286 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
29288 * utils.c (create_var_decl): Only set DECL_COMMON on
29289 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
29290 VAR_OR_FUNCTION_DECL_P.
29292 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
29294 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
29297 2005-07-07 Pascal Obry <obry@adacore.com>
29299 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
29300 returned type on Windows.
29302 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
29305 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
29306 exception in this case.
29307 Simplify the code as "Image (Image'Range)" = "Image".
29309 2005-07-07 Vincent Celier <celier@adacore.com>
29311 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
29312 the destructor/constructor attributes for <lib>final/<lib>init.
29314 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
29316 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
29318 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
29319 type if the parameter is not passed by copy but reference by default.
29321 2005-07-07 Javier Miranda <miranda@adacore.com>
29323 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
29324 Reimplementation of the support for abstract interface types in order
29325 to leave the code more clear and easy to maintain.
29327 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
29328 abstract interface types in order to leave the code clearer and easier
29331 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
29332 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
29333 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
29334 appropriate entry of the secondary dispatch table.
29335 (Make_DT): Add code to inherit the secondary dispatch tables of
29338 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
29339 implementing both functionalities by means of a common routine, each
29340 routine has its own code.
29342 2005-07-07 Javier Miranda <miranda@adacore.com>
29344 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
29346 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
29349 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
29352 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
29353 use of tag incomplete types.
29355 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
29356 give support to tagged incomplete types.
29358 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
29359 expression is a discriminant reference and its type is private, as can
29360 happen within a stream operation for a mutable record, use the full
29361 view of the type to resolve the case alternatives.
29362 (Analyze_Assignment): Check wrong dereference of incomplete types.
29364 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
29367 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
29370 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
29371 N_Incomplete_Type_Declaration nodes.
29373 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
29374 Tag_Present to give support to tagged incomplete types:
29376 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
29379 2005-07-07 Olivier Hainque <hainque@adacore.com>
29382 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
29383 definitions for the Unwind wrappers in the compiler case.
29385 2005-07-07 Ed Schonberg <schonberg@adacore.com>
29386 Javier Miranda <miranda@adacore.com>
29388 * par-load.adb (Load): If a child unit is loaded through a limited_with
29389 clause, each parent must be loaded as a limited unit as well.
29391 * sem_ch10.adb (Previous_Withed_Unit): Better name for
29392 Check_Withed_Unit. Return true if there is a previous with_clause for
29393 this unit, whether limited or not.
29394 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
29396 (Is_Visible_Through_Renamings): New local subprogram of install_limited
29397 _withed_unit that checks if some package installed through normal with
29398 clauses has a renaming declaration of package whose limited-view is
29399 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
29400 of the current Draft document for Ada 2005.
29401 (Analyze_Context): Complete the list of compilation units that
29402 are allowed to contain limited-with clauses. It also contains
29403 checks that were previously done by Install_Limited_Context_Clauses.
29404 This makes the code more clear and easy to maintain.
29405 (Expand_Limited_With_Clause) It is now a local subprogram of
29406 Install_Limited_Context_Clauses, and contains the code that adds
29407 the implicit limited-with clauses for parents of child units.
29408 This functionality was prevously done by Analyze_Context.
29410 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
29413 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
29414 been erroneously named in a limited-with clause of its own context.
29415 In this case the error has been previously notified by Analyze_Context.
29417 2005-07-07 Ed Schonberg <schonberg@adacore.com>
29419 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
29420 generic package that contains local declarations with the same name.
29421 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
29423 2005-07-07 Bernard Banner <banner@adacore.com>
29425 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
29426 ia64 platform only on platforms that you the GCC unwind library
29427 rather than the system unwind library.
29429 2005-07-07 Thomas Quinot <quinot@adacore.com>
29431 * expect.c: Minor reformatting
29433 2005-07-07 Sergey Rybin <rybin@adacore.com>
29435 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
29438 * gnat_ugn.texi: Add description for new gnatpp option
29441 2005-07-04 Thomas Quinot <quinot@adacore.com>
29443 * g-expect-vms.adb, g-expect.ads, g-expect.adb
29444 (Get_Command_Output): New subprogram to launch a process and get its
29445 standard output as a string.
29447 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
29448 Olivier Hainque <hainque@adacore.com>
29450 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
29451 fetch a code-range descriptor associated with the machine state. On
29452 failure set the machine state's PC to 0; on success, pass the
29453 descriptor to exc_virtual_unwind.
29455 * init.c (Tru64 section): New function __gnat_set_code_loc.
29457 2005-07-04 Vincent Celier <celier@adacore.com>
29459 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29460 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29461 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
29462 Remove all auto-initialization code, as this is now done through the
29463 constructor mechanism.
29465 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
29466 __gnat_sals_init_using_constructors): New functions.
29468 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
29469 Linker_Constructor and Linker_Destructor when switch -a is used.
29471 * bindusg.adb: Add line for new switch -a
29473 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
29474 (Gnatbind): When switch -a is used, check if it is allowed
29476 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
29478 2005-07-04 Joel Brobecker <brobecker@adacore.com>
29480 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
29481 This prevents us from hitting a limitation during the debug info
29482 generation when using stabs.
29483 (Prims_Ptr): Likewise.
29485 2005-07-04 Gary Dismukes <dismukes@adacore.com>
29486 Ed Schonberg <schonberg@adacore.com>
29487 Javier Miranda <miranda@adacore.com>
29489 * checks.adb (Null_Exclusion_Static_Checks): In the case of
29490 N_Object_Declaration, only perform the checks if the Object_Definition
29491 is not an Access_Definition.
29493 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
29494 where the parent of an the access definition is an N_Object_Declaration
29495 when determining the Associated_Node_For_Itype and scope of an
29496 anonymous access-to-subprogram type.
29498 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
29499 Corresponding_Spec on the body created for a null procedure. Add ???
29500 comment. Remove New_Copy_Tree call on body argument to
29501 Set_Body_To_Inline.
29503 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
29504 discriminants, use the type of the actual as well, because the
29505 discriminants may be read by the called subprogram.
29507 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
29508 access type we do not need to handle non-limited views.
29509 (Build_Derived_Record_Type): Additional check to check that in case of
29510 private types, interfaces are only allowed in private extensions.
29512 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
29514 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
29515 <Pragma_Linker_Destructor>: Likewise.
29517 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
29518 Pragma_Linker_Destructor.
29520 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
29521 ATTR_LINK_DESTRUCTOR.
29522 (static_ctors, static_dtors): New variables.
29524 * misc.c (gnat_expand_body): Output current function as constructor
29525 and destructor if requested.
29527 * par-prag.adb: Add processing for pragma Linker_Constructor and
29530 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
29531 extracted from Check_Interrupt_Or_Attach_Handler.
29532 (Check_Interrupt_Or_Attach_Handler): Invoke it.
29533 Implement pragma Linker_Constructor and Linker_Destructor with the
29534 help of Find_Unique_Parameterless_Procedure.
29535 Replace Name_Alias with Name_Target for pragma Linker_Alias.
29537 * snames.h, snames.ads, snames.adb:
29538 Add Name_Linker_Constructor and Name_Linker_Destructor.
29539 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
29540 * snames.adb: Remove Name_Alias.
29542 * trans.c: Include cgraph.h.
29543 (build_global_cdtor): New function.
29544 (Compilation_Unit_to_gnu): Build global constructor and destructor if
29546 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
29548 (addressable_p) <COMPONENT_REF>: Unconditionally test
29549 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
29551 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
29552 variable if it is external.
29554 (static_ctors, static_dtors): New global variables.
29555 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
29556 <ATTR_LINK_DESTRUCTOR>: Likewise.
29557 (end_subprog_body): Chain function as constructor and destructor
29560 * exp_util.adb (Force_Evaluation): Unconditionally invoke
29561 Remove_Side_Effects with Variable_Ref set to true.
29562 (Remove_Side_Effects): Handle scalar types first. Use a renaming
29563 for non-scalar types even if Variable_Ref is true and for class-wide
29566 2005-07-04 Ed Schonberg <schonberg@adacore.com>
29568 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
29569 to prevent spurious warnings.
29571 2005-07-04 Thomas Quinot <quinot@adacore.com>
29573 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
29574 Itypes. Itypes are really unexpected there.
29575 (Build_TypeCode_Function): Generalise special processing for Itypes to
29576 handle the case of numeric implicit base types as well as enumerated
29579 2005-07-04 Ed Schonberg <schonberg@adacore.com>
29581 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
29582 controlled, indicate the expected type of the dereference that is
29583 created for the call to Deep_Finalize, to prevent spurious errors when
29584 the designated type is private and completed with a derivation from
29585 another private type.
29587 2005-07-04 Vincent Celier <celier@adacore.com>
29589 * make.adb (Change_To_Object_Directory): When unable to change the
29590 current dir to the object directory, output the full path of the
29593 2005-07-04 Matthew Gingell <gingell@adacore.com>
29595 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
29597 * indepsw-linux.adb: Replace by...
29599 * indepsw-gnu.adb: ...this new file
29601 2005-07-04 Vincent Celier <celier@adacore.com>
29603 * mlib-prj.adb (Auto_Initialize): New constant String
29604 (SALs_Use_Constructors): New Boolean function
29605 (Build_Library): Call gnatbind with Auto_Initialize switch when
29606 SALs_Use_Constructors returns True.
29608 * mlib-tgt.ads: Minor reformatting
29610 * mlib-utl.ads: Minor reformatting
29612 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
29614 2005-07-04 Ed Schonberg <schonberg@adacore.com>
29616 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
29617 single protected declarations can have an interface list.
29618 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
29619 with seriously malformed entry declarations, and lead to compilation
29620 abandoned messages.
29622 2005-07-04 Javier Miranda <miranda@adacore.com>
29624 * par-load.adb: Load the context items in two rounds.
29626 2005-07-04 Robert Dewar <dewar@adacore.com>
29628 * scng.adb: Do not consider Mod used as an attribute to be a keyword
29630 2005-07-04 Ed Schonberg <schonberg@adacore.com>
29631 Javier Miranda <miranda@adacore.com>
29633 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
29634 type extension needs a limited view.
29635 Remove previous restriction on private types available through the
29636 limited-view (only tagged private types were previously allowed).
29637 (Install_Withed_Unit): In the code that implements the
29638 legality rule given in AI-377, exclude a child unit with the name
29639 Standard, because it is a homonym of the Standard environment package.
29641 2005-07-04 Thomas Quinot <quinot@adacore.com>
29643 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
29644 overloaded function call, carry interpretations from the original tree
29647 2005-07-04 Ed Schonberg <schonberg@adacore.com>
29649 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
29650 types check whether some designated type is a limited view, and use
29651 the non-limited view if available.
29653 2005-07-04 Gary Dismukes <dismukes@adacore.com>
29655 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
29656 constraint of full view of a private view T1 if present, when T2 is a
29657 discriminated full view.
29659 2005-07-04 Thomas Quinot <quinot@adacore.com>
29661 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
29662 actual that is a view conversion of a bit packed array reference.
29664 2005-07-04 Ed Schonberg <schonberg@adacore.com>
29666 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
29667 present before checking whether an interface type covers a synchronized
29670 2005-07-04 Ed Schonberg <schonberg@adacore.com>
29672 * sem_util.adb (Is_Object_Reference): An indexed or selected component
29673 whose prefix is an implicit dereference is an object reference. Removes
29674 spurious errors when compiling with -gnatc.
29676 2005-07-04 Robert Dewar <dewar@adacore.com>
29679 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
29681 2005-07-04 Matthew Gingell <gingell@adacore.com>
29683 * tracebak.c: Enable tracebacks on ia64 platforms
29685 2005-07-04 Vincent Celier <celier@adacore.com>
29687 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
29688 the GNAT BIND command, as gnatbind accepts multiples ALI files with
29689 the -L or -n switches.
29691 2005-07-04 Vincent Celier <celier@adacore.com>
29693 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
29694 correctly computed and the main project data is not modified while
29696 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
29697 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
29698 c++linker as this does not work on some platforms.
29700 2005-07-04 Matthew Heaney <heaney@adacore.com>
29702 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
29704 * a-coinve.adb: Perform constraint checks explicitly.
29706 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29707 Thomas Quinot <quinot@adacore.com>
29709 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
29710 new target gen-soccon.
29712 2005-07-04 Robert Dewar <dewar@adacore.com>
29714 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
29716 2005-07-04 Thomas Quinot <quinot@adacore.com>
29718 * g-socket.ads (Check_Selector): Minor rewording of comment.
29720 2005-07-04 Vincent Celier <celier@adacore.com>
29722 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
29724 2005-07-04 Thomas Quinot <quinot@adacore.com>
29726 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
29728 2005-07-04 Sergey Rybin <rybin@adacore.com>
29730 * gnat_ugn.texi: Add description of --eol gnatpp option
29732 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
29733 Thomas Quinot <quinot@adacore.com>
29735 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
29736 if the user wants all calls of a subprogram to be flagged,
29737 independently of whether they are made from within the same unit or
29739 Mention restriction for pragma Linker_Alias on some platforms.
29740 Document pragma Linker_Constructor and Linker_Destructor.
29741 Rewrite documentation of Weak_External, Linker_Section and
29742 Linker_Alias pragmas.
29744 2005-07-04 Arnaud Charlet <charlet@adacore.com>
29746 * s-stausa.ads, s-stausa.adb: New files.
29748 2005-06-30 Kelley Cook
29750 * all files: Update FSF address in copyright headers.
29751 * gen-soccon.co (main): Output new FSF address in generated files.
29753 2005-06-28 Paul Brook <paul@codesourcery.com>
29755 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
29757 2005-06-14 Olivier Hainque <hainque@adacore.com>
29758 Eric Botcazou <ebotcazou@adacore.com>
29760 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
29761 exc_unwind, now that we are generating proper .debug_frame output for
29764 * tracebak.c: Remove the mips-irix section, as we are now using the
29765 s-mastop based unwinder again.
29766 Under SPARC/Solaris, take into account the stack bias to compute the
29767 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
29770 2005-06-14 Doug Rupp <rupp@adacore.com>
29772 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
29774 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
29776 2005-06-14 Pascal Obry <obry@adacore.com>
29778 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
29779 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
29780 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
29783 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
29784 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
29785 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
29786 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
29787 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
29788 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
29789 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
29790 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
29791 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
29792 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
29793 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
29794 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
29795 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
29796 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
29797 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
29798 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
29799 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
29800 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
29801 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
29802 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
29803 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
29804 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
29805 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
29806 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
29807 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
29808 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
29809 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
29810 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
29811 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
29812 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
29813 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
29814 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
29815 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
29816 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
29817 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
29818 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
29819 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
29820 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
29821 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
29822 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
29823 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
29824 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
29825 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
29826 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
29827 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
29828 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
29829 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
29830 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
29831 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
29832 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
29833 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
29834 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
29835 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
29836 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
29837 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
29838 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
29839 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
29840 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
29841 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
29842 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
29843 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
29844 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
29845 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
29846 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
29847 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
29848 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
29849 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
29850 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
29851 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
29852 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
29853 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
29854 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
29855 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
29856 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
29857 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
29858 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
29859 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
29860 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
29861 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
29862 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
29863 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
29864 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
29865 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
29866 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
29867 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
29868 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
29869 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
29870 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
29871 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
29872 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
29873 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
29874 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
29875 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
29876 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
29877 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
29878 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
29879 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
29880 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
29881 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
29882 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
29883 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
29884 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
29885 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
29886 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
29887 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
29888 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
29889 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
29890 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
29891 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
29892 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
29893 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
29894 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
29895 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
29896 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
29897 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
29898 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
29899 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
29900 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
29901 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
29902 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
29903 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
29904 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
29905 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
29906 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
29907 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
29908 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
29909 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
29910 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
29911 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
29912 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
29913 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
29914 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
29915 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
29917 2005-06-14 Jose Ruiz <ruiz@adacore.com>
29918 Arnaud Charlet <charlet@adacore.com>
29920 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
29921 longer protected objects. They have been replaced by lower-level
29922 suspension objects made up by a mutex and a condition variable (or
29923 their equivalent given a particular OS) plus some internal data to
29924 reflect the state of the suspension object.
29925 (Initialize, Finalize): Add this initialization procedure for
29926 Suspension_Object, which is a controlled type.
29927 (Finalize): Add the finalization procedure for Suspension_Object,
29928 which is a controlled type.
29930 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
29931 Ada.Synchronous_Task_Control because there is no longer a need for a
29932 VxWorks specific version of this package. Target dependencies
29933 has been moved to System.Task_Primitives.Operations.
29935 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
29937 (InitializeCriticalSection, EnterCriticalSection,
29938 LeaveCriticalSection, DeleteCriticalSection): Replace the type
29939 pCriticalSection by an anonymous access type so that we avoid problems
29940 of accessibility to local objects.
29942 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
29943 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
29944 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
29945 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
29946 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
29947 set the environment task mask here.
29948 (Current_State): Add this function that returns the state of the
29950 (Set_False): Add this procedure that sets the state of the suspension
29952 (Set_True): Add this procedure that sets the state of the suspension
29953 object to True, releasing the task that was suspended, if any.
29954 (Suspend_Until_True): Add this procedure that blocks the calling task
29955 until the state of the object is True. Program_Error is raised if
29956 another task is already waiting on that suspension object.
29957 (Initialize): Add this procedure for initializing the suspension
29958 object. It initializes the mutex and the condition variable which are
29959 used for synchronization and queuing, and it sets the internal state
29961 (Finalize): Add this procedure for finalizing the suspension object,
29962 destroying the mutex and the condition variable.
29964 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
29965 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
29966 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
29967 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
29968 which provides a low-level abstraction (using operating system
29969 primitives) for Ada.Synchronous_Task_Control.
29970 This object is made up by a mutex (for ensuring mutual exclusion), a
29971 condition variable (for queuing threads until the condition is
29972 signaled), a Boolean (State) indicating whether the object is open,
29973 and a Boolean (Waiting) reflecting whether there is a task already
29974 suspended on this object.
29976 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
29977 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
29978 s-intman-vms.ads, s-intman-mingw.adb,
29979 (Initialize_Interrupts): Removed, no longer used.
29981 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
29982 (Setup_Interrupt_Mask): New procedure.
29984 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
29986 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
29988 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
29989 this is no longer done in the body of s-taprop
29990 (Server_Task): Explicitely test for Pending_Action in case
29991 System.Parameters.No_Abort is True.
29993 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
29994 is no longer done in the body of s-taprop
29996 2005-06-14 Robert Dewar <dewar@adacore.com>
29998 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
29999 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
30000 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
30001 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
30002 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
30003 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
30004 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
30005 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
30006 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
30007 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
30008 system-linux-hppa.ads, system-vms_64.ads,
30009 system-vxworks-alpha.ads: Minor comment update for
30010 AI-362 (unit is Pure).
30012 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
30013 Add pragma Pure_05 for AI-362
30014 Make remaining conversion functions obsolescent in Ada 95
30016 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
30017 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
30018 Add entries for a-wichun and a-zchuni
30019 Add a-widcha a-zchara for AI-395
30020 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
30022 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
30023 Add entries for a-wichun.o and a-zchuni.o
30024 Entries for a-widcha.o and a-zchara.o
30025 Add entry for a-chacon.o
30027 * a-ztenau.adb: Add with of Ada.Characters.Conversions
30029 * a-chacon.ads, a-chacon.adb: New files.
30031 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
30032 categorization violations.
30034 * a-strmap.ads: Add pragma Pure_05 for AI-362
30035 * a-strmap.ads: Add note on implicit categorization for AI-362
30037 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
30039 * par-prag.adb: Dummy entry for pragma Persistent_BSS
30040 Set Ada_Version_Explicit, for implementation of AI-362
30041 Add processing for pragma Pure_05 and Preelaborate_05
30042 Add entry for Assertion_Policy pragma
30044 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
30045 when needed for proper processing of categorization stuff
30048 For several cases, make errors in preealborate units warnings,
30049 instead of errors, if GNAT_Mode is set. For AI-362.
30051 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
30052 preelaborate unit is now warning if in GNAT mode
30054 * s-stoele.ads: Document AI-362 for pragma preelaborate
30056 2005-06-14 Doug Rupp <rupp@adacore.com>
30058 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
30059 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
30060 Default_Exception_Msg_Max_Length: new parameter.
30062 * a-except.ads: (Exception_Msg_Max_Length): Set to
30063 System.Parameters.Default_Exception_Msg_Max_Length
30064 Add pragma Preelaborate_05 for AI-362
30065 Add warnings off to allow categorization violations for AI-362
30067 2005-06-14 Vincent Celier <celier@adacore.com>
30069 * gnatsym.adb: Adapt to modification of package Symbols: procedure
30070 Process is now in package Processing.
30072 * symbols.ads, symbols.adb:
30073 (Processing): New package, containing procedure Process
30075 * symbols-vms-alpha.adb:
30076 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
30078 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
30079 symbols-processing-vms-ia64.adb: New files.
30081 2005-06-14 Pascal Obry <obry@adacore.com>
30083 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
30084 implementation. This new version generates the proper DllMain routine
30085 to initialize the SAL. The DllMain is generated in Ada and compiled
30086 before being added as option to the library build command.
30088 2005-06-14 Doug Rupp <rupp@adacore.com>
30089 Pascal Obry <obry@adacore.com>
30091 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
30092 call to decc$translate_vms.
30093 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
30094 need to remove those quotes before catenating the filename.
30095 (__gnat_locate_exec_on_path): improvements to the Win32 section:
30096 * avoid allocating the memory twice for better efficiency;
30097 * allocate 32K buffer for environment expansion as suggested by MSDN;
30098 * prepend ".;" to the path so that current directory is searched too.
30100 2005-06-14 Robert Dewar <dewar@adacore.com>
30102 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
30103 instead of raising CE (AI-241)
30104 Add warnings off to allow categorization violations for AI-362
30106 2005-06-14 Robert Dewar <dewar@adacore.com>
30108 * ali-util.adb, gnatbind.adb: Remove references to
30109 Force_RM_Elaboration_Order.
30111 * switch-b.adb: Remove recognition of -f switch
30113 2005-06-14 Pascal Obry <obry@adacore.com>
30115 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
30116 implementation which is slightly more efficient.
30118 2005-06-14 Gary Dismukes <dismukes@adacore.com>
30119 Javier Miranda <miranda@adacore.com>
30120 Ed Schonberg <schonberg@adacore.com>
30121 Hristian Kirtchev <kirtchev@adacore.com>
30123 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
30124 allocator's designated type is a class-wide type, and compiling for
30125 Ada 2005, emit a run-time check that the accessibility level of the
30126 type given in the allocator's expression is not deeper than the level
30127 of the allocator's access type.
30129 (Tagged_Membership): Modified to gives support to abstract interface
30132 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
30134 (Descendant_Tag): New predefined function
30135 (Is_Descendant_At_Same_Level): New predefined function
30136 (Get_Access_Level): New private function
30137 (Set_Access_Level): New private procedure
30138 (IW_Membership): New function. Given the tag of an object and the tag
30139 associated with an interface, evaluate if the object implements the
30141 (Register_Interface_Tag): New procedure used to initialize the table of
30142 interfaces used by the IW_Membership function.
30143 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
30144 of the dispatch table.
30145 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
30146 table of interfaces of the parent.
30147 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
30148 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
30149 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
30150 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
30151 Ada 2005 semantics for the new predefined function.
30153 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
30154 call to Descendant_Tag rather than Internal_Tag.
30155 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
30156 the accessibility level of the attribute's Item parameter is not deeper
30157 than the level of the attribute's prefix type. Tag_Error is raised if
30158 the check fails. The check is only emitted for Ada_05.
30159 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
30160 requested stream attribute, use it.
30161 (Expand_N_Attribute_Reference): If the designated type is an interface
30162 then rewrite the referenced object as a conversion to force the
30163 displacement of the pointer to the secondary dispatch table.
30164 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
30165 is a dereference of an object with a constrained partial view.
30167 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
30168 type is a class-wide type, emit a run-time check that the accessibility
30169 level of the returned object is not deeper than the level of the
30170 function's master (only when compiling for Ada 2005).
30172 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
30173 Action_Nb_Arg): Add entries for new Get_Access_Level and
30174 Set_Access_Level routines in these tables.
30175 (Make_DT): Generate a call to set the accessibility level of the
30176 tagged type in its TSD.
30177 (Make_DT): Code cleanup. The functionality of generating all the
30178 secondary dispatch tables has been moved to freeze_record_type.
30179 (Make_Abstract_Interface_DT): Minor code cleanup.
30180 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
30181 this subprogram implements a new algorithm that provides the
30182 same functionality and it is more clear in case of primitives
30183 associated with abstract interfaces.
30184 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
30185 clean up, the functionality of this subprogram is now provided
30186 by Set_All_DT_Position.
30187 (Write_DT): New subprogram: a debugging procedure designed to be called
30188 within gdb to display the dispatch tables associated with a tagged
30190 (Collect_All_Interfaces): New subprogram that collects the whole list
30191 of interfaces that are directly or indirectly implemented by a tagged
30193 (Default_Prim_Op_Position): New subprogram that returns the fixed
30194 position in the dispatch table of the default primitive operations.
30195 (Expand_Interface_Actuals): New subprogram to generate code that
30196 displaces all the actuals corresponding to class-wide interfaces to
30197 reference the interface tag of the actual object.
30198 (Expand_Interface_Conversion): New subprogram. Reference the base of
30199 the object to give access to the interface tag associated with the
30200 secondary dispatch table.
30201 (Expand_Interface_Thunk): New subprogram that generates the code of the
30202 thunk. This is required for compatibility with the C+ ABI.
30203 (Make_Abstract_Interface_DT): New subprogram that generate the
30204 declarations for the secondary dispatch tables associated with an
30205 abstract interface.
30206 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
30207 attribute for each primitive operation covering interface subprograms
30208 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
30209 These subprograms were upgraded to give support to abstract interfaces
30211 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
30212 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
30213 RE_Set_Access_Level.
30214 (RE_Unit_Table): Add entries for new Ada.Tags operations.
30215 Add support to call the followig new run-time subprograms:
30216 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
30218 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
30219 match its full declaration when both have an access definition with
30220 statically matching designated subtypes.
30221 (Analyze_Component_Declaration): Delete commented out code that was
30222 incorrectly setting the scope of an anonymous access component's type.
30223 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
30224 an access discriminant when the containing type is nonlimited.
30225 (Make_Incomplete_Type_Declaration): Create an incomplete type
30226 declaration for a record type that includes self-referential access
30228 (Check_Anonymous_Access_Types): Before full analysis of a record type
30229 declaration, create anonymous access types for each self-referential
30231 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
30232 an access component in this context is a Local_Anonymous_Access, for
30233 proper accessibility checks.
30234 (Access_Definition): Set properly the scope of the anonymous access type
30235 created for a stand-alone access object.
30236 (Find_Type_Of_Object): An object declaration may be given with an access
30238 (Complete_Subprograms_Derivation): New subprogram used to complete
30239 type derivation of private tagged types implementing interfaces.
30240 In this case some interface primitives may have been overriden
30241 with the partial-view and, instead of re-calculating them, they
30242 are included in the list of primitive operations of the full-view.
30243 (Build_Derived_Record_Type): Modified to give support to private
30244 types implemening interfaces.
30245 (Access_Definition): Reject ALL on anonymous access types.
30246 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
30247 type derivation to occur at a deeper accessibility level than the
30249 For the case of derivation within a generic body however, disallow the
30250 derivation if the derived type has an ancestor that is a formal type
30251 declared in the formal part of an enclosing generic.
30252 (Analyze_Object_Declaration): For protected objects, remove the check
30253 that they cannot contain interrupt handlers if not declared at library
30255 (Add_Interface_Tag_Components): New subprogram to add the tag components
30256 corresponding to all the abstract interface types implemented by a
30257 record type or a derived record type.
30258 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
30259 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
30260 Process_Full_View, Record_Type_Declaration): Modified to give
30261 support to abstract interface types
30262 (Collect_Interfaces): New subprogram that collects the list of
30263 interfaces that are not already implemented by the ancestors
30264 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
30265 when partial view has no discriminants and full view has defaults.
30266 (Constrain_Access): Reject a constraint on a general access type
30267 if the discriminants of the designated type have defaults.
30268 (Access_Subprogram_Declaration): Associate the Itype node with the inner
30269 full-type declaration or subprogram spec. This is required to handle
30270 nested anonymous declarations.
30271 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
30272 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
30273 Process_Full_View, Record_Type_Declaration): Modified to give
30274 support to abstract interface types
30275 (Derive_Subprograms): Addition of a new formal to indicate if
30276 we are in the case of an abstact-interface derivation
30277 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
30278 to the specification because it is requied to analyze all the
30279 identifiers found in a list of interfaces
30281 * debug.adb: Complete documentation of flag "-gnatdZ"
30283 * exp_ch3.adb: Implement config version of persistent_bss pragma
30284 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
30285 testing for TSS presence to properly enforce visibility rules.
30286 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
30287 Make_Abstract_Interfaces_DT to generate the secondary tables
30288 associated with abstract interfaces.
30289 (Build_Init_Procedure): Modified to initialize all the tags
30291 (Component_Needs_Simple_Initialization): Similar to other tags,
30292 interface tags do not need initialization.
30293 (Freeze_Record_Type): Modified to give support to abstract interface
30295 (Expand_N_Object_Declaration): Do not generate an initialization for
30296 a scalar temporary marked as internal.
30298 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
30299 in-out parameter that is a component in an initialization procedure,
30300 whose constraint might depend on discriminants, and that may be
30301 misaligned because of packing or representation clauses.
30302 (Is_Legal_Copy): New predicate to determine whether a possibly
30303 misaligned in-out actual can actually be passed by copy/return. This
30304 is an error in case the type is by_reference, and a warning if this is
30305 the consequence of a DEC import pragma on the subprogram.
30306 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
30308 (Expand_Inlined_Call): Mark temporary generated for the return value as
30309 internal, so that no useless scalar normalization is generated for it.
30310 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
30311 null procedure can always be inlined.
30312 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
30313 procedure, generate an explicit empty body for it.
30315 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
30316 Given a type implementing an interface, returns the corresponding
30317 access_disp_table value.
30318 (Find_Interface_Tag): New subprogram. Given a type implementing an
30319 interface, returns the record component containing the tag of the
30321 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
30322 previous ones that return the corresponding tag and access_disp_table
30324 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
30325 is a predefined primitive operation.
30326 (Expand_Subtype_From_Expr): If the expression is a selected component
30327 within an initialization procedure, compute its actual subtype, because
30328 the component may depend on the discriminants of the enclosing record.
30330 * i-cpp.ads, i-cpp.adb:
30331 This package has been left available for compatibility with previous
30332 versions of the frontend. As part of the new layout this is now a
30333 dummy package that uses declarations available at a-tags.ads
30335 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
30336 "constant access" and "aliased [constant] access" when not compiling
30338 Suppress Ada 2005 keyword warning if -gnatwY used
30339 (P_Identifier_Declarations): Add support for object declarations with
30340 access definitions.
30341 (Private_Extension_Declaration): Complete the documentation
30342 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
30343 attribute in case of private extension declaration
30344 (P_Type_Declaration): Mark as "abstract" the type declarations
30345 corresponding with protected, synchronized and task interfaces
30346 (P_Declarative_Items): "not" and "overriding" are overriding indicators
30347 for a subprogram or instance declaration.
30349 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
30350 instantiation that is a dispatching operation has controlling access
30351 parameters that are null excluding.
30352 Save and restore Ada_Version_Explicit, for implementation of AI-362
30353 (Validate_Derived_Type_Instance): Add check for abstract interface
30355 (Analyze_Formal_Package): Establish Instantiation source for the copy of
30356 the generic that is created to represent the formal package.
30357 (Analyze_Package_Instantiation): Instantiate body immediately if the
30358 package is a predefined unit that contains inlined subprograms, and
30359 we are compiling for a Configurable_Run_Time.
30360 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
30361 If the program has a null default, generate an empty body for it.
30363 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
30364 error message condition, null procedures are correctly detected now.
30365 (New_Overloaded_Entity): Bypass trivial overriding indicator check
30366 for subprograms in the context of protected types. Instead, the
30367 indicator is examined in Sem_Ch9 while analysing the subprogram
30369 (Check_Overriding_Indicator): Check consistency of overriding indicator
30370 on subprogram stubs as well.
30371 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
30373 (Analize_Subprogram_Specification): When analyzing a subprogram in which
30374 the type of the first formal is a concurrent type, replace this type
30375 by the corresponding record type.
30376 (Analyze_Subprogram_Body): Undo the previous work.
30377 (Analyze_Procedure_Call): If the call has the form Object.Op, the
30378 analysis of the prefix ends up analyzing the call itself, after which
30380 (Has_Interface_Formals): New subprogram subsidiary to analyze
30381 subprogram_specification that returns true if some non
30382 class-wide interface subprogram is found
30383 (New_Overloaded_Entity): Modified to give support to abstract
30385 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
30386 access to subprograms must be recursive.
30387 (Is_Unchecked_Conversion): Improve the test that recognizes
30388 instantiations of Unchecked_Conversion, and allows them in bodies that
30389 are to be inlined by the front-end. When the body comes from an
30390 instantiation, a reference to Unchecked_Conversion will be an
30391 Expanded_Name, even though the body has not been analyzed yet.
30392 Replace Is_Overriding and Not_Overriding in subprogram_indication with
30393 Must_Override and Must_Not_Override, to better express intent of AI.
30394 (Analyze_Subprogram_Body): If an overriding indicator is given, check
30395 that it is consistent with the overrinding status of the subprogram
30397 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
30399 If the subprogram is a null procedure, indicate that it does not need
30402 * sem_disp.adb (Check_Controlling_Type): Give support to entities
30403 available through limited-with clauses.
30404 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
30405 allowed as the last primitive of a tagged type if it has no previous
30407 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
30408 to give support to abstract interface types
30410 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
30411 in the case where the target type is an anonymous access type of an
30412 object or component (that is, when Is_Local_Anonymous_Access is true).
30413 Prevent the special checks for conversions of access discriminants in
30414 the case where the discriminant belongs to a nonlimited type, since
30415 such discriminants have their accessibility level defined in the same
30416 way as a normal component of an anonymous access type.
30417 (Resolve_Allocator): When an allocator's designated type is a class-wide
30418 type, check that the accessibility level of type given in the
30419 allocator's expression or subtype indication is not statically deeper
30420 than the level of the allocator's access type.
30421 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
30422 name in a discriminant constraint of a record component.
30423 (Resolve_Explicit_Dereference): Do not check whether the type is
30424 incomplete when the dereference is a use of an access discriminant in
30425 an initialization procedure.
30426 (Resolve_Type_Conversion): Handle conversions to abstract interface
30428 (Valid_Tagged_Conversion): The conversion of a tagged type to an
30429 abstract interface type is always valid.
30430 (Valid_Conversion): Modified to give support to abstract interface types
30431 (Resolve_Actuals): Enable full error reporting on view conversions
30432 between unrelated by_reference array types.
30433 The rule for view conversions of arrays with aliased components is
30434 weakened in Ada 2005.
30435 Call to obsolescent subprogram is now considered to be a violation of
30436 pragma Restrictions (No_Obsolescent_Features).
30437 (Check_Direct_Boolean_Operator): If the boolean operation has been
30438 constant-folded, there is nothing to check.
30439 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
30440 check on possible violation of restriction No_Direct_Boolean_Operators
30441 until after expansion of operands, to prevent spurious errors when
30442 operation is constant-folded.
30444 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
30445 Has_Compatible_Type): Modified to give support to abstract interface
30447 (Interface_Present_In_Ancestor): New function to theck if some ancestor
30448 of a given type implements a given interface
30450 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
30451 prefix is a parameterless function that returns an access_to_procedure.
30452 (Transform_Object_Operation): Handle properly function calls of the
30453 form Obj.Op (X), which prior to analysis appear as indexed components.
30454 (Analyze_One_Call): Complete the error notification to help new Ada
30456 (Analyze_Allocator): For an allocator without an initial value, where
30457 the designated type has a constrained partial view, a discriminant
30458 constraint is illegal.
30460 2005-06-14 Robert Dewar <dewar@adacore.com>
30462 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
30463 do with treatment of Set_Col when positioned at end of line character.
30465 2005-06-14 Robert Dewar <dewar@adacore.com>
30467 * atree.adb: (Elist*): Protect against uninitialized field
30469 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30471 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
30472 for an attribute reference that returns an access type.
30473 (Apply_Discriminant_Check): No need for check if (designated) type has
30474 constrained partial view.
30476 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
30477 both bound checks, rather than a conjunction.
30478 (Insert_Valid_Check): If the expression is an actual that is an indexed
30479 component of a bit-packed array, force expansion of the packed element
30480 reference, because it is specifically inhibited elsewhere.
30482 2005-06-14 Vincent Celier <celier@adacore.com>
30484 * clean.adb (Clean_Project): Correctly delete executable specified as
30485 absolute path names.
30487 * make.adb (Gnatmake): Allow relative executable path names with
30488 directory information even when project files are used.
30489 (Change_To_Object_Directory): Fail gracefully when unable to change
30490 current working directory to object directory of a project.
30491 (Gnatmake): Remove exception handler that could no longer be exercized
30492 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
30493 may be deallocated by Normalize_Arguments.
30494 (Collect_Arguments): Eliminate empty arguments
30496 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
30497 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
30498 (Check_Project): Return False when Project is No_Project. Return True
30499 when All_Projects is True.
30500 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
30501 All_Projects to True.
30504 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30505 Javier Miranda <miranda@adacore.com>
30506 Thomas Quinot <quinot@adacore.com>
30507 Robert Dewar <dewar@adacore.com>
30508 Hristian Kirtchev <kirtchev@adacore.com>
30509 Gary Dismukes <dismukes@adacore.com>
30511 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
30512 anonymous access types, to indicate that the accessibility level of
30513 the type is determined by that of the enclosing declaration.
30514 (Has_Persistent_BSS): New flag
30515 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
30516 of this attribute with functions.
30517 (Is_Primitive_Wrapper): Remove the barrier.
30518 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
30519 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
30521 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
30522 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
30524 (Is_Pure_Unit_Access_Type): New flag
30525 (Abstract_Interfaces): Complete the assertion to cover all usages.
30526 (Set_Is_Interface): Complete the assertion to cover all usages.
30527 (Is_Primitive_Wrapper): New attribute.
30528 (Is_Obsolescent): Now applies to all entities (though it is only set
30529 for subprograms currently)
30530 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
30531 which solves various problems concerning access subtypes.
30532 (Has_Persistent_BSS): New flag
30533 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
30534 Remove these subprograms because this attribute is currently
30537 Has_Specified_Stream_Input (Flag190)
30538 Has_Specified_Stream_Output (Flag191)
30539 Has_Specified_Stream_Read (Flag192)
30540 Has_Specified_Stream_Write (Flag193)
30541 Present in all type and subtype entities. Set for a given view if the
30542 corresponding stream-oriented attribute has been defined by an
30543 attribute definition clause. When such a clause occurs, a TSS is set
30544 on the underlying full view; the flags are used to track visibility of
30545 the attribute definition clause for partial or incomplete views.
30546 (Is_Pure_Unit_Access_Type): New flag
30547 Clarify use of Is_Internal.
30548 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
30549 internally generated to wrap the invocation of tasks and protected
30550 types that implement interfaces.
30551 (Implementation_Base_Type): Documentation correction
30552 (Is_Obsolescent): Now applies to all entities (though it is only set
30553 for subprograms currently)
30554 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
30555 which solves various problems concerning access subtypes.
30557 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
30558 for examined parameters. Identify unequal parameter list lengths as
30559 non-conformant parameters.
30560 (Overriding_Possible): Do not check for "All" qualifier in declaration
30561 of controlling access parameter, following prescription of AI-404.
30562 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
30563 that build the procedure body that wraps an entry invocation
30564 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
30565 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
30566 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
30567 give support to abstract interface types
30569 * freeze.adb (Freeze_Entity): Issue error message if
30570 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
30571 type has no storage pool (Ada 2005) AI-366.
30572 Also modified to give support to abstract interface types
30573 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
30574 Inline_Always pragma.
30576 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
30577 now begin an entry declaration.
30578 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
30579 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
30580 a subprogram declaration preceded by an overriding indicator.
30581 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
30582 declarations or subprogram declarations preceded by reserved words
30583 "not" or "overriding".
30584 (P_Entry_Declaration): Update comment. Parse and check overriding
30585 indicator, set semantic flags of entry declarations.
30586 (P_Task): New error message in case of private applied
30587 to a task type declaration.
30588 (P_Protected): New error message in case of private applied
30589 to a task type declaration.
30591 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
30592 in which the full view of a type implementing an interface is a
30594 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
30595 Declare_Inherited_Private_Subprograms): If an explicit operation
30596 overrides an operation that is inherited in the private part, mark the
30597 explicit one as overriding, to enable overriding indicator checks.
30598 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
30599 full view to partial view, to simplify handling in back-end.
30601 * sprint.adb: Print interface lists where needed: derived types,
30602 protected types, task types.
30603 output "is null" for null procedures. Part of implementation of
30605 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
30606 relaxation of rules for access types in pure, shared passive partitions.
30608 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
30609 first read discriminants into temporary objects, performing checks on
30610 the read values, then possibly performing discriminant checks on the
30611 actual (if it is constrained), and only finally reading the components
30612 into a constrained temporary object.
30613 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
30614 case of reading discriminants of a mutable record type to recognize
30615 the new form of the code generated by
30616 Build_Mutable_Record_Read_Procedure.
30618 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
30619 of a simple call to Make_TSS_Name.
30620 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
30621 buffer, in order for Is_TSS to work correctly on local TSS names.
30623 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
30624 Is_Local_Anonymous_Access to check legaliy of attributes in the
30625 context of access components and stand-alone access objects.
30626 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
30627 treated as available for a limited private type if there is an
30628 attribute_definition_clause that applies to its full view, but not in
30629 other cases where the attribute is available for the full view
30630 (specifically, the sole fact that the full view is non-limited does not
30631 make the attribute available for the partial view).
30632 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
30633 non-overloaded intrinsic subprogram.
30634 (Check_Stream_Attribute): Reject an attribute reference for an
30635 unavailable stream attribute even if the prefix is not a limited type
30636 (case of a 'Input attribute reference for an abstract, non-classwide
30638 (Stream_Attribute_Available): New function to determine whether a stream
30639 attribute is available at a place.
30640 (Check_Attribute): Use Stream_Attribute_Available instead of just
30641 testing for TSS presence on the implementation base type.
30642 (Analyze_Attribute): Modified to give support to task interfaces.
30643 (Analyze_Access_Attribute): Add error check for use of an Access (or
30644 Unrestricted_Access) attribute with a subprogram marked as
30646 (Analyze_Attribute, case Attribute_Address): Add error check for use of
30647 an Address attribute with a subprogram marked as Inline_Always.
30648 Update Eval_Attribute to handle new value of Width from AI-395
30650 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
30651 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
30652 Factor common code across the stream-oriented attribute circcuits into
30653 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
30654 processing is functionally identical to the previous duplicated one,
30655 except that an expression that denotes an abstract subprogram will now
30656 be rejected, as mandated by AI-195 item 5.
30658 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
30659 Is_Local_Anonymous_Access to apply accessibility checks to access
30660 components and stand-alone access objects.
30661 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
30663 (Is_Potentially_Persistent_Type): New function
30664 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
30665 a heap-object whose type has a constrained partial view, the object is
30666 unconstrained and the component may depend on a discriminant, making its
30669 * sinfo.ads, sinfo.adb
30670 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
30671 (Must_Override): Flag applicable to N_Entry_Declaration.
30672 Indicate that interface_list can appear in single task and single
30673 protected declarations.
30674 Replace Is_Overriding and Not_Overriding with Must_Override and
30675 Must_Not_Override, to better express intent of AI.
30676 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
30677 of an overriding indicator in a subprogram or instance.
30678 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
30679 Add the overriding indicator [[not] overriding] construct to the
30680 following grammar productions:
30682 GENERIC_INSTANTIATION
30683 SUBPROGRAM_SPECIFICATION
30685 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
30686 can start with an overriding indicator.
30688 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
30689 flags accordingly on subrogram specifications or instances.
30692 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
30693 overriding_indicator, if present, is consistent with status of spec.
30694 Improve error message for null-excluding checks on controlling access
30696 (Check_In_Previous_With_Clause): Protect the frontend against
30697 previously reported critical errors in the context clauses.
30698 Save and restore Ada_Version_Explicit, for implementation of AI-362
30699 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
30700 operation verify that controlling formals of the renamed entity that
30701 are access parameters are explicitly non-null.
30702 (Find_Expanded_Name): Improve error message when prefix is an illegal
30703 reference to a private child unit.
30705 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
30706 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
30707 Rewrite to correspond to new wide character names in AI-395
30709 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
30710 default procedures.
30712 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30713 Robert Dewar <dewar@adacore.com>
30715 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
30716 code, not on the bodies of predefined operations, to cut down on
30719 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30721 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
30722 be expanded in place. The size computation does not require a
30723 subtraction, which would raise an exception on a compiler built with
30724 assertions when the upper bound is Integer'first.
30725 (Flatten): For an array of composite components, take into account the
30726 size of the components to determine whether it is safe to expand the
30727 array into a purely positional representation.
30729 2005-06-14 Thomas Quinot <quinot@adacore.com>
30731 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
30732 denoting a formal parameter into account.
30734 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30736 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
30737 the entry_call alternative of a conditional entry call, wrap the
30738 conditional entry call itself.
30740 2005-06-14 Nicolas Setton <setton@adacore.com>
30741 Ed Schonberg <schonberg@adacore.com>
30743 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
30744 the "simple_choice" member in a variant record, in accordance with the
30745 description in the package spec: the information output for a constant
30746 should be "S number", not "SS number".
30747 (Get_Encoded_Name): Return at once if not generating code. Avoids name
30748 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
30750 2005-06-14 Thomas Quinot <quinot@adacore.com>
30752 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
30753 RACW without any primitives, do not generate the if statement for
30754 dispatching by name in the PolyORB/DSA case, as it would be malformed
30755 (it would have an Elsif_Parts list that is not No_List, but with a
30758 2005-06-14 Robert Dewar <dewar@adacore.com>
30760 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
30762 2005-06-14 Jose Ruiz <ruiz@adacore.com>
30764 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
30765 can determine whether pragma Suppress_Exception_Locations is in effect.
30767 * utils2.c (build_call_raise): Do not pass the file name to the
30768 exception handler if pragma Suppress_Exception_Locations is in effect.
30769 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
30771 2005-06-14 Emmanuel Briot <briot@adacore.com>
30773 * g-debpoo.adb (Deallocate, Dereference): Improve output.
30775 2005-06-14 Nicolas Roche <roche@adacore.com>
30777 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
30779 (Next_Level): Fix minor bug in handling of ../dir case
30780 (Read): Add dir separator to Directory name so that "" is understood as
30783 2005-06-14 Pascal Obry <obry@adacore.com>
30785 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
30786 releasing the items.
30788 2005-06-14 Vincent Celier <celier@adacore.com>
30789 Cyrille Comar <comar@adacore.com>
30791 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
30792 with output file descriptor and with output file name.
30793 (Dup, Dup2): Now global procedures as they are used by two subprograms
30794 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
30796 2005-06-14 Thomas Quinot <quinot@adacore.com>
30799 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
30801 (Create_Selector): Bind listening socket used to create the signalling
30802 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
30803 Set listen backlog to 1 to ensure that we detect socket theft by a
30804 failure of our own connect(2) call.
30805 (Check_Selector): Improve documentation of the selector mechanism.
30806 (Broadcast_Inet_Addr): New constant.
30808 2005-06-14 Gary Dismukes <dismukes@adacore.com>
30810 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
30811 type which turns out to be an incomplete and incorrect fix.
30812 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
30813 of the type is declared in a record (for determination of insertion
30815 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
30816 a private type and ensure that the primary entity is used for the type
30817 of the newly created function's V formal by taking the Etype of the
30820 2005-06-14 Javier Miranda <miranda@adacore.com>
30821 Jose Ruiz <ruiz@adacore.com>
30822 Robert Dewar <dewar@adacore.com>
30823 Ed Schonberg <schonberg@adacore.com>
30825 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
30826 that indicates if we are parsing a compilation unit found in a
30827 limited-with clause.
30828 It is use to avoid the circularity check.
30830 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
30831 we are parsing a compilation unit found in a limited-with clause. This
30832 is use to avoid the circularity check.
30834 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
30835 unit as a consequence of parsing a limited-with clause. This is used
30836 to avoid the circularity check.
30838 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
30839 (Analyze_Context): Limited-with clauses are now allowed
30840 in more compilation units.
30841 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
30842 againts previously reported critical errors in context clauses
30843 (Install_Limited_Withed_Unit): Code cleanup plus static detection
30844 of two further errors: renamed subprograms and renamed packages
30845 are not allowed in limited with clauses.
30846 (Install_Siblings): Do not install private_with_clauses on the package
30847 declaration for a non-private child unit.
30848 (Re_Install_Parents): When a parent of the subunit is reinstalled,
30849 reset visibility of child units properly.
30850 (Install_Withed_Unit): When a child unit appears in a with_clause of its
30851 parent, it is immediately visible.
30853 2005-06-14 Ed Schonberg <schonberg@adacore.com>
30854 Emmanuel Briot <briot@adacore.com>
30856 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
30857 declared within an inlined body as referenced, to prevent spurious
30859 (Output_One_Ref): If an entity renames an array component, indicate in
30860 the ALI file that this aliases (renames) the array. Capture as well
30861 function renamings that rename predefined operations.
30862 Add information about generic parent for package and subprogram
30864 (Get_Type_Reference): For a subtype that is the renaming of an actual in
30865 an instantiation, use the first_subtype to ensure that we don't generate
30866 cross-reference information for internal types.
30867 For objects and parameters of a generic private type, retain the '*'
30868 indicator to distinguish such an entity from its type.
30870 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
30871 to store information about instantiated entities.
30873 * ali.adb (Scan_ALI): Add support for parsing the reference to the
30876 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
30877 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
30880 2005-06-10 Doug Rupp <rupp@adacore.com>
30881 Arnaud Charlet <charlet@adacore.com>
30882 Olivier Hainque <hainque@adacore.com>
30883 Jose Ruiz <ruiz@adacore.com>
30885 * Make-lang.in: Add initialize.o when needed.
30886 Remove obsolete references to RT_FLAGS.
30887 Add missing dependencies for sdefault.o
30889 * initialize.c: New file.
30891 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
30892 [VMS] cond_signal_table: Fix problem in declaration.
30893 [VMS] __gnat_error_handler: rewrite.
30894 Move all __gnat_initialize() routines to initialize.c
30895 Specialize the former "hpux" section to "hppa hpux", as this is what the
30896 section really is here for and we now have other hpux ports that need
30897 different contents.
30898 (__gnat_adjust_context_for_raise) i386-linux: First version of this
30899 function for this target. Adjust PC by one in the machine context. This
30900 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
30901 it is more reliable to do that in the signal handler itself.
30902 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
30903 flags, so that the handler is passed the context structure to adjust
30904 prior to the raise.
30905 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
30906 SA_SIGINFO sigaction should look like. Call
30907 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
30908 Machine_State_Operations stuff.
30909 Add conditional code so that the x86_64 is also supported.
30911 2005-06-14 Pascal Obry <obry@adacore.com>
30913 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
30916 2005-06-14 Robert Dewar <dewar@adacore.com>
30918 * opt.ads, opt.adb: New flags for persistent_bss mode
30919 Add Ada_Version_Explicit, for implementation of AI-362
30920 Add Assertions_Enabled_Config and associated handling
30921 Needed since setting can be changed with Assertion_Policy pragma
30922 Add new flag Warn_On_Ada_2005_Compatibility
30924 * switch-c.adb: Recognize -gnatwy/Y
30925 Set Ada_Version_Explicit, for implementation of AI-362
30926 The -gnatg switch now includes -gnatyu
30928 * usage.adb: Add -gnatwy/Y
30929 Remove wrong asterisk on -gnatwX line
30930 Add line for -gnatyu switch
30932 2005-06-14 Vincent Celier <celier@adacore.com>
30934 * osint.adb (Add_Default_Search_Dirs): Put source and object
30935 directories of project files before directories coming from
30936 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
30938 2005-06-14 Robert Dewar <dewar@adacore.com>
30941 * par-ch2.adb (Scan_Pragma_Argument): New procedure
30942 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
30944 2005-06-14 Vincent Celier <celier@adacore.com>
30946 * prep.adb (Preprocess): Ignore error when scanning the first token of
30949 2005-06-14 Vincent Celier <celier@adacore.com>
30951 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
30952 (Check_Stand_Alone_Library): If the specified reference symbol file does
30953 not exist, only issue a warning when the symbol policy is not
30954 Controlled. And, when symbol policy is Compliant, set the symbol
30955 policy to Autonomous.
30957 2005-06-14 Vincent Celier <celier@adacore.com>
30959 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
30960 when the project file in a with clause is not the last one, that is the
30961 project file name is followed by a comma.
30962 * prj-pp.adb: (First_With_In_List): New Boolean global variable
30963 (Print): Issue list of project files separated by commas in with clauses
30964 according to the values returned by Is_Not_Last_In_List.
30965 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
30966 (Set_Is_Not_Last_In_List): New procedure
30968 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
30970 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
30972 2005-06-14 Robert Dewar <dewar@adacore.com>
30974 * scng.adb: Add call to new Check_EOF routine
30975 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
30976 Add some comments regarding wide character handling
30978 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
30980 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
30982 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
30983 characters are now considered graphic characters and hence yield false
30986 * nmake.adt: Modify header so that xnmake does not generate output
30987 files with multiple blank lines.
30989 * treeprs.adt: Remove a blank line so that output from xtreeprs does
30990 not have an extra blank line
30992 2005-06-14 Gary Dismukes <dismukes@adacore.com>
30994 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
30995 expression when the component type is an anonymous access type to
30996 ensure that appropriate accessibility checks are done.
30998 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
30999 expression of an assignment when the target object is of an anonymous
31000 access type. This ensures that required accessibility checks are done.
31001 (One_Bound): Move the check for type Universal_Integer to
31003 (Process_Bounds): Check whether the type of the preanalyzed range is
31004 Universal_Integer, and in that case set Typ to Integer_Type prior
31005 to setting the type of the original range and the calls to One_Bound.
31007 2005-06-14 Ed Schonberg <schonberg@adacore.com>
31009 * sem_case.adb (Expand_Others_Choice): Improve warning.
31011 2005-06-14 Ed Schonberg <schonberg@adacore.com>
31013 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
31014 constraint of full view if present, when other type is discriminated.
31015 (Eval_Relational_Op): Recognize tests of pointer values against Null,
31016 when the pointer is known to be non-null, and emit appropriate warning.
31018 2005-06-14 Robert Dewar <dewar@adacore.com>
31019 Ed Schonberg <schonberg@adacore.com>
31022 * sem_prag.adb: Implement pragma Persistent_BSS
31023 Remove obsolete pragma Persistent_Data, Persistent_Object
31024 Set Ada_Version_Explicit, for implementation of AI-362
31025 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
31026 Add processing for pragma Pure_05 and Preelaborate_05
31027 Add processing for Assertion_Policy pragma
31028 Add pragma identifiers for Assert
31029 (Analyze_Pragma, case Assert): Check number of arguments
31030 (Process_Inline): Additional guard against an illegal program, where the
31031 argument of the pragma is undefined, and warnings on redundant
31032 constructs are enabled.
31033 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
31034 Ada_05 to this pragma, specifying that the pragma is only active in
31036 (Check_Arg_Order): New procedure
31037 Add appropriate calls to this procedure throughout
31038 Also throughout, check entity name before doing any other checks
31040 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
31041 Remove obsolete pragma Persistent_Data, Persistent_Object
31042 Add entries for pragma Pure_05 and Preelaborate_05
31043 Add entries for Assertion_Policy pragma and associated names
31044 Add some names for pragma argument processing
31046 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
31048 2005-06-14 Ed Schonberg <schonberg@adacore.com>
31050 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
31051 appears within a negation (either from source or as a rewriting of
31052 inequality) adjust text of warning accordingly.
31054 2005-06-14 Thomas Quinot <quinot@adacore.com>
31056 * s-strxdr.adb: Follow AI95-00132
31058 2005-06-14 Arnaud Charlet <charlet@adacore.com>
31060 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
31062 2005-06-14 Arnaud Charlet <charlet@adacore.com>
31063 Jose Ruiz <ruiz@adacore.com>
31065 * s-tposen.adb, s-tpobop.adb
31066 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
31068 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
31069 there is no violation of the Max_Entry_Queue_Length restriction (if it
31070 has been set); Program_Error is raised otherwise.
31071 (Requeue_Call): Before requeuing the task on the target entry queue we
31072 check that there is no violation of the Max_Entry_Queue_Length
31073 restriction (if it has been set); Program_Error is raised otherwise.
31075 2005-06-14 Robert Dewar <dewar@adacore.com>
31077 * styleg.adb: Fix several remaining problems in -gnatyu switch
31078 Blank line count not reset at start
31079 Scanning outside source buffer in some cases
31080 Confusing message for blanks at end of file
31081 Non-empty blank lines not recognized
31083 * nmake.adt: Modify header so that xnmake does not generate output
31084 files with multiple blank lines.
31086 * treeprs.adt: Remove a blank line so that output from xtreeprs does
31087 not have an extra blank line
31089 2005-06-14 Sergey Rybin <rybin@adacore.com>
31091 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
31093 2005-06-14 Doug Rupp <rupp@adacore.com>
31094 Vincent Celier <celier@adacore.com>
31096 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
31099 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
31100 Remove "Library" command.
31101 Change keyword for style check -gnatyd from NOCRLF to
31103 Remove useless second style check keyword NONE
31104 Remove help documentation for inexistent style check keyword
31106 Add help documentation for style check keywords DOS_LINE_ENDINGS,
31107 UNNECESSARY_BLANK_LINES and XTRA_PARENS
31108 Add UNNECESSARY_BLANK_LINES for -gnatyu
31109 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
31111 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
31113 2005-06-14 Vincent Celier <celier@adacore.com>
31115 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
31116 gprmake was invoked with -d.
31117 (Compile_Sources): If -d was used, output the "completed ..." message
31118 for each compilation.
31119 (Scan_Arg): Recognize new switch -d
31120 When -c and at least one main is specified, set
31121 Unique_Compile to True to guarantee that no other sources will be
31124 2005-06-14 Matthew Heaney <heaney@adacore.com>
31126 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
31127 * a-swuwha.ads, a-swuwha.adb: New files
31129 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
31130 * a-szuzha.ads, a-szuzha.adb: New files.
31132 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
31133 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
31134 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
31135 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
31136 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
31137 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
31138 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
31139 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
31140 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
31141 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
31144 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
31145 Olivier Hainque <hainque@adacore.com>
31146 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31147 Pascal Obry <obry@adacore.com>
31149 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
31151 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
31152 making a temporary around a procedure call because of non-addressable
31154 (process_freeze_entity): If entity is a private type, capture size
31155 information that may have been computed for the full view.
31156 (tree_transform, case N_Allocator): If have initializing expression,
31157 check type for Has_Constrained_Partial_View and pass that to
31159 (tree_transform, case N_Return_Statement): Pass extra arg to
31162 * decl.c (annotate_value): Remove early return if -gnatR is not
31164 (gnat_to_gnu_field): Don't make a packable type for a component clause
31165 if the position is byte aligned, the field is aliased, and the clause
31166 size isn't a multiple of the packable alignment. It serves no useful
31167 purpose packing-wise and would be rejected later on.
31168 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
31171 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
31172 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
31174 (create_concat_name): Idem.
31176 2005-06-10 Robert Dewar <dewar@adacore.com>
31177 Eric Botcazou <ebotcazou@adacore.com>
31178 Ben Brosgol <brosgol@adacore.com>
31179 Cyrille Comar <comar@adacore.com>
31180 Sergey Rybin <rybin@adacore.com>
31181 Pascal Obry <obry@adacore.com>
31183 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
31184 Document second argument (Ada_05) of pragma Obsolescent
31185 Add note that call to subprogram marked with pragma Obsolescent
31186 is now considered to be a violation of program Restrictions
31187 (No_Obsolescent_Features).
31188 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
31189 that only machine-dependent attributes are supported.
31192 Commented out menu lines and empty section for gnatclean examples
31194 Fix some over long lines
31195 Clarify and enhance documentation of ADA_PROJECT_PATH.
31196 Rework section 2.11.2(3) about linking with a non-GNU compiler.
31197 Mention new switch -fcallgraph-info.
31198 Mention new switch -fstack-usage.
31199 For gnatpp, replace '-notab' with '-N' and add this option to Index
31200 Corrected VMS example.
31201 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
31203 Add documentation for -gnatyu switch (unnecessary blank lines)
31204 Document new switch -U for GNAT PRETTY and GNAT METRIC
31205 Add note about Stdcall being handled as C convention on non Windows OS.
31206 Remove some junk typo in description of gnatbind -S switch
31207 Remove reference to Extensions_Allowed pragma
31208 Document the new order of the directories to be searched (source and
31209 object directories of project files before directories in ADA_*_PATH
31210 environment variables.
31212 * g-trasym.ads: Document that IRIX is supported
31214 2005-06-10 Arnaud Charlet <charlet@adacore.com>
31216 * Makefile.in: Add initialize.o when needed.
31217 Adapt to new VMS package body Symbols and subunits
31218 No specialized version of a-sytaco is needed for VxWorks.
31220 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
31221 * a-zchara.ads, a-widcha.ads: New files.
31223 * system-hpux-ia64.ads: New file.
31225 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
31226 is imported from the VxWorks kernel.
31228 2005-06-14 Robert Dewar <dewar@adacore.com>
31230 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
31231 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
31232 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
31233 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
31234 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
31235 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
31236 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
31237 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
31238 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
31239 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
31240 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
31241 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
31243 2005-06-14 Thomas Quinot <quinot@adacore.com>
31245 * xeinfo.adb: Fix typo in comment
31247 2005-06-14 Javier Miranda <miranda@adacore.com>
31249 * repinfo.ads: Fix typo in comment
31251 2005-06-14 Gary Dismukes <dismukes@adacore.com>
31253 * s-finimp.adb (Parent_Tag): Delete this imported function (function
31254 Parent_Tag is now in the visible part of Ada.Tags).
31255 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
31256 using imported function.
31258 2005-06-14 Bernard Banner <banner@adacore.com>
31260 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
31261 also apply for handling support for VxSim 653.
31263 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
31265 * xsnames.adb: Add automatic generation of snames.h.
31267 2005-06-14 Thomas Quinot <quinot@adacore.com>
31269 * gen-soccon.c: Add IP_MULTICAST_IF constant
31270 Minor reformatting and adjustments to prevent warnings.
31272 2005-06-14 Pascal Obry <obry@adacore.com>
31274 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
31276 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
31278 * trans.c (gnat_gimplify_expr): Call
31279 recompute_tree_invarant_for_addr_expr when we change
31280 the operand of the ADDR_EXPR.
31282 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31284 * misc.c: Don't include errors.h.
31286 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31288 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
31290 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
31292 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
31294 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
31296 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
31299 * Makefile.in: Make TGT_LIB behave correctly.
31301 2005-04-23 DJ Delorie <dj@redhat.com>
31303 * misc.c: Adjust warning() callers.
31305 2005-04-16 Laurent Guerby <laurent@guerby.net>
31308 * a-nudira.adb (Value): Check for valid string.
31309 * a-nuflra.adb (Value): Likewise.
31311 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
31313 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
31315 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
31317 * adaint.c, init.c, tracebak.c: Fix comment typos.
31318 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
31320 2005-04-07 Laurent Guerby <laurent@guerby.net>
31321 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31323 * Makefile.in: Add make ifeq define for hppa linux tasking support.
31324 * system-hpux.ads: Define Signed_Zeros to be True.
31325 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
31327 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
31329 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
31330 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
31333 2005-03-30 Tom Tromey <tromey@redhat.com>
31335 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
31337 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
31339 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
31341 2005-03-29 Robert Dewar <dewar@adacore.com>
31343 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
31344 fixed-point expression has value that is not a multiple of the Small
31347 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
31349 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
31352 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
31354 2005-03-29 Vincent Celier <celier@adacore.com>
31356 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
31357 (Build_Dynamic_Library.Version_String): Return the empty string when
31358 Lib_Version is empty or when the symbol policy is not Autonomous.
31360 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
31361 a symbol is not in the reference symbol file, increase the Major ID
31362 and set the Minor ID to 0.
31363 Use gsmatch=lequal instead of gsmatch=equal
31365 2005-03-29 Doug Rupp <rupp@adacore.com>
31367 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
31368 name and translate.
31370 2005-03-29 Javier Miranda <miranda@adacore.com>
31372 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
31373 (Inherit_DT): The first formal has been redefined as a Tag.
31374 This allows us the removal of the subprogram Get_TSD.
31375 (TSD): Replace the call to Get_TSD by the actual code.
31377 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
31378 (Make_DT): Upgrade the call to Inherit_TSD according to the
31379 new interface: the first formal is now a Tag.
31381 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
31382 redefined as a Tag.
31383 This change allows us to remove the subprogram Get_TSD.
31384 (CPP_Get_TSD): Subprogram removed.
31385 (TSD): Replace the call to CPP_Get_TSD by the actual code.
31387 * rtsfind.ads: Remove support to call the run-time
31390 2005-03-29 Robert Dewar <dewar@adacore.com>
31392 * errutil.adb, errout.adb:
31393 Minor comment updates on Line_Terminator references
31395 * par-ch10.adb: Add ??? comment about line terminator
31397 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
31398 (check dos line terminator).
31399 (Check_Line_Max_Length): New procedure, split off from the existing
31400 Check_Line_Terminator routine. Separating this out allows -gnatyf to
31401 be properly recognized.
31403 * styleg.adb: Add ??? comment for line terminator reference
31405 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
31406 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
31408 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
31409 (check dos line terminator).
31410 (Check_Line_Max_Length): New procedure, split off from the existing
31411 Check_Line_Terminator routine. Separating this out allows -gnatyf to
31412 be properly recognized.
31414 * stylesw.ads, stylesw.adb:
31415 Add handling for new -gnatyd switch (check dos line terminator)
31417 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
31418 Recognize -gnatwb/-gnatwB switches
31419 Include Warn_On_Bad_Fixed_Value for -gnatg
31422 Add line for new -gnatyd switch (check dos line terminator)
31424 * usage.adb: Add lines for -gnatwb/-gnatwB
31426 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
31428 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
31430 * gnat_ugn.texi: Fix overlong lines
31431 Document new -gnatyd switch
31432 Document new -gnatwb/-gnatwB switches
31434 2005-03-29 Ed Schonberg <schonberg@adacore.com>
31436 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
31437 order to retrieve the component list of the type, before examining
31438 individual components.
31440 * sem_type.adb (Covers): Types are compatible if one is the base type
31441 of the other, even though their base types might differ when private
31442 views are involved.
31444 2005-03-29 Thomas Quinot <quinot@adacore.com>
31446 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
31447 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
31448 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
31449 analyzed if expansion is disabled (which could otherwise cause spurious
31450 error messages if expansion has been disabled due to previous
31451 (unrelated) errors).
31453 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
31454 is disabled, the entity denoted by the argument is the access type
31455 itself, not an underlying record type, so there is no need to go back
31456 to the Corresponding_Remote_Type.
31458 2005-03-29 Gary Dismukes <dismukes@adacore.com>
31459 Robert Dewar <dewar@adacore.com>
31461 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
31462 expand a call to an instance of
31463 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
31464 Constructor actual of the instance. A class-wide membership
31465 check is also generated, to ensure that the tag passed to the instance
31466 denotes a type in the class.
31467 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
31468 of Name_Generic_Dispatching_Constructor.
31470 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
31471 05 unit for AI-260-02).
31473 * a-tgdico.ads: New file.
31475 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
31476 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
31478 * snames.ads, snames.adb (Preset_Names): Add entry for
31479 Generic_Dispatching_Constructor.
31482 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
31483 character type cases.
31484 (Analyze_Subprogram_Renaming): Add special handling for
31485 the case of renaming of stream attributes when the renaming denotes a
31486 generic formal subprogram association for an abstract formal subprogram.
31487 Check that the attribute is a primitive stream attribute (and not
31488 a class-wide stream attribute) and then rewrite the attribute name
31489 as the name of the appropriate compiler-generated stream primitive.
31491 2005-03-29 Robert Dewar <dewar@adacore.com>
31493 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
31495 (Is_Possibly_Unaligned_Object): Correct typo that
31496 resulted in inaccurate result for unaligned scalars within records.
31498 2005-03-29 Ed Schonberg <schonberg@adacore.com>
31500 * freeze.adb (Freeze_Record_Type): If the type of the component is an
31501 itype whose parent is controlled and not yet frozen, do not create a
31502 freeze node for the itype if expansion is disabled.
31504 2005-03-29 Vincent Celier <celier@adacore.com>
31506 * make.adb (Gnatmake): Don't fail if the main project file is declared
31507 as having no Ada sources. Do not display message "no sources to
31508 compile" in quiet output.
31510 2005-03-29 Doug Rupp <rupp@adacore.com>
31512 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
31515 2005-03-29 Robert Dewar <dewar@adacore.com>
31517 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
31520 2005-03-29 Robert Dewar <dewar@adacore.com>
31522 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
31523 missing TYPE Improve the error message generated when compiling a
31524 limited interface in Ada83 or Ada95 mode.
31526 2005-03-29 Robert Dewar <dewar@adacore.com>
31528 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
31529 rather than proceed ahead using a junk attribute name.
31531 2005-03-29 Vincent Celier <celier@adacore.com>
31533 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
31535 * prj-part.adb (Parse_Single_Project): Set the location of a project
31536 on its defining identifier, rather than on the reserved word "project".
31538 * prj-proc.adb (Expression): Adapt to the fact that default of external
31539 references may be string expressions, not always literal strings.
31540 (Recursive_Process): Set Display_Name equal to Name
31541 when Location is No_Location, that is when there is no actual file.
31542 Get the Display_Name of the project from the source, when it is not a
31544 (Process): Use the Display_Name in error messages
31546 * prj-strt.adb (External_Reference): Allow default to be string
31547 expressions, not only literal strings.
31549 2005-03-29 Vincent Celier <celier@adacore.com>
31551 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
31552 file and the reference symbol file to be the same file.
31554 2005-03-29 Thomas Quinot <quinot@adacore.com>
31556 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
31557 forbid conversion of a local access-to-subprogram type to a remote one.
31559 * sem_util.adb (Wrong_Type): For a record type that is the expanded
31560 equivalent type for a remote access-to-subprogram type, go back to the
31561 original RAS entity when displaying an error message, so the casing is
31562 the original source casing.
31564 2005-03-29 Robert Dewar <dewar@adacore.com>
31566 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
31569 2005-03-29 Ed Schonberg <schonberg@adacore.com>
31571 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
31572 subtype if code is being pre-analyzed, to prevent un-expanded
31573 references to protected formals, among others.
31574 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
31575 interpretation that can be a call, include the result of the call as a
31576 possible interpretation of the dereference.
31578 * sem_ch5.adb (Process_Bounds): Determine type of range by
31579 pre-analyzing a copy of the original range, and then analyze the range
31580 with the expected type.
31582 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
31583 with an overloaded prefix where not all interpretations yield an
31584 access to subprogram, do not rewrite node as a call.
31585 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
31586 the node as a call once the context identifies the interpretation of
31587 the prefix whose call yields the context type.
31588 (Valid_Conversion): For the case of a conversion between
31589 local access-to-subprogram types, check subtype conformance using
31590 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
31591 detailed error message.
31593 2005-03-29 Ed Schonberg <schonberg@adacore.com>
31595 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
31596 indicator, indicate that the formal can never be null.
31597 (Process_Formals): If a formal has a non_null indicator, insert the
31598 resulting subtype immediately before the enclosing subprogram decl,
31599 and not at the beginning of the corresponding declarative part, to
31600 prevent access before elaboration (Ada2005).
31602 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31605 * utils.c (finish_record_type): Use variable_size when setting sizes.
31607 2005-03-29 Robert Dewar <dewar@adacore.com>
31609 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
31610 guarantee Unix style line terminators for the output files, even when
31611 running on windows.
31613 2005-03-29 Robert Dewar <dewar@adacore.com>
31615 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
31616 buffer if an exception is raised.
31618 2005-03-29 Ed Falis <falis@adacore.com>
31620 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
31623 2005-03-29 Robert Dewar <dewar@adacore.com>
31625 * sem_util.ads: Minor reformatting
31626 * gnat_rm.texi: Minor editing.
31628 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
31630 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
31631 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
31633 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
31635 * adaint.c (__gnat_portable_spawn): Adjust cast.
31637 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
31639 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
31641 2005-03-17 Pascal Obry <obry@adacore.com>
31643 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
31646 * expect.c (__gnat_waitpid): Moved here from adaint.c.
31647 Reimplement under Win32 using Win32 API.
31649 (__gnat_kill) [Win32]: Properly close the process handle before leaving
31652 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
31654 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
31655 (DECL_RENAMED_OBJECT): New accessor macro.
31656 (SET_DECL_RENAMED_OBJECT): New setter macro.
31658 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
31659 object in all cases. Attach the renamed object to the VAR_DECL.
31660 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
31661 field is not prescribed.
31663 * misc.c (gnat_handle_option): Handle -gnatO separately.
31664 (gnat_print_decl) <VAR_DECL>: New case.
31665 Print the DECL_RENAMED_OBJECT node.
31667 * lang.opt: Declare separate -gnatO option.
31669 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
31670 pointer, replace it with the renamed object.
31671 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
31672 pointer type if the source is not a fat pointer type whose underlying
31673 array has the same non-zero alias set as that of the destination array.
31675 2005-03-17 Javier Miranda <miranda@adacore.com>
31677 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
31678 (Get_Inheritance_Depth): Removed.
31679 (Set_Inheritance_Depth): Removed.
31681 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
31682 subprogram Get_Expanded_Name because it is not referenced by the
31685 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
31686 (CPP_Get_Inheritance_Depth): Removed.
31687 (CPP_Set_Inheritance_Depth): Removed.
31689 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
31691 2005-03-17 Robert Dewar <dewar@adacore.com>
31693 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
31694 3, since we now expect GCC 3 to do all the work.
31696 2005-03-17 Javier Miranda <miranda@adacore.com>
31698 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
31699 of one barrier to avoid wrong usage of this attribute.
31701 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
31702 First_Private_Entity.
31704 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
31705 the subprogram against wrong usage.
31706 Adapt the code to traverse the entities in the
31707 scope of a record_type because in addition to its usage regarding
31708 packages, this subprogram is also called by Expand_N_Freeze_Entity
31709 to install the visible declarations of the enclosing scope of a
31710 record_type_with_private to establish the proper visibility before
31711 freezing the entity and related subprograms.
31713 2005-03-17 Ed Schonberg <schonberg@adacore.com>
31715 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
31718 2005-03-17 Thomas Quinot <quinot@adacore.com>
31720 * exp_ch3.adb (Check_Attr): New subprogram.
31721 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
31722 into a new Check_Attr subprogram, in order to provide a more
31723 explanatory error message (including the name of the missing attribute).
31724 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
31725 subprogram determines whether a default implementation exists for a
31726 given stream attribute.
31727 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
31728 Determine whether to generate a default implementation for each stream
31729 attribute separately, as this depends on the specific attribute.
31731 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
31732 limited extension where a stream attribute is missing for a limited
31733 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
31734 generate a bogus reference to the missing attribute to prevent
31735 cascaded errors. Instead, generate a null statement.
31737 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
31738 available for a limited type if it has been specified for an ancestor
31741 2005-03-17 Ed Schonberg <schonberg@adacore.com>
31743 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
31744 entity is an operator.
31746 2005-03-17 Thomas Quinot <quinot@adacore.com>
31748 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
31749 spec, to make this predicate available to other units.
31751 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
31754 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
31755 when no distribution runtime library is available.
31757 * sem_res.adb, sem_dist.adb: Disable expansion of remote
31758 access-to-subprogram types when no distribution runtime library is
31760 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
31761 predicate available to other units.
31763 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
31764 spec, to make this predicate available to other units.
31766 2005-03-17 Vincent Celier <celier@adacore.com>
31768 * make.adb (Insert_Project_Sources): Make sure the Q is always
31771 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
31772 the default for the tree, not the global default naming.
31774 * prj-proc.adb (Recursive_Process): No need to put the default naming
31775 in the project data, it's already there.
31777 2005-03-17 Doug Rupp <rupp@adacore.com>
31779 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
31781 * 5xcrtl.ads: Renamed to...
31782 * s-crtl-vms64.ads: ...this new file
31784 2005-03-17 Robert Dewar <dewar@adacore.com>
31787 * namet.adb (Copy_One_Character): Set proper wide character encoding
31788 for upper half character if we have upper half encoding.
31790 2005-03-17 Robert Dewar <dewar@adacore.com>
31792 * par.adb (Par): Improved msg for attempt to recompile predefined unit
31794 2005-03-17 Thomas Quinot <quinot@adacore.com>
31796 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
31797 tagged limited type, the TSS is a newly built renaming declaration:
31798 insert it using Set_TSS, not Copy_TSS.
31800 2005-03-17 Javier Miranda <miranda@adacore.com>
31802 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
31803 Try_Object_Operation): Analyze the object that is accessible
31804 through the prefix of the subprogram call before we apply
31805 the transformation of the object-operation notation.
31807 2005-03-17 Jose Ruiz <ruiz@adacore.com>
31809 * s-taprob.adb (Initialize_Protection): Initialize the protected
31810 object's owner to Null_Task.
31811 (Lock): If pragma Detect_Blocking is in effect and the caller of this
31812 procedure is already the protected object's owner then Program_Error
31813 is raised. In addition the protected object's owner is updated.
31814 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
31815 of this procedure is already the protected object's owner then
31816 Program_Error is raised.
31817 In addition the protected object's owner is updated.
31818 (Unlock): Remove the ownership of the protected object.
31820 * s-taprob.ads (Protection): Add the field Owner, used to store the
31821 protected object's owner.
31822 This component is needed for detecting one type of potentially blocking
31823 operations (external calls on a protected subprogram with the same
31824 target object as that of the protected action). Document the rest of
31827 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
31828 Initialize the protected object's owner to Null_Task.
31829 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
31830 caller of this procedure is already the protected object's owner then
31831 Program_Error is raised.
31832 Do not raise Program_Error when this procedure is called from a
31834 (Unlock_Entries): Remove the ownership of the protected object.
31835 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
31836 of this procedure is already the protected object's owner then
31837 Program_Error is raised.
31838 Do not raise Program_Error when this procedure is called from
31839 a protected action.
31841 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
31842 used to store the protected object's owner.
31844 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
31845 effect and this procedure (a potentially blocking operation) is called
31846 from whithin a protected action, Program_Error is raised.
31847 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
31848 and this procedure (a potentially blocking operation) is called from
31849 whithin a protected action, Program_Error is raised.
31851 2005-03-17 Vincent Celier <celier@adacore.com>
31852 Nicolas Setton <setton@adacore.com>
31854 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
31855 switch, not supported by the linker on Darwin. Add '_' before
31856 <library>init, as this character is added unconditionally by the
31858 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
31859 correct one ".dylib". This fixes detection of the archive files when
31860 building library projects.
31862 2005-03-17 Vincent Celier <celier@adacore.com>
31864 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
31865 -gnat83, -gnat95 and -gnat05.
31867 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
31869 * gnat_ugn.texi: Document gnatmem restriction
31871 2005-03-17 Thomas Quinot <quinot@adacore.com>
31873 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
31876 2005-03-17 Robert Dewar <dewar@adacore.com>
31878 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
31879 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
31880 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
31882 * casing.adb: Comment improvements
31884 2005-03-17 Pascal Obry <obry@adacore.com>
31886 * g-expect.adb: Minor reformatting.
31888 2005-03-15 Zack Weinberg <zack@codesourcery.com>
31890 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
31891 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
31894 2005-03-15 Vincent Celier <celier@adacore.com>
31896 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
31897 Add new parameter In_Tree to specify the project tree: needed
31898 by the project manager. Adapt to changes in project manager
31899 using new parameter In_Tree.
31901 2005-03-15 Jakub Jelinek <jakub@redhat.com>
31903 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
31904 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
31905 ada/bldtools to avoid make -jN failures.
31907 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
31909 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
31910 to NULL_TREE on entry.
31912 2005-03-15 Robert Dewar <dewar@adacore.com>
31914 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
31915 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
31916 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
31917 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
31918 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
31919 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
31920 system-interix.ads, system-solaris-sparc.ads,
31921 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
31922 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
31923 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
31924 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
31925 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
31926 Compiler_System_Version to be False.
31928 * opt.ads: Add new flag Opt.Address_Is_Private
31930 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
31931 Add new parameter Compiler_System_Version to avoid checking for
31932 completeness of parameters when compiler is compiling itself.
31933 Allows old versions of GNAT to be compiled with new compiler.
31935 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
31937 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
31938 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
31940 (Stack_Base_Available): New flag.
31941 (Get_Page_Size): New overloaded functions imported from C.
31942 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
31943 PROT_ON, PROT_OFF): New constants.
31944 (mprotect): New function imported from C.
31945 (pthread_teb_t): New record type.
31947 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
31948 (Create_Task): Account for the Yellow Zone and the guard page.
31950 2005-03-15 Vincent Celier <celier@adacore.com>
31952 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31953 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
31954 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
31955 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
31956 Library_File_Name_For): Add new parameter In_Tree
31957 to specify the project tree: needed by the project manager.
31958 Adapt to changes in project manager using new parameter In_Tree.
31959 Remove local imports, use functions in System.CRTL.
31961 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
31962 to use the project manager.
31964 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
31965 In_Tree to designate the project tree. Adapt to changes in the project
31966 manager, using In_Tree.
31968 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
31969 Copy_Interface_Sources): Add new parameter In_Tree to specify the
31970 project tree: needed by the project manager.
31971 (Build_Library): Check that Arg'Length >= 6 before checking if it
31972 contains "--RTS=...".
31974 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
31975 Library_File_Name_For): Add new parameter In_Tree to specify the
31976 project tree: needed by the project manager.
31978 * prj.ads, prj.adb: Major modifications to allow several project trees
31979 in memory at the same time.
31980 Change tables to dynamic tables and hash tables to dynamic hash
31981 tables. Move tables and hash tables from Prj.Com (in the visible part)
31982 and Prj.Env (in the private part). Move some constants from the visible
31983 part to the private part. Make other constants deferred.
31984 (Project_Empty): Make it a variable, not a function
31985 (Empty_Project): Add parameter Tree. Returns the data with the default
31986 naming data of the project tree Tree.
31987 (Initialize): After updating Std_Naming_Data, copy its value to the
31988 component Naming of Project Empty.
31989 (Register_Default_Naming_Scheme): Use and update the default naming
31990 component of the project tree, instead of the global variable
31992 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
31993 Tree is not defaulted, return the default naming data of the Tree.
31994 (Initial_Buffer_Size): Constant moved from private part
31995 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
31996 variables initialized in procedure Initialize.
31997 (Add_To_Buffer): Add two in out parameters to replace global variables
31998 Buffer and Buffer_Last.
31999 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
32001 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
32003 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
32004 for the project tree.
32005 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
32006 constant at the beginning of the package spec, so that they cane be used
32007 in subprograms before their full declarations.
32008 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
32009 (Empty_Project): Add parameter of type Project_Node_Ref
32010 (Private_Project_Tree_Data): Add component Default_Naming of type
32012 (Buffer, Buffer_Last): remove global variables
32013 (Add_To_Buffer): Add two in out parameters to replace global variables
32014 Buffer and Buffer_Last.
32015 (Current_Packages_To_Check): Remove global variable
32016 (Empty_Name): Move to private part
32017 (No-Symbols): Make it a constant
32018 (Private_Project_Tree_Data): New type for the private part of the
32020 (Project_Tree_Data): New type for the data of a project tree
32021 (Project_Tree_Ref): New type to designate a project tree
32022 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
32023 for the project tree.
32025 * prj-attr.ads: Add with Table; needed, as package Prj no longer
32026 imports package Table.
32028 * prj-com.adb: Remove empty, no longer needed body
32030 * prj-com.ads: Move most of the content of this package to package Prj.
32032 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
32033 designate the project node tree and Packages_To_Check to replace
32034 global variable Current_Packages_To_Check.
32035 Add new parameters In_Tree and Packages_To_Check to local subprograms,
32036 when needed. Adapt to changes in project manager with project node tree
32039 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
32040 project tree to most subprograms. Move tables and hash tables to
32041 private part of package Prj.
32042 Adapt to changes in project manager using project tree In_Tree.
32044 * prj-makr.adb (Tree): New constant to designate the project node tree
32045 Adapt to change in project manager using project node tree Tree
32047 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
32048 display the Library_Src_Dir and the Library_Dir.
32049 Add new parameter In_Tree to designate the project node tree to most
32050 subprograms. Adapt to changes in the project manager, using project tree
32052 (Check_Naming_Scheme): Do not alter the casing on platforms where
32053 the casing of file names is not significant.
32054 (Check): Add new parameter In_Tree to designate the
32056 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
32057 designate the project tree.
32058 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
32060 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
32061 to replace those that were in the private part of package Prj.
32062 Add new parameter In__Tree to designate the project node tree to most
32063 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
32064 (Post_Parse_Context_Clause): When specifying the project node of a with
32065 clause, indicate that it is a limited with only if there is "limited"
32066 in the with clause, not necessarily when In_Limited is True.
32067 (Parse): Add new parameter In_Tree to designate the project node tree
32069 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
32070 designate the project node tree. Adapt to change in Prj.Tree with
32071 project node tree In_Tree.
32073 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
32074 tree In_Tree in the call to function Empty_Process to give its initial
32075 value to the project data Processed_Data.
32076 Add new parameters In_Tree to designate the project tree and
32077 From_Project_Node_Tree to designate the project node tree to several
32078 subprograms. Adapt to change in project manager with project tree
32079 In_Tree and project node tree From_Project_Node_Tree.
32081 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
32082 to replace those that were in the private part of package Prj.
32083 Add new parameter In_Tree to designate the project node tree to most
32084 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
32086 * prj-tree.ads, prj-tree.adb: Add new parameter of type
32087 Project_Node_Tree_Ref to most subprograms.
32088 Use this new parameter to store project nodes in the designated project
32090 (Project_Node_Tree_Ref): New type to designate a project node tree
32091 (Tree_Private_Part): Change table to dynamic table and hash tables to
32092 dynamic hash tables.
32094 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
32095 the project tree to most subprograms. Adapt to changes in project
32096 manager using project tree In_Tree.
32098 * makegpr.adb (Project_Tree): New constant needed to use project
32101 2005-03-15 Olivier Hainque <hainque@adacore.com>
32103 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
32104 for sigactions with SA_SIGINFO set. Call
32105 __gnat_adjust_context_for_raise before raising, to perform the
32106 potentially required adjustments to the machine context for the GCC
32109 * raise.h (__gnat_adjust_context_for_raise): New prototype.
32111 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
32112 Adjust PC by one in the provided machine context.
32113 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
32114 so that the handler is passed the context structure to adjust prior to
32116 (__gnat_error_handler) HPUX: Adjust the signature to match what an
32117 SA_SIGINFO sigaction should look like. Call
32118 __gnat_adjust_context_for_raise before actually raising.
32119 (__gnat_adjust_context_for_raise): Default noop to help PC
32120 adjustments before raise from signal handlers.
32121 (__gnat_error_handler): Indirectly call a predicate function to
32122 determine if a condition should be resignaled or not.
32123 (__gnat_set_resignal_predicate): User interface to modify the predicate.
32124 (__gnat_default_resignal_p): Default GNAT predicate.
32126 2005-03-15 Doug Rupp <rupp@adacore.com>
32128 * adaint.c: Prefix #include of VMS system header files with vms/
32129 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
32130 Do not define a dummy function "convert_addresses" under Darwin,
32133 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
32136 2005-03-15 Nicolas Setton <setton@adacore.com>
32138 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
32141 2005-03-15 Robert Dewar <dewar@adacore.com>
32143 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
32146 * a-retide.ads: Minor comment changes
32148 2005-03-15 Robert Dewar <dewar@adacore.com>
32150 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
32151 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
32152 Realloc_For_Chunk to private part of package.
32153 New subprograms for AI-301
32155 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
32156 Get_Line procedure.
32157 Avoid unnecessary use of Get/Set_Wide_String
32159 2005-03-15 Robert Dewar <dewar@adacore.com>
32162 * a-stunau.ads, a-stunau.adb:
32163 Change interface to allow efficient (and correct) implementation
32164 The previous changes to allow extra space in unbounded strings had
32165 left this interface a bit broken.
32167 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
32169 * g-spipat.ads, g-spipat.adb: New interface for Get_String
32170 Minor reformatting (function specs)
32172 * g-spitbo.adb: New interface for Get_String
32174 * g-spitbo.ads: Minor reformatting
32176 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
32178 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
32180 2005-03-15 Javier Miranda <miranda@adacore.com>
32181 Robert Dewar <dewar@adacore.com>
32182 Thomas Quinot <quinot@adacore.com>
32183 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32185 * atree.ads, atree.adb: Add support for Elist24 field
32187 * atree.h: Fix wrong definition of Field27
32188 Add support for Elist16 field
32189 Add support for Elist24 field
32191 * einfo.ads, einfo.adb (Abstract_Interfaces,
32192 Set_Abstract_Interfaces): New subprograms.
32193 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
32195 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
32196 entities rather than a single node.
32197 (Is_Interface, Set_Is_Interface): New subprogram
32198 (First_Tag_Component): New syntesized attribute
32199 (Next_Tag_Component): New synthesized attribute
32200 (Write_Entity_Flags): Upgraded to write Is_Interface
32201 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
32202 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
32203 (Task_Body_Procedure): New subprogram to read this attribute.
32204 (Set_Task_Body_Procedure): New subprogram to set this attribute.
32205 (Has_Controlled_Component): Now applies to all entities.
32206 This is only a documentation change, since it always worked to apply
32207 this to other than composite types (yielding false), but now this is
32209 Update documentation on Must_Be_Byte_Aligned for new spec
32211 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
32212 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
32213 uses of the Access_Disp_Table attribute to reference the first dispatch
32214 table associated with a tagged type. As
32215 part of the implementation of abstract interface types,
32216 Access_Disp_Table has been redefined to contain a list of dispatch
32217 tables (rather than a single dispatch table).
32218 Similarly, upgrade all the references to Tag_Component by the
32219 new attribute First_Tag_Component.
32220 (Find_Inherited_TSS): Moved to exp_tss.
32221 Clean up test in Expand_N_Object_Declaration for cases
32222 where we need to do a separate assignment of the initial value.
32223 (Expand_N_Object_Declaration): If the expression in the
32224 declaration of a tagged type is an aggregate, no need to generate an
32225 additional tag assignment.
32226 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
32228 Bit packed array ops are only called if operands are known to be
32230 (Component_Equality): When returning an N_Raise_Program_Error statement,
32231 ensure that its Etype is set to Empty to avoid confusing GIGI (which
32232 expects that only expressions have a bona fide type).
32233 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
32234 determine the amount of data to be copied.
32236 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
32237 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
32238 INTERFACE_TYPE_DEFINITION ::=
32239 [limited | task | protected | synchronized] interface
32240 [AND interface_list]
32242 * par-ch3.adb (P_Type_Declaration): Modified to give support to
32244 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
32246 (P_Interface_Type_Definition): New subprogram that parses the new
32247 syntax rule of Ada 2005 interfaces
32248 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
32249 messages by the correct RENAMES (quotes removed).
32251 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
32252 attribute First_Tag_Component.
32254 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
32255 (Interface_List, Set_Interface_List): New subprograms.
32256 (Interface_Present, Set_Interface_Present): New subprograms.
32257 (Limited_Present, Set_Limited_Present): Available also in derived
32258 type definition nodes.
32259 (Protected_Present, Set_Protected_Present): Available also in
32260 record type definition and
32261 derived type definition nodes.
32262 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
32263 (Task_Present, Set_Task_Present): New subprogram.
32264 (Task_Body_Procedure): Removed.
32265 (Set_Task_Body_Procedure): Removed.
32266 These subprogram have been removed because the attribute
32267 Task_Body_Procedure has been moved to the corresponding task type
32268 or task subtype entity to leave a field free to store the list
32269 of interfaces implemented by a task (for AI-345)
32270 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
32271 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
32272 expression flag Do_Range_Check
32273 (Exception_Junk): Change to Flag7 to accomodate above change
32274 (Box_Present, Default_Name, Specification, Set_Box_Present,
32275 Set_Default_Name, Set_Specification): Expand the expression
32276 "X in N_Formal_Subprogram_Declaration" into the corresponding
32277 two comparisons. Required to use the csinfo tool.
32279 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
32280 "with string" given.
32282 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
32285 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
32288 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
32289 attribute Task_Body_Procedure rather than the old semantic field that
32290 was available in the task_type_declaration node.
32292 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
32293 interface type definitions.
32294 (P_Formal_Derived_Type_Definition): Modified to handle the list of
32297 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
32298 task type declaration.
32299 (P_Protected): Modified to handle the list of interfaces in a
32300 protected type declaration.
32302 2005-03-15 Doug Rupp <rupp@adacore.com>
32303 Vincent Celier <celier@adacore.com>
32305 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
32306 (Gen_Output_File_C): Likewise.
32307 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
32309 2005-03-15 Thomas Quinot <quinot@adacore.com>
32311 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
32312 is an N_Raise_Constraint_Error node, create a new copy of it without
32313 going through a call to Duplicate_Subexpr.
32315 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
32316 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32317 Nicolas Setton <setton@adacore.com>
32318 Ed Schonberg <schonberg@adacore.com>
32324 * decl.c (gnat_to_gnu_field): Reject aliased components with a
32325 representation clause that prescribes a size not equal to the rounded
32326 size of their types.
32327 (gnat_to_gnu_entity, case E_Component): Always look at
32328 Original_Record_Component if Present and not the entity.
32329 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
32330 of tagged extension types by not making field for components that are
32332 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
32333 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
32334 expression to the type of the object when the object is constant.
32335 Reverse defer_debug_incomplete_list before traversing it, so that trees
32336 are processed in the order at which they were added to the list. This
32337 order is important when using the stabs debug format.
32338 If we are deferring the output of debug information, also defer this
32339 output for a function return type.
32340 When adding fields to a record, prevent emitting debug information
32341 for incomplete records, emit the information only when the record is
32343 (components_to_record): New parameter defer_debug.
32344 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
32345 (gnat_to_gnu_field_decl): New function.
32346 (substitution_list, annotate_rep): Call it.
32347 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
32348 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
32349 No longer update discriminants to not be a COMPONENT_REF.
32350 (copy_alias_set): Strip padding from input type; also handle
32351 unconstrained arrays properly.
32353 * gigi.h (write_record_type_debug_info): New function.
32354 Convert to use ANSI-style prototypes. Remove unused
32355 declarations for emit_stack_check, elab_all_gnat and
32356 set_second_error_entity.
32357 (gnat_to_gnu_field_decl): New decl.
32359 * utils.c (write_record_type_debug_info): New function.
32360 (finish_record_type): Delegate generation of debug information to
32361 write_record_type_debug_info.
32362 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
32363 (update_pointer_to): Fix pasto.
32364 (convert) <UNION_TYPE>: Accept slight type variations when
32365 converting to an unchecked union type.
32367 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
32368 replace the N_Freeze_Entity with a null statement.
32370 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
32371 within a constrained subcomponent of an enclosing record, place the
32372 freeze nodes in the scope stack entry for the enclosing record.
32373 (Undelay_Type): New Subprogram.
32374 (Set_Small_Size): Pass T, the type to modify; all callers changed.
32375 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
32376 within records; allow them to have freeze nodes if their base types
32379 * exp_util.adb (Remove_Side_Effects): Properly test for
32380 Expansion_Delayed and handle case when it's inside an
32381 N_Qualified_Expression.
32383 * sem_ch3.adb (Derived_Type_Declaration): New predicate
32384 Comes_From_Generic, to recognize accurately that the parent type in a
32385 derived type declaration can be traced back to a formal type, because
32386 it is one or is derived from one, or because its completion is derived
32388 (Constrain_Component_Type): If component comes from source and has no
32389 explicit constraint, no need to constrain in in a subtype of the
32391 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
32392 Minor change to propagate Is_Ada_2005 flag
32394 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
32395 Expansion_Delayed is False.
32396 (assoc_to_constructor): Ignore fields that have a
32397 Corresponding_Discriminant.
32398 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
32399 function returns "by target", dereference the target pointer using the
32400 type of the actual return value.
32401 <all>: Be prepared for a null gnu_result.
32402 (processed_inline_subprograms): Check flag_really_no_inline
32403 instead of flag_no_inline.
32404 (set_second_error_entity): Remove unused function.
32405 (gnat_to_gnu, case N_Selected_Component): Call
32406 gnat_to_gnu_field_decl.
32407 (assoc_to_constructor): Likewise.
32409 2005-03-15 Robert Dewar <dewar@adacore.com>
32410 Ed Schonberg <schonberg@adacore.com>
32411 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32413 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
32414 Must_Be_Byte_Aligned for cases where we do not need to use a
32415 System.Pack_nn unit.
32417 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
32419 Needed now that we do some processing for IN parameters as well. This
32420 may well fix some unrelated errors.
32421 (Expand_Call): Handle case of unaligned objects (in particular those
32422 that come from packed arrays).
32423 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
32424 renamed entity is an inherited operation, re-expand the call using the
32425 original operation, which is the one to call.
32426 Detect attempt to inline parameterless recursive subprogram.
32427 (Represented_As_Scalar): Fix to work properly with private types
32428 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
32429 accurate estimate. Yields True in far fewer cases than before,
32430 improving the quality of code that depends on this test.
32432 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
32433 over both visible and private declarations to remove them from tree,
32434 and mark subprograms declared in package as eliminated, to prevent
32435 spurious use in subsequent compilation of generic units in the context.
32437 * exp_util.ads: Minor cleanup in variable names
32439 * sem_eval.ads, sem_eval.adb: Minor reformatting
32440 (Compile_Time_Known_Bounds): New function
32442 2005-03-15 Ed Schonberg <schonberg@adacore.com>
32444 * exp_ch7.adb (Convert_View): Use base types of underlying types when
32445 determining whether an unchecked conversion is needed for the argument
32446 of an initialization call.
32448 2005-03-15 Ed Schonberg <schonberg@adacore.com>
32450 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
32451 that appears in the instantiation rather than the internal subtype
32452 generated in the wrapper package, to avoid anomalies in gigi when the
32453 target is derived from a private type whose full view is an access type.
32455 2005-03-15 Robert Dewar <dewar@adacore.com>
32457 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
32459 Add documentation to replace the use of this flag
32460 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
32463 2005-03-15 Thomas Quinot <quinot@adacore.com>
32465 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
32466 here from exp_attr so it can be shared between exp_attr and exp_dist.
32467 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
32468 all TSS names, not a subset thereof, and the previous name introduced
32469 an unnecessarily confusion that a distinction might exist between
32470 "OK" TSS names and some "not OK" TSS names.
32472 2005-03-15 Doug Rupp <rupp@adacore.com>
32474 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
32477 2005-03-15 Pascal Obry <obry@adacore.com>
32478 Eric Botcazou <ebotcazou@adacore.com>
32482 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
32483 when IN_RTS. This is to work around a bootstrap path problem.
32485 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
32486 table and pass it to __gnat_install_SEH_handler().
32487 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
32489 * lang.opt: Fix specification of -fRTS=.
32491 2005-03-15 Doug Rupp <rupp@adacore.com>
32492 Bernard Banner <banner@adacore.com>
32493 Vincent Celier <celier@adacore.com>
32494 Arnaud Charlet <charlet@adacore.com>
32497 This change works fine when gnatlib is built from the gcc directory,
32498 but does not work when using the libada Makefile, since GCC_FOR_TARGET
32499 is not passed to ada/Makefile.in, so more work is needed by a
32500 Makefile/configure expert.
32502 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
32503 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
32504 Setup gnatlink switch -M for x86_64 linux, as it is already setup
32506 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
32507 Run ranlib on libgccprefix.a
32508 Define PREFIX_OBJS for Darwin, to build libgccprefix.
32509 (ADA_INCLUDE_SRCS): Split Ada packages.
32511 2005-03-15 Robert Dewar <dewar@adacore.com>
32513 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
32515 * impunit.adb: Add GNAT.UTF_32
32517 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
32519 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
32520 now uses GNAT.UTF_32).
32522 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
32523 capabilities for categorizing characters using Unicode categories
32525 2005-03-15 Ed Schonberg <schonberg@adacore.com>
32527 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
32528 instantiation that has been rewritten as a package body, retrieve spec
32529 to generate proper name for implicit_with_clause.
32530 (Install_Parents): Recognize a parent that is an instantiation but has
32531 been rewritten as a package declaration during analysis.
32533 2005-03-15 Javier Miranda <miranda@adacore.com>
32534 Ed Schonberg <schonberg@adacore.com>
32536 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
32537 parameter reported some error we immediately return. This improves the
32538 behaviour of the frontend in case of errors.
32539 (Install_Parent, Remove_Parent): Introduce new flag
32540 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
32541 ancestor of a generic child unit, when the child is being instantiated.
32542 (Inline_Instance_Body): If we are compiling the private
32543 part or the body of a child unit, restore the proper visibility of the
32544 parents after compiling the instance body.
32546 2005-03-15 Ed Schonberg <schonberg@adacore.com>
32547 Javier Miranda <miranda@adacore.com>
32550 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
32551 of a private type, in which case it is underlying_type that denotes
32552 the proper task. Also modified to use the new entity attribute
32553 that is directly available in the task type and task subtype entities
32554 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
32555 arrays when other dimensions than the first are constrained by
32556 discriminants of an enclosing record.
32557 (Insert_Explicit_Dereference): If the prefix is an indexed component or
32558 a combination of indexed and selected components, find ultimate entity
32559 and generate the appropriate reference for it, to suppress spurious
32561 (Note_Possible_Modification): If an entity name has no entity, return.
32562 (Is_Variable): A function call never denotes a variable.
32563 (Requires_Transient_Scope): For record types, recurse only on
32564 components, not on internal subtypes that may have been generated for
32565 constrained components.
32567 2005-03-15 Ed Schonberg <schonberg@adacore.com>
32569 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
32570 Eliminated as candidates for resolution. Both efficient, and avoids
32571 anomalies with operators declared in deleted code.
32572 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
32573 expansion is disabled (as when compiling a generic) to prevent spurious
32574 warnings on prefixes of selected components.
32576 2005-03-15 Ed Schonberg <schonberg@adacore.com>
32578 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
32579 attached to a list before checking whether it appears in the private
32580 declarations of the current package.
32581 (Make_Inequality_Operator): Insert declaration in proper declarative
32582 list rather than just setting the Parent field, so that
32583 Is_Private_Declaration can handle it properly.
32585 2005-03-15 Ed Schonberg <schonberg@adacore.com>
32587 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
32588 a renaming a body, check that the renamed subprogram in not intrinsic.
32589 (Find_Direct_Name): If several use_visible entities hide
32590 each other, and the context is a predefined file compiled through
32591 rtsfind, keep only the entity that comes from a predefined file.
32593 2005-03-15 Geert Bosch <bosch@adacore.com>
32595 * s-fatgen.adb (Valid): Extend special exceptions to account for long
32596 long float padding to also cover AMD64 and IA64.
32598 2005-03-15 Gary Dismukes <dismukes@adacore.com>
32600 * s-imgwch.adb: Add with and use of Interfaces.
32601 (Img_Wide_Character): Change type of Val to Unsigned_16.
32602 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
32604 2005-03-15 Matthew Gingell <gingell@adacore.com>
32606 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
32608 2005-03-15 Robert Dewar <dewar@adacore.com>
32610 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
32612 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
32614 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
32616 2005-03-15 Robert Dewar <dewar@adacore.com>
32618 * s-bitops.adb, s-bitops.ads,
32619 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
32620 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
32621 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
32622 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
32623 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
32624 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
32625 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
32626 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
32629 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
32631 * utils2.c (build_binary_op): Fix typo.
32633 2005-03-15 Doug Rupp <rupp@adacore.com>
32635 * s-crtl.ads (popen,pclose): New imports.
32637 2005-03-15 Cyrille Comar <comar@adacore.com>
32639 * comperr.adb (Compiler_Abort): remove references to obsolete
32640 procedures in the bug boxes for various GNAT builds.
32642 2005-03-15 Vincent Celier <celier@adacore.com>
32644 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
32646 2005-03-15 Geert Bosch <bosch@adacore.com>
32647 Arnaud Charlet <charlet@adacore.com>
32648 Robert Dewar <dewar@adacore.com>
32649 Cyrille Comar <comar@adacore.com>
32650 Sergey Rybin <rybin@adacore.com>
32652 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
32653 too specific and long-winded to be appropriate for the GNAT User's
32655 Warn about use of GCC switches not documented in the GNAT User's Guide,
32656 as these may cause generated code to not conform to Ada semantics.
32657 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
32658 Add documentation for -gnat95 and -gnat05 switches
32659 Remove paragraph documenting obsolete way to refer to third party
32661 Add a few references to Ada_05 that were missing.
32662 Update documentation on -gnatZ/-gnatL.
32663 Document limitation when using -m64 under Solaris.
32664 Change the "Name Casing" subsection of the pretty-printer section
32665 according to the changes in the dictionary processing.
32667 * gnat_rm.texi: Document the Ada_05 pragma.
32668 Section on record representation clauses describes the new more
32669 relaxed rules about placement of large packed bit array components.
32670 Add documentation of GNAT.UTF_32
32672 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
32674 * misc.c (gnat_post_options): Turn off structural
32677 2005-03-08 Laurent Guerby <laurent@guerby.net>
32679 * system-linux-sparc.ads: Fix typo in previous commit.
32681 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
32682 Laurent Guerby <laurent@guerby.net>
32685 * system-linux-sparc.ads: New.
32686 * Makefile.in: Add sparc linux entry.
32688 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
32690 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
32691 parameters as unused.
32693 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
32694 Partial merge from libada-gnattools-branch:
32696 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
32697 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
32698 into code in gnattools/Makefile.in. Remove direct dependencies on
32699 stamp-tools by tools clauses.
32700 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
32701 * config-lang.in: Add gnattools to $lang_dirs.
32703 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
32706 * utils.c (gnat_type_for_mode): Return null instead of ICE because
32707 we asked for an unknown mode.
32709 2005-02-12 Richard Henderson <rth@redhat.com>
32711 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
32712 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
32714 2005-02-10 Andreas Jaeger <aj@suse.de>
32716 * init.c (__gnat_initialize): Mark parameter as unused.
32718 2005-02-09 Doug Rupp <rupp@adacore.com>
32720 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
32721 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
32723 2005-02-09 Doug Rupp <rupp@adacore.com>
32725 * gnatchop.adb (dup, dup2),
32726 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
32728 * gnatlbr.adb (mkdir),
32729 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
32731 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
32733 2005-02-09 Doug Rupp <rupp@adacore.com>
32735 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
32737 2005-02-09 Robert Dewar <dewar@adacore.com>
32738 Thomas Quinot <quinot@adacore.com>
32739 Javier Miranda <miranda@adacore.com>
32740 Pascal Obry <obry@adacore.com>
32741 Ed Schonberg <schonberg@adacore.com>
32742 Doug Rupp <rupp@adacore.com>
32743 Gary Dismukes <dismukes@adacore.com>
32744 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32746 * g-zstspl.ads: New file.
32748 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
32750 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
32752 Add definition of Wide_Wide_Space for AI-285
32754 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
32755 interface (to support Ada 95 and Ada 2005 units).
32756 Add Unbounded_IO files
32757 Add entries for Wide_Wide packages for AI-285
32758 Add list of containers packages to Ada 2005 unit list
32760 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
32761 support new Unbounded_IO package cleanly.
32763 * g-utf_32.ads, g-utf_32.adb: New files.
32765 * Makefile.rtl: Add entry for g-utf_32
32766 Add new files for Unbounded_IO
32767 Adjust make file for new AI-285 wide wide packages
32768 Add AI-302 containers to the run time.
32770 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
32771 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
32772 subprograms for AI-301.
32774 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
32776 * a-stunau.ads: Minor comment correction
32778 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
32780 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
32781 (Check_RPC): Update to match changes in expanded code.
32782 Clean up unused entity.
32784 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
32785 was not taken into account.
32786 This includes proper initialization with Normalize_Scalars.
32787 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
32788 normalize scalars cases (particularly the latter) to do a better job
32789 of finding invalid representations.
32791 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
32793 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
32796 * exp_dist.adb: Add support for wide wide character type
32797 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
32798 private part, generate stub bodies at the end of the private part,
32799 not the visible part.
32800 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
32802 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
32803 generic wrapper to execute final processing after completing the
32804 expansion of the RPC receiver for an RACW.
32806 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
32807 packages and attributes.
32808 (Preset_Names): Addition of the new reserved words of Ada 2005,
32809 that is interface, overriding and synchronized.
32810 (Get_Pragma_Id): Give support to the use of the new reserved word
32811 "interface" as a pragma name.
32812 (Is_Pragma_Name): Give support to the use of the new reserved word
32813 "interface" as a pragma name.
32814 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
32815 attribute implementation.
32817 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
32818 checks to entities that are output parameters of Asm operations.
32819 Handle the Stream_Size attribute.
32820 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
32822 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
32824 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
32825 for second parameter being 0.0.
32826 Add support for wide wide character type.
32827 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
32829 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
32830 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
32831 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
32832 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
32833 for wide wide character cases.
32835 * cstand.adb: Create entities for Wide_Wide_Character and
32838 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
32839 accordance with AI-258.
32840 Add new declarations for 16/32 bit C character types (Part of AI285)
32842 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
32843 (Obsolescent_Warning): New field
32844 (Rep_Clause): New local subprogram used to share code. Returns the rep
32845 clause for which the name is given in parameter.
32846 (Has_Stream_Size_Clause): New routine.
32847 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
32848 (Address_Clause): Implementation is now using Rep_Clause.
32849 (Alignment_Clause): Idem.
32850 (Size_Clause): Idem.
32852 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
32853 entity in non-Ada 2005 mode and generate warning.
32855 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
32856 (Prag): Code cleanup. Remove old gnat pragma "overriding"
32858 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
32859 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
32860 on the named unit if the pragma is not in the current compilation unit,
32861 so that elaboration calls in the current unit can set up an elaboration
32862 dependency on the named unit, as needed.
32863 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
32864 subprogram as well as for subprograms declared within a package.
32865 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
32868 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
32869 to z) to avoid some instances of duplication for Wide_Wide packages.
32871 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
32874 * scn.adb: Char_Literal_Value field is now a Uint
32876 * scng.adb: Significant rewrite to handle new Ada 2005 features
32877 allowing wide and wide wide characters in program text, e.g. for
32878 identifiers, as described in AI-285.
32879 (Set_Reserved): New procedure, makes setting up keywords cleaner.
32880 (Initialize_Scanner): Register the new reserved words of Ada 2005.
32881 (Scan): Give support to the new reserved words.
32883 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
32884 warning notifying that interface, overriding, and synchronized are
32885 new reserved words.
32886 (P_Pragma): Allow the use of the new reserved word "interface" as
32889 * gnatls.adb, gnatbind.adb,
32890 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
32891 identifiers named "interface" to "SAL_Interface".
32893 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
32894 (Structured Exception handling).
32895 (Gen_Main_C): Idem.
32898 (Gen_Main_Ada): Set the default exit code if specified.
32899 (Gen_Main_C): Likewise.
32901 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
32902 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
32904 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
32907 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
32908 has a collision with the new Ada 2005 "interface" reserved word.
32910 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
32911 generate a warning notifying that interface, overriding, and
32912 synchronized are new reserved words.
32914 * scans.ads (Token_Type): Addition of the tokens corresponding to the
32915 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
32916 and Tok_Synchronized.
32918 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
32919 "dispatching" rather than "primitive" operations, since dispatching
32920 calls are now allowed to abstract formal subprograms (which are not
32922 Char_Literal_Value field is now a Uint
32923 (Resolve_Slice): If the prefix is an access to an unconstrained array,
32924 compute the actual subtype of the designated object to impose the proper
32926 (Resolve_Selected_Component): Do not insert an access check if the
32927 prefix is an access type: such a node is expanded into an explicit
32928 dereference, on which the access check is performed anyway. Removes
32929 expensive duplicate checks.
32930 (Resolve_Call): Use new flag Is_Obsolescent and field
32931 Obsolescent_Warning so that pragma Obsolescent works on library
32933 Add support for wide wide character type
32934 (Resolve_Allocator): Replace the error message on wrong null-exclusion
32935 value by a warning message.
32936 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
32937 as fixed-point, and one of the operands is non-static and universal, it
32938 can only be an illegal exponentiation operation, in which case there is
32939 no real value to retrieve.
32941 * exp_strm.adb: Add support for wide wide character type
32942 (Build_Elementary_Input_Call): Compute the size of the stream element by
32943 querying the rep chain to find the Stream_Attribute attribute value.
32944 (Build_Elementary_Write_Call): Ditto.
32946 * sem_aggr.adb: Char_Literal_Value field is now a Uint
32947 Add support for wide wide character type
32948 Replace the error messages on wrong null-exclusion value by warnings
32949 as described in Ada 2005.
32950 (Resolve_Extension_Aggregate): Document the fact that the error
32951 message on class-wide expressions in extensions aggregates.
32953 * sem_case.adb: Add support for wide wide character type
32955 * sem_ch13.adb: Add support for wide wide character type
32956 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
32958 * sem_ch3.adb: Add support for wide wide character type
32959 (Process_Subtype): If constraint is illegal for the type, set Ekind of
32960 now-useless Itype, to prevent cascaded errors on a compiler built
32963 * sem_ch8.adb: Add with and use of Sem_Disp.
32964 (Analyze_Subprogram_Renaming): Replace unclean uses of
32965 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
32966 of Corresponding_Spec to Empty).
32967 (Attribute_Renaming): Replace use of Corresponding_Spec with
32968 Corresponding_ Formal_Spec and simplify condition.
32969 (Use_One_Package): Check that scope of homonym of identifier is defined,
32970 before checking whether it is a wrapper package.
32971 Add support for wide wide character type
32973 * sem_eval.adb: Add support for wide wide character type.
32974 (Eval_Arithmetic_Op): Check for compile time known signed integer
32975 overflow in the non-static case.
32976 (Subtypes_Statically_Match): A formal scalar type and its base type do
32977 not statically match.
32979 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
32980 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
32982 (Unit_Declaration_Node): Ditto.
32983 (Is_Variable_Prefix): For the case of an indexed component whose prefix
32984 has a packed array type, the prefix has been rewritten into a type
32985 conversion. Determine variable-ness from the converted expression.
32986 Handle wide wide character cases.
32988 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
32990 * stringt.ads, stringt.adb: Handle full UTF-32 range.
32991 Remove ["0A"] from comment, since it can look like a line terminator.
32992 Currently we don't permit this, but this is under discussion by the
32993 ARG, and it is easy enough to use a different example.
32995 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
32996 handling UTF-32 encoding for wide wide character.
32997 Implement new brackets coding ["hhhhhhhh"]
32998 Add UTF-8 encodings for full UTF-32 range
33000 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
33002 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
33003 bit range Add full UTF-32 support.
33004 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
33005 notify that constraint error will be raised at run-time
33006 because a null value is assigned to a null-excluding object.
33007 Remove some obsolete declarations and make Char_Code
33010 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
33011 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
33012 Rcheck subprograms.
33014 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
33015 wrong null-exclusion value by a warning message.
33016 (Enable_Range_Check): Do range check if the prefix is an
33017 explicit dereference whose designated object is an unconstrained array.
33018 Current algorithm for removing duplicate checks is over-eager in this
33021 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
33022 null-exclusion value by a warning message
33024 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
33025 completely. Add support for Uint2 field
33027 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
33028 exp_prag.adb: Char_Literal_Value field is now a Uint.
33030 * exp_util.adb (Insert_Actions): Replace
33031 N_Formal_Subprogram_Declaration by
33032 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
33033 Char_Literal_Value field is now a Uint.
33035 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
33036 defined for subprogram renaming declarations. When set, the field
33037 indicates the defining entity of a corresponding formal subprogram
33038 when the renaming corresponds to a formal subprogram association in an
33040 (Set_Corresponding_Formal_Spec): New procedure to return
33041 Corresponding_Formal_Spec field.
33042 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
33043 (which is now a subtype).
33044 Char_Literal_Value field is now a Uint
33046 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
33047 pointer to the base of the dispatch table.
33048 Minor changes to comments.
33049 (Controlling_Type): New function for determining the tagged type
33050 associated with a tagged primitive subprogram.
33051 (Expand_Dispatching_Call): Add support for a controlling actual that is
33052 directly a value of type Ada.Tag rather than a tagged object.
33054 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
33055 describing the new layout.
33056 (Dispatch_Table): The expander computes the actual array size, allocates
33057 the Dispatch_Table record accordingly, and generates code that displaces
33058 the base of the record after the Typeinfo_Ptr component. The access to
33059 these components is done by means of local functions.
33060 (Offset_To_Top): New function.
33061 (Typeinfo_Ptr): New function.
33062 (Get_TSD): Modified to access the new position of the TSD.
33063 (Set_TSD): Modified to save the TSD in its new position.
33065 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
33066 case of formal abstract subprograms. Add check and message for -gnat05.
33069 * sem_ch12.adb: Add with and use for Sem_Disp.
33070 (Analyze_Associations): Minor change from "=" to "in" for use of
33071 N_Formal_Subtype_Declaration (which is now a subtype).
33072 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
33073 N_Formal_Subtype_Declaration (which is now a subtype).
33074 (Analyze_Formal_Subprogram): Add handling for
33075 N_Formal_Abstract_Subprogram, marking the formal as abstract and
33076 dispatching, setting the controlling status of the formal parameters
33077 and result, and issuing an error if there is no controlling type for
33078 the formal subprogram.
33079 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
33080 which is an unclean use of that field, we set the new field
33081 Corresponding_Formal_Spec to make the formal subprogram available to
33082 processing in Analyze_Subprogram_Declaration.
33083 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
33084 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
33085 Constrained, so that it is is does not statically match its anonymous
33088 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
33089 abstract formal subprograms in error check for functions returning
33090 abstract types. Set scope of new designator for
33091 a parameterless subprogram, so that it is available when checking the
33092 body for nested subprograms, before full analysis of said body.
33093 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
33094 subprogram only if inner one comes from source.
33095 (Analyze_Function_Call): If the call is given in object notation, the
33096 analysis of the name rewrites the node and analyzes it with the proper
33097 argument list. After analyzing the name, if the call has been rewritten
33098 and the result type is set, no further analysis is needed.
33099 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
33100 mark in function specification, in a context where the formals are
33101 visible and hide outer homographs.
33103 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
33104 as the tagged type for the cases of abstract formal subprograms and
33105 renamings of those. Clean up spec comments.
33106 (Check_Dispatching_Context): Add error message to indicate "abstract
33107 procedure", covering the case of a call to a formal abstract procedure
33108 that has statically tagged operands.
33109 (Check_Dispatching_Call): Check for the case of an actual given by
33110 a tag-indeterminate function call whose type is an ancestor of the
33111 containing call's associated tagged type. This situation can occur
33112 for inherited primitives with function defaults. In this case we
33113 use the tagged type's tag directly as the controlling argument for
33115 (Expand_Call): Name change on call to Expand_Dispatch_Call.
33117 * sprint.adb (Sprint_Node_Actual): Split
33118 N_Formal_Subprogram_Declaration into two alternatives for the new
33119 cases N_Formal_Abstract_Subprogram_Declaration and
33120 N_Formal_Concrete_Subprogram_Declaration.
33121 Char_Literal_Value field is now a Uint.
33123 * trans.c: Get rid of junk Uint2 reference.
33124 Char_Literal_Value field is now a Uint.
33125 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
33126 (gigi): Correct third arg to gimplify_body.
33128 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
33129 (TYPE_LANG_FLAG_0): Check for record or union.
33131 * treepr.adb: Char_Literal_Value field is now a Uint
33133 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
33136 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
33137 Add full UTF-32 support
33138 Char_Code is now 32 bits
33140 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
33141 wide character UTF_32 line terminators.
33142 Initialize Main_Source_File to avoid error when no main
33145 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
33146 (Main_Source_File) when no main source has been loaded, to avoid
33149 2005-02-09 Robert Dewar <dewar@adacore.com>
33151 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
33152 Fix name of Set routine
33154 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
33157 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
33158 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
33161 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
33162 forms of Get_Line subprograms for AI-301.
33164 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
33165 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
33166 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
33167 a-stwima.ads: Minor reformatting.
33169 2005-02-09 Doug Rupp <rupp@adacore.com>
33170 Thomas Quinot <quinot@adacore.com>
33172 * adaint.c, adaint.h
33173 [VMS] (to_ptr32): New function.
33174 (MAYBE_TO_PTR32): New macro.
33175 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
33177 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
33178 [VMS] (#define fork()): Remove since unneccessary.
33179 (__gnat_set_close_on_exec): New routine to support
33180 GNAT.OS_Lib.Set_Close_On_Exec.
33182 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
33183 the parent side as close-on-exec so that they are not inherited by the
33186 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
33187 set or clear the FD_CLOEXEC flag on a file descriptor.
33189 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
33190 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33194 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
33195 on the field if Pragma Component_Alignment (Storage_Unit).
33196 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
33197 side-effects as if it were a constant; also make SAVE_EXPR to protect
33199 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
33201 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
33202 (components_to_record): Test it.
33203 Fix improper usage of REFERENCE_CLASS_P.
33205 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
33208 * utils2.c: Minor reformatting.
33210 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
33211 handle other cases like RECORD_TYPE.
33213 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
33215 2005-02-09 Ed Schonberg <schonberg@adacore.com>
33217 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
33218 component of an array of arrays in an assignment context, and the
33219 aggregate has component associations that require sliding on
33220 assignment, force reanalysis of the aggregate to generate a temporary
33221 before the assignment.
33222 (Must_Slide): Make global to the package, for use in Gen_Assign.
33224 2005-02-09 Ed Schonberg <schonberg@adacore.com>
33226 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
33227 unchecked union with no inferable discriminants, return a
33228 Raise_Program_Error node, rather than inserting it at the point the
33230 (Expand_Record_Equality, Component_Equality): Handle properly the case
33231 where some subcomponent is an unchecked union whose generated equality
33232 code raises program error.
33234 2005-02-09 Doug Rupp <rupp@adacore.com>
33236 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
33237 [VMS] (#define exit hack): Remove.
33239 2005-02-09 Pascal Obry <obry@adacore.com>
33240 Arnaud Charlet <charlet@adacore.com>
33242 * init.c (__gnat_initialize): Add a new parameter eh which contains the
33243 address of the exception registration. The Win32 version of this
33244 routine calls __gnat_install_SEH_handler() to initialize the SEH
33245 (Structured Exception Handling) handler.
33246 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
33247 SEH (Structured Exception Handling) now.
33248 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
33249 (__gnat_initialize for ppc-vxworks): Adjust comments and the
33250 preprocessor condition protecting the call to the extra eh setup
33251 subprogram, which is only available for the ppc target.
33252 (__gnat_clear_exception_count): replaced reference to
33253 variable taskIdCurrent by call to taskIdSelf(), cleaner.
33255 * seh_init.c: New file.
33257 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
33258 (GNATBIND_OBJS): Idem.
33260 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
33261 routine takes a new parameter (a pointer to the exception registration
33262 for the SEH (Structured Exception Handling) support.
33264 * raise.h: (__gnat_install_SEH_handler): New prototype.
33265 Update copyright notice.
33267 * s-tassta.adb (Task_Wrapper): Declare the exception registration
33268 record and initialize it by calling __gnat_install_SEH_handler.
33270 2005-02-09 Vincent Celier <celier@adacore.com>
33272 * make.adb (Gnatmake): Do not fail when the main project has no object
33275 2005-02-09 Doug Rupp <rupp@adacore.com>
33277 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
33278 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
33279 [VMS]: Add translations for g-enblsp.adb.
33281 * s-asthan-vms.adb: Removed.
33282 * s-asthan-vms-alpha.adb: Added.
33284 2005-02-09 Pascal Obry <obry@adacore.com>
33286 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
33287 (LIBGNAT_OBJS): Add seh_init.o.
33289 2005-02-09 Arnaud Charlet <charlet@adacore.com>
33292 * Makefile.in: Link all gnat tools with -static-libgcc, since
33293 -shared-libgcc is now used by default on some systems (e.g. linux with
33295 Remove references to Makefile.prolog/generic, no longer used.
33297 2005-02-09 Vincent Celier <celier@adacore.com>
33299 * prj-makr.adb (Process_Directory): Put file name in canonical case
33300 before matching against the patterns.
33301 If gnatname has been invoked as <prefix>-gnatname
33302 then invoke the compiler as <prefix>-gcc, not just "gcc".
33304 2005-02-09 Ed Schonberg <schonberg@adacore.com>
33306 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
33307 with expansion disabled. The actual subtype is needed among other
33308 places when the selected component appears in the context of a loop
33309 bound, and denotes a packed array.
33310 (Operator_Check): Always use the first subtype in the
33311 error message, to avoid the appearance of internal base types.
33312 (Transform_Object_Operation): Copy each actual in full
33313 to the parameter associations of the constructed call, rather than
33314 using the shallow copy mechanism of New_Copy_List. This ensures that
33315 the chaining of named associations is done properly.
33316 (Complete_Object_Operation): Rewrite node, rather than
33317 replacing it, so that we can trace back to the original selected
33320 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
33321 and calls that use object notation, if the called function is not
33322 declared in a withed unit, place the elaboration constraint on the
33323 unit in the context that makes the function accessible.
33324 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
33325 imposes an elaboration constraint between two packages.
33327 2005-02-09 Ed Schonberg <schonberg@adacore.com>
33329 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
33330 views of a private type after handling its private dependents, to
33331 maintain proper stack discipline between entry and exit from the
33334 2005-02-09 Cyrille Comar <comar@adacore.com>
33336 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
33337 Minor reformatting.
33339 2005-02-09 Arnaud Charlet <charlet@adacore.com>
33341 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
33342 fields for foreign threads.
33344 2005-02-09 Doug Rupp <rupp@adacore.com>
33346 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
33347 recursion warnings when compiled with -gnatdm.
33349 2005-02-09 Robert Dewar <dewar@adacore.com>
33351 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
33352 Slight fix to documentation of -gnaty with no parameters
33354 * xr_tabls.ads: Add ??? comment for missing overall comment
33356 * xsinfo.adb: Make default file name be sinfo.h, since this is what
33357 we now use by default.
33359 * xsnames.adb: Adjust end of file test to look for five space followed
33360 by '#' instead of six spaces. The format of xsnames.adb was modified
33361 in the last update.
33363 * a-numeri.ads: Add reference to AI-388 for greek letter pi
33366 * clean.adb: Minor reformatting.
33368 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
33369 gnatname.adb: Minor reformatting
33370 Add 2005 to copyright output when utility is run
33372 * csets.adb: Eliminate obsolete comment
33374 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
33377 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
33379 2005-02-09 Sergey Rybin <rybin@adacore.com>
33381 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
33382 the difference between compact and incompact layout and add the record
33383 representation clause to the example illustrating different layouts.
33384 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
33385 component clauses").
33387 2005-02-09 Florian Villoing <villoing@adacore.com>
33389 * gnat_ugn.texi: Fix typos.
33390 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
33392 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
33393 in the generated documentation.
33395 2005-02-09 Arnaud Charlet <charlet@adacore.com>
33397 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
33399 Update linker wrapper when linking with non GNU C++.
33401 2005-02-09 Pascal Obry <obry@adacore.com>
33404 Document the procedure to debug the DllMain routine on Windows.
33405 Add note about -funwind-tables and mixed Ada and C/C++ programming in
33407 Document new BIND qualifer /RETURN_CODES=VMS.
33409 2005-02-09 Ben Brosgol <brosgol@adacore.com>
33411 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
33412 Edited gnatmetric chapter
33414 2005-02-09 Robert Dewar <dewar@adacore.com>
33417 Changes to document new wide wide character support
33419 Update documentation on Normalize_Scalars and Initialize_Scalars
33421 2005-02-09 Pascal Obry <obry@adacore.com>
33423 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
33425 2005-02-09 Jose Ruiz <ruiz@adacore.com>
33427 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
33428 from the VxWorks kernel) that is needed for getting the active
33429 priority of the different tasks.
33431 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
33432 Use a pragma Elaborate_Body in the spec file instead.
33433 Noticed by code reading.
33435 2005-02-09 Thomas Quinot <quinot@adacore.com>
33437 * exp_util.ads: Minor correction in comment.
33439 2005-02-09 Arnaud Charlet <charlet@adacore.com>
33441 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
33442 since this procedure is now too complex to be worth inlining.
33444 2005-02-09 Richard Henderson <rth@redhat.com>
33446 * utils.c (gnat_define_builtin): Remove.
33447 (gnat_install_builtins): Use build_common_builtin_nodes.
33449 2005-02-09 Arnaud Charlet <charlet@adacore.com>
33451 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
33452 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
33453 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
33454 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
33455 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
33456 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
33457 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
33458 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
33459 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
33460 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
33461 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
33462 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
33463 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
33464 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
33465 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
33466 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
33467 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
33468 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
33469 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
33470 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
33471 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
33472 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
33473 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
33474 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
33475 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
33476 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
33477 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
33478 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
33479 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
33480 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
33481 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
33482 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
33483 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
33484 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
33487 2005-01-27 Laurent Guerby <laurent@guerby.net>
33489 * Makefile.in: Fix a-intnam.ads from previous commit,
33490 add 2005 to copyright.
33491 * a-intman-rtems.ads: Renamed to...
33492 * a-intnam-rtems.ads:
33494 2005-01-27 Laurent Guerby <laurent@guerby.net>
33496 * Makefile.in: Rename GNAT RTEMS specific files.
33497 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
33498 5rosinte.ads, 5rparame.adb: Replaced by files below.
33499 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
33500 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
33502 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
33503 Laurent Guerby <laurent@guerby.net>
33506 * 5rosinte.ads: Add No_Key constant.
33507 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
33508 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
33510 2005-01-26 Laurent Guerby <laurent@guerby.net>
33513 * i-cobol.adb (Valid_Numeric): Handle zero length case.
33515 2005-01-20 Richard Henderson <rth@redhat.com>
33517 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
33518 a-intnam-linux.ads and system-linux-alpha.ads.
33519 * a-intnam-linux-alpha.ads: Remove file.
33520 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
33521 * system-linux-alpha.ads: New file.
33523 2005-01-18 Jakub Jelinek <jakub@redhat.com>
33526 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
33527 set to the new string.
33529 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
33531 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
33534 2005-01-18 Richard Henderson <rth@redhat.com>
33536 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
33537 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
33539 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
33541 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
33543 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
33544 (GCC_ZCX_Support): Likewise.
33546 2005-01-11 Bastian Blank <waldi@debian.org>
33548 * system-linux-s390.ads: Define Preallocated_Stacks.
33549 * system-linux-s390x.ads: Likewise.
33551 2005-01-04 Arnaud Charlet <charlet@adacore.com>
33553 * gnat_ugn.texi: Fix texi errors with null variables.
33555 2005-01-03 Thomas Quinot <quinot@adacore.com>
33557 * gen-soccon.c: New utility program to generate g-soccon.ads
33560 * socket.c, gsocket.h: Split inclusion of system header files into a
33561 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
33563 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
33564 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
33565 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
33566 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
33567 should not be edited by hand anymore, but should be regenerated using
33570 2005-01-03 Robert Dewar <dewar@adacore.com>
33571 Ed Schonberg <schonberg@adacore.com>
33572 Vincent Celier <celier@adacore.com>
33574 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
33575 on/off, since this is an obsolescent feature, for which we now generate
33578 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
33579 warning mode is set and obsolescent usage of this attribute occurs.
33580 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
33581 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
33582 predates, and partly motivates, the adoption of the AI.
33583 Implement new Ada 2005 attribute Mod
33585 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
33588 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
33590 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
33591 pragma restrictions.
33592 New entry for Ada 2005 attribute Mod.
33595 Add recognition of new pragma Restrictions No_Dependence
33596 Recognize restriction No_Obsolescent_Features at parse time
33598 * bcheck.adb: Add circuitry for checking for consistency of
33599 No_Dependence restrictions.
33601 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
33604 * restrict.ads, restrict.adb: Add subprograms to deal with
33605 No_Dependence restrictions.
33607 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
33610 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
33611 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
33613 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
33614 dummy parameter to scng instantiation.
33615 Needed for new restriction No_Obsolescent_Features
33617 * scn.adb: (Obsolescent_Check): New procedure
33618 Needed for new restriction No_Obsolescent_Features
33620 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
33621 specified by AI-285, needed for implementation of AI-388 (adding greek
33622 pi to Ada.Numerics).
33623 Add new generic formal to scng, needed for new restriction
33624 No_Obsolescent_Features.
33626 * s-rident.ads: Add new restriction No_Obsolescent_Features.
33628 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
33629 restrictions lines.
33630 (Scan_ALI): When finding an unexpected character on an R line, raise
33631 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
33632 Ignore_Errors is True, default restrictions are set and scanning of the
33633 ALI file continues with the next line. Also, when Bad_R_Line is raised
33634 and Ignore_Errors is True, skip to the end of le line.
33636 * sem_ch10.adb: Check that explicit with's do not violate
33637 No_Dependence restrictions.
33638 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
33639 illegal context clauses containing child units of instance.
33641 * sem_prag.adb: Processing and checking for new No_Dependence
33643 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
33644 analyze and check the External argument.
33646 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
33648 2005-01-03 Robert Dewar <dewar@adacore.com>
33650 * atree.adb: Add a fifth component to entities
33651 This allows us to add 32 flags and four new fields
33653 * atree.ads: Add a fifth component to entities
33654 This allows us to add 32 flags and four new fields
33656 * einfo.ads, einfo.adb: Document new fields and new flags now available
33657 Add routines for printing new fields
33659 * treepr.adb: Call routines to print out additional fields if present
33661 2005-01-03 Arnaud Charlet <charlet@adacore.com>
33663 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
33664 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
33666 * Makefile.in: Add support to build shared Ada libraries on solaris x86
33667 Remove gpr2make, replaced by gprmake.
33668 Remove references to gnatmem and libaddr2line.
33669 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
33670 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
33671 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
33672 a-numaux-darwin.ads and a-numaux-darwin.adb
33673 Enable mlib-tgt-lynxos.adb on lynxos.
33675 * Make-lang.in: Remove rules for gpr2make.
33676 When generating sdefault.adb, do not call Relocate_Path
33677 on S3 for function Target_Name, as it is not a path.
33678 Remove references to gnatmem and libaddr2line.
33680 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
33683 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
33685 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
33686 address is incompatible with its base type alignment constraints when
33687 this can be decided statically.
33689 2005-01-03 Olivier Hainque <hainque@adacore.com>
33691 * decl.c (compatible_signatures_p): New function. The intended purpose
33692 is to check if two function signatures for a call-site and a callee are
33693 compatible enough for the call to be valid. The underlying purpose is
33694 to check if a call to a mapped builtin is using the right interface.
33695 The current code actually does not check antyhing - this a placeholder
33696 for future refinements.
33697 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
33698 builtin calls for convention Intrinsic.
33700 * gigi.h (builtin_decl_for): Declare (new function).
33702 * utils.c (gnat_install_builtins): Install the target specific builtins.
33703 (builtin_decl_for): New function, provide a dummy body for now.
33705 2005-01-03 Geert Bosch <bosch@adacore.com>
33707 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
33708 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
33709 (Pred): Implement in terms of Succ.
33711 * trans.c (convert_with_check): Reimplement conversion of float to
33714 2005-01-03 Ed Schonberg <schonberg@adacore.com>
33715 Vincent Celier <celier@adacore.com>
33717 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
33718 bounds can be negative, and must be declared Int, not Nat.
33720 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
33721 array is checked after using the index in the array.
33723 * makegpr.adb (Add_Switches): Check if there is a package for the
33724 processor. If there is no package, do not look for switches.
33726 2005-01-03 Ed Schonberg <schonberg@adacore.com>
33728 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
33729 generation of predefined stream operations (specs and bodies) should
33730 proceed. Under various restrictions these subprograms must not be
33733 2005-01-03 Thomas Quinot <quinot@adacore.com>
33736 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
33737 amount of PCS-specific code in RACW stubs generation.
33738 (Copy_Specification): Set Etype on copied formal parameter entities, as
33739 this information is needed for PolyORB stubs generation.
33740 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
33741 variable Dynamic_Async.
33742 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
33743 (Build_RPC_Receiver_Specification): Make generic again, as recent
33744 changes have allowed RPC receivers to have the same profile for both
33745 variants of the PCS.
33746 Reorganise RPC receiver generation to reduce differences between the
33747 structure of GARLIC and PolyORB RPC receivers.
33748 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
33750 Simplify elaboration code for RCI packages.
33752 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
33753 generation to reduce differences between the structure of GARLIC and
33754 PolyORB RPC receivers.
33756 * s-stratt.adb: Fix typo in comment.
33758 2005-01-03 Thomas Quinot <quinot@adacore.com>
33760 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
33761 copied from Make_Init_Call).
33763 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
33764 reads and assignments on a temporary variable declared with appropriate
33767 2005-01-03 Robert Dewar <dewar@adacore.com>
33769 * i-c.adb (To_C): Raise CE if string is null and Append_Null
33771 2005-01-03 Robert Dewar <dewar@adacore.com>
33773 * i-cstrin.adb (Update): Do not append a null in form called with a
33774 String. This avoids unintended behavior.
33776 2005-01-03 Arnaud Charlet <charlet@adacore.com>
33779 * init.c: Fix warnings on Free BSD section.
33781 2005-01-03 Arnaud Charlet <charlet@adacore.com>
33784 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
33787 2005-01-03 Vincent Celier <celier@adacore.com>
33789 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
33790 libraries when Unique_Compile is True (-u switch).
33793 2005-01-03 Robert Dewar <dewar@adacore.com>
33795 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
33796 upper case letter or underscore after W, as allowed by spec.
33798 2005-01-03 Arnaud Charlet <charlet@adacore.com>
33800 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
33801 darwin port by using proper type definitions from header files.
33802 Use SIGTERM instead of SIGABRT for SIGADAABORT.
33804 2005-01-03 Robert Dewar <dewar@adacore.com>
33806 * par.adb: Enhance error message handling for configuration file
33809 2005-01-03 Robert Dewar <dewar@adacore.com>
33811 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
33812 removed during the previous update (test properly for case of dividing
33813 largest negative number by -1, which generates overflow).
33815 2005-01-03 Ed Schonberg <schonberg@adacore.com>
33816 Sergey Rybin <rybin@adacore.com>
33818 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
33819 to use as the defining identifier for a formal package.
33820 (Remove_Parent): If the instance takes place within (an instance of)
33821 a sibling, preserve private declarations of common parent.
33823 2005-01-03 Ed Schonberg <schonberg@adacore.com>
33825 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
33826 to determine whether one of the operands is a fixed-point type for
33827 which a user-defined multiplication or division operation might be
33830 * sem_res.adb (Valid_Conversion): The legality rules for conversions
33831 of access types are symmetric in Ada 2005: either designated type can
33834 2005-01-03 Vincent Celier <celier@adacore.com>
33836 * s-fileio.adb (Temp_File_Record): Change length of string component
33837 Name from L_tmpnam + 1 to max_path_len + 1.
33839 2005-01-03 Arnaud Charlet <charlet@adacore.com>
33841 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
33842 Self_Id.Deferral_Level = 0.
33843 (Do_Pending_Action): Move this function to the spec.
33845 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
33846 Do_Pending_Action explicitely when needed, in case we're using
33847 No_Abort restrictions.
33849 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
33850 deferral level since it will not get changed by the generated code.
33851 Keeping a default value of 1 would prevent some operations (e.g.
33852 select or delay) to proceed successfully.
33854 2005-01-03 Ben Brosgol <brosgol@adacore.com>
33855 Robert Dewar <dewar@adacore.com>
33856 Cyrille Comar <comar@adacore.com>
33858 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
33859 porting guide chapter (vms version).
33860 Revised doc title (removed "for native platforms") and subtitle.
33861 Add discussion on warning flag for obsolescent features. First we
33862 note that it applies to obsolete GNAT features, which was previously
33863 omitted. Second we contrast the behavior with that of the new
33864 Ada 2005 AI-368 restriction No_Obsolescent_Features.
33865 Preliminary rewriting of GNAT & libraries chapter in order to take
33866 into account default project locations & new project manager
33869 2005-01-03 Robert Dewar <dewar@adacore.com>
33871 * cstand.adb (Create_Operators): Clean up format and documentation of
33872 unary and binary operator result tables. No change in code, just
33873 reformatting and addition of comments.
33875 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
33876 sem_ch2.adb: Minor reformatting
33878 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
33879 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
33880 comments for Tree_Read and Tree_Write.
33882 2005-01-03 Pascal Obry <obry@adacore.com>
33884 * exp_attr.ads: Minor reformatting.
33886 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
33888 * comperr.adb (Compiler_Abort): Add specialized message for GAP
33891 2005-01-03 Ed Schonberg <schonberg@adacore.com>
33893 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
33894 whether the ancestor type is private, as may be the case with nested
33897 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
33900 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
33902 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
33904 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
33905 * utils2.c (build_unary_op): Likewise.
33907 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33909 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
33911 2004-12-19 Richard Henderson <rth@redhat.com>
33913 * trans.c (gigi): Update gimplify_body call.
33915 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
33917 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
33919 2004-12-07 Ed Falis <falis@adacore.com>
33921 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
33922 current task being suspended.
33924 * init.c (__gnat_clear_exception): added to reset VxWorks exception
33926 (__gnat_map_signal): removed test for current task being suspended.
33928 2004-12-07 Gary Dismukes <dismukes@adacore.com>
33930 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
33931 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
33932 targets (such as AAMP).
33934 2004-12-07 Ed Schonberg <schonberg@adacore.com>
33936 * atree.adb (Visit_Itype): Create a new name for the generated itype,
33937 because the back-end may otherwise treat it as a redefinition of the
33940 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
33942 * back_end.adb (Scan_Back_End_Switches): Accept --param.
33944 * lang-specs.h: Accept --param.
33946 2004-12-07 Vincent Celier <celier@adacore.com>
33948 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
33949 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
33950 Current_Body_Suffix => Ada_Body_Suffix).
33951 Take into account Externally_Built attribute.
33953 * clean.adb (In_Extension_Chain): Always return False when one of the
33954 parameter is No_Project.
33955 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
33956 Ada_Language_Index).
33957 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
33958 Process_Languages for procedure Parse).
33960 * gnatcmd.adb (Carg_Switches): New table.
33961 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
33962 Adapt to name changes in package Prj (Current_Spec_Suffix =>
33963 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
33965 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
33966 Header_Num and function Hash are now declared in package Prj,
33969 * prj.adb (Suffix_Of): New function.
33970 (Set (Suffix)): New procedure.
33971 (Hash): One function moved from Prj.Com
33972 (Is_Present, Language_Processing_Data_Of): New functions
33973 (Set): Two new procedures
33974 (Add_Language_Name, Display_Language_Name): New procedures
33976 * prj.ads: (Suffix_Of): New function
33977 (Set (Suffix)): New procedure
33978 Add several types and tables for multi-language support.
33979 (Header_Num): Type moved from Prj.Com
33980 (Hash): Two functions moved from Prj.Com
33981 (Is_Present, Language_Processing_Data_Of): New functions
33982 (Set): Two new procedures
33983 (Add_Language_Name, Display_Language_Name): New procedures
33984 (Naming): Component name changes:
33985 Current_Spec_Suffix => Ada_Spec_Suffix,
33986 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
33987 Impl_Suffixes, Supp_Suffixes.
33988 (Project_Data): New components: Externally_Built, Supp_Languages,
33989 First_Language_Processing, Supp_Language_Processing, Default_Linker,
33990 Default_Linker_Path.
33992 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
33993 new package Language_Processing with its attributes (Compiler_Driver,
33994 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
33995 Binder_Driver, Default_Linker).
33997 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
33998 (Header_Num): Type moved to package Prj
34000 * prj-env.adb: Adapt to name changes in package Prj
34001 (Current_Spec_Suffix => Ada_Spec_Suffix,
34002 Current_Body_Suffix => Ada_Body_Suffix).
34004 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
34005 default to the project path, except the "-" is one of the directories
34006 in env var ADA_PROJECT_PATH.
34007 (Current_Project_Path): Global variable, replacing Project_Path
34008 that was in the body of Prj.Part.
34009 (Project_Path): New function
34010 (Set_Project_Path): New procedure
34011 Initialize Current_Project_Path during elaboration of the package
34012 Remove dependency on Prj.Com, no longer needed
34014 * prj-ext.ads (Project_Path): New function
34015 (Set_Project_Path): New procedure
34017 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
34018 suffix is defined for language <lang>.
34019 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
34020 accessing directly the components of Naming.
34021 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
34022 Reorganise of this package.
34023 Break procedure Check in several procedures.
34025 * prj-nmsc.ads: Replace all procedures (Ada_Check,
34026 Other_Languages_Check and Language_Independent_Check) with a single
34029 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
34030 Process_Languages, no longer needed.
34032 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
34033 Current_Project_Path.
34034 Remove elaboration code, moved to the body of Prj.Ext
34035 Use new function Prj.Ext.Project_Path instead of old variable
34037 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
34038 When comparing with project paths on the stack, first put the resolved
34039 path in canonical case.
34040 (Parse_Single_Project): Set the path name of the project file in the
34041 tree to the normalized path.
34043 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
34044 parameter Process_Languages, no longer needed.
34045 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
34046 Other_Languages_Check.
34048 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
34049 to store the resolved canonical path of the project file.
34050 Remove dependency to Prj.Com, no longer needed
34052 * prj-util.adb: Adapt to name changes in package Prj
34053 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
34056 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
34057 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
34058 Externally_Built, Include_Option, Language_Processing.
34060 * makegpr.adb: Numerous changes due to changes in packages
34063 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
34064 default to the project path, except whe "-" is one of the directories
34065 in env var ADA_PROJECT_PATH.
34066 (Gnatls): In verbose mode, add the new section "Project Search Path:"
34068 2004-12-07 Robert Dewar <dewar@adacore.com>
34070 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
34072 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
34075 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
34076 flag. No longer needed now that we handle this in gnat1drv.adb.
34078 * repinfo.ads: Minor reformatting
34080 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34081 Olivier Hainque <hainque@adacore.com>
34082 Eric Botcazou <ebotcazou@adacore.com>
34084 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
34085 TYPE_SIZE_UNIT of result type if SIZE is not specified.
34086 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
34087 of a bitfield, which we know is useless and causes trouble because of
34088 alignment implications.
34090 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
34092 (process_attributes): Clear DECL_COMMON again when a section attribute
34094 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
34095 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
34096 (create_field_decl): Special case ADDRESSABLE negative to mean
34097 "no bitfield creation", to be used by make_aligning_type. Don't
34098 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
34099 fields claimed addressable still have to be bitfields. Use
34100 value_factor_p instead of a raw binop construction to check for the
34101 position's alignment.
34103 2004-12-07 Geert Bosch <bosch@adacore.com>
34105 * eval_fat.adb: Revert previous change.
34107 2004-12-07 Thomas Quinot <quinot@adacore.com>
34108 Ed Schonberg <schonberg@adacore.com>
34110 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
34111 with an implicit dereference as its prefix, use
34112 Insert_Explicit_Dereference instead of merely rewriting the prefix into
34113 an explicit dereference. This ensures that a reference to the original
34114 prefix is generated, if appropriate.
34116 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
34117 dereference is rewritten to an explicit one, generate a reference to
34118 the entity denoted by its prefix using the original prefix node, so
34119 the dereference can be properly recorded as a read of the denoted
34120 access value, if appropriate.
34122 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
34123 emitting 'assigned but never read' warning on a variable on the basis
34124 that it has an access type.
34125 (Check_References): Emit unreferenced warning when the scope is a
34128 2004-12-07 Robert Dewar <dewar@adacore.com>
34129 Ed Schonberg <schonberg@adacore.com>
34131 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
34134 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
34135 leaving call unchanged.
34136 This deals with the case where the pragma Import specified
34137 an external name, to be handled by the back end.
34139 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
34140 subprogram which is Imported with convention Intrinsic if an
34141 External_Name argument is specified.
34142 (Process_Import_Or_Interface): Properly diagnose link name argument.
34143 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
34144 with Sem_Ch6.Cannot_Inline.
34145 (Process_Inline): Provide separate warning for inapplicable inline
34147 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
34148 treatment is uniform on different targets.
34150 2004-12-07 Ed Schonberg <schonberg@adacore.com>
34152 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
34153 construct is rewritten, preserve end label to permit source navigation.
34155 2004-12-07 Thomas Quinot <quinot@adacore.com>
34157 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
34158 Specific_Build_Stub_Target): New subprograms.
34159 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
34160 the PCS implementation used, using the above PCS-customized subprograms.
34161 Minor reformatting.
34162 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
34163 for generation of DSA code targeted to the PolyORB PCS.
34164 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
34165 implementation of the partition communication subsystem in ancillary
34167 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
34168 PolyORB_Support.Build_Stub_Type): New subrograms containing the
34169 PCS-specific part of Add_Stub_Type.
34170 (Insert_Partition_Check): Use runtime library function to perform
34173 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
34174 (RE_Same_Partition): New entity, from s-parint.
34176 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
34178 2004-12-07 Gary Dismukes <dismukes@adacore.com>
34180 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
34181 Output the copyright message on a separate line from the version
34184 2004-12-07 Joel Brobecker <brobecker@adacore.com>
34186 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
34187 compile-time warning.
34189 2004-12-07 Robert Dewar <dewar@adacore.com>
34191 * g-regpat.adb: (Match): Change a misuse of or to or else
34193 2004-12-07 Ed Schonberg <schonberg@adacore.com>
34196 (Generate_Reference): Handle properly a reference to an entry formal,
34197 when an accept statement has a pragma Unreferenced for it.
34199 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
34200 and the Has_Pragma_Unreferenced flag for each formal before analyzing
34201 the body, to ensure that warnings are properly emitted for each accept
34202 statement of a given task entry.
34204 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
34206 * Makefile.in: Add support for foreign threads on VMS.
34208 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34210 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
34212 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
34214 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
34216 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
34218 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
34220 2004-12-07 Robert Dewar <dewar@adacore.com>
34222 * nlists.adb (Prepend_Debug): Remove parameters and nest within
34224 (Remove_Next_Debug): Same fix
34226 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
34227 maintain back pointers now, though we did not used to, and comments
34229 (Prepend): Remove pragma Inline.
34230 (Remove_Next): Same cleanup
34232 2004-12-07 Thomas Quinot <quinot@adacore.com>
34234 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
34235 used to record an implicit dereference as a read operation on its
34236 prefix when operating under -gnatc. Necessary to avoid spurious
34237 'variable assigned but never read' warnings in that mode.
34238 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
34239 is a non-overloaded implicit dereference, call the above subprogram to
34240 ensure proper recording of references.
34242 2004-12-07 Gary Dismukes <dismukes@adacore.com>
34244 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
34245 to be resolved later as part of Analyze_Iteration_Scheme's call to
34248 2004-12-07 Ed Schonberg <schonberg@adacore.com>
34250 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
34251 prefix is not a scalar type, place error message on prefix, not on
34254 2004-12-07 Bernard Banner <banner@adacore.com>
34256 * vxaddr2line.adb: Add support for x86 vxworks
34258 2004-12-07 Thomas Quinot <quinot@adacore.com>
34260 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
34261 documentation of the behaviour of these functions when passed an IP
34262 address that has no record in the system hosts database and no reverse
34265 * cstand.adb, a-tags.ads: Fix typos in comment.
34267 2004-12-07 Robert Dewar <dewar@adacore.com>
34269 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
34270 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
34271 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
34272 s-poosiz.ads: Minor reformatting
34274 * make.adb: Minor reformatting
34275 Add some ??? comments asking for more comments
34277 * s-poosiz.adb: Minor reformatting
34278 Add comments on alignment requirement
34280 * sinfo.ads: Remove obsolete comment and fix typo.
34282 2004-12-07 Vincent Celier <celier@adacore.com>
34283 Sergey Rybin <rybin@adacore.com>
34285 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
34286 Files" with the new tool and package names.
34287 Reformatting to suppress most of the warnings for line too long
34288 Document the new section "Project Search Path:" in the output of
34290 Add gnatmetric section
34292 2004-12-07 Vincent Celier <celier@adacore.com>
34294 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
34295 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
34296 and -eit to -ept. Added qualifier
34297 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
34299 2004-11-27 Andreas Schwab <schwab@suse.de>
34301 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
34303 2004-11-25 Arnaud Charlet <charlet@adacore.com>
34305 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
34306 internal implementation unit GNAT.Sockets.Thin,
34307 as their usage for sockets is non-portable (using the read and write
34308 functions from the system runtime library is fine on UNIX but won't
34309 work under Windows).
34311 * mingw32.h: Update copyright notice.
34313 2004-11-25 Arnaud Charlet <charlet@adacore.com>
34315 * ada-tree.h: Minor reformatting of previous change to avoid lines
34316 longer than 79 characters.
34318 2004-11-25 Olivier Hainque <hainque@adacore.com>
34320 * tb-gcc.c: GCC infrastructure based implementation of
34323 2004-11-24 Steven Bosscher <stevenb@suse.de>
34325 * misc.c (gnat_post_options): Don't clear
34326 flag_inline_functions.
34328 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
34331 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
34334 2004-11-21 Andreas Jaeger <aj@suse.de>
34336 * stylesw.adb: Change Style_Check_Subprogram_Order to
34337 Style_Check_Order_Subprograms.
34339 2004-11-18 Arnaud Charlet <charlet@adacore.com>
34341 * adaint.h, adaint.c
34342 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
34344 Add also a cast to kill another warning.
34345 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
34346 parameter with the priority class of the parent process instead of
34347 always using the NORMAL_PRIORITY_CLASS.
34348 (__gnat_dup): New function.
34349 (__gnat_dup2): New function.
34350 (__gnat_is_symbolic_link): Enable the effective body of this
34351 function when __APPLE__ is defined.
34353 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
34356 2004-11-18 Olivier Hainque <hainque@adacore.com>
34358 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
34359 address of which may be used to represent "others" and "all others"
34360 choices in exception tables, instead of the current harcoded
34361 (void *)0 and (void *)1.
34362 (Setup_Exception): Do nothing in the GNAT SJLJ case.
34364 * gigi.h (others_decl, all_others_decl): New decls representing the
34365 new Others_Value and All_Others_Value objects.
34366 (struct attrib): Rename "arg" component as "args", since GCC expects a
34367 list of arguments in there.
34369 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
34370 corresponding objects exported by a-exexpr, instead of hardcoded dummy
34373 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
34374 others_decl and all_others_decl instead of hardcoded dummy addresses
34375 to represent "others" and "all others" choices, which is cleaner and
34376 more flexible with respect to the possible eh pointer encoding policies.
34378 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
34379 (process_attributes): Account for the naming change of the "args"
34380 attribute list entry component.
34382 * decl.c (build_attr_list): Rename into prepend_attributes to allow
34383 cumulating attributes for different entities into a single list.
34384 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
34385 attributes for the current entity and propagate first subtype
34386 attributes to other subtypes.
34387 <E_Procedure>: Attribute arguments are attr->args and not
34388 attr->arg any more.
34389 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
34390 argument provided, as this is what GCC expects. Use NULL_TREE instead
34393 2004-11-18 Robert Dewar <dewar@adacore.com>
34395 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
34396 Minor reformatting througout (including new function specs)
34397 Add ??? comments asking for clarification.
34399 2004-11-18 Thomas Quinot <quinot@adacore.com>
34401 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
34402 incomplete duplicate implementation of this subprogram from butil.
34404 2004-11-18 Thomas Quinot <quinot@adacore.com>
34406 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
34407 procedures factors the common processing for building an RPC receiver
34408 for an RCI package or an RACW type.
34409 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
34410 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
34411 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
34413 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
34415 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
34417 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
34418 distribution subprogram identifiers that are either subprogram numbers
34420 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
34421 string distribution identifiers assigned to a given subprogram.
34422 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
34423 (Add_RAS_Dereference_TSS): Add comments.
34424 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
34425 is not referenced yet because it will be used by the PolyORB DSA
34427 (Insert_Partition_Check): Remove fossile code.
34428 (First_RCI_Subprogram_Id): Document this constant.
34429 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
34431 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
34432 replaced with calls to Get_Library_Unit_Name_String. Previously there
34433 were several instances of the same code in different locations in the
34434 compiler; this checkin completes the replacement of all of these
34435 instances with calls to a common subprogram.
34436 Minor reformatting.
34438 * sem_dist.adb: Remove comment noting that RPC receiver generation
34439 should be disabled for RACWs that implement RASs.
34440 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
34442 * sem_util.ads, sem_util.adb (Has_Stream): New function
34443 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
34444 qualified name of a library unit into the name buffer.
34445 (Note_Possible_Modification): Generate a reference only
34446 if the context comes from source.
34448 * snames.ads (PCS_Names): New subtype corresponding to names of
34449 supported implementations of the Partition Communication Subsystem
34450 (PCS) (i.e. the runtime library support modules for the distributed
34453 2004-11-18 Robert Dewar <dewar@adacore.com>
34454 Ed Schonberg <schonberg@adacore.com>
34456 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
34457 (Has_Rep_Pragma): New function
34458 (Has_Attribute_Definition_Clause): New function
34459 (Record_Rep_Pragma): Moved here from sem_ch13.adb
34460 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
34462 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
34464 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
34465 (Expand_Pragma_Psect_Object): New procedure
34466 These procedures contain the revised and cleaned up processing for
34467 these two pragmas. This processing was formerly in Sem_Prag, but
34468 is more appropriately moved here. The cleanup involves making sure
34469 that the pragmas are properly attached to the tree, and that no
34470 nodes are improperly shared.
34472 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
34473 pragmas to Exp_Prag, which is more appropriate.
34474 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
34475 check for duplicates Remove use of Is_Psected flag, no longer needed.
34476 Use new Make_String_Literal function with string.
34478 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
34479 that are functions return universal values, that have to be converted
34480 to the context type.
34481 Use new Make_String_Literal function with string.
34482 (Get_Stream_Convert_Pragma): New function, replaces the use of
34483 Get_Rep_Pragma, which had to be kludged to work in this case.
34485 * freeze.adb: Use new Has_Rep_Pragma function
34487 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
34488 function with string.
34489 Use new Has_Rep_Pragma function.
34491 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
34494 2004-11-18 Robert Dewar <dewar@adacore.com>
34496 * errout.ads, errout.adb: (First_Sloc): New function
34498 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
34499 check (-gnatyx) instead of being included as a redundant construct
34502 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
34503 Style_Check_Order_Subprograms.
34505 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
34506 stylesw.adb: Add Style_Check_Xtra_Parens
34508 * usage.adb: Add line for -gnatyx (check extra parens)
34510 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
34512 2004-11-18 Ed Schonberg <schonberg@adacore.com>
34513 Robert Dewar <dewar@adacore.com>
34515 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
34516 discriminant of a constrained subtype, analyze the copy of the
34517 corresponding constraint, because in some cases it may be only
34518 partially analyzed.
34519 Removes long-lived ??? comments.
34521 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
34522 handled controlled or secondary-stack expressions within the
34523 iteration_scheme of a loop.
34525 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
34526 bounds that may contain functions calls, to prevent memory leaks when
34527 the bound contains a call to a function that uses the secondary stack.
34528 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
34529 generate temporaries for loop bounds that might contain function calls
34530 that require secondary stack and/or finalization actions.
34532 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
34533 selected component and the selector is overloadable (not just a
34534 function) treat as function call, Analyze_Call will disambiguate if
34536 (Analyze_Selected_Component): Do not generate an actual subtype for the
34537 selected component if expansion is disabled. The actual subtype is only
34538 needed for constraint checks.
34539 (Analyze_Allocator): If restriction No_Streams is set, then do
34540 not permit objects to be declared of a stream type, or of a
34541 composite type containing a stream.
34543 * restrict.ads: Remove the a-stream entry from Unit_Array, since
34544 No_Streams no longer prohibits with'ing this package.
34546 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
34547 discriminants, but the parent base has unknown discriminants, there is
34548 no discriminant constraint to inherit. Such a discrepancy can arise
34549 when the actual for a formal type with unknown discriminants is a
34550 similar private type whose full view has discriminants.
34551 (Analyze_Object_Declaration): If restriction No_Streams is set, then
34552 do not permit objects to be declared of a stream type, or of a
34553 composite type containing a stream.
34555 2004-11-18 Ed Schonberg <schonberg@adacore.com>
34557 * exp_dbug.ads: Update documentation to reflect simpler encoding for
34558 protected operations.
34560 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
34561 generated name, it complicates decoding in gdb and hinders debugging
34562 of protected operations.
34563 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
34564 flag for the protected entry barrier function.
34565 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
34566 flag for the protected entry function.
34568 2004-11-18 Nicolas Setton <setton@adacore.com>
34570 * expect.c: Define __unix__ when __APPLE__ is defined.
34572 * Makefile.in: Inform the value of the variable GMEM_LIB in the
34573 Darwin-specific section.
34575 * lang-specs.h: Change the placement of the %1 marker.
34576 Works around the fact that gcc adds -fPIC by default under Darwin.
34578 2004-11-18 Ed Schonberg <schonberg@adacore.com>
34580 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
34581 type of the object with the packed array type, set the Analyzed flag
34582 on the object if it is an entity or simple indexed component, to avoid
34583 spurious type errors.
34585 2004-11-18 Gary Dismukes <dismukes@adacore.com>
34587 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
34588 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
34589 separate line from the version message.
34591 2004-11-18 Ed Falis <falis@adacore.com>
34593 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
34595 (init_float): Eliminate initialization of floating point status for
34596 AE653. The instructions have no effect for vThreads.
34598 2004-11-18 Vincent Celier <celier@adacore.com>
34600 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
34601 gnatbind is invoked with -shared.
34603 2004-11-18 Jose Ruiz <ruiz@adacore.com>
34605 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
34606 for Detect_Blocking which is redundant with the check done within the
34607 procedure Protected_Single_Entry_Call.
34608 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
34609 Detect_Blocking which is redundant with the check done within the
34610 procedure Protected_Single_Entry_Call.
34612 2004-11-18 Vincent Celier <celier@adacore.com>
34614 * makegpr.adb (Compile): Put the compiling switches (in package
34615 Compiler and on the command line) immediately after "-c", instead of
34616 at the end of the command line invocation of the compiler, when
34617 compiling a non-Ada file.
34618 (Build_Global_Archive): When there is no need to rebuild the archive,
34619 set Global_Archive_Exists, so that the archive is passed to the linker
34622 2004-11-18 Robert Dewar <dewar@adacore.com>
34623 Sergey Rybin <rybin@adacore.com>
34626 Remove extra paren check from list of checks for redundant constructs
34627 Add documentation of new -gnatyx style check (check extra parens)
34628 Remove paragraph about gnatelim debug options.
34630 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
34631 objects rather than forbidding dependencies on the package Ada.Streams.
34633 * sinfo.ads: Add ??? note that we should document pragmas passed to
34636 * g-expect.ads: Fix a few typos in the comments.
34638 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
34640 * misc.c (gnat_handle_option): Use %< and %> for quoting in
34643 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34645 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
34647 2004-11-07 Andreas Schwab <schwab@suse.de>
34649 * Makefile.in (install-gnatlib): Remove spurious hyphen.
34651 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
34654 * Makefile.in (darwin): Set soext to .dylib.
34656 2004-10-26 Vincent Celier <celier@gnat.com>
34657 Thomas Quinot <quinot@act-europe.fr>
34659 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
34660 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
34661 there is no use of GNAT.Sockets.Constants.
34662 Remove remaining pragma Import for C_Write
34663 Remove C_Read and C_Write from internal implementation unit
34664 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
34665 the read and write functions from the system runtime library is fine
34666 on UNIX but won't work under Windows).
34668 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
34669 (Check_Selector): Use C_Recv instead of C_Read.
34670 Selectors are the GNAT.Sockets abstraction to perform a select()
34671 call on a set of descriptors. To allow abortion of an ongoing
34672 select operation, some data is written to a dedicated socket that
34673 is always monitored.
34674 Under Windows, the write and read library functions cannot operate
34675 on sockets, so we need to use send and recv instead, which is portable
34676 across all supported platforms.
34678 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
34679 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
34680 (using the read and write functions from the system runtime library is
34681 fine on UNIX but won't work under Windows).
34683 2004-10-26 Nicolas Setton <setton@act-europe.fr>
34685 * mlib-tgt-darwin.adb: New file.
34687 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
34688 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
34689 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
34690 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
34693 * Makefile.in: Add support for building shared libraries under Darwin.
34694 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
34695 the low level EH init subprogram to be called from __gnat_initialize.
34697 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
34698 indicates which options to pass to the archive indexer.
34700 * mlib-utl.adb: Add support for calling ranlib with additional
34701 options. This is needed for instance under Mac OS X.
34702 (Ranlib_Options): New global variable, used to store the potential
34703 options to pass to ranlib.
34704 (Ar): Use Ranlib_Options when spawning ranlib.
34705 (Initialize): Set the value of ranlib option.
34707 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
34709 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
34710 instead of 8K, to reflect the real potential needs for stack-checking
34713 2004-10-26 Pascal Obry <obry@gnat.com>
34715 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
34717 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
34718 Windows only the initial thread stack size can be set so it is good to
34719 start we a low stack size.
34720 The OS will adjust the size as needed.
34722 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
34723 Nicolas Setton <setton@act-europe.fr>
34725 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
34726 "__unix__" instead of "unix".
34727 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
34728 sections were just mistakenly ignored. The former is
34729 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
34730 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
34731 of hpux. This prevents an unwanted definition of the symbol
34732 convert_addresses in adaint.o.
34734 2004-10-26 Gary Dismukes <dismukes@gnat.com>
34736 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
34737 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
34739 2004-10-26 Cyrille Comar <comar@act-europe.fr>
34741 * a-filico.ads, a-filico.adb: fix incorrect header.
34743 2004-10-26 Javier Miranda <miranda@gnat.com>
34745 * a-ststio.ads: Fix typo in identifier
34747 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
34749 * sem_ch4.adb: Minor reformatting.
34751 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34753 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
34754 enabled, check the result of unary and binary operations when the
34755 expression is the right-hand side of an assignment.
34757 2004-10-26 Vincent Celier <celier@gnat.com>
34759 * clean.adb (Delete): Do not output warnings when in quiet output and
34760 not in verbose mode.
34761 (Force_Deletions): New Boolean flag, defaulted to False
34762 (Delete): Only delete a file if it is writable, and when
34763 Force_Deletions is True.
34764 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
34765 (Usage): Line for new switch -f
34766 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
34769 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
34771 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
34772 JM type only if its size matches that of the wrapper. When a size is
34773 prescribed and the field is not aliased, remove the wrapper of a JM
34774 type only if the size is not greater than that of the packed array.
34775 (gnat_to_gnu_entity): Change the extension of packed array wrappers
34778 2004-10-26 Geert Bosch <bosch@gnat.com>
34780 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
34781 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
34782 (Pred): Implement in terms of Succ.
34784 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34786 * exp_aggr.adb (Safe_Component): An aggregate component that is an
34787 unchecked conversion is safe for in-place use if the expression of the
34788 conversion is safe.
34789 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
34790 be expandable in place even if the aggregate does not come from source.
34791 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
34792 designated object of an allocator in place, rather than building it
34793 first on the stack. The previous scheme forces a full copy of the array,
34794 and may be altogether unsusable if the size of the array is too large
34795 for stack allocation.
34797 2004-10-26 Robert Dewar <dewar@gnat.com>
34799 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
34800 compares if the component is atomic.
34802 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
34803 array assignment if the component type is atomic.
34805 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34806 Eric Botcazou <ebotcazou@act-europe.fr>
34808 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
34809 is aliased and is a by_reference type, do not pass by copy.
34810 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
34811 detect whether the call is in the right side of an assignment or
34812 the expression of an object declaration. Recurse on component
34813 association within aggregates.
34814 Call it in the condition that determines whether the temporary is
34815 necessary for correct stack-checking.
34817 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
34819 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
34820 RACW_Type, used in the PolyORB version.
34821 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
34822 version and the GARLIC version.
34824 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
34825 Rename RCI_Info to RCI_Locator for better consistency between the
34826 GARLIC and PolyORB versions of the distributed systems annex.
34827 (DSA_Implementation_Name): This enumeration lists the possible
34828 implementations of the Partition Communication Subsystem for the
34829 Distributed Systems Annex (DSA). The three available implementations
34830 are the dummy stub implementation (No_DSA), and two versions based on
34831 two different distribution runtime libraries: GARLIC and PolyORB. Both
34832 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
34834 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
34837 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
34838 between the GARLIC and PolyORB versions of the distributed systems
34840 Remove RE_Unbounded_Reclaim_Pool since it is unused.
34842 2004-10-26 Gary Dismukes <dismukes@gnat.com>
34844 * gnat1drv.adb: Suppress calling the back end when
34845 Frontend_Layout_On_Target is true.
34847 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
34849 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
34850 Set_Read_Only): New subprograms.
34851 These new routines allow the user to set or unset the Owner execute
34852 and Owner write permission flags on a file.
34854 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
34855 GNAT.OS_Lib.Set_Executable instead of rolling our own.
34857 2004-10-26 Matthew Gingell <gingell@gnat.com>
34859 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
34861 2004-10-26 Pascal Obry <obry@gnat.com>
34863 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
34864 memory before the faulting page we properly test the process read
34865 access for this address using appropriate Win32 routine.
34866 (HPUX sections): guard with "__hpux__" instead of "hpux".
34868 2004-10-26 Robert Dewar <dewar@gnat.com>
34870 * lib-xref.adb (Generate_Reference): Don't complain about reference to
34871 entry parameter if pragma Unreferenced set, since we do not properly
34872 handle the case of multiple parameters.
34874 2004-10-26 Vincent Celier <celier@gnat.com>
34876 * prj-env.adb: (Contains_ALI_Files): New Boolean function
34877 (Ada_Objects_Path.Add): For a library project, add to the object path
34878 the library directory only if there is no object directory or if the
34879 library directory contains ALI files.
34880 (Set_Ada_Paths.Add.Recursive_Add): Ditto
34882 2004-10-26 Vincent Celier <celier@gnat.com>
34884 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
34885 extension of library projects.
34887 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
34888 path defaults to ".:<prefix>/lib/gnat".
34889 (Parse): For an extending all project, allow direct import of a project
34890 that is virtually extended.
34892 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
34893 the specified name is directly imported, return its ID. Otherwise, if
34894 an extension of this project is imported, return the ID of the
34897 2004-10-26 Robert Dewar <dewar@gnat.com>
34899 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
34900 (Sub3): New procedure, used by Scaled_Divide
34901 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
34902 correct more than one instance of failure to propagate carries
34904 (Double_Divide): Handle overflow case of largest negative number
34905 divided by minus one.
34907 * s-arit64.ads (Double_Divide): Document that overflow can occur in
34908 the case of a quotient value out of range.
34911 2004-10-26 Robert Dewar <dewar@gnat.com>
34913 * s-bitops.adb (Bit_Eq): Remove redundant check.
34915 * s-bitops.ads: Minor comment updates
34916 Change some occurrences of Address to System.Address
34918 * s-carsi8.ads: Fix minor cut-and-paste error in comments
34920 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34922 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
34923 accessibility check to prefix that is a protected operation.
34925 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34927 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
34928 empty, post message on stub.
34930 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34931 Javier Miranda <miranda@gnat.com>
34933 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
34934 current instance appears within a unit that is directly in the context
34936 Used to determine whether the body of the instance should be analyzed
34937 immediately after its spec, to make its subprogram bodies available
34938 for front-end inlining.
34939 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
34940 constraint is not allowed on the component type (AARM 12.5.3(3))
34942 2004-10-26 Cyrille Comar <comar@act-europe.fr>
34944 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
34945 'Storage_Pool): enhance, document & limit detection of non-sharable
34948 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
34950 * s-pooglo.ads: Add more documentation now that this pool is properly
34953 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34955 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
34956 or protected type with discriminants, do not constrain the
34957 corresponding record type if the subtype declaration has no
34958 discriminant constraints. This can be the case in source code, or in
34959 the subtype declaration created to rename an actual type within an
34962 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34964 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
34965 different kind of stub (possibly wrong name for file), do not check
34967 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
34968 includes call to some function that returns an unconstrained type, do
34971 2004-10-26 Ed Schonberg <schonberg@gnat.com>
34973 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
34974 appear in the code for the main unit. Dependencies among units in the
34975 context of the main unit are established when those other units are
34976 compiled. Otherwise spurious elaboration constraints can generate
34977 incorrect elaboration circularities.
34979 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
34980 Ed Schonberg <schonberg@gnat.com>
34982 * sem_util.adb (Is_Aliased_View): Defend against the case where this
34983 subprogram is called with a parameter that is not an object name. This
34984 situation arises for some cases of illegal code, which is diagnosed
34985 later, and in this case it is wrong to call Is_Aliased, as that might
34986 cause a compiler crash.
34987 (Explain_Limited_Type): Refine previous fix to include
34988 inherited components of derived types, to provide complete information.
34990 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
34991 is the prival for a protected object.
34992 It is necessary to mark this entity as a variable, in addition to
34993 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
34994 modified to avoid checking the Aliased flag on entities that are not
34995 objects. (Checking that flag for non-objects is erroneous and could
34996 lead to a compiler crash).
34998 2004-10-26 Robert Dewar <dewar@gnat.com>
35000 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
35001 X_Frac = 0.5, then we know that the number X must be positive.
35002 (Succ): Remove the same redundant test, and also fix the primary test
35003 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
35005 (Decompose): Add fuller comments to spec
35007 2004-10-26 Pascal Obry <obry@gnat.com>
35009 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
35010 validity (process must have read access). Set to 0 in all other cases.
35011 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
35012 violation on Win32.
35013 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
35014 segmentation violation.
35016 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
35018 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
35019 whose type is a constructed subtype of an aliased object with an
35020 unconstrained nominal subtype, convert the actual to the constructed
35021 subtype before taking its address.
35023 2004-10-26 Vincent Celier <celier@gnat.com>
35025 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
35026 (Is_Path_Name_Case_Sensitive): New function
35028 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
35029 (Base_Name, Simple_Name, Current_Directory, Compose,
35030 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
35033 2004-10-26 Cyrille Comar <comar@act-europe.fr>
35034 Vasiliy Fofanov <fofanov@act-europe.fr>
35035 Vincent Celier <celier@gnat.com>
35037 * gnat_ugn.texi: Generalize "finding memory problems" section into a
35038 "memory management issues" section and document some of the useful
35039 memory pools provided as part of the GNAT library.
35040 Remove "virtual" from declaration of A::method2 in
35041 the simple example of Ada/C++ mixed system.
35042 Library Projects may be virtually extended: their virtual extensions
35043 are not Library Projects.
35044 Added section on extending project hierarchies.
35046 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
35048 * adaint.c (__gnat_get_libraries_from_registry): Cast value
35050 (__gnat_portable_spawn): Remove const.
35052 * mingw32.h (MAXPATHLEN): Check for previous definition.
35054 2004-10-17 Matthias Klose <doko@debian.org>
35056 * gnatvsn.ads: Set gnat library version to 4.0.
35058 2004-10-05 Vincent Celier <celier@gnat.com>
35060 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
35062 2004-10-04 Laurent Guerby <laurent@guerby.net>
35065 * Makefile.in: Define and use RANLIB_FLAGS.
35067 2004-10-04 Pascal Obry <obry@gnat.com>
35069 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
35070 other x86 platforms).
35072 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
35074 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
35075 in general and triggers stack alignment adjustment for thread entry
35076 points on targets where this is necessary.
35078 2004-10-04 Bernard Banner <banner@gnat.com>
35081 * Makefile.in: Add section for powerpc linux
35082 Add variant i-vxwork-x86.ads
35084 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
35086 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
35088 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
35089 table registration calls when need be. Ensures no reference to the crt
35090 ctors symbol are issued in the SJLJ case, which avoids possible
35091 undefined symbol errors in the case of modules to be statically linked
35094 2004-10-04 Javier Miranda <miranda@gnat.com>
35096 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
35097 in-line the code corresponding to subprogram Analyze_Actuals. In
35098 addition, analyze the actuals only in case of subprogram call.
35100 2004-10-04 Ed Falis <falis@gnat.com>
35102 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
35104 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
35106 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
35107 in the documentation.
35109 2004-10-04 Robert Dewar <dewar@gnat.com>
35111 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
35113 (Analyze_Block_Statement): Add circuitry to detect following dead code
35114 (Check_Unreachable_Code): Handle case of block exit
35116 2004-10-04 Robert Dewar <dewar@gnat.com>
35118 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
35119 (XMatchD): Avoid warning for Logic_Error call
35121 2004-10-04 Robert Dewar <dewar@gnat.com>
35123 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
35124 consider expressions buried within a procedure actual to be an actual.
35125 This caused some blowups with uses of packed slices within a procedure
35128 2004-10-04 Robert Dewar <dewar@gnat.com>
35130 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
35131 longer need to be initialized to zero.
35132 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
35133 initialized to zero.
35135 * checks.adb (Expr_Known_Valid): Packed arrays are now always
35136 considered valid, even if the representation is modular. That's correct
35137 now that we no longer initialize packed modular arrays to zero.
35139 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
35140 suffixes. These are now documented as the only cases in which the
35141 debugger ignores outer records.
35142 Previously, the spec allowed arbitrary suffixes for this purpose.
35143 Change name of LJM to JM for packed array pad records
35144 Create separate section on packed array handling, and add a whole new
35145 set of comments to this section describing the situation with packed
35146 modular types and justification requirements depending on endianness.
35148 2004-10-04 Robert Dewar <dewar@gnat.com>
35150 * a-except.adb: Add a comment for last change
35152 * einfo.ads: Minor spelling correction in comment
35154 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
35156 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
35159 * sem_util.ads: Minor comment update
35161 2004-10-04 Ed Schonberg <schonberg@gnat.com>
35163 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
35164 Inline_Always when in Configurable_Run_Time mode.
35166 * sem_prag.adb (Process_Convention): If entity is an inherited
35167 subprogram, apply convention to parent subprogram if in same scope.
35168 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
35169 when in Configurable_Run_Time mode.
35171 2004-10-04 Ed Schonberg <schonberg@gnat.com>
35173 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
35174 class_wide type after component list has been inherited.
35176 2004-10-04 Ed Schonberg <schonberg@gnat.com>
35178 * sem_ch12.adb (Check_Generic_Actuals): New predicate
35179 Denotes_Previous_Actual, to handle properly the case of a private
35180 actual that is also the component type of a subsequent array actual.
35181 The visibility status of the first actual is not affected when the
35182 second is installed.
35183 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
35184 make fully recursive the treatment of formals of packages declared
35186 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
35187 the above on exit from an instantiation.
35188 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
35189 current instantiation which is now complete.
35190 (Analyze_Package_Instantiation): No instantiated body is needed if the
35191 main unit is generic. Efficient, and avoid anomalies when a instance
35192 appears in a package accessed through rtsfind.
35194 2004-10-04 Ed Schonberg <schonberg@gnat.com>
35196 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
35197 do not generate a declaration for a temporary if the call is part of a
35198 library-level instantiation.
35200 2004-10-04 Ed Schonberg <schonberg@gnat.com>
35202 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
35203 searching for a limited component to flag.
35205 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
35206 expansion of Input, to account for the fact that the implicit call
35207 generated by the attribute reference must freeze the user-defined
35208 stream subprogram. This is only relevant to 'Input, because it can
35209 appear in an object declaration, prior to the body of the subprogram.
35211 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
35212 expansion can proceed and further errors uncovered.
35213 (Minor clean up): Fix cases of using | instead of \ for continuation
35216 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35218 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
35220 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
35221 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
35222 Use gcc_assert and gcc_unreachable.
35224 * decl.c (gnat_to_gnu_entity, case object): Check and process a
35225 specified alignment before validating size.
35226 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
35227 stripped-down declaration for the type of the inner field when making
35230 * utils.c (finish_record_type): Do not compute the size in units
35231 incrementally. Instead compute it once for the rep clause case.
35232 Use gcc_assert and gcc_unreachable.
35234 2004-10-04 Vincent Celier <celier@gnat.com>
35236 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
35238 (Is_Valid_Path_Name): Take '/' as a directory separator.
35240 2004-10-04 Vincent Celier <celier@gnat.com>
35242 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
35243 (Extended_Project) only if Extended_Project is defined, to avoid
35245 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
35247 (Parse_Single_Project): Ditto.
35249 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
35250 Add_To_Project_Path for virtual projects.
35252 2004-10-04 Vincent Celier <celier@gnat.com>
35254 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35255 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
35256 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
35257 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
35258 parameter Options_2.
35260 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
35261 Build_Dynamic_Library with an empty Options_2.
35263 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
35266 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
35267 directory separator, if any.
35268 (Gprmake): Do not allow mains on the command line for library projects.
35269 Do not attempt to link when the project is a library project.
35270 (Library_Opts): New table to store Library_Options.
35271 (Build_Library): If Library_Options is specified, pass these options
35272 when building a shared library.
35274 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
35276 * s-tposen.adb (Service_Entry): The object must be always unlocked at
35277 the end of this procedure now that the unlock operation was inserted
35280 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
35282 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
35283 corresponding to the Preallocated_Stacks flags in System.
35284 (Get_Target_Parameters): Including the processing for
35285 Preallocated_Stacks.
35287 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
35288 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
35289 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
35290 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
35291 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
35292 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
35293 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
35294 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
35295 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
35296 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
35297 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
35298 used to signal whether the compiler creates the required stacks and
35299 descriptors for the different tasks (when True) or it is done by the
35300 underlying operating system at run time (when False).
35301 It is initially set to False in all targets.
35303 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
35304 if it is supported by the target.
35305 (Make_Task_Create_Call): Pass the stack address if it has been
35306 previously created. Otherwise pass a Null_Address.
35308 * snames.adb: Add _stack.
35310 * snames.ads: Add Name_uStack. Required to allow the expander to
35311 statically allocated task stacks.
35313 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
35314 Stack_Address argument.
35315 Check that its value is equal to Null_Address because this target does
35316 not support the static stack allocation.
35318 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
35320 * usage.adb: Change "pragma inline" to "pragma Inline" in information
35323 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
35325 * exp_dist.adb: Split declaration of asynchronous flag out of
35326 Add_RACW_Read_Attribute.
35327 Minor reformatting for better alignment with PolyORB version.
35328 Store the entity for the asynchronous flag of an RACW, rather than the
35329 expression, in the asynchronous flags table. This will allow this flag
35330 to be used in other subprograms beside Add_RACW_Read_Attribute.
35332 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
35334 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
35335 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
35336 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
35337 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
35338 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
35339 sockets constant MSG_NOSIGNAL (Linux-specific).
35340 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
35341 all Send operations.
35342 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
35343 from trigerring SIGPIPE.
35344 Rename components to avoid clash with Ada 2005 possible reserved
35346 (Check_Selector): When the select system call returns with an error
35347 condition, propagate Socket_Error to the caller.
35349 2004-10-01 Jan Hubicka <jh@suse.cz>
35351 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
35353 2004-09-23 Robert Dewar <dewar@gnat.com>
35356 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
35357 instead do this at freeze time (we won't do it if there is an address
35359 Change "pragma inline" to "pragma Inline" in information and error
35361 Minor reformatting.
35363 * freeze.adb (Check_Address_Clause): Remove previous change, not the
35364 right way of doing things after all.
35365 (Freeze_Entity): For object, set Is_Public for imported entities
35366 unless there is an address clause present.
35368 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
35370 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
35371 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
35372 ensures proper handling of types with rep clauses, which might have
35373 their TYPE_SIZE set already.
35375 2004-09-21 Robert Dewar <dewar@gnat.com>
35377 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
35378 packed array types in both little- and big-endian cases. This change
35379 ensures that we no longer count on the unused bits being initialized
35380 for such types (and in particular ensures that equality testing will
35381 only read the relevant bits).
35382 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
35383 These changes mean that we no longer need to initialize small packed
35385 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
35386 optimization to an LJM field as to its parent field.
35388 * ada-tree.h, trans.c, utils.c, utils2.c:
35389 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
35391 2004-09-20 Jan Hubicka <jh@suse.cz>
35393 * utils.c (gnat_finalize): Remove.
35394 (end_subprog_body): Directly call cgraph_finalize_function;
35395 do not lower the nested functions.
35397 2004-09-20 Robert Dewar <dewar@gnat.com>
35400 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
35401 if an address clause is present, since that means that the Import
35404 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
35406 * 5tsystem.ads: Removed, no longer used.
35408 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
35409 Zack Weinberg <zack@codesourcery.com>
35411 * ada-tree.def: Use tree_code_class enumeration constants
35412 instead of code letters.
35413 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
35414 Update for new tree-class enumeration constants.
35416 2004-09-17 Vincent Celier <celier@gnat.com>
35418 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
35419 capabilities of the general project manager.
35421 2004-09-09 Vincent Celier <celier@gnat.com>
35423 * a-direct.ads: Add pragma Ada_05
35424 (Directory_Entry_Type): Give default value to component Kind to avoid
35425 not initialized warnings.
35427 * a-direct.adb (Current_Directory): Remove directory separator at the
35429 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
35430 an existing directory.
35431 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
35432 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
35433 Convert the result to File_Size.
35435 * prj.ads: (Project_Error): New exception
35437 * prj-attr.adb: Except in procedure Initialize, Fail comes from
35438 Prj.Com, not from Osint.
35439 (Attrs, Package_Attributes): Tables moved to private part of spec
35440 (Add_Attribute, Add_Unknown_Package): Moved to new child package
35442 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
35443 Prj.Project_Error after call to Fail.
35444 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
35445 Fail. Check that package name is not already in use.
35447 * prj-attr.ads: Comment updates to indicate that all subprograms may be
35448 used by tools, not only by the project manager, and to indicate that
35449 exception Prj.Prj_Error may be raised in case of problem.
35450 (Add_Unknown_Package, Add_Attribute): Moved to new child package
35452 (Attrs, Package_Attributes): Table instantiations moved from the body to
35453 the private part to be accessible from Prj.Attr.PM body.
35455 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
35456 from new package Prj.Attr.PM.
35457 (Parse_Attribute_Declaration): Call Add_Attribute from new package
35460 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
35462 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
35463 instead of Elaboration_Checks).
35465 * a-calend.adb: Minor reformatting
35467 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35469 * gigi.h (maybe_pad_type): New declaration.
35470 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
35472 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
35474 * cuintp.c: Convert to use buildN.
35476 * decl.c (maybe_pad_type): No longer static.
35477 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
35479 Convert to use buildN.
35481 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
35482 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
35483 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
35485 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
35486 (gnat_gimplify_expr, case ADDR_EXPR): New case.
35487 Convert to use buildN.
35489 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
35490 TREE_READONLY for const.
35491 Convert to use buildN.
35493 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
35494 (create_var_decl): Refine when TREE_STATIC is set.
35495 Convert to use buildN.
35497 2004-09-09 Gary Dismukes <dismukes@gnat.com>
35499 * gnat_ugn.texi: Delete text relating to checking of ali and object
35502 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
35505 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
35507 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
35508 pragmas recognized by GNAT.
35510 * gnat_rm.texi: Document pragma Detect_Blocking.
35512 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
35513 raise Program_Error if called from a protected operation.
35515 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
35516 the protected action nesting level.
35517 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
35518 protected action nesting level.
35519 (Unlock): When pragma Detect_Blocking is active decrease the protected
35520 action nesting level.
35522 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
35523 Protected_Action_Nesting.
35525 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
35526 Common_ATCB record. It contains the dynamic level of protected action
35527 nesting for each task. It is needed for checking whether potentially
35528 blocking operations are called from protected operations.
35529 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
35530 Detect_Blocking is active or not in the partition.
35532 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
35533 raise Program_Error if called from a protected operation.
35534 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
35535 Program_Error if called from a protected operation.
35536 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
35537 Program_Error if called from a protected operation.
35539 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
35540 raise Program_Error if called from a protected operation.
35542 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
35543 raise Program_Error if called from a protected operation, and increase
35544 the protected action nesting level.
35545 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
35546 Program_Error if called from a protected operation, and increase the
35547 protected action nesting level.
35548 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
35549 protected action nesting level.
35551 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
35552 raise Program_Error if called from a protected operation, and increase
35553 the protected action nesting level.
35554 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
35555 Program_Error if called from a protected operation, and increase the
35556 protected action nesting level.
35557 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
35558 raise Program_Error if called from a protected operation.
35559 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
35560 active, raise Program_Error if called from a protected operation.
35561 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
35562 protected action nesting level.
35564 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
35565 insertion of the statement raising Program_Error. The run time
35566 contains the required machinery for handling that.
35568 * sem_util.ads: Change comment associated to procedure
35569 Check_Potentially_Blocking_Operation.
35570 This procedure does not insert a call for raising the exception because
35571 that is currently done by the run time.
35573 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
35575 * init.c: Add the global variable __gl_detect_blocking that indicates
35576 whether pragma Detect_Blocking is active (1) or not (0). Needed for
35577 making the pragma available at run time.
35578 (__gnat_set_globals): Pass and update the detect_blocking parameter.
35580 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
35581 pragma Detect_Blocking is active.
35583 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
35585 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
35586 DB is found in the ali file. Any unit compiled with pragma
35587 Detect_Blocking active forces its effect in the whole partition.
35589 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
35590 Detect_Blocking is active and delay is called from a protected
35593 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
35594 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
35595 Detect_Blocking is active (0 otherwise).
35596 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
35597 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
35600 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
35602 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
35603 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
35606 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
35607 (Register_Receiving_Stub): Add Subp_Info formal parameter.
35608 Update API in placeholder implemetation of s-parint to reflect changes
35609 in distribution runtime library.
35611 * sem_ch3.adb (Expand_Derived_Record): Rename to
35612 Expand_Record_Extension.
35614 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
35615 primitive operations of potentially distributed object types that have
35616 non-controlling anonymous access formals.
35618 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
35620 New implementation of expansion for remote access-to-subprogram types,
35621 based on the RACW infrastructure.
35622 This version of sem_dist is compatible with PolyORB/DSA as well as
35625 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
35626 Asynchrronous that applies to a remote access-to-subprogram type, mark
35627 the underlying RACW type as asynchronous.
35629 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
35630 __gnat_using_gnu_linker to 1.
35632 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
35633 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
35634 GNAT.Perfect_Hash_Generators, and remove the empty
35635 GNAT.Perfect_Hash package.
35637 * atree.adb: Minor reformatting
35639 * exp_ch3.adb (Expand_Derived_Record): Rename to
35640 Expand_Record_Extension.
35641 (Build_Record_Init_Proc.Build_Assignment): The default expression in
35642 a component declaration must remain attached at that point in the
35643 tree so New_Copy_Tree copies it if the enclosing record type is derived.
35644 It is therefore necessary to take a copy of the expression when building
35645 the corresponding assignment statement in the init proc.
35646 As a side effect, in the case of a derived record type, we now see the
35647 original expression, without any rewriting that could have occurred
35648 during expansion of the ancestor type's init proc, and we do not need
35649 to go back to Original_Node.
35651 * exp_ch3.ads (Expand_Derived_Record): Rename to
35652 Expand_Record_Extension.
35654 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
35655 Returns the RACW type used to implement a remote access-to-subprogram
35657 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
35658 New subprograms. Used to create a proxy tagged object for a remote
35659 subprogram. The proxy object is used as the designated object
35660 for RAS values on the same partition (unless All_Calls_Remote applies).
35661 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
35662 System.Partition_Interface.Get_Unique_Remote_Pointer.
35663 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
35664 Renamed from Add_RAS_*_Attribute.
35665 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
35667 New implementation of expansion for remote access-to-subprogram types,
35668 based on the RACW infrastructure.
35670 * exp_dist.ads (Copy_Specification): Update comment to note that this
35671 function can copy the specification from either a subprogram
35672 specification or an access-to-subprogram type definition.
35674 2004-09-09 Ed Schonberg <schonberg@gnat.com>
35676 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
35677 in an instance, between an explicit subprogram an one inherited from a
35678 type derived from an actual.
35680 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
35681 add a polling call if the subprogram is to be inlined by the back-end,
35682 to avoid repeated calls with multiple inlinings.
35684 * checks.adb (Apply_Alignment_Check): If the expression in the address
35685 clause is a call whose name is not a static entity (e.g. a dispatching
35686 call), treat as dynamic.
35688 2004-09-09 Robert Dewar <dewar@gnat.com>
35690 * g-trasym.ads: Minor reformatting
35692 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
35693 packed arrays, since unused bits are expected to be zero for a
35696 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
35698 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
35701 2004-09-09 Pascal Obry <obry@gnat.com>
35703 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
35704 enable map file generation. Add the right option to generate the map
35705 file if Map_File is set to True.
35707 * gnatdll.adb (Gen_Map_File): New variable.
35708 (Syntax): Add info about new -m (Map_File) option.
35709 (Parse_Command_Line): Add support for -m option.
35710 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
35711 Minor reformatting.
35713 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
35715 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
35716 new gnatdist implementation.
35717 Define a subpackage isolating the output routines specific to this
35720 2004-09-09 Joel Brobecker <brobecker@gnat.com>
35722 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
35724 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
35726 2004-09-09 Cyrille Comar <comar@act-europe.fr>
35728 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
35731 * opt.ads: Add Ada_Version_Runtime constant used to decide which
35732 version of the language is used to compile the run time.
35734 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
35736 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
35737 of variable length temporaries for function return now that the
35738 back-end and gigi support it.
35740 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35742 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
35744 * trans.c (struct stmt_group): Delete field GLOBAL.
35745 (gnat_init_stmt_group): Do not initialize it.
35746 (call_to_gnu): Use save_expr, not protect_multiple_eval.
35747 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
35748 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
35749 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
35750 (start_stmt_group): Likewise.
35751 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
35753 * utils2.c (ggc.h): Include.
35754 (build_call_raise): Call build_int_cst, not build_int_2.
35756 * utils.c (gnat_init_decl_processing): Fix arg to
35757 build_common_tree_nodes.
35758 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
35759 (gnat_define_builtin): Set built_in_decls.
35760 (init_gigi_decls): Call build_int_cst, not build_int_2.
35762 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
35763 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
35764 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
35765 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
35766 SET_TYPE_MODULE): Use them.
35767 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
35768 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
35769 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
35770 SET_TYPE_ADA_SIZE): Likewise.
35771 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
35772 (DECL_CONST_CORRESPONDING_VAR,
35773 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
35774 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
35775 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
35776 (TYPE_RM_SIZE_NUM): New macro.
35777 (TYPE_RM_SIZE): Modified to use above.
35779 * cuintp.c: (build_cst_from_int): New function.
35780 (UI_To_gnu): Use it.
35782 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
35783 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
35784 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
35785 MIN_EXPR for the size, copy it into new.
35787 2004-09-01 Robert Dewar <dewar@gnat.com>
35789 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
35790 packed indexed component where array is an IN OUT formal. This
35791 generated garbage code previously.
35793 * gnat_ugn.texi: Document -fverbose-asm
35795 * gnat-style.texi: Minor updates (note that boolean constants and
35796 variables are joined with AND/OR rather than short circuit forms).
35798 2004-09-01 Ed Schonberg <schonberg@gnat.com>
35800 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
35801 it is an upward conversion of an untagged type with no representation
35804 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
35806 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
35807 System.Partition_Interface.
35809 * checks.adb (Apply_Access_Checks): Do not generate checks when
35810 expander is not active (but check for unset reference to prefix of
35813 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
35814 pragma Debug as an if statement with a constant condition, for
35815 consistent treatment of entity references contained within the
35816 enclosed procedure call.
35818 2004-09-01 Vincent Celier <celier@gnat.com>
35820 * bindgen.adb: (Set_EA_Last): New procedure
35821 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
35823 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
35824 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
35825 linked without errors.
35826 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
35828 (Gen_Exception_Table_C): Correct same bugs
35830 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
35832 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
35833 on Windows, make sure that the drive letter is in upper case.
35835 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
35836 Windows, when the drive letter is added and Case_Sensitive is True, the
35837 drive letter is forced to upper case.
35839 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
35840 to Options_2 for the call to MLib.Utl.Gcc.
35842 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
35843 directory separator when defining BASE_DIR.
35845 2004-09-01 Pascal Obry <obry@gnat.com>
35847 * gprcmd.adb (Extend): Do not output trailing directory separator. This
35848 is not needed and it confuses Windows GNU/make which does not report
35849 directory terminated by a slash as a directory.
35850 (gprcmd): Idem for "pwd" internal command.
35852 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
35853 target names rewrite to fix regressions with recent version of
35854 GNU/make. Starting with GNU/make 3.80 the pipe character was not
35855 handled properly anymore.
35857 2004-09-01 Andreas Schwab <schwab@suse.de>
35859 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
35860 * raise.c [!IN_RTS]: Undef abort.
35862 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
35864 * utils2.c (build_allocator): Use ssize_int.
35866 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
35868 2004-08-27 Andreas Schwab <schwab@suse.de>
35870 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
35872 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
35873 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35875 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
35877 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
35879 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
35880 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
35881 * utils.c (init_gigi_decls): Likewise.
35882 * utils2.c (build_call_raise, build_allocator): Likewise.
35884 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
35886 * utils.c (gnat_init_decl_processing): Adjust
35887 build_common_tree_nodes call.
35889 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
35891 * utils2.c (build_allocator): Use build_int_cst for negative
35894 2004-08-18 Richard Henderson <rth@redhat.com>
35896 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
35898 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
35900 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
35902 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
35903 (gnat_to_gnu): Likewise.
35905 2004-08-16 Pascal Obry <obry@gnat.com>
35907 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
35908 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
35909 option and not mdll anymore. Update comment.
35911 2004-08-16 Pascal Obry <obry@gnat.com>
35913 * bld.adb (Put_Include_Project): Properly handle directory separators
35916 2004-08-16 Ed Schonberg <schonberg@gnat.com>
35918 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
35919 decreasing the number of allocated junk nodes while searching for the
35920 appropriate subprogram.
35922 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
35924 * cuintp.c (UI_To_gnu): Use build_int_cst..
35925 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
35926 * utils.c (init_gigi_decls): Likewise.
35927 * utils2.c (build_call_raise): Likewise.
35929 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
35931 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
35932 for a global aliased object with a variable size and an unconstrained
35933 nominal subtype, pretend there is no initializer if the one we have is
35934 incomplete, and avoid referencing an inexistant component in there. The
35935 part we have will be rebuilt anyway and the reference may confuse
35936 further operations.
35938 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
35940 * einfo.ads: Minor reformatting
35942 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
35943 restrictions in the ALI if we only want to warn about violations.
35945 2004-08-13 Vincent Celier <celier@gnat.com>
35947 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
35948 when creating a new Unit_Record in table Units.
35950 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
35951 that are violated, if any.
35953 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
35954 add directory separator if path already ends with a directory separator.
35956 2004-08-13 Ed Schonberg <schonberg@gnat.com>
35958 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
35959 unit, this is an attempt to inline a construct that is not available in
35960 the current restricted mode, so abort rather than trying to continue.
35962 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
35963 discriminants that rename those of the parent, recover names of
35964 original discriminants for the constraint on the full view of the
35966 (Complete_Private_Subtype): Do not create a subtype declaration if the
35967 subtype is an itype.
35969 * gnat_rm.texi: Added section on implementation of discriminated
35970 records with default values for discriminants.
35972 2004-08-13 Ed Schonberg <schonberg@gnat.com>
35975 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
35976 the second operand is overloaded.
35978 2004-08-10 Richard Henderson <rth@redhat.com>
35980 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
35981 add __builtin_alloca.
35983 2004-08-10 Richard Henderson <rth@redhat.com>
35985 * config-lang.in (boot_language): Yes.
35987 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
35989 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
35990 from complaining on potential uninitialized reference.
35991 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
35992 new specification and test explicitly for non-zero return value.
35994 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
35995 returning C.int, to avoid using a derived boolean type.
35997 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
35998 Duplicate_Subexpr_No_Checks in preference to direct use of
35999 Remove_Side_Effects and New_Copy_Tree.
36000 Clear Comes_From_Source on prefix of 'Size attribute reference.
36002 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
36003 g-socthi-vxworks.adb: Change calls to
36004 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
36005 and test explicitly for non-zero return value.
36007 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
36008 (Is_Socket_In_Set): Declare imported function as returning C.int, to
36009 avoid using a derived boolean type.
36011 2004-08-09 Albert Lee <lee@gnat.com>
36013 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
36015 2004-08-09 Pascal Obry <obry@gnat.com>
36017 * gnat_ugn.texi: Document new way to build DLLs on Windows using
36018 GCC's -shared option.
36020 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
36021 Options_2 parameter (options put after object files).
36023 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
36025 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
36026 ignore overflows on low and high bounds of an index to also account for
36027 differences in signedness between sizetype and gnu_index_subtype.
36028 These are as legitimate as the ones caused by a lower TYPE_PRECISION
36031 2004-08-09 Robert Dewar <dewar@gnat.com>
36033 * s-solita.ads, s-solita.adb: Minor reformatting
36035 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
36036 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
36037 obsolescent section
36038 Add note that No_Implicit_Conditionals does not suppress
36039 run time constraint checks.
36041 * vms_conv.ads: Minor reformatting
36043 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
36044 and necessary for following change).
36045 (Mark): Return new format Mark_Id containing sec stack address
36046 (Release): Use sec stack address from Mark_Id avoiding Self call
36048 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
36049 pointer (cleanup and necessary for following change).
36050 Define Mark_Id as record containing address of secondary stack, that way
36051 Release does not need to find the stack again, decreasing the number of
36052 calls to Self and improving efficiency.
36054 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
36056 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
36057 case variable into the individual case branches when possible.
36059 * sem_ch11.adb: Minor reformatting
36061 * prj.ads: Correct spelling of suffixs
36063 * prj-nmsc.adb: Minor reformatting
36064 Correct spelling suffixs throughout (also in identifiers)
36066 * freeze.adb: Minor spelling correction
36068 * exp_ch2.adb: Cleanups to handling of Current_Value
36069 (no functional effect).
36071 * bld.adb: Correct spelling of suffixs
36073 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
36075 2004-08-09 Ed Schonberg <schonberg@gnat.com>
36078 * sem_ch7.adb (Install_Private_Declarations): In the body of the
36079 package or of a child, private entities are both immediately_visible
36082 2004-08-09 Ed Schonberg <schonberg@gnat.com>
36084 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
36085 there are no range checks on the value of the literal.
36087 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
36088 wrapped is the triggering alternative of an asynchronous select, action
36089 statements mustbe inserted before the select itself.
36091 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
36092 case where the prefix is a protected function call.
36093 (Resolve_Attribute, case 'Access): The attribute reference on a
36094 subprogram is legal in a generic body if the subprogram is declared
36097 2004-08-09 Vincent Celier <celier@gnat.com>
36099 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
36100 languages, otherwise building the library may fail with unresolved
36102 (Compile_Sources): Do not build libraries if -c switch is used
36104 * gnatlink.adb (Process_Args): New switches -M and -Mmap
36105 (Write_Usage): If map file creation is supported, output new switches
36107 (Gnatlink): When -M is specified, add the necessary switch(es) to the
36108 gcc call, when supported.
36110 * Makefile.in: Added indepsw.o to the object list for gnatlink
36111 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
36113 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
36114 indepsw.adb, indepsw.ads: New files.
36116 2004-08-09 Bernard Banner <banner@gnat.com>
36118 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
36120 * Makefile.in: add section for vxworks x86
36122 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
36124 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
36125 per-object constrained components where the discriminant is of an
36127 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
36128 the parent initialization procedure for derived Unchecked_Unions.
36129 Instead, derived Unchecked_Unions build their own initialization
36131 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
36132 Check the body of the subprogram for details.
36133 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
36134 functions for derived Unchecked_Union types by introducing a condition.
36135 Allow the creation of TSS equality functions for Unchecked_Unions.
36136 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
36137 Add formal parameter Discr to function signature. Discr is used to
36138 control the generated case statement for Unchecked_Union types.
36139 (Make_Eq_If): Rename formal parameter Node to E in function signature.
36141 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
36143 Check the body of the subprogram for details.
36144 (Expand_Composite_Equality): Augment composite type equality to include
36145 correct handling of Unchecked_Union components.
36146 (Expand_N_In): Add condition to detect illegal membership tests when the
36147 subtype mark is a constrained Unchecked_Union and the expression lacks
36148 inferable discriminants, and build a Raise_Program_Error node.
36149 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
36150 to detect types that contain components of unconstrained Unchecked_Union
36151 subtype. Add condition to detect equality between types that have an
36152 unconstrained Unchecked_Union component, and build a Raise_Program_Error
36153 node. Add condition to detect equality between Unchecked_Union types
36154 that lack inferable discriminants, and build a Raise_Program_Error node.
36155 Otherwise build a TSS equality function call.
36156 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
36157 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
36158 with the operand lacking inferable discriminants, and build a Raise_
36159 Program_Error node.
36160 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
36161 composite equality.
36162 (Has_Inferable_Discriminants): Implement new predicate for objects and
36163 expressions of Unchecked_Union type. Check the body of subprogram for
36165 (Has_Unconstrained_UU_Components): Add function
36166 Component_Is_Unconstrained_UU. It is used to detect whether a single
36167 component is of an unconstrained Unchecked_Union subtype. Add function
36168 Variant_Is_Unconstrained_UU. It is used to detect whether a single
36169 component inside a variant is of an unconstrained Unchecked_Union type.
36171 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
36172 inferred discriminant values. Add condition to generate a case
36173 statement with an inferred discriminant as the switch.
36174 (Make_Component_List_Assign): Introduce a Boolean flag that determines
36175 the behaviour of the subprogram in the presence of an Unchecked_Union.
36176 Add condition to trigger the usage of the inferred discriminant value
36177 as the generated case statement switch.
36178 (Make_Field_Assign): Introduce a Boolean flag that determines the
36179 behaviour of the subprogram in the presence of an Unchecked_Union. Add
36180 condition to trigger the usage of the inferred discriminant value as
36181 the right-hand side of the generated assignment.
36183 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
36184 parameter generation when dealing with Unchecked_Unions.
36186 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
36187 checks for Unchecked_Unions.
36189 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
36191 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
36192 Raise_Program_Error nodes for the execution of Read and Write
36193 attributes of Unchecked_Union types and the execution of Input and
36194 Output attributes of Unchecked_Union types that lack default
36195 discriminant values.
36197 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
36198 Unchecked_Union. Add procedure Check_Component. It is used to inspect
36199 per-object constrained components of Unchecked_Unions for being
36200 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
36201 check individual components withing a variant.
36203 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
36204 comparison of Unchecked_Unions.
36205 (Resolve_Equality_OP): Remove guard that prevents equality between
36208 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
36209 of component subtypes for Unchecked_Union components.
36210 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
36211 since it is the actual subtype.
36213 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
36214 pass of Unchecked_Union subtypes as generic actuals to formal types
36215 that lack known_discriminant_parts or that are derived Unchecked_Union
36216 types, and do nothing. In any other case, produce an error message.
36218 * sem_ch3.adb (Analyze_Component_Declaration): Add function
36219 Contains_POC. It determines whether a constraint uses the discriminant
36220 of an enclosing record type.
36221 Add condition to detect per-object constrained component and set the
36223 (Derived_Type_Declaration): Remove guard that prevents derivation from
36224 Unchecked_Union types.
36225 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
36228 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
36229 references to Unchecked_Union discriminants.
36231 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
36232 formal generation when dealing with Unchecked_Unions.
36233 (Set_Actual_Subtypes): Add condition to prevent generation of actual
36234 subtypes for Unchecked_Unions.
36236 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
36237 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
36238 completions of discriminated partial views by Unchecked_Unions and
36239 produce an error message.
36241 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36243 * trans.c (struct stmt_group): New field, GLOBAL.
36244 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
36245 (struct elab_info): New struct.
36246 (elab_info_list, gnu_elab_proc_stack): New variables.
36247 (Compilation_Unit_to_gnu): New procedure.
36248 (gigi): Call it and also handle elaboration procs we've saved.
36249 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
36250 global field from parent.
36251 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
36252 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
36253 (start_stmt_group): Initialize global field from parent.
36254 (add_decl_expr): Set to global for current statement group.
36255 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
36258 * utils.c (global_bindings_p): True when no current_function_decl; no
36259 longer check current_binding_level.
36261 2004-08-09 Ben Brosgol <brosgol@gnat.com>
36263 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
36266 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
36268 2004-08-06 Andreas Schwab <schwab@suse.de>
36270 * utils.c (gnat_define_builtin): Remove second parameter of
36272 (begin_subprog_body): Likewise.
36274 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
36276 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
36277 optimization, not supported by the tree-ssa back-end.
36279 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
36281 * s-mastop-irix.adb: Update comments.
36283 * a-except.adb (Exception_Information): Raise Constraint_Error if
36284 exception Id is Null_Id.
36285 This is required behavior, which is more reliably and clearly checked
36286 at the top level interface level.
36288 2004-07-26 Javier Miranda <miranda@gnat.com>
36290 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
36291 call if a component has no default_expression and the box is used.
36293 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
36294 default_expression and you use box, it behaves as if you had declared a
36295 stand-alone object.
36296 (Resolve_Record_Aggregate): If a component has no default_expression and
36297 you use box, it behaves as if you had declared a stand-alone object.
36299 * sem_ch10.adb (Install_Siblings): Do not make visible the private
36300 entities of private-with siblings.
36302 2004-07-26 Ed Schonberg <schonberg@gnat.com>
36304 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
36305 for a component of an itype, set the parent pointer for analysis,
36306 there is no list in which to insert it.
36308 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
36309 bona-fide renamings, not for inherited operations.
36311 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
36312 actual for a formal that is an access parameter, create local
36313 finalization list even if the expression is not an aggregate.
36315 2004-07-26 Ed Schonberg <schonberg@gnat.com>
36318 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
36319 Diagnose properly illegal subprogram renamings that are library units.
36321 2004-07-26 Ed Schonberg <schonberg@gnat.com>
36324 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
36325 conversion rewritten as an unchecked conversion, check that original
36326 expression is a variable.
36328 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
36329 unchecked_conversion, create new node rather than rewriting in place,
36330 to preserve original construct.
36332 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36334 * gigi.h (gnat_expand_body): Deleted.
36336 * Make-lang.in: (trans.o): Depends on function.h.
36338 * misc.c: (gnat_expand_body): Moved to here.
36340 * trans.c (gnat_expand_body_1): Deleted.
36341 (gnat_expand_body): Moved from here.
36342 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
36343 (add_stmt): Check for marked visited with global_bindings_p.
36344 (gnat_gimplify_expr, case COMPONENT_REF): New case.
36345 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
36347 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
36348 VIEW_CONVERT_EXPR if not operation type.
36350 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
36353 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
36354 changes: reformatting of negation operators, removing unneeded
36355 inequality comparison with zero, converting equality comparisons with
36356 zero to negations, changing int/0/1 to bool/false/true, replace calls
36357 to gigi_abort with abort, and various other similar changes.
36359 2004-07-26 Vincent Celier <celier@gnat.com>
36361 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
36364 * make.adb (Gnatmake): Fail when a library is not present and there is
36365 no object directory.
36367 * mlib-prj.adb (Check_Library): No need to check if the library needs
36368 to be rebuilt if there is no object directory, hence no object files
36369 to build the library.
36371 * opt.ads (Setup_Projects): New Boolean flag.
36373 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
36375 Create directory when Kind /= "" and in "gnat setup". Report error if
36376 directory cannot be created.
36377 (Ada_Check): Create library interface copy dir if it does not exist
36378 and we are in "gnat setup".
36379 (Find_Sources): No error if in "gnat setup" and no Ada sources were
36381 (Language_Independent_Check): Create object directory, exec directory
36382 and/or library directory if they do not exist and we are in
36385 * vms_conv.ads: (Command_Type): New command Setup.
36387 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
36389 * vms_data.ads: Add qualifiers/switches for new built-in command
36392 2004-07-25 Richard Henderson <rth@redhat.com>
36394 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
36395 DECL_IGNORED_P on RESULT_DECL.
36397 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
36399 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
36400 allocation and potentially overflowing update with
36401 Tailored_Exception_Information. Use the sec-stack free procedural
36402 interface to output Exception_Information instead.
36404 * a-except.adb (To_Stderr): New subprogram for character, and string
36405 version moved from a-exextr to be visible from other separate units.
36406 (Tailored_Exception_Information): Remove the procedural version,
36407 previously used by the default Last_Chance_Handler and not any more.
36408 Adjust various comments.
36410 * a-exexda.adb: Generalize the exception information procedural
36411 interface, to minimize the use of secondary stack and the need for
36412 local buffers when the info is to be output to stderr:
36413 (Address_Image): Removed.
36414 (Append_Info_Character): New subprogram, checking for overflows and
36415 outputing to stderr if buffer to fill is of length 0.
36416 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
36417 (Append_Info_Address, Append_Info_Exception_Name,
36418 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
36419 Append_Info_Basic_Exception_Traceback,
36420 Append_Info_Exception_Information): New subprograms.
36421 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
36422 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
36423 Exception_Info_Maxlength, Exception_Name_Length,
36424 Exception_Message_Length): New subprograms.
36425 (Exception_Information): Use Append_Info_Exception_Information.
36426 (Tailored_Exception_Information): Use
36427 Append_Info_Basic_Exception_Information.
36428 Export services for the default Last_Chance_Handler.
36430 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
36431 other separate units.
36433 2004-07-20 Vincent Celier <celier@gnat.com>
36435 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
36437 2004-07-20 Ed Schonberg <schonberg@gnat.com>
36439 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
36440 emit itype references for the designated types of component types that
36441 are declared outside of the full record declaration, and that may
36442 denote a partial view of that record type.
36444 2004-07-20 Ed Schonberg <schonberg@gnat.com>
36447 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
36448 which is the designated type in an access component declaration, to the
36449 list of incomplete dependents of the parent type, to avoid elaboration
36450 issues with out-of-scope subtypes.
36451 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
36452 full view of the parent.
36454 2004-07-20 Ed Schonberg <schonberg@gnat.com>
36457 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
36458 entities that are hidden, such as references to generic actuals
36459 outside an instance.
36461 2004-07-20 Javier Miranda <miranda@gnat.com>
36463 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
36464 support to the new notation.
36465 (Analyze_Selected_Component): Add call to Try_Object_Operation.
36467 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
36469 * s-taprob.adb: Adding the elaboration code required for initializing
36470 the tasking soft links that are common to the full and the restricted
36473 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
36474 restricted run time has been moved to the package
36475 System.Soft_Links.Tasking.
36477 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
36478 restricted run time has been moved to the package
36479 System.Soft_Links.Tasking.
36481 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
36483 * s-solita.ads, s-solita.adb: New files.
36485 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36487 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
36488 Case_Statement_to_gnu): Split off from gnat_to_gnu.
36489 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
36490 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
36491 Exception_Handler_to_gnu_zcx): Likewise.
36493 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
36495 * gigi.h (builtin_function): Declare.
36497 2004-07-15 Robert Dewar <dewar@gnat.com>
36499 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
36502 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
36503 access values as an example of a warning.
36505 * gnat_rm.texi: Document new attribute Has_Access_Values
36507 * gnat-style.texi: Document that box comments belong on nested
36510 * sem_util.ads (Has_Access_Values): Improved documentation
36512 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
36514 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
36515 (Process_Interface_Name): Call to this new procedure
36516 (Set_Extended_Import_Export_External_Name): Call to this new procedure
36518 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
36520 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
36522 * einfo.ads: Minor comment typo fixed
36524 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
36526 * snames.adb: Add _atcb.
36528 * snames.ads: Add Name_uATCB.
36530 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
36531 (in the expanded code) when using the restricted run time.
36533 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
36534 a in parameter in order to allow ATCBs to be preallocated (in the
36537 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
36538 order to allow ATCBs to be preallocated. In case of error, the ATCB is
36539 deallocated in System.Tasking.Stages.
36541 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
36542 order to allow ATCBs to be preallocated.
36544 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
36545 here. It was previously done in Initialize_ATCB.
36547 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
36549 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
36550 Restricted run time.
36552 * exp_ch3.adb: When using the Restricted run time, pass the
36553 preallocated Ada_Task_Control_Block when creating a task.
36555 2004-07-15 Ed Schonberg <schonberg@gnat.com>
36557 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
36558 function call that is itself an actual in an enclosing call, diagnose
36559 problem here rather than assuming that resolution will catch it.
36561 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
36562 the local copy of a generic unit for a formal package, and the generic
36563 is a child unit, install private part of ancestors before compiling
36564 private part of spec.
36566 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
36567 use scope entities rather than tree structures, to handle properly
36568 parent units that are instances rewritten as bodies for inlining
36571 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
36572 Remove_Parents): Handle properly a parent unit that is an
36573 instantiation, when the unit has been rewritten as a body for inlining
36576 * par.adb (Goto_List): Global variable to collect goto statements in a
36577 given unit, for use in detecting natural loops.
36579 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
36580 use in detecting natural loops.
36582 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
36583 backwards goto's, and rewrite as a infinite loop, to improve locality
36586 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
36587 subcomponent that includes an indexed reference, to prevent the
36588 generation of copies that would miscompile the desired assignment
36590 (Build_Task_Image_Decls): Add a numeric suffix to
36591 generated name for string variable, to avoid spurious conflicts with
36592 the name of the type of a single protected object.
36594 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
36595 loop with an explicit exit statement, to avoid generating an
36596 out-of-range value with 'Succ leading to spurious constraint_errors
36597 when compiling with -gnatVo.
36599 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
36601 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
36602 might not be analyzed yet, even if its Etype is already set (case of an
36603 unchecked conversion built using Unchecked_Convert_To, for example).
36604 If the prefix has already been analyzed, this will be a nop anyway.
36606 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
36607 controller type, or an assignment of a record type with controlled
36608 components, copy only user data, and leave the finalization chain
36609 pointers untouched.
36611 2004-07-15 Vincent Celier <celier@gnat.com>
36613 * make.adb (Collect_Arguments): Improve error message when attempting
36614 to compile a source not part of any project, when -x is not used.
36616 * prj.ads: (Defined_Variable_Kind): New subtype
36618 * prj-attr.adb (Register_New_Package): Two new procedures to register
36619 a package with or without its attributes.
36620 (Register_New_Attribute): Mew procedure to register a new attribute in a
36622 New attribute oriented subprograms: Attribute_Node_Id_Of,
36623 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
36624 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
36626 New package oriented subprograms: Package_Node_Id_Of,
36627 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
36629 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
36631 (Package_Node_Id): Now a private, self initialized type
36632 (Register_New_Package): New procedure to register a package with its
36634 New attribute oriented subprograms: Attribute_Node_Id_Of,
36635 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
36636 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
36638 New package oriented subprograms: Package_Node_Id_Of,
36639 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
36641 * prj-dect.adb (Parse_Attribute_Declaration,
36642 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
36644 * prj-makr.adb (Make): Parse existing project file before creating
36645 other files. Fail if there was an error during parsing.
36647 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
36648 new spec of Prj.Attr.
36650 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
36651 to new spec of Prj.Attr.
36653 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36655 * utils2.c: Fix typo in comment.
36657 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36659 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
36660 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
36662 2004-07-14 Andreas Schwab <schwab@suse.de>
36664 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
36666 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36668 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
36670 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
36673 * misc.c (gnat_types_compatible_p): New function.
36674 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
36675 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
36677 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
36678 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
36679 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
36680 (mark_visited): Don't mark dummy type.
36681 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
36682 parameter, we must remove any LJM building from GNU_NAME.
36683 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
36684 (pos_to_constructor): Use int_const_binop.
36685 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
36688 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
36689 (gnat_pushlevel): Set TREE_USE on BLOCK node.
36690 (gnat_install_builtins): Add __builtin_memset.
36692 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
36694 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
36695 for a renaming, stabilize the initialization expression if we are at a
36696 local level. At the local level, uses of the renaming may be performed
36697 by a direct dereference of the initializing expression, and we don't
36698 want possible variables there to be evaluated for every use.
36700 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
36701 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
36702 them on the way. Account for the fact that we may introduce side
36703 effects in the process.
36705 2004-07-13 Richard Henderson <rth@redhat.com>
36707 * misc.c (default_pass_by_ref): Use pass_by_reference.
36709 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
36711 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
36712 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
36714 2004-07-08 Richard Henderson <rth@redhat.com>
36716 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
36719 2004-07-06 Vincent Celier <celier@gnat.com>
36721 * vms_conv.ads: Minor reformatting.
36722 Alphabetical order for enumerated values of type Command_Type, to have
36723 the command in alphabetical order for the usage.
36725 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
36726 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
36728 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
36730 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
36731 (Add_Archive_Path): Only add the global archive if there is one.
36732 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
36733 or not any object file to put in the global archive, and don't build
36734 a global archive if there is none.
36735 (X_Switches): New table
36736 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
36737 in the X_Switches table, if any.
36738 (Initialize): Make sure the X_Switches table is empty
36739 (Scan_Arg): Record -X switches in table X_Switches
36741 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
36743 * make.adb: Minor comment fix
36745 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
36746 invoked with directory information, add the directory in front of the
36749 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
36750 invoked with directory information, add the directory in front of the
36753 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
36754 when Keep_Temporary_Files is False.
36755 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
36756 directory information, add the directory in front of the path.
36757 When not on VMS, handle new switch -dn before the command to set
36758 Keep_Temporary_Files to True.
36759 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
36762 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
36763 invoked with directory information, add the directory in front of the
36766 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
36768 * snames.ads, snames.adb (Name_Stub): New name for the distributed
36771 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
36772 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
36774 * g-socket.adb (To_Timeval): Fix incorrect conversion of
36775 Selector_Duration to Timeval for the case of 0.0.
36777 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
36778 documentation from Evolve_And_Then.
36780 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
36782 * s-taprop-tru64.adb, s-taprop-os2.adb,
36783 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
36785 2004-07-06 Robert Dewar <dewar@gnat.com>
36787 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
36788 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
36789 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
36790 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
36791 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
36792 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
36793 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
36794 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
36795 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
36796 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
36797 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
36798 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
36799 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
36800 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
36801 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
36802 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
36803 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
36804 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
36805 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
36806 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
36807 vms_data.ads: Minor reformatting,
36808 Fix bad box comment format.
36810 * gnat_rm.texi: Fix minor grammatical error
36812 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
36814 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
36815 more cases of discriminated records to be recognized as not needing a
36817 (Has_Access_Values): New function.
36819 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
36821 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
36822 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
36823 with LRM terminology).
36824 Change terminology in comments primitive type => elementary type.
36826 2004-07-06 Ed Schonberg <schonberg@gnat.com>
36829 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
36830 parameters do not impose any requirements on the presence of a body.
36832 2004-07-06 Ed Schonberg <schonberg@gnat.com>
36835 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
36836 compilation unit and is in an open scope at the point of instantiation,
36837 assume that a body may be present later.
36839 2004-07-06 Ed Schonberg <schonberg@gnat.com>
36841 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
36842 Improve error message when specified size is not supported.
36844 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
36845 is never a primitive operation.
36847 2004-07-05 Andreas Schwab <schwab@suse.de>
36849 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
36850 RECORD_OR_UNION_CHECK.
36851 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
36853 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
36855 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
36856 dependency on xgnatugn, instead build it via a submake.
36857 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
36859 2004-07-04 Richard Henderson <rth@redhat.com>
36861 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
36863 2004-07-01 Richard Henderson <rth@redhat.com>
36865 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
36866 * utils.c (max_size): Likewise.
36868 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36870 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
36871 and rest_of_type_compilation; add arg to create_*_decl.
36872 (annotate_decl_with_node): Deleted.
36873 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
36874 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
36875 (get_current_block_context, gnat_pushdecl): New declarations.
36876 (gnat_init_stmt_group): Likewise.
36877 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
36878 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
36879 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
36880 (gnat_init): Call gnat_init_stmt_group.
36881 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
36882 (gnu_pending_elaboration_list): Deleted.
36883 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
36884 (gigi): Rearrange initialization calls and move some to last above.
36885 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
36886 Delete calls to add_decl_expr; add arg to create_*_decl.
36887 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
36888 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
36889 begin_subprog_body and call it.
36890 Don't push and pop ggc context.
36891 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
36892 (add_stmt): Remove handling of DECL_EXPR from here.
36893 If not in function, mark visited.
36894 (add_decl_expr): Put global at top level.
36895 Check for cases of DECL_INITIAL we have to handle here.
36896 (process_type): Add extra arg to create_type_decl.
36897 (build_unit_elab): Rework to just gimplify.
36898 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
36899 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
36900 (get_pending_elaborations, pending_elaborations_p): Likewise.
36901 (push_pending_elaborations, pop_pending_elaborations): Likewise.
36902 (get_elaboration_location, insert_elaboration_list): Likewise.
36903 (gnat_binding_level): Renamed from ada_binding_level.
36904 (init_gnat_to_gnu): Don't clear pending_elaborations.
36905 (global_bindings_p): Treat as global if no current_binding_level.
36906 (set_current_block_context): New function.
36907 (gnat_pushdecl): Renamed from pushdecl; major rework.
36908 All callers changed.
36909 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
36910 (finish_record_type): Call call pushdecl for stub decl.
36911 (function_nesting_depth): Deleted.
36912 (begin_subprog_body): Delete obsolete code.
36913 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
36915 2004-06-28 Robert Dewar <dewar@gnat.com>
36917 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
36918 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
36919 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
36920 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
36921 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
36923 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
36924 deal with problem of inefficient slices on machines with strict
36925 alignment, when the slice is a component of a composite.
36927 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
36928 machines, we need the check there as well.
36930 2004-06-28 Ed Schonberg <schonberg@gnat.com>
36932 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
36933 determine safe copying direction for overlapping slice assignments
36934 when component is controlled.
36936 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
36937 formal derived type in the actual for a formal package are visible in
36938 the enclosing instance.
36940 2004-06-28 Ed Schonberg <schonberg@gnat.com>
36943 * sem_util.adb (Trace_Components): Diagnose properly an illegal
36944 circularity involving a private type whose completion includes a
36945 self-referential component.
36946 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
36947 renaming or an instantiation from an implicit derived operation.
36949 2004-06-28 Pascal Obry <obry@gnat.com>
36951 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
36953 (Library_File_Name_For): Idem.
36955 2004-06-28 Matthew Gingell <gingell@gnat.com>
36957 * g-traceb.ads: Add explanatory note on the format of addresses
36958 expected by addr2line.
36960 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
36962 * Makefile.in: Force debugging information on s-tasdeb.adb,
36963 a-except.adb and s-assert.adb needed by the debugger.
36965 2004-06-28 Vincent Celier <celier@gnat.com>
36967 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
36971 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
36973 * prj.adb: Minor reformatting
36974 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
36976 * prj.ads: Comment updates
36978 (Project_Data): Change Flag1 to Need_To_Build_Lib.
36979 Remove Flag2: not used.
36981 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
36984 * gnat_ugn.texi: Put a "null;" declaration in one project file example
36986 * gnat_rm.texi: Document Empty declarations "null;".
36988 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
36989 front of the linker options.
36990 (Link_Foreign): Put the global archives and the libraries in front of
36991 the linker options.
36993 2004-06-28 Javier Miranda <miranda@gnat.com>
36995 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
36996 (RTU_Loaded): Code cleanup
36997 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
36998 withed predefined units.
37000 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
37001 explicitly withed predefined units.
37002 Fix typo in comment
37004 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
37005 explicitly withed predefined units.
37007 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37009 * ada-tree.def (DECL_STMT): Deleted.
37010 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
37011 (DECL_STMT_VAR): Deleted.
37012 * decl.c: add_decl_stmt now add_decl_expr.
37013 * gigi.h: Likewise.
37014 * trans.c: Likewise.
37015 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
37016 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
37017 (add_stmt): Only handle padded type here.
37018 (add_stmt_with_node): Allow gnat_node to not be present.
37019 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
37020 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
37021 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
37022 make a SAVE_EXPR for the entire fat pointer.
37023 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
37024 (create_index_type): Make a DECL_EXPR.
37025 (end_subprog_body): Don't call allocate_struct_function here but
37028 2004-06-25 Pascal Obry <obry@gnat.com>
37030 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
37031 Relocatable from Build_Dynamic_Library call.
37033 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
37034 Relocatable are now synonym.
37036 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
37038 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
37039 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
37042 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
37043 Lib_Address and Relocatable.
37044 (Default_DLL_Address): Removed.
37046 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
37047 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
37048 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
37049 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
37050 (Default_DLL_Address): Removed.
37052 * mlib-tgt-mingw.adb: Ditto.
37053 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
37055 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
37056 the initial thread stack size.
37058 * a-strmap.ads: Move package L to private part as it is not used in
37059 the spec. Found while reading code.
37061 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
37063 * tracebak.c: Introduce support for a GCC infrastructure based
37064 implementation of __gnat_backtrace.
37066 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
37067 any more. Use accessors instead. This eases maintenance and relaxes
37068 some alignment constraints.
37069 (_GNAT_Exception structure): Remove the Ada specific fields
37070 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
37072 (is_handled_by, __gnat_eh_personality): Replace component references to
37073 exception structure by use of the new accessors.
37075 * init.c (__gnat_initialize): Adjust comments to match the just
37076 reverted meaning of the -static link-time option.
37078 * adaint.c (convert_addresses): Arrange not to define a stub for
37079 mips-irix any more, as we now want to rely on a real version from a
37080 recent libaddr2line.
37082 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
37083 the personality routine can use them and not have to rely on a C
37084 counterpart of the record anymore. This simplifies maintenance and
37085 relaxes the constraint of having Standard'Maximum_Alignment match
37087 Update comments, and add a section on the common header alignment issue.
37089 2004-06-25 Geert Bosch <bosch@gnat.com>
37091 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
37092 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
37094 2004-06-25 Robert Dewar <dewar@gnat.com>
37096 * gnat_rm.texi: Fix section on component clauses to indicate that the
37097 restriction on byte boundary placement still applies for bit packed
37099 Add comment on stack usage from Initialize_Scalars
37101 * gnat_ugn.texi: Add documentation for -gnatyLnnn
37103 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
37104 limiting nesting level.
37106 * usage.adb: Add line for -gnatyLnnn switch
37108 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
37109 sem_ch13.adb, exp_aggr.adb: Minor reformatting
37111 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
37112 type as well as on the subtype. This corrects a problem in freeze in
37113 setting alignments of atomic types.
37115 * sem_eval.ads: Minor comment typo fixed
37117 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
37118 level. Minor reformatting.
37120 * fname.adb (Is_Predefined_File_Name): Require a letter after the
37121 minus sign. This means that file names like a--b.adb will not be
37122 considered predefined.
37124 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
37125 record Test new flag and give diagnostic for bad component clause.
37126 (Freeze_Entity): Set alignment of array from component alignment in
37127 cases where this is safe to do.
37129 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
37132 * cstand.adb: (Create_Standard): Set alignment of String to 1
37134 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
37136 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
37137 code in the common constrained array cases.
37139 * a-storio.adb: Change implementation to avoid possible alignment
37140 problems on machines requiring strict alignment (data should be moved
37141 as type Buffer, not type Elmt).
37143 * checks.adb (Apply_Array_Size_Check): Improve these checks by
37144 killing the overflow checks which we really do not need (64-bits is
37147 2004-06-25 Vincent Celier <celier@gnat.com>
37149 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
37150 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
37151 inconditionally for the main project.
37152 (Recursive_Add_Archives.Add_Archive_Path): New procedure
37153 (Link_Executables.Check_Time_Stamps): New procedure
37154 (Link_Executables.Link_Foreign): New procedure
37155 Changes made to reduce nesting level of this package
37156 (Check): New procedure
37157 (Add_Switches): When not in quiet output, check that a switch is not
37158 the concatenation of several valid switches. If it is, issue a warning.
37159 (Build_Global_Archive): If the global archive is rebuilt, linking need
37161 (Compile_Sources): Rebuilding a library archive does not imply
37162 rebuilding the global archive.
37163 (Build_Global_Archive): New procedure
37164 (Build_Library): New name for Build_Archive, now only for library
37166 (Check_Archive_Builder): New procedure
37167 (Create_Global_Archive_Dependency_File): New procedure
37168 (Gprmake): Call Build_Global_Archive before linking
37169 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
37171 (Scan_Arg): Display the Copyright notice when -v is used
37173 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
37176 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
37178 Add new GNAT LIST qualifier /FILES=
37179 Added qualifier /DIRECTORY= to GNAT METRIC
37180 Added qualifier /FILES= to GNAT METRIC
37181 Added qualifier /FILES to GNAT PRETTY
37183 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
37184 to take into account both versions of the switch.
37186 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
37187 always be the last switch to the gcc driver. Disable switch storing so
37188 that switches automatically added by the gcc driver are not put in the
37191 * prj.adb (Project_Empty): Take into account changes in components of
37194 * prj.ads (Languages_Processed): New enumaration value All_Languages.
37196 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
37197 used. Split Boolean component Ada_Sources_Present in two Boolean
37198 components Ada_Sources_Present and Other_Sources_Present.
37201 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
37202 instead of Sources_Present.
37203 (Set_Ada_Paths.Add.Recursive_Add): Ditto
37205 * prj-nmsc.adb: Minor reformatting
37206 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
37207 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
37208 Check_Ada_Naming_Scheme.
37209 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
37212 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
37214 Make sure that all cycles where there is at least one "limited with"
37216 (Parse_Single_Project): New Boolean parameter In_Limited
37218 * prj-proc.adb (Recursive_Check): When Process_Languages is
37219 All_Languages, call first Prj.Nmsc.Ada_Check, then
37220 Prj.Nmsc.Other_Languages_Check.
37222 * prj-proc.adb (Process): Use Ada_Sources_Present or
37223 Other_Sources_Present (instead of Sources_Present) depending on
37226 * lang-specs.h: Keep -g and -m switches in the same order, and as the
37229 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
37230 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
37232 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
37235 * lib.ads (Disable_Switch_Storing): New procedure.
37237 * make.adb: Modifications to reduce nesting level of this package.
37238 (Check_Standard_Library): New procedure
37239 (Gnatmake.Check_Mains): New procedure
37240 (Gnatmake.Create_Binder_Mapping_File): New procedure
37241 (Compile_Sources.Compile): Add switch -gnatez as the last option
37242 (Display): Never display -gnatez
37244 * Makefile.generic:
37245 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
37247 * gnatcmd.adb (Check_Project): New function
37248 (Process_Link): New procedure to reduce nesting depth
37249 (Check_Files): New procedure to reduce the nesting depth.
37250 For GNAT METRIC, include the inherited sources in extending projects.
37251 (GNATCmd): When GNAT LS is invoked with a project file and no files,
37252 add the list of files from the sources of the project file. If this list
37253 is too long, put it in a temp text files and use switch -files=
37254 (Delete_Temp_Config_Files): Delete the temp text file that contains
37255 a list of source for gnatpp or gnatmetric, if one has been created.
37256 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
37257 in the project file is too large, create a temporary text file that
37258 list them and pass it to the tool with "-files=<temp text file>".
37259 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
37261 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
37262 generated file is in not in Ada.
37264 * gnatls.adb: Remove all parameters And_Save that are no longer used.
37265 (Scan_Ls_Arg): Add processing for -files=
37266 (Usage): Add line for -files=
37268 * g-os_lib.adb (On_Windows): New global constant Boolean flag
37269 (Normalize_Pathname): When on Windows and the path starts with a
37270 directory separator, make sure that the resulting path will start with
37273 * clean.adb (Clean_Archive): New procedure
37274 (Clean_Project): When there is non-Ada code, delete the global archive,
37275 the archive dependency files, the object files and their dependency
37276 files, if they exist.
37277 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
37279 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
37281 * sinfo.ads: Fix typo in comment.
37283 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
37284 the TSS for remote access-to-subprogram types, since these TSS are
37285 always present once the type has been analyzed.
37286 (RAS_E_Dereference): Same.
37288 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
37289 reference raises Bad_Attribute, mark the reference as analyzed so the
37290 node (and any children resulting from rewrites that could have occurred
37291 during the analysis that ultimately failed) is not analyzed again.
37293 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
37295 * exp_dist.adb: Minor comment fix.
37297 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
37298 type is an anonymous access type, no unchecked deallocation of the
37299 allocated object can occur. If the object is controlled, attach it with
37300 a count of 1. This allows attachment to the Global_Final_List, if
37301 no other relevant list is available.
37302 (Get_Allocator_Final_List): For an anonymous access type that is
37303 the type of a discriminant or record component, the corresponding
37304 finalisation list is the one of the scope of the type.
37306 2004-06-25 Ed Schonberg <schonberg@gnat.com>
37308 * sem_ch3.adb (Replace_Type): When computing the signature of an
37309 inherited subprogram, use the first subtype if the derived type
37310 declaration has no constraint.
37312 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
37313 before applying previous optimization. Minor code cleanup.
37315 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
37316 placed at the beginning of an unpacked record without explicit
37317 alignment, a slice of it will be aligned and does not need a copy when
37320 2004-06-25 Ed Schonberg <schonberg@gnat.com>
37324 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
37325 reference is written with expressions mimicking parameters.
37327 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
37330 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
37331 STEP 2a. The constraints of a full type declaration of a derived record
37332 type are checked for conformance with those declared in the
37333 corresponding private extension declaration. The message
37334 "not conformant with previous declaration" is emitted if an error is
37337 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
37339 * g-traceb.ads: Document the need for -E binder switch in the spec.
37341 * g-trasym.ads: Document the need for -E binder switch in the spec.
37343 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
37345 * sem_prag.adb: Add handling of pragma Detect_Blocking.
37347 * snames.h, snames.ads, snames.adb: Add entry for pragma
37350 * s-rident.ads: Change reference to pragma Detect_Blocking.
37352 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
37355 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
37356 to indicate whether pragma Detect_Blocking is active.
37358 * par-prag.adb: Add entry for pragma Detect_Blocking.
37360 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
37361 of not handling WITH.
37362 Note that this replaces the previous update which was incorrect.
37364 2004-06-25 Javier Miranda <miranda@gnat.com>
37366 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
37367 use-clauses to have a clean environment.
37369 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
37370 the installation of the use-clauses to stablish a clean environment in
37371 case of compilation of a separate unit; otherwise the call to
37372 use_one_package is protected by the barrier Applicable_Use.
37374 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
37375 the installation of the use-clauses to stablish a clean environment in
37376 case of compilation of a separate unit.
37377 (End_Use_Clauses): Minor comment cleanup.
37379 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
37381 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
37383 2004-06-23 Richard Henderson <rth@redhat.com>
37385 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
37387 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37389 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
37390 now bool instead of int.
37391 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
37392 * trans.c (gnu_switch_label_stack): New function.
37393 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
37394 elaboration of renamed entity returns.
37395 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
37396 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
37397 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
37398 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
37399 DECL_SIZE_UNIT and simplify variable-sized case.
37400 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
37401 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
37402 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
37403 (build_unit_elab): Disable for now.
37404 * utils.c (mark_visited): New function.
37405 (pushdecl): Walk tree to call it for global decl.
37406 (update_pointer_to): Update all variants of pointer and ref types.
37407 Add arg to COMPONENT_REF.
37408 (convert): Likewise.
37409 Move check for converting between variants lower down.
37410 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
37411 (build_allocator): Don't force type of MODIFY_EXPR.
37412 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
37413 put_var_into_stack.
37415 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37417 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
37418 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
37419 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
37421 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
37422 all callers changed.
37423 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
37424 the way that EXIT_STMT finds the loop label.
37425 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
37426 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
37427 (add_stmt): Use annotate_with_locus insted of setting directly.
37428 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
37429 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
37430 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
37431 (build_vms_descriptor): Add extra args to ARRAY_REF.
37432 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
37433 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
37435 (build_binary_op): Don't make explicit CONVERT_EXPR.
37436 Add extra rgs to ARRAY_REF.
37438 2004-06-14 Pascal Obry <obry@gnat.com>
37440 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
37441 Windows. Fix minor typo.
37443 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
37444 which is now supported on Windows. With this implementation using the
37445 Library Project feature is no different on Windows than on UNIX.
37447 2004-06-14 Vincent Celier <celier@gnat.com>
37449 * makegpr.adb (Compile_Sources): Nothing to do when there are no
37452 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
37454 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
37455 found, show the project name and the path of the previously parsed
37458 2004-06-14 Ed Schonberg <schonberg@gnat.com>
37460 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
37461 array, avoid copying the actual before the call.
37463 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
37465 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
37466 Instead, allocate memory on worst-case alignment assumptions, and then
37467 return an aligned address within the allocated zone.
37469 2004-06-14 Robert Dewar <dewar@gnat.com>
37471 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
37472 elab entities in predefined units in No_Run_Time_Mode.
37473 (Gen_Adainit_C): Same fix
37474 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
37475 units in No_Run_Time_Mode
37476 (Gen_Elab_Calls_C): Same fix
37478 * symbols-vms-alpha.adb: Minor reformatting
37480 * g-debpoo.ads: Minor reformatting
37482 * lib.adb (In_Same_Extended_Unit): Version working on node id's
37484 * lib.ads (In_Same_Extended_Unit): Version working on node id's
37486 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
37489 * make.adb: Minor reformatting
37491 * par-ch12.adb: Minor reformatting
37493 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
37495 * prj-strt.adb: Minor reformatting
37497 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
37500 * sem_attr.adb: Minor reformatting
37502 * sem_ch7.adb: Minor reformatting
37504 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
37505 for type in the same unit as the object declaration.
37507 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
37508 static string expressions and not just string literals.
37510 (Set_Warning): Reset restriction warning flag for restriction pragma
37511 Implement pragma Profile_Warnings
37512 Implement pragma Profile (Restricted)
37513 Give obolescent messages for old restrictions and pragmas
37515 * snames.h, snames.ads, snames.adb: Add new entry for pragma
37518 * s-rident.ads: Add declarations for restrictions required by profile
37519 Restricted and profile Ravenscar.
37521 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
37523 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
37524 configuration pragmas.
37526 2004-06-11 Vincent Celier <celier@gnat.com>
37528 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
37529 gnatsym, when symbol policy is Restricted.
37531 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
37532 gnatsym, when symbol policy is Restricted.
37534 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
37535 read the symbol file.
37536 (Finalize): Fail in symbol policy Restricted if a symbol in the original
37537 symbol file is not in the object files. Do not create a new symbol file
37538 when symbol policy is Restricted.
37540 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
37543 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
37545 (Usage): Line for new switch -R
37547 * make.adb (Initialize): When the platform is not VMS, add the
37548 directory where gnatmake is invoked in the front of the path, if
37549 gnatmake is invoked with directory information. Change the Scan_Args
37550 while loop to a for loop.
37551 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
37552 if Depth is equal or greater than the proposed depth, there is nothing
37554 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
37557 * prj.ads: Add new symbol policy Restricted.
37559 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
37560 with the new parameters Check_All_Labels and Case_Location.
37562 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
37563 (Library_Symbol_File needs to be defined).
37565 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
37566 and Case_Location If Check_All_Labels is True, check that all values of
37567 the string type are used, and output warning(s) if they are not.
37569 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
37572 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
37574 * gnat_ugn.texi: Update documentation about the library directory in
37577 * makegpr.adb (Display_Command): In verbose mode, also display the
37578 value of the CPATH env var, when the compiler is gcc.
37579 (Initialize): Change the Scan_Args while loop to a for loop
37580 (Compile_Individual_Sources): Change directory to object directory
37581 before compilations.
37583 * symbols.ads: New symbol policy Restricted.
37585 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
37587 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
37588 is now taken care of internally in the Exception_Propagation package
37589 and does not require clients assistance any more.
37591 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
37592 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
37593 functions. Helpers to maintain a predicate required in the handling of
37594 occurrence transfer between tasks.
37595 This is now handled internally and does not require clients assistance
37596 for the setup/propagate separation anymore.
37597 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
37598 allocation strategy, handle the Setup_And_Not_Propagated predicate and
37601 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
37602 raise_after_setup, now that everything is handled internally within the
37603 setup/propagation engine.
37605 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
37607 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
37608 Add additional conditions for the case of an actual being a simple
37609 name or literal. Improve inlining by preventing the generation
37610 of temporaries with a short lifetime (one use).
37612 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
37615 * einfo.ads: Minor comment updates for Has_Completion and
37616 E_Constant list of flags.
37618 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
37619 and constant redeclarations now set the Has_Completion flag of their
37620 defining identifiers.
37622 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
37623 Inspect_Deferred_Constant_Completion.
37624 Used to detect private deferred constants that have not been completed
37625 either by a constant redeclaration or pragma Import. Emits error message
37626 "constant declaration requires initialization expression".
37628 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
37629 completes a deferred constant.
37631 2004-06-11 Geert Bosch <bosch@gnat.com>
37633 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
37635 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
37636 calculating exponent for scaling denormal numbers.
37637 (Leading_Part): Properly raise Constraint_Error for zero or negative
37639 (Remainder): Properly raise Constraint_Error for zero divisor.
37641 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
37643 * sem_util.adb: Minor reformatting.
37645 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
37646 dereference when accessing the entry parameter record.
37647 (Check_Array_Type): Always check for possible implicit dereference.
37648 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
37649 Abort if a pointer is still present (denoting that an implicit
37650 dereference was left in the tree by the front-end).
37652 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
37653 dereference when accessing the entry parameter record.
37654 (Check_Array_Type): Always check for possible implicit dereference.
37655 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
37656 Abort if a pointer is still present (denoting that an implicit
37657 dereference was left in the tree by the front-end).
37659 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
37661 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
37662 message, like the compiler itself does. Easier to parse the output.
37664 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
37666 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
37667 be base names, and not includes directories.
37669 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
37671 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
37672 so that dependencies are properly taken into account by make.
37674 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
37677 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
37678 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
37680 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
37682 * Makefile.in (install-gnatlib): install target-specific run-time files.
37684 * Make-lang.in: Remove obsolete targets.
37686 2004-06-11 Ed Schonberg <schonberg@gnat.com>
37688 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
37689 specification, to catch misuses of program unit names.
37691 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
37692 superfluous conversions in an instance.
37694 2004-06-11 Ed Schonberg <schonberg@gnat.com>
37697 * sem_ch12.adb (Save_References): If operator node has been folded to
37698 enumeration literal, associated_node must be discarded.
37700 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
37702 * s-stchop-vxworks.adb: Add required pragma Convention to
37703 Task_Descriptor because it is updated by a C function.
37705 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
37708 * Makefile.in: Remove target specific SO_OPT on IRIX
37710 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37712 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
37713 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
37714 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
37715 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
37716 (STMT_STMT, USE_STMT): New statement codes.
37717 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
37718 * ada-tree.h: Reflect above changes.
37719 (struct tree_loop_id): Deleted.
37720 (union lang_tree_node, struct lang_decl, struct lang_type):
37721 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
37722 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
37723 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
37724 (IS_ADA_STMT): New macro.
37725 * decl.c (annotate_decl_with_node): New function.
37726 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
37727 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
37728 Call add_stmt_with_node to do needed assignments.
37729 Add call to update setjmp buffer directly, not via EXPR_STMT.
37730 (maybe_variable): Argment GNAT_NODE deleted.
37731 * gigi.h (maybe_variable): Likewise.
37732 (make_transform, add_stmt_with_node, set_block_for_group): New.
37733 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
37734 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
37735 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
37736 (set_lineno, set_lineno_from_sloc): Likewise.
37737 (record_code_position, insert_code_for): Likewise.
37738 (gnat_poplevel): Now returns void.
37739 (end_subprog_body): Now takes argument.
37740 * misc.c (cgraph.h, tree-inline.h): New includes.
37741 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
37742 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
37743 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
37744 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
37745 (gnat_parse_file): Don't set immediate_size_expand.
37746 Call cgraph functions.
37747 (gnat_expand_expr): Remove most cases.
37748 (record_code_position, insert_code_for): Remove from here.
37749 * trans.c (toplev.h, tree-gimple.h): Now included.
37750 (discard_file_names): Deleted.
37751 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
37752 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
37753 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
37754 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
37755 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
37756 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
37757 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
37758 (set_block_for_group, add_stmt_list): Likewise.
37759 (start_stmt_group): Renamed from start_block_stmt.
37760 (end_stmt_group): Likewise, from end_block_stmt.
37761 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
37762 (gigi): Don't set discard_file_names or call set_lineno.
37763 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
37764 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
37765 Numerous changes throughout to reflect new names and complete
37766 function-at-a-time implementation.
37767 (gnat_expand_stmt): Delete or comment out all cases.
37768 (process_inlined_subprograms): Use add_stmt.
37769 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
37770 call set_lineno; also remove unneeded block handling.
37771 (process_type): Remove unneeded block handling.
37772 (build_unit_elab): Remove calls to deleted functions.
37773 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
37774 (tree-dump.h): Likewise.
37775 (struct ada_binding_level): Add field jmpbuf_decl.
37776 (gnat_define_builtin, gnat_install_builtins): New.
37777 (gnat_gimplify_function, gnat_finalize): Likewise.
37778 (gnat_poplevel): No longer return BLOCK, set it instead.
37779 Remove code dealing with nested functions.
37780 (gnat_init_decl_processing): Also set size_type_node.
37781 Call gnat_install_builtins.
37782 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
37783 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
37784 Remove special-case for "main".
37785 (end_subprog_body): Add arg and rework for tree-ssa.
37786 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
37787 Add case for BOOLEAN_TYPE.
37788 * utils2.c (rtl.h): Now include.
37789 (build_call_raise): Test Debug_Flag_NN directly.
37790 (build_call_alloc_dealloc): Don't use local stack allocation for now.
37791 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
37792 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
37794 2004-06-07 Robert Dewar <dewar@gnat.com>
37796 * a-direct.ads, einfo.ads: Minor comment updates
37798 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
37799 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
37800 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
37801 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
37802 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
37804 * s-interr-sigaction.adb: Remove unreferenced variable
37805 (Attached_Interrupts). Minor reformatting.
37806 Avoid use of variable I (replace by J).
37808 * par-ch10.adb: Fix text of one error message
37810 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
37811 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
37812 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
37813 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
37814 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
37815 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
37816 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
37817 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
37818 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
37819 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
37820 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
37823 2004-06-07 Doug Rupp <rupp@gnat.com>
37825 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
37827 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
37829 * mlib-tgt-vms-ia64.adb: New file.
37831 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
37832 Add mlib-tgt-vms-ia64.adb
37833 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
37834 Move to alpha specific ifeq section.
37835 Add VMS specific versions of symbols.adb
37836 Renaming of 5q vms files.
37838 * 5qsystem.ads renamed to system-vms_64.ads.
37840 2004-06-07 Vincent Celier <celier@gnat.com>
37842 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
37843 explain that when a time of day corresponding to the non existing hour
37844 on the day switching to DST is specified, Split may return a different
37847 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
37850 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
37851 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
37853 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
37855 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
37856 the linking options.
37857 (Build_Library.Check_Libs): On VMS, if there is a dependency on
37858 g-trasym.ads, set Gtrasymobj_Needed to True.
37860 * prj-attr.adb: Add new package Metrics for gnatmetric
37862 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
37863 canonical case to take into account files with upper case characters on
37865 (Ada_Check): Load the reference symbol file name in the name buffer to
37866 check it, not the symbol file name.
37868 * snames.ads, snames.adb: Add standard name Metrics (name of project
37869 file package for gnatmetric).
37871 * vms_conv.ads: Add Metric to Comment_Type
37873 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
37875 * vms_data.ads: Add qualifiers for GNAT METRIC
37877 * makegpr.adb (Link_Executables): Take into account the switches
37878 specified in package Linker of the main project.
37880 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
37882 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
37883 the index of the last element is Units.Last, not Units.Table'Last
37884 (which is usually not a valid index within the actually allocated
37885 storage for the table).
37887 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
37888 determines whether to generate a call to a checked storage pool
37889 Dereference action.
37890 Generate such a call only for a dereference that either comes from
37891 source, or is the result of rewriting a dereference that comes from
37894 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
37896 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
37898 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
37900 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
37901 file level, elaborate the stride for inner dimensions in alignment
37904 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
37907 2004-06-07 Javier Miranda <miranda@gnat.com>
37909 * exp_ch6.adb: Correct wrong modification in previous patch
37911 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
37913 * g-trasym.ads: Corrected comment to properly reflect level of support
37916 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
37918 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
37919 includes case of a variable referenced on the left hand side of an
37920 assignment, therefore remove redundant code. Variables and prefixes of
37921 indexed or selected components are now marked as referenced on left
37922 hand side. Warnings are now properly emitted when variables or prefixes
37923 are assigned but not read.
37925 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
37926 left hand side referenced variables. Private access types do not
37927 produce the warning "variable ... is assigned but never read".
37928 Add also additional checks to left hand side referenced variables.
37929 Aliased, renamed objects and access types do not produce the warning
37930 "variable ... is assigned but never read" since other entities may read
37931 the memory location.
37933 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
37935 * Makefile.in: In the powerpc/vxworks-specific section, restore
37936 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
37939 2004-06-07 Ed Schonberg <schonberg@gnat.com>
37941 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
37942 predefined operators.
37943 Removes spurious type errors from g-trasym-vms.adb.
37945 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
37946 distinct from the operator appearing in the source, call appropriate
37947 routine to insert conversions when needed, and complete resolution of
37949 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
37950 interpretations for rewritten right operand.
37951 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
37952 the other operand is overloaded and the context is a type conversion.
37954 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37956 * ada-tree.def (BLOCK_STMT): Now has two operands.
37959 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
37961 * gigi.h: (gnat_poplevel): Now returns a tree.
37963 * trans.c (end_block_stmt): Add arg; all callers changed.
37964 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
37965 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
37966 (add_stmt): Set TREE_TYPE.
37967 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
37968 (gnat_expand_stmt, case BREAK_STMT): New case.
37970 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
37972 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
37974 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
37975 procedure Set_Stack_Size that is not needed.
37977 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
37979 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
37980 used for gnatpp input file and for the files upon which it depends
37982 2004-06-07 Ben Brosgol <brosgol@gnat.com>
37984 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
37986 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
37988 * gnatvsn.ads: Bump version numbers appropriately.
37989 Add new build type.
37991 2004-06-07 Pascal Obry <obry@gnat.com>
37993 * gnat_ugn.texi: Improve comments about imported names and link names
37994 on Windows. Add a note about the requirement to use -k gnatdll's option
37995 when working with a DLL which has stripped stdcall symbols (no @nn
37998 2004-05-27 Vincent Celier <celier@gnat.com>
38000 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
38001 COMMENTS_LAYOUT=UNTOUCHED
38003 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
38004 symbols-vms-alpha.adb
38006 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
38008 * sem.ads: Clarify documentation on checks suppression.
38010 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
38012 2004-05-27 Ed Schonberg <schonberg@gnat.com>
38014 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
38015 the case of multiple derivations.
38016 (Is_Object_Reference): For a selected component, verify that the prefix
38017 is itself an object and not a value.
38019 * sem_ch12.adb (Same_Instantiated_Constant): New name for
38020 Same_Instantiated_Entity.
38021 (Same_Instantiated_Variable): Subsidiary to
38022 Check_Formal_Package_Instance, to recognize actuals for in-out generic
38023 formals that are obtained from a previous formal package.
38024 (Instantiate_Subprogram_Body): Emit proper error when
38025 generating code and the proper body of a stub is missing.
38027 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
38028 has a universal interpretation, do the disambiguation here.
38030 * exp_ch4.adb (Expand_N_Type_Conversion,
38031 Expand_N_Unchecked_Type_Conversion): Special handling when target type
38032 is Address, to avoid typing anomalies when Address is a visible integer
38035 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
38036 to determine whether a subprogram should not be marked Pure, even when
38037 declared in a pure package.
38039 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
38041 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
38043 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
38044 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
38045 Update the documentation about the Ravenscar profile, following the
38046 definition found in AI-249.
38048 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
38049 setting the Profile (Ravenscar). This must be done in addition to
38050 setting the required restrictions.
38052 * rtsfind.ads: Add the set of operations defined in package
38055 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
38058 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
38060 lang-specs.h: Always require -c or -S and always redirect to /dev/null
38061 if -gnatc or -gnats is passed.
38063 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
38065 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
38066 a significant reference. Warnings are now properly emitted when a
38067 discriminated type is not referenced.
38069 * lib-xref.adb (Generate_Reference): A deferred constant completion,
38070 record representation clause or record type discriminant does not
38071 produce a reference to its corresponding entity. Warnings are now
38072 properly emitted when deferred constants and record types are not
38075 2004-05-27 Geert Bosch <bosch@gnat.com>
38077 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
38078 Fixes ACATS Annex G tests.
38080 2004-05-27 Robert Dewar <dewar@gnat.com>
38082 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
38085 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
38087 * s-interr.adb (Server_Task): Take into account case of early return
38088 from sigwait under e.g. linux.
38090 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
38092 * gnat_ugn.texi: Add description for the new gnatpp options:
38093 -rnb - replace the original source without creating its backup copy
38094 -c0 - do not format comments
38096 2004-05-24 Geert Bosch <bosch@gnat.com>
38098 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
38099 with 192 bits of precision, sufficient to reduce a double-extended
38100 arguments X with a maximum relative error of T'Machine_Epsilon, for X
38101 in -2.0**32 .. 2.0**32.
38102 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
38103 reduction by the processor, which only uses a 68-bit approximation of
38105 (Tan): Always reduce arguments and compute function either using
38106 the processor's fptan instruction, or by dividing sin and cos as needed.
38108 2004-05-24 Doug Rupp <rupp@gnat.com>
38110 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
38111 gcc error on 32/64 bit VMS.
38113 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
38115 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
38116 since this is what we get for stack overflows although not documented
38118 Document the issues which may require adjustments to our signal
38121 2004-05-24 Ed Schonberg <schonberg@gnat.com>
38123 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
38124 enclosing dynamic scope if the instantiation is within a generic unit.
38126 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
38128 * exp_dbug.ads: Fix typo.
38130 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
38131 Rename it to its proper name: system-linux-ia64.ads
38132 (stamp-gnatlib1): Remove extra target specific run time files when
38133 setting up the rts directory.
38135 2004-05-24 Javier Miranda <miranda@gnat.com>
38137 * einfo.ads, einfo.adb (Limited_Views): Removed.
38138 (Limited_View): New attribute that replaces the previous one. It is
38139 now a bona fide package with the limited-view list through the
38140 first_entity and first_private attributes.
38142 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
38143 limited-private-with clause.
38144 (Install_Limited_Withed_Unit): Install the private declarations of a
38145 limited-private-withed package. Update the installation of the shadow
38146 entities according to the new structure (see Build_Limited_Views)
38147 (Build_Limited_Views): Replace the previous implementation of the
38148 limited view by a package entity that references the first shadow
38149 entity plus the first shadow private entity (required for limited-
38150 private-with clause)
38151 (New_Internal_Shadow_Entity): Code cleanup.
38152 (Remove_Limited_With_Clause): Update the implementation to undo the
38153 new work carried out by Build_Limited_Views.
38154 (Build_Chain): Complete documentation.
38155 Replace Ada0Y by Ada 0Y in comments
38158 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
38159 types the level of accessibility depends on the enclosing type
38162 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
38163 entities. Complete documentation of previous change.
38165 2004-05-24 Robert Dewar <dewar@gnat.com>
38167 * namet.adb: Minor reformatting
38168 Avoid use of name I (replace by J)
38169 Minor code restructuring
38171 * sem_ch6.adb: Minor reformatting
38173 * lib-writ.adb: Do not set restriction as active if this is a
38174 Restriction_Warning case.
38176 * sem_prag.adb: Reset restriction warning flag if real pragma
38177 restriction encountered.
38179 * s-htable.adb: Minor reformatting
38180 Change rotate count to 3 in Hash (improves hash for small strings)
38182 * 5qsystem.ads: Add comments for type Address (no literals allowed).
38184 * gnat_ugn.texi: Add new section of documentation "Code Generation
38185 Control", which describes the use of -m switches.
38187 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
38189 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
38190 through the DECL_INITIAL for renamed variables.
38192 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
38194 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
38196 2004-05-19 Joel Brobecker <brobecker@gnat.com>
38198 * exp_dbug.ads: Correct comments concerning handling of overloading,
38199 since we no longer use $ anymore.
38201 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
38203 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
38204 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
38205 with illegal subunits.
38207 2004-05-19 Ed Schonberg <schonberg@gnat.com>
38209 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
38210 body with front-end inlining enabled, check whether an inline pragma
38211 appears immediately after the body and applies to it.
38213 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
38214 enabled and the pragma appears after the body of the subprogram.
38216 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38218 Part of function-at-a-time conversion
38220 * misc.c (adjust_decl_rtl): Deleted.
38221 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
38224 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
38225 (add_decl_stmt, add_stmt, block_has_vars): New functions.
38226 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
38228 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
38229 when making a decl.
38230 (gnat_to_gnu_entity): Likewise.
38231 Use add_stmt to update setjmp buffer.
38232 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
38234 No longer call adjust_decl_rtl.
38235 (DECL_INIT_BY_ASSIGN_P): New macro.
38236 (DECL_STMT_VAR): Likewise.
38238 * trans.c (gigi): Call start_block_stmt to make the outermost
38240 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
38241 Call start_block_stmt and end_block_stmt temporarily.
38242 Use gnat_expand_stmt instead of expand_expr_stmt.
38243 (add_decl_stmt): New function.
38244 (tree_transform): Call it.
38245 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
38246 (end_block_stmt): Set type and NULL_STMT.
38247 (gnat_expand_stmt): Make recursize call instead of calling
38249 (gnat_expand_stmt, case DECL_STMT): New case.
38250 (set_lineno_from_sloc): Do nothing if global.
38251 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
38252 (start_block_stmt, add_stmt, end_block_stmt): New functions.
38253 (build_block_stmt): Call them.
38254 (gnat_to_code): Don't expand NULL_STMT.
38255 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
38257 (tree_transform): Likewise.
38258 (tree_transform, case N_Null_Statement): Return NULL_STMT.
38259 (gnat_expand_stmt, case NULL_STMT): New case.
38260 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
38263 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
38266 * utils.c (create_var_decl): Do not call expand_decl or
38268 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
38269 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
38271 (struct e_stack): Add chain_next to GTY.
38272 (struct binding_level): Deleted.
38273 (struct ada_binding_level): New struct.
38274 (free_block_chain): New.
38275 (global_binding_level, clear_binding_level): Deleted.
38276 (global_bindings_p): Rework to see if no chain.
38277 (kept_level_p, set_block): Deleted.
38278 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
38279 new data structure and work directly on BLOCK node.
38280 (gnat_poplevel): Similarly.
38281 (get_decls): Look at BLOCK_VARS.
38282 (insert_block): Work directly on BLOCK node.
38283 (block_has_var): New function.
38284 (pushdecl): Rework for new binding structures.
38285 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
38287 (build_subprog_body): Likewise.
38288 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
38290 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
38292 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
38293 (DECL_STMT_VAR): Likewise.
38295 2004-05-17 Robert Dewar <dewar@gnat.com>
38297 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
38300 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
38301 of restriction synonyums by using
38302 Restrict.Process_Restriction_Synonyms.
38304 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
38306 * s-restri.ads (Tasking_Allowed): Correct missing comment
38308 * s-rident.ads: Add entries for restriction synonyms
38310 * ali.adb: Fix some problems with badly formatted ALI files that can
38311 result in infinite loops.
38313 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
38314 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
38315 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
38316 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
38317 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
38318 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
38319 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
38320 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
38321 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
38322 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
38323 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
38324 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
38325 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
38326 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
38327 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
38328 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
38329 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
38330 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
38331 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
38332 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
38333 to Task_Id (minor cleanup).
38335 2004-05-17 Vincent Celier <celier@gnat.com>
38337 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
38338 directory separator.
38340 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
38341 project being extended, if Languages is not declared in extending
38344 2004-05-17 Javier Miranda <miranda@gnat.com>
38346 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
38347 limited view of a visible sibling.
38349 2004-05-14 Robert Dewar <dewar@gnat.com>
38351 * gnat_ugn.texi: Minor change to -gnatS documentation
38353 * sprint.adb: Remove some instances of Assert (False) and for this
38354 purpose replace them by output of a ??? string.
38356 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
38359 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
38360 flag processing. This was suppressing required dependencies in
38361 No_Run_Time mode and is not needed since the binder does not generate
38362 references for things in libgnat anyway.
38364 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
38367 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
38369 * gnat_ugn.texi: Document AIX-specific issue with initialization of
38372 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
38373 action for the case of an actual parameter in an init proc call.
38375 2004-05-14 Ed Schonberg <schonberg@gnat.com>
38377 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
38378 subtype, check visible entities in base type.
38380 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
38381 actions if the object is a renaming.
38383 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
38384 Check_Formal_Package_Instance, to determine more precisely when the
38385 formal and the actual denote the same entity.
38387 2004-05-14 Javier Miranda <miranda@gnat.com>
38389 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
38391 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
38392 corresponding to a private_with must be removed from visibility; it
38393 will be made visible later, just before we analyze the private part of
38395 (Check_Private_Child_Unit): Allow private_with clauses in public
38397 (Install_Siblings): Make visible the private entities of private-withed
38399 (Install_Withed_Unit): Do not install the private withed unit if we
38400 are compiling a package declaration and the Private_With_OK flag was
38401 not set by the caller. These declarations will be installed later,
38402 just before we analyze the private part of the package.
38404 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
38405 during the evaluation of the expression that initializes the object,
38406 decorate it with the expected type to avoid cascade errors.
38409 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
38410 subprogram we have to install the private_with clauses after its
38411 specification has been analyzed (as documented in AI-262.TXT).
38413 * sem_ch8.adb (Has_Private_With): New function. Determines if the
38414 current compilation unit has a private with on a given entity.
38415 (Find_Direct_Name): Detect the Beaujolais problem described in
38418 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
38419 provides the functionality of the function Is_Ancestor that was
38420 previously available in sem_ch10. It has been renamed to avoid
38423 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
38425 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38427 * utils.c (build_vms_descriptor): Use SImode pointers.
38429 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
38431 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
38433 2004-05-14 GNAT Script <nobody@gnat.com>
38435 * Make-lang.in: Makefile automatically updated
38437 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
38439 Renaming of target specific files for clarity
38441 * Makefile.in: Rename GNAT target specific files.
38443 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
38444 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
38445 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
38446 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
38447 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
38448 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
38449 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
38450 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
38451 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
38452 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
38453 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
38454 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
38455 51osinte.adb, 51osinte.ads, 51system.ads,
38456 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
38457 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
38458 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
38459 56tpopsp.adb, 57system.ads, 58system.ads,
38460 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
38461 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
38462 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
38463 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
38464 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
38465 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
38466 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
38467 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
38468 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
38469 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
38470 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
38471 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
38472 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
38473 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
38474 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
38475 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
38476 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
38477 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
38478 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
38479 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
38480 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
38481 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
38482 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
38483 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
38484 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
38485 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
38486 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
38487 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
38488 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
38489 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
38490 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
38491 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
38492 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
38493 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
38494 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
38495 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
38496 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
38497 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
38498 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
38499 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
38501 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
38502 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
38503 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
38504 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
38505 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
38506 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
38507 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
38508 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
38509 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
38510 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
38511 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
38512 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
38513 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
38514 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
38515 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
38516 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
38517 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
38518 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
38519 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
38520 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
38521 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
38522 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
38523 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
38524 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
38525 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
38526 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
38527 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
38528 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
38529 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
38530 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
38531 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
38532 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
38533 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
38534 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
38535 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
38536 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
38537 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
38538 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
38539 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
38540 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
38541 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
38542 s-osinte-vms.ads, s-osinte-vxworks.adb,
38543 s-osinte-vxworks.ads, s-osprim-mingw.adb,
38544 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
38545 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
38546 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
38547 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
38548 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
38549 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
38550 s-stchop-vxworks.adb, s-taprop-dummy.adb,
38551 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
38552 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
38553 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
38554 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
38555 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
38556 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
38557 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
38558 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
38559 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
38560 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
38561 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
38562 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
38563 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
38564 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
38565 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
38566 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
38567 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
38568 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
38569 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
38570 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
38571 system-irix-o32.ads, system-linux-x86_64.ads,
38572 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
38573 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
38574 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
38575 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
38576 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
38577 system-vxworks-mips.ads, system-vxworks-ppc.ads,
38578 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
38581 2004-05-13 Zack Weinberg <zack@codesourcery.com>
38583 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
38585 2004-05-13 Diego Novillo <dnovillo@redhat.com>
38587 Merge from tree-ssa-20020619-branch.
38589 * config-lang.in (boot_language, build_by_default): Set
38591 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
38592 (max_size): Add static chain op for call_expr.
38594 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
38597 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
38599 2004-05-11 Roger Sayle <roger@eyesopen.com>
38601 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
38604 2004-05-10 Doug Rupp <rupp@gnat.com>
38606 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
38609 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
38611 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
38613 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
38614 Fixes undefined symbols in IA64 gnatlib.
38616 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
38618 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
38619 Short_Address). This will be moved to system.auxdec.
38621 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
38623 * sem_util.adb: Replace test for presence of a node that is always
38624 present with a call to Discard_Node.
38626 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
38627 Analyze on the library unit node after generation of distribution stub
38628 constructs. The call was a no-op because Unit_Node has already been
38629 Analyzed, and the tree fragments for the distribution stubs are
38630 analyzed as they are inserted in Exp_Dist.
38631 Update comment regarding to distribution stubs to reflect that we
38632 do not generate stub in separate files anymore.
38634 * einfo.ads: Clarify the fact that a tagged private type has the
38635 E_Record_Type_With_Private Ekind.
38637 * erroutc.adb: Minor reformatting
38639 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
38640 values if line length is increased using -gnatyM (noticed during code
38643 * eval_fat.adb: Minor reformatting
38644 Put spaces around exponentiation operator
38646 2004-05-10 Ed Schonberg <schonberg@gnat.com>
38649 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
38650 has been rewritten as an explicit dereference, retrieve type of
38651 original node to check for possibly unconstrained record type.
38653 2004-05-10 Ed Schonberg <schonberg@gnat.com>
38655 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
38656 overriding, use the operation of the parent unconditionally.
38658 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
38659 operation when either operand is a literal, to avoid further
38662 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
38663 overridden by a previous explicit declaration, mark the previous entity
38666 * sem_disp.adb (Check_Dispatching_Operation): New predicate
38667 Is_Visibly_Controlled, to determine whether a declaration of a
38668 primitive control operation for a derived type overrides an inherited
38669 one. Add warning if the explicit declaration does not override.
38671 2004-05-10 Vincent Celier <celier@gnat.com>
38673 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
38674 some cases when the sources are no longer present.
38676 * make.adb (Collect_Arguments): Fail if an external source, not part
38677 of any project need to be compiled, when switch -x has not been
38680 * makeusg.adb: Document new switch -x
38682 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
38683 defaulted to False.
38685 * switch-m.adb (Scan_Make_Switches): New switch -x
38687 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
38688 gnatmake switch -x.
38690 * gnat_ugn.texi: Document new gnatmake switch -x
38692 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
38694 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
38696 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
38697 (process_attributes): Likewise.
38699 2004-05-10 Joel Brobecker <brobecker@gnat.com>
38701 * s-inmaop.ads: Fix spelling mistake in one of the comments.
38703 2004-05-10 Robert Dewar <dewar@gnat.com>
38705 * gnat_ugn.texi: Document that for config pragma files, the maximum
38706 line length is always 32767.
38708 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
38709 literals is now allowed.
38711 * gnat-style.texi: Remove statement about splitting long lines before
38712 an operator rather than after, since we do not follow this rule at all.
38713 Clarify rule (really lack of rule) for spaces around exponentiation
38715 * sem_elim.adb: Allow concatenation of string literals as well as a
38716 single string literal for pragma arguments.
38718 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
38720 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
38721 written for append case.
38723 * frontend.adb: Changes to avoid checking max line length in config
38726 * g-os_lib.ads: Minor reformatting
38728 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
38729 wrong in any case. Instead use standard value. Noticed during code
38732 * opt.ads (Max_Line_Length): New field, used to implement removal of
38733 limitation on length of lines when scanning config pragma files.
38735 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
38736 makeutl.ads, makeutl.adb: Minor reformatting
38738 * scn.adb: Do not check line length while scanning config pragma files
38739 Do not check line length while scanning out license information
38741 * scng.adb: Changes to avoid line length checks while parsing config
38744 2004-05-10 GNAT Script <nobody@gnat.com>
38746 * Make-lang.in: Makefile automatically updated
38748 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
38750 * osint.adb (Find_Program_Name): Fix handling of VMS version
38753 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
38755 * g-os_lib.ads (Invalid_Time): New constant
38757 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
38758 return OS_Time instead of time_t to match what is imported by Ada.
38759 Now return -1 if the file doesn't exist, instead of a random value
38761 2004-05-05 Robert Dewar <dewar@gnat.com>
38763 * usage.adb: Add line for -gnatR?s switch
38765 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
38767 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
38768 and for Match (Data_First, Data_last)
38770 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
38771 written when we are dealing with multi-unit files.
38773 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
38775 * Makefile.in: Remove unused targets and variables.
38777 2004-05-05 Vincent Celier <celier@gnat.com>
38779 * switch-m.adb: New gnatmake switch -eI
38781 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
38782 of new gnatmake switch -eInnn.
38784 * makegpr.adb: Take into account new parameters Index and Src_Index in
38787 * clean.adb: Implement support for multi-unit sources, including new
38790 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
38793 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
38794 (Extract_From_Q): New out parameter Index
38795 (Mark, Is_Marked): Subprograms moved to Makeutl
38796 (Switches_Of): New parameter Source_Index
38797 (Add_Switch): New parameter Index
38798 (Check): New parameter Source_Index
38799 (Collect_Arguments): New parameter Source_Index
38800 (Collect_Arguments_And_Compile): New parameter Source_Index
38801 (Compile): New parameter Source_Index
38802 Put subprograms in alphabetical order
38803 Add support for multi-source sources, including in project files.
38805 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
38806 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
38809 * makeusg.adb: New gnatmake switch -eInnn
38811 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
38814 * opt.ads (Main_Index): New variable, defaulted to 0.
38816 * osint.ads, osinte.adb (Add_File): New parameter Index
38817 (Current_Source_Index): New function
38819 * prj.adb: Take into account new components Index and Src_Index
38821 * prj.ads (String_Element): New component Index
38822 (Variable_Value): New component Index
38823 (Array_Element): New component Src_Index
38825 * prj-attr.adb: Indicate that optional index may be specified for
38826 attributes Main, Executable, Spec, Body and some of Switches.
38828 * prj-attr.ads (Attribute_Kind): New values for optional indexes
38829 (Attribute_Record): New component Optional_Index
38831 * prj-com.ads (File_Name_Data): New component Index
38833 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
38835 * prj-env.adb (Put): Output optional index
38837 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
38838 attributes Spec and Body.
38840 * prj-nmsc.adb: Process optional indexes
38842 * prj-pp.adb: Ouput "at" for optional indexes
38844 * prj-proc.adb: Take into account optional indexes
38846 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
38847 Optional_Index. For string literal,
38848 process optional index when Optional_Index is True.
38849 (Parse_Expresion): New Boolean parameter Optional_Index
38851 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
38852 (Set_Source_Index_Of): New procedure
38854 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
38857 * prj-util.ads (Executable_Of): New parameter Index
38858 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
38859 New parameter Src_Index, defaulted to 0.
38861 2004-05-05 Ed Schonberg <schonberg@gnat.com>
38864 * sem_ch3.adb (Access_Definition): If this is an access parameter
38865 whose designated type is imported through a limited_with clause, do
38866 not add the enclosing subprogram to the list of private dependents of
38869 2004-05-05 Ed Schonberg <schonberg@gnat.com>
38872 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
38873 a limited_with clause, and the other is its non-limited view.
38875 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
38877 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
38879 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
38880 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
38881 Stand.Boolean_Literals to produce references to entities
38882 Standard_False and Standard_True from compile-time computed boolean
38885 * stand.ads (Boolean_Literals): New variable, provides the entity
38886 values for False and True, for use by the expander.
38888 2004-05-05 Doug Rupp <rupp@gnat.com>
38890 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
38891 5vinmaop.adb: Unchecked convert Short_Address vice Address
38893 * adaint.c, raise.c: Caste CRTL function return value
38894 to avoid gcc error on 32/64 bit IVMS.
38896 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
38899 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
38901 * 5qsystem.ads (Address): Declare as Long_Integer
38902 (Short_Address): Declare as 32 bit subtype of Address
38903 Declare abstract address operations to avoid gratuitous ambiguities.
38905 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
38907 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
38908 instead of the old Boolean_Entry_Barriers.
38909 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
38911 2004-05-05 GNAT Script <nobody@gnat.com>
38913 * Make-lang.in: Makefile automatically updated
38915 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
38917 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
38919 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
38922 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
38923 alone. Replacing object references by literals is inappropriate in a
38924 so low level context.
38926 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
38928 * a-exexpr.adb: Add comments
38930 2004-05-03 Joel Brobecker <brobecker@gnat.com>
38932 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
38933 declare the Ancestor_Tags array in Type_Specific_Data with a small size
38934 without risking a bounds check error when accessing one of its
38936 (Type_Specific_Data): Define Ancestor_Tags as a small array.
38937 This prevents us from hitting a limitation during the debug info
38938 generation when using stabs.
38940 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
38942 This prevents us from hitting a limitation during the debug info
38943 generation when using stabs.
38945 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
38947 lang-specs.h: Remove -gnatz* from specs.
38949 2004-05-03 Vincent Celier <celier@gnat.com>
38951 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
38953 * Make-lang.in, Makefile.in: Add gprmake
38955 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
38957 * sem_aggr.adb: Fix typo in comment.
38959 2004-05-03 Robert Dewar <dewar@gnat.com>
38961 * make.adb: Minor reformatting
38963 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
38965 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
38966 so that it works when address is not a private type.
38968 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
38969 properly with rewritten unchecked conversions. This prevents
38970 order-of-elaboration issues that can otherwise arise.
38971 (Minimum_Size): Don't check size of access types under VMS
38973 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
38974 interpretations of integer literals as type System.Address.
38976 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
38977 (Is_Descendent_Of): New function
38979 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
38981 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
38982 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
38983 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
38985 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
38986 of the old Max_Entry_Queue_Depth.
38988 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
38989 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
38990 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
38992 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
38993 New entry for proper handling of Max_Entry_Queue_Depth.
38994 New entry for proper handling of No_Dynamic_Interrupts.
38996 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
38997 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
38998 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
38999 the GNAT specific restriction Max_Entry_Queue_Depth.
39000 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
39001 the GNAT specific restriction No_Dynamic_Interrupts.
39003 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
39004 instead of the old Boolean_Entry_Barriers.
39005 Use the new restriction No_Dynamic_Attachment instead of the old
39006 No_Dynamic_Interrupts.
39008 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
39009 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
39011 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
39012 of the old Max_Entry_Queue_Depth.
39014 2004-05-03 GNAT Script <nobody@gnat.com>
39016 * Make-lang.in: Makefile automatically updated
39018 2004-04-29 Ed Schonberg <schonberg@gnat.com>
39020 * checks.adb (Enable_Range_Check): If the prefix of an index component
39021 is an access to an unconstrained array, perform check unconditionally.
39023 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39025 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
39028 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
39030 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
39031 alternate stack setting. There was no support for the tasking cases
39032 and the changes eventually caused a number of side-effect failures in
39033 the non-tasking case too.
39035 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
39037 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
39040 2004-04-29 Vincent Celier <celier@gnat.com>
39042 * make.adb (Gnatmake): Increase max size of argument array for
39043 gnatbind for the potential addition of -F.
39044 If there are Stand-Alone Library projects, invoke gnatbind with -F to
39045 be sure that elaboration flags will be checked.
39047 * switch-c.adb: Correct call to Scan_Pos for -gnateI
39049 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
39051 * sem_warn.adb (Check_References): Move '<access-variable> may be
39052 null' warning out of under Warn_On_No_Value_Assigned.
39054 2004-04-29 Ed Falis <falis@gnat.com>
39056 * gnat_ugn.texi: Fixed texi error
39058 2004-04-29 Robert Dewar <dewar@gnat.com>
39060 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
39061 abstract operations if they come from predefined files.
39063 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
39066 * s-addope.adb: Correct obvious error in mod function
39068 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
39070 * Makefile.in: Add target pairs for powerpc darwin*
39073 * a-intnam-darwin.ads, s-osinte-darwin.adb,
39074 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
39076 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
39078 * Makefile.in: Add target macro definitions for s390*-linux*.
39079 * system-linux-s390.ads: New file.
39080 * system-linux-s390x.ads: New file.
39082 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
39084 * gnat_ugn.texi: Correct argument to @setfilename.
39086 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
39088 * a-exexpr.adb (Unwind_Word): New data type.
39089 (Unwind_Exception): Use it as type of Private1 and Private2.
39091 * raise.c (db_action_for): Fix debug printf.
39093 2004-04-27 Ed Schonberg <schonberg@gnat.com>
39095 * a-wtmoio.ads: Formal type must be a modular type, not a signed
39098 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39100 * decl.c (gnat_to_gnu_entity, case object): Call
39101 __builtin_update_setjmp_buf.
39103 * gigi.h (update_setjmp_buf): Deleted.
39104 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
39106 * misc.c: (update_setjmp_buf): Deleted.
39108 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
39109 around block of RTL.
39111 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
39113 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
39115 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
39116 subprogram for which no pragma All_Calls_Remote applies, store the
39117 address of the real subprogram in the underlying record type, so local
39118 dereferences do not go through the PCS.
39120 2004-04-26 Robert Dewar <dewar@gnat.com>
39122 * i-c.ads: Add some type qualifications to avoid ambiguities when
39123 compiling with s-auxdec.ads and a non-private address type.
39125 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
39127 * Makefile.rtl: Fix error in previous check-in:
39128 Add s-addope.o to non tasking object list (rather than tasking object
39131 2004-04-26 Javier Miranda <miranda@gnat.com>
39133 * sem_aggr.adb: Fix typo in comments
39134 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
39135 Required to check the null-exclusion attribute.
39137 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
39138 case of anonymous access types in record and array components. For a
39139 component definition the level is the same of the enclosing composite
39142 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
39143 that are anonymous access types the level of accessibility depends on
39144 the enclosing type declaration. In order to have this information, set
39145 the scope of the anonymous access type to the enclosing record type
39147 (Array_Type_Declaration): In case of components that are anonymous
39148 access types the level of accessibility depends on the enclosing type
39149 declaration. In order to have this information, set the scope of the
39150 anonymous access type to the enclosing array type declaration.
39152 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
39155 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
39156 renaming of anonymous access-to-constant types allowed if and only if
39157 the renamed object is access-to-constant.
39159 * sem_util.adb (Type_Access_Level): In case of anonymous access types
39160 that are component_definition or discriminants of a nonlimited type,
39161 the level is the same as that of the enclosing component type.
39163 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
39165 * sem_elim.adb: Some minor code reorganization from code reading. Fix
39166 misprint in the function name (File_Name_Match).
39168 2004-04-23 Laurent Guerby <laurent@guerby.net>
39170 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
39173 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39175 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
39177 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
39179 * adaint.c (__gnat_try_lock): No longer requires that the parent
39180 directory be writable, the directory itself is enough.
39181 (gnat_is_absolute_path): Change profile, so that the call from
39182 GNAT.OS_Lib can be made more efficient.
39184 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
39185 from GNAT.OS_Lib can be made more efficient.
39187 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
39188 one copy of the file name. Found by code reading.
39190 2004-04-23 Vincent Celier <celier@gnat.com>
39192 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
39193 Correct documentation on gnatmake switches transmitted to the compiler
39195 * ali.ads: Minor comment fix
39197 2004-04-23 Javier Miranda <miranda@gnat.com>
39199 * sem_ch6.adb: (Confirming Types): Code cleanup
39201 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
39202 subprogram types: E_Anonymous_Access_Subprogram_Type and
39203 E_Anonymous_Access_Protected_Subprogram_Type.
39205 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
39207 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
39208 whether a pragma All_Calls_Remote applies to the subprogram on which
39210 No functional change is introduced by this revision; the new parameter
39211 will be used to allow calls to local RCI subprograms to be optimized
39212 to not use the PCS in the case where no pragma All_Calls_Remote applies,
39213 as is already done in the PolyORB implementation of the DSA.
39215 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
39216 whether a pragma All_Calls_Remote applies to the subprogram on which
39218 No functional change is introduced by this revision; the new parameter
39219 will be used to allow calls to local RCI subprograms to be optimized
39220 to not use the PCS in the case where no pragma All_Calls_Remote applies,
39221 as is already done in the PolyORB implementation of the DSA.
39223 2004-04-23 Robert Dewar <dewar@gnat.com>
39225 * Makefile.rtl: Add entry for s-addope.o in run time library list
39226 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
39227 * s-addope.ads, s-addope.adb: New files.
39229 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
39230 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
39231 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
39232 System.Address to be non-private and signed.
39234 * sem_elim.adb: Minor reformatting (fairly extensive)
39235 Some minor code reorganization from code reading
39236 Add a couple of ??? comments
39238 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39240 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
39241 (tree_transform, case N_If_Statement): Remove non-determinism.
39243 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
39245 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
39247 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
39248 Eliminate' section.
39250 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
39251 no longer used as a parameter name for Eliminate pragma).
39253 2004-04-22 Laurent Guerby <laurent@guerby.net>
39255 PR optimization/14984
39256 PR optimization/14985
39257 * trans.c (gigi): Fix non determinism leading to bootstrap
39258 comparison failures.
39260 2004-04-21 Pascal Obry <obry@gnat.com>
39262 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
39263 passed to spawnvp() to properly handle program pathname with spaces on
39266 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
39268 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
39269 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
39270 unlocked in case of exceptions.
39272 2004-04-21 Joel Brobecker <brobecker@gnat.com>
39274 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
39275 This function does not exist anymore.
39277 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
39279 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
39281 * link.c: Move variables to the __gnat name space.
39283 * Makefile.in: list link.o explicitly when needed.
39285 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
39287 2004-04-21 Javier Miranda <miranda@gnat.com>
39289 * einfo.adb (Original_Access_Type): New subprogram
39290 (Set_Original_Access_Type): New subprogram
39291 (Write_Field21_Name): Write the name of the new field
39293 * einfo.ads (Original_Access_Type): New field present in access to
39295 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
39296 E_Anonymous_Access_Protected_Subprogram_Type.
39298 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
39301 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
39302 to anonymous access to subprogram types.
39304 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
39305 to subprogram types.
39307 * sem_ch3.adb (Access_Definition): Complete decoration of entities
39308 corresponding to anonymous access to subprogram types.
39309 (Analyze_Component_Declaration): Add new actual to the call to
39310 subprogram replace_anonymous_access_to_protected_subprogram.
39311 (Array_Type_Declaration): Add new actual to the call to subprogram
39312 replace_anonymous_access_to_protected_subprogram.
39313 (Process_Discriminants): Add new actual to the call to subprogram
39314 replace_anonymous_access_to_protected_subprogram.
39315 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
39317 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
39320 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
39321 access to subprogram types.
39323 * sem_util.adb (Has_Declarations): Addition of package_specification
39326 2004-04-21 Ed Schonberg <schonberg@gnat.com>
39328 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
39329 inlined flags to renamed entity only if in current unit.
39331 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
39333 * s-parint.ads: Add DSA implementation marker.
39335 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
39336 value of System.Partition_Interface.DSA_Implementation to determine
39337 what version of the distributed systems annex is available (no
39338 implementation, GLADE, or PolyORB).
39340 2004-04-21 Joel Brobecker <brobecker@gnat.com>
39342 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
39344 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39346 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
39347 with new type if alias sets differ.
39348 Fixes ACATS c41103b.
39350 2004-04-21 Vincent Celier <celier@gnat.com>
39352 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
39353 Add array Lang_Args for the language specific compiling argument
39356 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
39358 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
39360 * gnat_rm.texi: Update the descripton of the Eliminate pragma
39361 according to the recent changes in the format of the parameters of the
39362 pragma (replacing Homonym_Number with Source_Location).
39364 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
39366 * 5isystem.ads: Removed, unused.
39368 * gnat_rm.texi: Redo 1.13 change.
39370 2004-04-19 Robert Dewar <dewar@gnat.com>
39372 * s-stoele.ads: Clean up definition of Storage_Offset (the new
39373 definition is cleaner, avoids the kludge of explicit Standard operator
39374 references, and also is consistent with a visible System.Address with
39375 no visible operations.
39377 * s-geveop.adb: Add declarations to avoid assumption of visible
39378 operations on type System.Address (since these might not be available
39379 if Address is a non-private type for which the operations
39380 are made abstract).
39382 * sem_eval.adb: Minor reformatting
39384 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
39385 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
39386 reformatting (new function spec format).
39388 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
39389 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
39390 s-caun64.adb: Add declarations to avoid assumption of visible
39391 operations on type System.Address (since these might not be available
39392 if Address is a non-private type for which the operations are made
39395 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
39397 * exp_intr.adb: Minor comment update
39399 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
39401 * 5omastop.adb: Add declarations to avoid assumption of visible
39402 operations on type System.Address (since these might not be available
39403 if Address is a non-private type for which the operations
39404 are made abstract).
39406 2004-04-19 Vincent Celier <celier@gnat.com>
39408 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
39410 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
39413 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
39415 Call Check with Process_Languages.
39416 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
39417 with Process_Languages.
39418 (Recursive_Check): New Boolean parameter Process_Languages. Call
39419 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
39422 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
39424 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
39425 parameter Ada_Main, defaulted to True.
39426 Check for Ada specific characteristics only when Ada_Main is True.
39428 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
39430 * prj.adb: (Project_Empty): Add new Project_Data components.
39432 * prj.ads: New types and tables for non Ada languages.
39433 (Project_Data): New components Languages, Impl_Suffixes,
39434 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
39435 Include_Path, Include_Data_Set.
39437 * prj-env.ads, prj-env.adb: Minor reformatting
39439 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
39440 Put subprograms in alphabetical order
39442 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
39443 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
39446 * mlib-prj.adb: Back out modification in last version, as they are
39448 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
39450 * make.adb: (Mains): Moved to package Makeutl
39451 (Linker_Opts): Moved to package Makeutl
39452 (Is_External_Assignment): Moved to package Makeutl
39453 (Test_If_Relative_Path): Moved to package Makeutl
39454 (Gnatmake): Move sorting of linker options to function
39455 Makeutl.Linker_Options_Switches.
39457 * makeutl.ads, makeutl.adb: New files.
39459 * Makefile.in: Add makeutl.o to the object files for gnatmake
39461 * makeusg.adb: Add line for new switch -eL.
39463 * gnatls.adb (Image): New function.
39464 (Output_Unit): If in verbose mode, output the list of restrictions
39465 specified by pragmas Restrictions.
39467 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
39470 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
39471 needed, to put it in the range 1970 (included) - 2026 (excluded).
39472 (Time_Of): Do not shift Unix_Min_Year (1970).
39473 Shift the date by multiple of 56 years, if needed, to put it in the
39474 range 1970 (included) - 2026 (excluded).
39476 * adaint.h, adaint.c (__gnat_set_executable): New function.
39478 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39480 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
39481 and pop GC context.
39482 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
39483 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
39484 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
39485 (tree_transform, case N_Code_Statement): Likewise.
39486 (gnat_expand_stmt, case LABEL_STMT): Don't look at
39487 LABEL_STMT_FIRST_IN_EH.
39488 (gnat_expand_stmt, case ASM_STMT): New case.
39490 * utils2.c (build_unary_op): Properly set TREE_READONLY of
39491 UNCONSTRAINED_ARRAY_REF.
39493 * utils.c (poplevel): Temporarily push/pop GC context around inline
39494 function expansion.
39496 * decl.c (maybe_variable): Properly set TREE_READONLY of
39497 UNCONSTRAINED_ARRAY_REF.
39498 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
39500 * ada-tree.def: (ASM_STMT): New.
39502 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
39503 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
39504 ASM_STMT_INPUT): New.
39505 (ASM_STMT_CLOBBER): Likewise.
39507 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
39509 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
39510 general rcheck mechanism to raise Program_Error for E.4(18), instead
39511 of a custom raiser in System.Partition_Interface.
39512 Part of general cleanup work before PolyORB integration.
39514 * snames.ads, snames.adb: Add new runtime library entities and names
39517 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
39519 (Build_Subprogram_Id): New subprogram provided by exp_dist
39520 Code reorganisation in preparation for PolyORB integration.
39522 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
39524 (Build_Subprogram_Id): New subprogram provided by exp_dist
39526 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
39527 actual parameter types for call to dereference of an
39528 access-to-subprogram type.
39530 * rtsfind.ads: Add new runtime library entities and names for PolyORB
39533 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
39534 instead, which has the same behaviour here since we never pass it a
39537 * link.c (run_path_option, Solaris case): Use -Wl, as for other
39540 * Makefile.in: adjust object file lists for gnatlink and gnatmake
39541 to account for new dependency upon Interfaces.C.Strings + link.o
39542 For x86 FreeBSD, use 86numaux.
39544 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
39545 from Mlib.Tgt to Mlib.
39547 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
39548 target-independent.
39550 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
39551 target-specific versions of this subprogram, now implemented as a
39552 target-independent function in Mlib.
39554 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
39555 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
39556 (Linker_Library_Path_Option): Remove target-specific versions of this
39557 subprogram, now implemented as a target-independent function in Mlib.
39559 * atree.adb: (Allocate_Initialize_Node): New subprogram.
39560 Factors out node table slots allocation.
39561 (Fix_Parents): New subprogram.
39562 Encapsulate the pattern of fixing up parent pointers for syntactic
39563 children of a rewritten node.
39564 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
39565 (Rewrite): Use New_Copy when creating saved copy of original node.
39566 (Replace): Use Copy_Node to copy nodes.
39568 2004-04-19 Javier Miranda <miranda@gnat.com>
39570 * sprint.adb (Sprint_Node_Actual): Give support to the new
39571 Access_To_Subprogram node available in Access_Definition nodes. In
39572 addition, give support to the AI-231 node fields: null-exclusion,
39573 all-present, constant-present.
39575 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
39577 * sinfo.ads, sinfo.adb:
39578 New field Access_To_Subprogram_Definition in Access_Definition nodes
39580 * sem_ch6.adb (Process_Formals): Move here the code that creates and
39581 decorates internal subtype declaration corresponding to the
39582 null-excluding formal. This code was previously in Set_Actual_Subtypes.
39583 In addition, carry out some code cleanup on this code. In case of
39584 access to protected subprogram call
39585 Replace_Anonymous_Access_To_Protected_Subprogram.
39586 (Set_Actual_Subtypes): Code cleanup.
39588 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
39589 Find_Type in case of anonymous access renamings. Add warning in case of
39590 null-excluding attribute used in anonymous access renaming.
39592 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
39595 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
39597 (Access_Definition): In case of anonymous access to subprograms call
39598 the corresponding semantic routine to decorate the node.
39599 (Access_Subprogram_Declaration): Addition of some comments indicating
39600 some code that probably should be added here. Detected by comparison
39601 with the access_definition subprogram.
39602 (Analyze_Component_Declaration): In case of access to protected
39603 subprogram call Replace_Anonymous_Access_To_Protected.
39604 (Array_Type_Declaration): In case of access to protected subprogram call
39605 Replace_Anonymous_Access_To_Protected_Subprogram.
39606 (Process_Discriminants): In case of access to protected subprogram call
39607 Replace_Anonymous_Access_To_Protected_Subprogram.
39609 * par.adb (P_Access_Definition): New formal that indicates if the
39610 null-exclusion part was present.
39611 (P_Access_Type_Definition): New formal that indicates if the caller has
39612 already parsed the null-excluding part.
39614 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
39615 (P_Identifier_Declarations): Code cleanup and give support to renamings
39616 of anonymous access to subprogram types.
39617 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
39618 (P_Array_Type_Definition): Give support to AI-254.
39619 (P_Component_Items): Give support to AI-254.
39620 (P_Access_Definition): New formal that indicates if the header was
39621 already parsed by the caller.
39622 (P_Access_Type_Definition): New formal that indicates if the caller has
39623 already parsed the null-excluding part.
39625 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
39626 call to P_Access_Definition.
39628 2004-04-19 Geert Bosch <bosch@gnat.com>
39630 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
39631 the delicate semantics of floating-point to integer conversion.
39632 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
39634 * eval_fat.adb (Machine_Mantissa): Moved to spec.
39635 (Machine_Radix): New function.
39637 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
39639 (Machine_Radix): New function also for use in conversion checks.
39641 2004-04-19 Ed Schonberg <schonberg@gnat.com>
39643 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
39645 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
39646 to decorate the access-to-protected subprogram and the equivalent type.
39648 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
39649 to anonymous access to subprogram types.
39651 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
39652 constant-folding, for legality checks in contexts that require an RM
39655 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
39656 temporary but stack checking is not enabled, increment serial number
39657 to so that symbol generation is consistent with and without stack
39660 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
39661 independent on whether stack checking is enabled, caller must check
39662 the corresponding flag.
39664 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
39666 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
39667 parent if it has discriminants.
39668 (Build_Derived_Private_Type): Constructed full view does
39669 not come from source.
39670 (Process_Discriminants): Default discriminants on a tagged type are
39671 legal if this is the internal completion of a private untagged
39674 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
39675 no constraint checks, because it corresponds to an existing object.
39677 * sem_prag.adb (Process_Convention): Pragma applies
39678 only to subprograms in the same declarative part, i.e. the same unit,
39679 not the same scope.
39681 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
39682 ignore type mismatch on a numeric conversion if expression comes from
39685 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
39687 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
39688 Homonym_Number parameter, add processing for Source_Location parameter
39690 (Check_Eliminated): Remove the check for homonym numbers, add the check
39691 for source location traces.
39693 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
39694 with Arg_Source_Location corresponding to the changes in the format of
39697 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
39698 Eliminate pragma corresponding to the changes in the format of the
39699 pragma: Homonym_Number is replaced with Source_Location, two ways of
39700 distinguishing homonyms are mutially-exclusive.
39702 2004-04-19 Joel Brobecker <brobecker@gnat.com>
39704 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
39706 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
39707 No_Dollar_In_Label, no longer necessary, as it is always True.
39708 (Strip_Suffixes): Likewise.
39710 2004-04-19 Gary Dismukes <dismukes@gnat.com>
39712 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
39713 modulus for compatibility with size clause on targets with 16-bit
39716 * layout.adb (Discrimify): In the case of private types, set Vtyp to
39717 full type to fix type mismatches on calls to size functions for
39718 discriminant-dependent array components.
39720 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
39722 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
39725 2004-04-19 Pascal Obry <obry@gnat.com>
39727 * mdll-utl.adb (Locate): New version is idempotent.
39729 2004-04-17 Laurent Guerby <laurent@guerby.net>
39731 PR ada/14988 (partial)
39732 * impunit.adb: Fix typo.
39734 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
39736 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
39737 and install-rts-cert targets. Remove all gnatlib and gnattools
39738 targets and all other rts-* targets (moved to libada). Remove (now)
39739 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
39740 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
39742 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39744 * trans.c (tree_transform): Shortcut returning error_mark_node for
39745 statements in annotate_only_mode.
39746 (tree_transform, case N_Label, case N_Return_Statement,
39747 N_Goto_Statement): Make statement tree instead of generating code.
39748 (tree_transform, case N_Assignment_Statement): No longer check
39749 type_annotate_only.
39750 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
39752 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
39754 (gnat_to_gnu): Collect any RTL generated and deal with it.
39755 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
39756 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
39757 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
39759 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
39761 * ada-tree.def (EXPR_STMT): Fix typo in name.
39762 (BLOCK_STMT, IF_STMT): New nodes.
39764 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
39765 LABEL_STMT_FIRST_IN_EH): New macros.
39766 (RETURN_STMT_EXPR): Likewise.
39768 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
39769 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
39771 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
39773 * atree.ads: Correct documentation on extended nodes.
39775 * link.c: Set run_path_option for FreeBSD.
39777 2004-04-08 Vincent Celier <celier@gnat.com>
39779 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
39780 one of the ALI file, do not link with DEC lib.
39782 * par.adb Remove the last two characters ("%s" or "%b") when checking
39783 if a language defined unit may be recompiled.
39785 2004-04-08 Ed Schonberg <schonberg@gnat.com>
39787 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
39788 removal of abstract operation leaves no possible interpretation for
39791 * sem_eval.adb (Eval_Qualified_Expression): Use
39792 Set_Raises_Constraint_Error on node when needed, so that it does not
39793 get optimized away by subsequent optimizations.
39795 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
39796 operands even when they are not wrapped in a type conversion.
39798 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
39800 * sem_prag.adb (Set_Exported): Warn about making static as result of
39801 export only when the export is coming from source. This may be not
39802 be true e.g. on VMS where we expand export pragmas for exception codes
39803 together with imported or exported exceptions, and we don't want the
39804 user to be warned about something he didn't write.
39806 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
39808 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
39809 duplication between normal entities and those declared as renamings.
39810 No functional change.
39812 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
39813 inline functions returning an unconstrained result.
39815 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
39817 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
39818 conform to what other front-ends do.
39820 2004-04-08 Doug Rupp <rupp@gnat.com>
39822 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
39825 2004-04-06 Pascal Obry <obry@gnat.com>
39827 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
39829 * osint.adb (Program_Name): Do not look past a directory separator.
39831 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
39833 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
39835 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
39836 requirement for preserving a copy of the original assignment node.
39838 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
39840 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
39842 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
39845 2004-04-06 Ed Schonberg <schonberg@gnat.com>
39847 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
39848 operator calls in functional notation, and apply
39849 Universal_Interpretation to operands, not to their type.
39851 2004-04-06 Robert Dewar <dewar@gnat.com>
39853 * 5wdirval.adb: Minor reformatting
39855 2004-04-06 Ed Falis <falis@gnat.com>
39857 * gnat_rm.texi: Improve a reference to the GCC manual
39859 2004-04-05 Vincent Celier <celier@gnat.com>
39861 * adaint.h, adaint.c: Add function __gnat_named_file_length
39863 * impunit.adb: Add Ada.Directories to the list
39865 * Makefile.in: Add VMS and Windows versions of
39866 Ada.Directories.Validity package body.
39868 * Makefile.rtl: Add a-direct and a-dirval
39870 * mlib-tgt.ads: Minor comment update.
39872 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
39873 a-direct.ads, a-direct.adb: New files.
39875 2004-04-05 Vincent Celier <celier@gnat.com>
39878 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
39879 just to the compiler.
39881 2004-04-05 Robert Dewar <dewar@gnat.com>
39883 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
39884 returned string is 1.
39886 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
39888 * eval_fat.ads: Minor reformatting
39890 * g-curexc.ads: Document that lower bound of returned string values
39893 * gnatlink.adb: Add ??? comment for previous change
39894 (need to document why this is VMS specific)
39896 * s-stoele.ads: Minor reformatting
39898 * tbuild.ads: Minor reformatting throughout (new function specs)
39900 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
39903 * scng.adb: Minor reformatting
39905 2004-04-05 Geert Bosch <bosch@gnat.com>
39907 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
39908 (Leading_Part): Still perform truncation to machine number if the
39909 specified radix_digits is greater or equal to machine_mantissa.
39911 2004-04-05 Javier Miranda <miranda@gnat.com>
39913 * par-ch3.adb: Complete documentation of previous change
39914 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
39915 (aliased must appear before constant).
39917 * par-ch4.adb: Complete documentation of previous change.
39919 * par-ch6.adb: Complete documentation of previous change.
39921 * sinfo.ads: Fix typo in commment.
39923 2004-04-05 Ed Schonberg <schonberg@gnat.com>
39925 * sem_ch3.adb (Inherit_Components): If derived type is private and has
39926 stored discriminants, use its discriminants to constrain parent type,
39927 as is done for non-private derived record types.
39929 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
39930 Ada 2005 AI-310: an abstract non-dispatching operation is not a
39931 candidate interpretation in an overloaded call.
39933 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
39934 expression is Null and target type is not an access type (e.g. a
39935 non-private address type).
39937 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
39939 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
39940 statement whose right-hand side is an inlined call, save a copy of the
39941 original assignment subtree to preserve enough consistency for
39942 Analyze_Assignment to proceed.
39944 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
39945 complete assignment subtree which is now unnecessary, as the expansion
39946 of inlined call has been improved to preserve a consistent assignment
39947 tree. Note_Possible_Modification must be called only
39948 after checks have been applied, or else unnecessary checks will
39951 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
39952 of explicit dereferences that do not Come_From_Source:
39953 - be selective on cases where we must go back to the dereferenced
39954 pointer (an assignment to an implicit dereference must not be
39955 recorded as modifying the pointer);
39956 - do not rely on Original_Node being present (Analyze_Assignment
39957 calls Note_Possible_Modification on a copied tree).
39959 * sem_warn.adb (Check_References): When an unset reference to a pointer
39960 that is never assigned is encountered, prefer '<pointer> may be null'
39961 warning over '<pointer> is never assigned a value'.
39963 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
39965 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
39968 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
39970 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
39971 libexc. We currently don't reference anything in this library and
39972 linking it in triggers linker warnings we don't want to see.
39974 * init.c: Update comments.
39976 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39978 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
39979 * utils.c (create_field_decl): Likewise.
39980 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
39982 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
39984 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
39985 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
39986 Add info directory entry and category.
39988 2004-04-02 Jan Hubicka <jh@suse.cz>
39990 * utils.c: Include function.h
39991 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
39993 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
39996 * Make-lang.in: Clean up generation of documentation
39998 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
40000 * xgnatug.adb: Removed, replaced by xgnatugn.adb
40002 * xgnatugn.adb: Replaces xgnatug.adb
40004 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
40006 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
40008 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40009 gnat_ug_wnt.texi: Removed.
40011 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
40013 * utils2.c: Update copyright notice.
40015 2004-04-01 Robert Dewar <dewar@gnat.com>
40017 * checks.adb: Minor reformatting throughout
40018 Note that prev checkin added RM reference to alignment warning
40020 2004-04-01 Ed Schonberg <schonberg@gnat.com>
40022 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
40023 non-static when building aggregate for bit-packed array.
40025 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
40026 function call that is itself the actual in a procedure call, build
40029 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
40030 a string literal, create a temporary for it, constant folding only
40031 handles scalars here.
40033 2004-04-01 Vincent Celier <celier@gnat.com>
40035 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
40036 Error_Msg_SP): New empty procedures to instantiate the Scanner.
40037 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
40039 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
40040 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
40041 and get the checksum.
40043 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
40045 Increase the Marking_Label at the end of the Multiple_Main_Loop,
40046 instead of at the beginning.
40048 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
40050 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
40053 * osint.ads (Multi_Unit_Index_Character): New Character global variable
40055 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
40058 * par.adb: Remove test on file name to detect language defined units.
40059 Add test on unit name, after parsing, to detect language defined units
40060 that are not compiled with -gnatg (except System.RPC and its children)
40062 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
40063 following units without style checking.
40065 * switch-c.adb: Change -gnatC to -gnateI
40067 * usage.adb: Document new switch -gnateInnn
40069 * scng.adb (Accumulate_Token_Checksum): New procedure
40070 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
40071 word or literal number.
40072 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
40075 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
40078 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
40079 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
40080 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
40081 5vtpopde.adb: Add missing 'constant' keywords.
40083 2004-04-01 Javier Miranda <miranda@gnat.com>
40085 * par-ch4.adb: (P_Allocator): Code cleanup
40087 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
40090 * sinfo.ads: Complete documentation of previous change
40092 2004-04-01 Pascal Obry <obry@gnat.com>
40094 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
40095 only on VMS. This special handling was done because an old GNU/ld bug
40096 on Windows which has been fixed.
40098 2004-04-01 GNAT Script <nobody@gnat.com>
40100 * Make-lang.in: Makefile automatically updated
40102 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40104 * decl.c (gnat_to_gnu_entity, make_type_from_size):
40105 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
40106 * trans.c (tree_transform, convert_with_check): Likewise.
40107 * utils.c (gnat_signed_or_unsigned_type): Likewise.
40108 (build_vms_descriptor, unchecked_convert): Likewise.
40109 * utils2.c (nonbinary_modular_operation): Likewise.
40111 2004-03-29 Javier Miranda <miranda@gnat.com>
40113 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
40114 (Install_Null_Excluding_Check): Local subprogram that determines whether
40115 an access node requires a runtime access check and if so inserts the
40116 appropriate run-time check.
40117 (Apply_Access_Check): Call Install_Null_Excluding check if required
40118 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
40120 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
40122 * einfo.ads: Fix typo in comment
40124 * exp_ch3.adb (Build_Assignment): Generate conversion to the
40125 null-excluding type to force the corresponding run-time check.
40126 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
40127 type to force the corresponding run-time check.
40129 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
40130 the null-excluding type to force the corresponding run-time check.
40132 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
40133 case of access types unless they have the null-excluding attribute.
40135 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
40138 * exp_util.ads: Fix typo in comment
40140 * par.adb (P_Null_Exclusion): New subprogram
40141 (P_Subtype_Indication): New formal that indicates if the null-excluding
40142 part has been scanned-out and it was present
40144 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
40146 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
40147 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
40148 type to force the corresponding run-time check
40149 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
40151 (Resolve_Array_Aggregate): Carry out some static checks
40152 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
40154 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
40155 attribute must be set only if specified by means of the null-excluding
40156 part. In addition, we must also propagate the access-constant attribute
40158 (Access_Subprogram_Declaration, Access_Type_Declaration,
40159 Analyze_Component_Declaration, Analyze_Object_Declaration,
40160 Array_Type_Declaration, Process_Discriminants,
40161 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
40162 and carry out some static checks.
40163 (Build_Derived_Access_Type): Set the null-excluding attribute
40164 (Derived_Type_Declaration, Process_Subtype): Carry out some static
40167 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
40169 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
40171 * sem_ch6.adb (Process_Formals): Carry out some static checks.
40172 (Set_Actual_Subtypes): Generate null-excluding subtype if the
40173 null-excluding part was present; it is not required to be done here in
40174 case of anonymous access types.
40175 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
40178 * sem_res.adb (Resolve_Actuals): Carry out some static check
40179 (Resolve_Null): Allow null in anonymous access
40181 * sinfo.adb: New subprogram Null_Exclusion_Present
40182 All_Present and Constant_Present available on access_definition nodes
40184 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
40185 object_declaration, derived_type_definition, component_definition,
40186 discriminant_specification, access_to_object_definition,
40187 access_function_definition, allocator, access_procedure_definition,
40188 access_definition, parameter_specification, All_Present and
40189 Constant_Present flags available on access_definition nodes.
40191 2004-03-29 Robert Dewar <dewar@gnat.com>
40193 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
40194 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
40195 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
40196 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
40197 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
40198 sem_prag.adb: Updates to handle multiple units/file
40200 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
40202 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
40203 sem_util.adb: Minor reformatting
40205 * sem_ch12.adb: Add comment for previous change
40207 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
40209 * osint.adb (Executable_Prefix): Set Exec_Name to the current
40210 executable name when not initialized. Otherwise, use its current value.
40212 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
40213 initialize it to another executable name than the current one. This
40214 allows to configure paths for an executable name (gnatmake) different
40215 from the current one (gnatdist).
40217 2004-03-29 Ed Schonberg <schonberg@gnat.com>
40219 * exp_ch6.adb (Expand_Call): A call to a function declared in the
40220 current unit cannot be inlined if it appears in the body of a withed
40221 unit, to avoid order of elaboration problems in gigi.
40223 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
40224 information for protected (wrapper) operation as well, to simplify gdb
40227 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
40228 protected body, indicate that the entity for the generated spec comes
40229 from source, to ensure that references are properly generated for it.
40230 (Build_Body_To_Inline): Do not inline a function that returns a
40233 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
40234 apply convention to homonyms that are declared explicitly.
40236 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
40237 that renames an equality operator and the operands are overloaded,
40238 resolve them with the declared formal types, before rewriting as an
40241 2004-03-29 GNAT Script <nobody@gnat.com>
40243 * Make-lang.in: Makefile automatically updated
40245 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
40247 * memtrack.adb: Log realloc calls, which are treated as free followed
40250 2004-03-25 Vincent Celier <celier@gnat.com>
40252 * prj-makr.adb (Process_Directories): Detect when a file contains
40253 several units. Do not include such files in the config pragmas or
40254 in the naming scheme.
40256 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
40257 Resolve links only when not in Trusted_Mode.
40258 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
40259 Do not resolve links for the display names.
40261 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
40262 resolve links when computing the display names.
40264 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
40266 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
40267 attribute reference does not denote a subtype, it can be any
40268 expression that has a classwide type, potentially after an implicit
40269 dereference. In particular, the prefix can be a view conversion for
40270 a classwide type (for which Is_Object_Reference holds), but it can
40271 also be a value conversion for an access-to-classwide type. In the
40272 latter case, there is an implicit dereference, and the original node
40273 for the prefix does not verify Is_Object_Reference.
40275 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
40276 conversion of a discriminant-dependent component of a mutable object
40279 2004-03-25 Ed Schonberg <schonberg@gnat.com>
40281 * freeze.adb (Freeze_Entity): When an inherited subprogram is
40282 inherited, has convention C, and has unconstrained array parameters,
40283 place the corresponding warning on the derived type declaration rather
40284 than the original subprogram.
40286 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
40287 indication on renaming declaration, if formal has a box and actual
40290 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
40291 determine whether to generate an implicit or explicit reference to
40292 the renamed entity.
40294 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
40295 subprogram renaming comes from a defaulted formal subprogram in an
40298 2004-03-25 Gary Dismukes <dismukes@gnat.com>
40300 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
40301 value expressions to ensure that calls within a component definition
40302 will be checked (since those are evaluated during the record type's
40305 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
40307 * s-tpobop.adb: Code clean up:
40308 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
40310 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
40312 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
40314 * Makefile.in: Clean up in the ravenscar run time.
40316 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40318 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
40319 of No_Strict_Aliasing to build_pointer_type_for_mode.
40320 * utils.c (update_pointer_to): Walk pointer and ref chains.
40322 2004-03-22 Cyrille Comar <comar@act-europe.fr>
40324 * ali.ads: Fix Comment about Dynamic_Elab.
40326 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
40327 Has_RACW, Is_Generic, etc.)
40328 (Output_Object, Gnatls): Take into account ALI files not attached to
40331 2004-03-22 Vincent Celier <celier@gnat.com>
40333 * gprep.adb: Change all String_Access to Name_Id
40334 (Is_ASCII_Letter): new function
40335 (Double_File_Name_Buffer): New procedure
40336 (Preprocess_Infile_Name): New procedure
40337 (Process_Files): New procedure
40338 (Gnatprep): Check if output and input are existing directories.
40339 Call Process_Files to do the real job.
40341 2004-03-22 Robert Dewar <dewar@gnat.com>
40343 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
40344 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
40346 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
40348 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
40349 case when the source contains only comments.
40351 2004-03-22 Ed Schonberg <schonberg@gnat.com>
40353 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
40354 declaration for a child subprogram body that acts as a spec, indicate
40355 that the entity in the declaration needs debugging information.
40357 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
40358 full view if the subtype is created for a constrained record component;
40359 gigi has enough information to construct the record, and there is no
40360 place in the tree for the declaration.
40362 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
40363 serial number for the dummy body that is built for analysis, to avoid
40364 inconsistencies in the generation of internal names when compiling
40367 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
40369 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
40372 2004-03-22 GNAT Script <nobody@gnat.com>
40374 * Make-lang.in: Makefile automatically updated
40376 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40378 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
40379 * trans.c (tree_transform, emit_index_check): Likewise.
40380 * utils.c (build_template): Likewise.
40381 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
40382 (maybe_unconstrained_array, unchecked_convert): Likewise.
40383 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
40384 (build_unary_op): Likewise.
40385 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
40386 (fill_vms_descriptor): Likewise.
40387 (build_call_alloc_dealloc): Likewise.
40389 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
40391 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
40394 * gnat_ug.texi: Add info directory category and entry.
40395 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40396 gnat_ug_wnt.texi: Regenerate.
40398 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
40400 * ada-tree.h: Update copyright notice.
40401 Minor reformatting.
40403 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
40405 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
40406 as regular exception objects and not as mere integers representing the
40407 condition code. The latter approach required some dynamics to mask off
40408 severity bits, which did not fit well into the GCC table based model.
40409 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
40410 exception data objects. We don't it and it would conflict with the other
40411 external symbol we have to generate for such exceptions.
40413 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
40414 the special code for VMS exceptions, since these are now represented
40415 as regular exceptions objects.
40417 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40419 * decl.c (debug_no_type_hash): Remove.
40420 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
40421 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
40423 2004-03-19 Laurent Guerby <laurent@guerby.net>
40425 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
40426 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
40428 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40430 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
40431 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
40432 (TYPE_RM_SIZE_INT): Directly use type.values.
40433 (TREE_LOOP_ID): Clean up check.
40434 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
40435 TYPE_VALUES, not TYPE_FIELDS.
40436 * trans.c (convert_with_check): Delay access of bounds of basetype
40437 until sure is numeric.
40439 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
40441 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
40444 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
40445 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
40446 Specific.Set instead of direct call to e.g pthread_setspecific.
40448 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
40450 * adaint.c: Update comments.
40452 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
40453 GNATLIB_SHARED for FreeBSD.
40455 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
40457 * init.c [VxWorks]: Do not fix the stack size for the environment task.
40458 When needed (stack checking) the stack size is retrieved
40459 from the VxWorks kernel.
40461 * Makefile.in: Flag -nostdinc is required when building the run time
40462 for avoiding looking for files in the base compiler.
40463 Add the VxWorks specific version of the package body for
40464 System.Stack_checking.Operations (5zstchop.adb).
40466 * Make-lang.in: Add the object file for
40467 System.Stack_Checking.Operations.
40469 * Makefile.rtl: Add object file for the package
40470 System.Stack_Checking.Operations.
40472 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
40474 * s-stache.ads, s-stache.adb: Move the operations related to stack
40475 checking from this package to package System.Stack_Checking.Operations.
40476 This way, stack checking operations are only linked in the final
40477 executable when using the -fstack-check flag.
40479 2004-03-18 Doug Rupp <rupp@gnat.com>
40481 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
40484 * 5qsystem.ads, 5xcrtl.ads: New files.
40486 2004-03-18 Vincent Celier <celier@gnat.com>
40488 * prj.adb (Reset): Reset hash table Files_Htable
40490 * prj-env.adb (Source_Paths, Object_Paths): New tables.
40491 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
40492 the procedures Add_To_Path_File.
40493 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
40494 making sure that each directory is present only once and, for object
40495 dirs, when a directory already present is added, the duplicate is
40496 removed and the directory is always put as the last in the table.
40497 Write the path files at the end of these accumulations.
40499 * prj-nmsc.adb (Record_Source): Add source file name in hash table
40500 Files_Htable for all sources.
40502 * prj-proc.adb (Process): Remove restrictions between not directly
40503 related extending projects.
40505 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
40507 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
40508 (Find_Sources): Minor speed optimization.
40510 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
40511 parameter Trusted_Mode.
40513 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
40515 * scn.adb (Determine_License): Take into account a degenerated case
40516 when the source contains only comments.
40518 2004-03-18 Ed Schonberg <schonberg@gnat.com>
40520 * sem_warn.adb (Check_References): For a warning on a selected
40521 component that does not come from source, locate an uninitialized
40522 component of the record type to produce a more precise error message.
40524 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
40526 * 3zsoccon.ads: Fix multicast options.
40528 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
40531 2004-03-15 Robert Dewar <dewar@gnat.com>
40533 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
40534 pragma used for a private type.
40536 * lib-xref.adb (Generate_Reference): Do not generate warning if
40537 reference is in a different unit from the pragma Unreferenced.
40539 * 5vtpopde.adb: Minor reformatting
40540 Fix casing of To_Task_ID
40542 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
40543 flag if we have an unchecked conversion to an access type in the same
40546 2004-03-15 Geert Bosch <bosch@gnat.com>
40548 * a-ngcoty.adb (Modulus): In alternate formula for large real or
40549 imaginary parts, use Double precision throughout.
40551 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
40552 we want to be able to compile run-time with -gnata for testing, but
40553 this may also be instantiated in user code that is compiled with -gnata.
40555 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
40557 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
40558 codes. Having a separate type for this is useful to enforce consistency
40559 throughout the various run-time units.
40560 (Exception_Data): Use Exception_Code for Import_Code.
40562 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
40563 Natural and Integer in various places.
40564 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
40565 with the severity bits masked off.
40566 (Register_VMS_Exception): Handle the additional exception data pointer
40569 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
40570 component, now reflected by an exported accessor.
40571 (is_handled_by): New routine to compute whether the propagated
40572 occurrence matches some handler choice specification. Extracted out of
40573 get_action_description_for, and expanded to take care of the VMS
40575 (get_action_description_for): Use is_handled_by instead of an explicit
40576 complex condition to decide if the current choice at hand catches the
40577 propagated occurrence.
40579 * raise.h (Exception_Code): New type for C.
40581 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
40582 System.Standard_Library.Exception_Code, to allow references from the
40583 pragma import/export expander.
40585 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
40586 New accessors to allow easy access to GNAT exception data
40588 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
40589 redundant Handled_By_Others component, helper for the personality
40590 routine which will now be able to call the appropriate exception data
40593 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
40594 component of Standard_Exception_Type to be the closest possible to
40595 Exception_Code in System.Standard_Library, that we cannot get at this
40596 point. Expand a ??? comment to notify that this type node should
40597 probably be rewritten later on.
40599 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
40600 registration call to include a pointer to the exception object in the
40603 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
40604 instead of int and explicit bitmasks.
40606 2004-03-15 Vincent Celier <celier@gnat.com>
40608 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
40609 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
40611 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
40612 longer needed now that it is in the spec of
40613 System.Tasking.Task_Attributes.
40615 * adaint.h, adaint.c: (__gnat_create_output_file): New function
40617 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
40619 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
40621 * make.adb (Gnatmake): Do not check the executable suffix; it is being
40622 taken care of in Scan_Make_Arg.
40623 (Scan_Make_Arg): Add the executable suffix only if the argument
40624 following -o, in canonical case, does not end with the executable
40625 suffix. When in verbose mode and executable file name does not end
40626 with executable suffix, output the executable name, in canonical case.
40628 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
40629 to avoid warnings when instantiating Ada.Task_Attributes.
40632 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
40633 in the correct order.
40635 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
40636 redirect standard output and error to a file for the invocation of the
40637 compiler, then read the file.
40639 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
40640 directory, instead of the Value.
40641 (Find_Source_Dirs): Remove useless code & comments.
40643 2004-03-15 Ed Schonberg <schonberg@gnat.com>
40645 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
40646 tagged type is inherited, and the parent operation is not frozen yet,
40647 force generation of a freeze node for the inherited operation, so the
40648 corresponding dispatch entry is properly initialized.
40649 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
40650 when looking for user-defined equality operation.
40652 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
40653 boolean when locating primitive equality of tagged component.
40655 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
40656 bit-aligned field and the right-hand side a string literal, introduce
40657 a temporary before expanding assignment into a loop.
40659 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
40660 priority in full, to ensure that any expanded subepxressions of it are
40661 elaborated in the scope of the init_proc.
40663 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
40664 after object declaration, skipping over code that may have been
40665 generated for validity checks.
40667 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
40668 discriminants, ignore the known discriminants of its full view, if
40669 any, to check legality.
40671 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
40672 component if type has unknown discriminants.
40673 (Analyze_Private_Extension_Declaration): Discriminant constraint is
40674 null if type has unknown discriminants.
40676 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
40677 for end label when present.
40679 * s-fileio.adb (Open): When called with a C_Stream, use given name for
40680 temporary file, rather than an empty string.
40682 2004-03-15 Ed Falis <falis@gnat.com>
40684 * s-thread.adb: Removed, no longer used.
40686 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40688 * decl.c (target.h): Now include.
40689 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
40690 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
40691 (validate_size): For POINTER_TYPE, get smallest size permitted on
40694 * fe.h: Sort Einfo decls and add Set_Mechanism.
40696 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
40697 (ada/decl.o): Depends on target.h.
40699 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
40700 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
40702 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
40704 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
40706 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
40707 Insert_Dereference_Action when rewriting an implicit dereference into
40708 an explicit one, this will be taken care of during expansion of the
40709 explicit dereference.
40710 (Expand_N_Slice): Same. Always do the rewriting, even for the case
40711 of non-packed slices, since the dereference action generated by
40712 expansion of the explicit dereference is needed in any case.
40713 (Expand_N_Selected_Component): When rewriting an implicit dereference,
40714 analyze and resolve the rewritten explicit dereference so it is seen
40716 (Insert_Dereference_Action): This procedure is now called only for the
40717 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
40718 dereferences that do not come from source (including explicit
40719 dereferences resulting from rewriting implicit ones), but do not
40720 recursively insert a check for the dereference nodes contained within
40722 (Insert_Dereference_Action): Clarify and correct comment.
40724 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
40727 Move language detection to the top level.
40728 * config-lang.in: Build by default.
40730 2004-03-05 Robert Dewar <dewar@gnat.com>
40732 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
40734 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
40735 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
40736 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
40737 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
40738 unchecked conversion to spec to avoid warnings.
40740 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
40743 * 7stpopsp.adb: Correct casing in To_Task_ID call
40745 * a-strsea.ads, a-strsea.adb: Minor reformatting
40747 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
40749 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
40750 Adjust Max_Msg_Length to be clearly large enough.
40752 * fe.h: Define In_Same_Source_Unit
40754 * osint.adb: Add pragma Warnings Off to suppress warnings
40755 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
40758 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
40760 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
40762 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
40764 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
40766 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
40768 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
40769 node. We now do generate them for gcc back end.
40771 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
40774 * sinput-c.adb: Fix bad name in header.
40775 Add pragma Warnings Off to suppress aliasing warning.
40777 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
40779 * snames.h, snames.ads, snames.adb: Add entry for pragma
40780 No_Strict_Aliasing.
40782 2004-03-05 Vincent Celier <celier@gnat.com>
40784 * prj-com.ads: Add hash table Files_Htable to check when a file name
40785 is already a source of another project.
40787 * prj-nmsc.adb (Record_Source): Before recording a new source, check
40788 if its file name is not already a source of another project. Report an
40791 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
40792 source file name, call gnatpp with all the sources of the main project.
40794 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
40797 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
40798 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
40799 /RUNTIME_SYSTEM=, converted to --RTS=
40800 /NOTABS, converted to -notabs
40802 2004-03-05 Pascal Obry <obry@gnat.com>
40804 * make.adb: Minor reformatting.
40806 2004-03-05 Ed Schonberg <schonberg@gnat.com>
40808 Part of implemention of AI-262.
40809 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
40811 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
40814 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
40815 when component type is a partially constrained class-wide subtype.
40816 (Constrain_Discriminated_Type): If parent type has unknown
40817 discriminants, a constraint is illegal, even if full view has
40819 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
40820 with unknown discriminants whose full view is a discriminated record.
40822 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
40823 flag, to handle properly derivations of tagged types with unknown
40825 (Analyze_Package_Spec, Analyze_Package_Body): Install
40826 Private_With_Clauses before analyzing private part or body.
40828 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
40829 Has_Discriminants can be true for a given type (documentation).
40831 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
40833 * s-restri.ads: Fix license (GPL->GMGPL).
40835 * s-tassta.adb: Minor reformatting.
40837 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
40838 by calls to Exit_One_ATC_Level, since additional clean up is performed
40841 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
40842 by calls to Exit_One_ATC_Level, since additional clean up is performed
40845 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40847 * trans.c: Reflect GCC changes to fix bootstrap problem.
40848 Add warning for suspicious aliasing unchecked conversion.
40850 2004-03-05 GNAT Script <nobody@gnat.com>
40852 * Make-lang.in: Makefile automatically updated
40854 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
40856 * ali.adb (Read_Instantiation_Instance): Do not modify the
40857 current_file_num when reading information about instantiations, since
40858 this corrupts files in later references.
40860 2004-03-02 Vincent Celier <celier@gnat.com>
40862 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
40863 before checking if it is read-only.
40865 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
40866 of SRC_DIRS and eliminate duplicates.
40868 * gprcmd.adb: Replace command "path" with command "path_sep" to return
40869 the path separator.
40870 (Usage): Document path_sep
40872 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
40873 C++ compiler. No need for a script.
40874 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
40875 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
40878 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
40879 where there are Ada sources.
40880 (Set_Ada_Paths): Only add to the include path the source dirs of project
40882 (Add_To_Path): Add the Display_Values of the directories, not their
40885 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
40888 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
40890 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
40891 Value is canonicalized.
40892 (Language_Independent_Check): Do not copy Value to Display_Value when
40893 canonicalizing Value.
40895 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
40896 path to find limited with cycles.
40897 (Parse_Single_Project): Use canonical cased path to find the end of a
40900 2004-03-02 Ed Schonberg <schonberg@gnat.com>
40902 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
40903 and not a child unit.
40905 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
40906 appear in a with_clause.
40908 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
40909 only happen in type_annotate mode, do not try to elaborate it.
40911 * exp_util.adb (Force_Evaluation): If expression is a selected
40912 component on the left of an assignment, use a renaming rather than a
40913 temporary to remove side effects.
40915 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
40916 inlined instance body, which is analyzed before the end of the
40919 2004-03-02 Robert Dewar <dewar@gnat.com>
40921 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
40922 sem_ch4.adb: Use new feature for substitution of keywords in VMS
40924 * errout.ads, errout.adb: Implement new circuit for substitution of
40927 * sem_case.adb (Analyze_Choices): Place message properly when case is
40928 a subtype reference rather than an explicit range.
40930 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
40932 2004-03-02 Doug Rupp <rupp@gnat.com>
40934 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
40936 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
40938 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
40940 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40942 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
40945 2004-02-25 Robert Dewar <dewar@gnat.com>
40947 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
40948 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
40949 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
40950 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
40951 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
40952 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
40953 the defining instance of the type to avoid aliasing problems.
40954 Fix copyright header. Fix bad comments in package header.
40956 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
40958 2004-02-25 Ed Schonberg <schonberg@gnat.com>
40960 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
40961 rewritten as references when aliased through an address clause.
40963 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
40964 whether call can be interpreted as an indirect call to the result of a
40965 parameterless function call returning an access subprogram.
40967 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
40970 * exp_ch7.adb (Make_Clean): Remove generation of calls to
40971 Unlock[_Entries], since this is now done by Service_Entries directly.
40973 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
40975 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
40976 Requeue_Call for better code readability. Change spec and update calls:
40977 PO_Service_Entries now unlock the PO on exit.
40978 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
40979 PO_Service_Entries.
40981 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
40983 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
40985 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
40987 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
40988 protected subprogram call and analyzing the result of such expanding
40989 in case when the called protected subprogram is eliminated.
40991 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
40994 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
40996 * Makefile.in: Clean ups.
40998 2004-02-23 Ed Schonberg <schonberg@gnat.com>
41000 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
41001 protected operations if original subprogram is flagged as eliminated.
41002 (Expand_N_Subprogram_Body): For a protected operation, create
41003 discriminals for next operation before checking whether the operation
41006 * exp_ch9.adb (Expand_N_Protected_Body,
41007 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
41008 for internal protected operations if the original subprogram is
41011 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
41012 declared in a single protected object.
41014 2004-02-23 Vincent Celier <celier@gnat.com>
41016 * prj-attr.adb: Make attribute Builder'Executable an associative array,
41017 case insensitive if file names are case insensitive, instead of a
41018 standard associative array.
41020 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
41021 them as case insensitive on platforms where the file names are case
41024 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
41025 project file has already been parsed that canonical path are compared.
41027 2004-02-23 Robert Dewar <dewar@gnat.com>
41029 * sinput-c.ads: Correct bad unit title in header
41031 * freeze.adb: Minor reformatting
41033 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41035 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
41036 nonaddressable COMPONENT_REF that is removing padding that we are
41037 taking the address of, take the address of the padded record instead
41038 if item is variable size.
41040 2004-02-20 Robert Dewar <dewar@gnat.com>
41042 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
41044 2004-02-20 Ed Schonberg <schonberg@gnat.com>
41046 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
41047 itype references for the constrained designated type of a component
41048 whose base type is already frozen.
41050 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
41052 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
41053 avoid GCC warnings.
41055 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
41057 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
41058 identifier for a phantom package that rewrites the formal package
41059 declaration with a box. The Add semantic decorations for the defining
41060 identifier from the original node (that represents the formal package).
41062 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
41064 * Make-lang.in (ada/stamp-sdefault): Use the top level
41067 2004-02-19 Richard Henderson <rth@redhat.com>
41069 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
41071 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
41073 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
41074 Scan_ALI can be used for multiple ALI files without reinitializing
41077 2004-02-18 Robert Dewar <dewar@gnat.com>
41079 * debug.adb: Minor reformatting.
41081 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41083 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
41084 to zero if there is an address clause.
41086 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
41088 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
41090 2004-02-18 Gary Dismukes <dismukes@gnat.com>
41092 * layout.adb (Layout_Component_List): Revise generation of call to
41093 discriminant-checking function to pass selections of all of the type's
41094 discriminants rather than just the variant-controlling discriminant.
41096 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
41098 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
41099 fail in the current setup and triggers spurious system error messages.
41100 Pretend it occurred and failed instead.
41102 2004-02-18 Vincent Celier <celier@gnat.com>
41104 * bld.adb: Mark FLDFLAGS as saved
41105 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
41106 it is not the root project. Put each directory to be
41107 extended between double quotes to prevent it to be expanded on Windows.
41108 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
41109 the project file. Set them back to their initial values if they have not
41110 been set in the project file.
41112 * gprcmd.adb: (Gprdebug, Debug): New global variables
41113 (Display_Command): New procedure
41114 (Usage): Document new command "linkopts"
41115 Call Display_Command when env var GPRDEBUG has the value "TRUE"
41116 Implement new command "linkopts"
41117 Remove quotes that may be around arguments for "extend"
41118 Always call Normalize_Pathname with arguments formatted for the platform
41120 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
41121 Change @echo to @$(display) in target clean to be able to clean silently
41123 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
41125 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
41128 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
41129 = Extending_All when current project is an extending all project.
41131 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
41132 set to True only for LINK command, after Unix switch -o.
41133 (Process_Arguments): Set Output_File_Expected to True for LINK command
41134 after Unix switch -o. When Output_File_Expected is True, never add an
41135 extension to a file name.
41137 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
41138 option file name, only to the --for-linker= switch.
41139 (Option_File_Name): If option file name do not end with ".opt", append
41142 2004-02-18 GNAT Script <nobody@gnat.com>
41144 * Make-lang.in: Makefile automatically updated
41146 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
41148 * Make-lang.in (stamp-sdefault): Do not depend on
41151 2004-02-12 Zack Weinberg <zack@codesourcery.com>
41153 * config-lang.in: Disable Ada by default until probe logic for
41154 a bootstrap Ada compiler can be moved to the top level configure
41157 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
41159 * decl.c (components_to_record): Don't claim that the internal fields
41160 we make to hold the variant parts are semantically addressable, because
41163 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
41164 adjust the comment describing the modular type form when we can use it.
41165 (Install_PAT): Account for the Esiz renaming.
41167 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
41168 sc_onstack context indication before raising the exception to which
41169 the signal is mapped. Allows better handling of later signals possibly
41170 triggered by the resumed user code if the exception is handled.
41172 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
41174 * 5zinit.adb: Removed, no longer used.
41176 2004-02-12 Robert Dewar <dewar@gnat.com>
41178 * ali.adb: Remove separating space between parameters on R line. Makes
41179 format consistent with format used by the binder for Set_Globals call.
41181 * atree.ads, atree.adb: Minor reformatting (new function header format)
41183 * bindgen.adb: Add Run-Time Globals documentation section containing
41184 detailed documentation of the globals passed from the binder file to
41187 * gnatls.adb: Minor reformatting
41189 * init.c (__gnat_set_globals): Add note pointing to documentation in
41192 * lib-writ.ads, lib-writ.adb: Remove separating space between
41193 parameters on R line.
41194 Makes format consistent with format used by the binder for Set_Globals
41197 * osint.ads: Add 2004 to copyright notice
41200 * snames.ads: Correct capitalization of FIFO_Within_Priorities
41201 Noticed during code reading, documentation issue only
41203 * usage.adb: Remove junk line for obsolete C switch
41204 Noticed during code reading
41206 2004-02-12 Vincent Celier <celier@gnat.com>
41208 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
41209 extend for each directory, so that multiple /** directories are
41210 extended individually.
41211 (Recursive_Process): Set the default for LANGUAGES to ada
41213 * gprcmd.adb: Define new command "ignore", to do nothing.
41214 Implement new comment "path".
41216 * Makefile.generic: Suppress output when SILENT is set
41217 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
41218 used, so that the correct compiler is invoked.
41219 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
41220 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
41222 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
41224 * Makefile.in: Clean ups and remove obsolete targets.
41226 2004-02-12 Ed Schonberg <schonberg@gnat.com>
41228 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
41229 predicate declared in exp_util.
41231 * exp_util.adb: Add comments.
41233 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
41234 visibility before compiling context of the subunit.
41236 * sem_res.adb (Check_Parameterless_Call): If the context expects a
41237 value but the name is a procedure, do not attempt to analyze as a call,
41238 in order to obtain more telling diagnostics.
41240 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
41241 'Access on parameterless function calls.
41242 (Normalize_Actuals): For a parameterless function call with missing
41243 actuals, defer diagnostic until resolution of enclosing call.
41245 * sem_util.adb (Wrong_Type): If the context type is an access to
41246 subprogram and the expression is a procedure name, suggest a missing
41249 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
41250 Nathanael Nerode <neroden@gcc.gnu.org>
41254 Merge with libada-branch:
41255 * config-lang.in: Build libada only when ada is built.
41257 2004-02-09 Ed Schonberg <schonberg@gnat.com>
41259 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
41260 for a tagged type, verify that both formals have the same type.
41262 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
41263 temporary when the formal is an in-parameter and the actual a possibly
41266 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
41267 when expansion is disabled, to ensure proper name capture with
41268 overloaded literals. Condition can be of any boolean type, resolve
41271 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
41272 renaming is for a formal subprogram with a default operator name, and
41273 there is a usable operator that is visible at the point of
41276 2004-02-09 Robert Dewar <dewar@gnat.com>
41278 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
41279 rewrite to ignore errors in ali files, intended to allow tools downward
41280 compatibility with new versions of ali files.
41282 * ali.ads: Add new parameter Ignore_Errors
41284 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
41285 duplicating the error message giving the file with restrictions.
41287 * debug.adb: Add debug flag I for gnatbind
41289 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
41290 operators for the case where the operator is a defining operator.
41292 * exp_ch3.adb: Minor reformatting (new function spec format).
41294 * exp_ch4.adb: Add comment for previous change, and make minor
41295 adjustment to loop to always check for improper loop termination.
41296 Minor reformatting throughout (new function spec format).
41298 * gnatbind.adb: Implement -di debug flag for gnatbind
41300 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
41302 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
41304 * lib-load.adb: Fix bad assertion.
41305 Found by testing and code reading.
41306 Minor reformatting.
41308 * lib-load.ads: Minor reformatting.
41310 * lib-writ.adb: There is only one R line now.
41312 * lib-writ.ads: Add documentation on making downward compatible changes
41313 to ali files so old tools work with new ali files.
41314 There is only one R line now.
41315 Add documentation on format incompatibilities (with special GPS note)
41317 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
41319 * par-load.adb: Minor reformatting
41321 * sem_ch8.adb: Fix to error message from last update
41322 Minor reformatting and restructuring of code from last update
41324 * par-prag.adb, snames.adb, snames.ads, snames.h,
41325 sem_prag.adb: Implement pragma Profile.
41327 * stylesw.adb: Implement -gnatyN switch to turn off all style check
41330 * usage.adb: Add line for -gnatyN switch
41332 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
41334 2004-02-09 Albert Lee <lee@gnat.com>
41336 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
41338 2004-02-09 Ed Schonberg <schonberg@gnat.com>
41340 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
41343 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
41344 is nested in an instance that is not frozen yet, to avoid
41345 order-of-elaboration problems in gigi.
41347 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
41348 body the attribute is legal.
41350 2004-02-09 Robert Dewar <dewar@gnat.com>
41352 * s-rident.ads: Minor comment correction
41354 * targparm.adb: Remove dependence on uintp completely. There was
41355 always a bug in Make in that it called Targparm before initializing
41356 the Uint package. The old code appeared to get away with this, but
41357 the new code did not! This caused an assertion error in gnatmake.
41359 * targparm.ads: Fix bad comment, restriction pragmas with parameters
41360 are indeed fully supported.
41362 2004-02-06 Alan Modra <amodra@bigpond.net.au>
41364 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
41366 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
41368 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
41369 with targetm.calls.promote_prototypes.
41371 2004-02-04 Robert Dewar <dewar@gnat.com>
41373 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
41374 ali.ads, gprcmd.adb: Minor reformatting
41376 * bindgen.adb: Output restrictions string for new style restrictions
41379 * impunit.adb: Add s-rident.ads (System.Rident) and
41380 s-restri (System.Restrictions)
41382 * lib-writ.adb: Fix bug in writing restrictions string (last few
41385 * s-restri.ads, s-restri.adb: Change name Restrictions to
41386 Run_Time_Restrictions to avoid conflict with package name.
41387 Add circuit to read and acquire run time restrictions.
41389 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
41391 * restrict.ads, restrict.adb: Use the new restriction
41392 No_Task_Attributes_Package instead of the old No_Task_Attributes.
41394 * sem_prag.adb: No_Task_Attributes is a synonym of
41395 No_Task_Attributes_Package.
41397 * snames.ads, snames.adb: New entry for proper handling of
41398 No_Task_Attributes.
41400 * s-rident.ads: Adding restriction No_Task_Attributes_Package
41401 (AI-00249) that supersedes the GNAT specific restriction
41402 No_Task_Attributes.
41404 2004-02-04 Ed Schonberg <schonberg@gnat.com>
41407 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
41408 body, an identifier may be wrapped in an unchecked conversion.
41410 2004-02-04 Vincent Celier <celier@gnat.com>
41412 * lib-writ.ads: Comment update for the W lines
41414 * bld.adb: (Expression): An empty string list is static
41416 * fname-uf.adb: Minor comment update
41418 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
41420 * gnatbind.adb: Initialize Cumulative_Restrictions with the
41421 restrictions on the target.
41423 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
41425 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
41428 2004-02-02 Arnaud Charlet <charlet@gnat.com>
41430 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
41432 2004-02-02 Vincent Celier <celier@gnat.com>
41434 * gprcmd.adb (Check_Args): If condition is false, print the invoked
41435 comment before the usage.
41436 Gprcmd: Fail when command is not recognized.
41437 (Usage): Document command "prefix"
41439 * g-md5.adb (Digest): Process last block.
41440 (Update): Do not process last block. Store remaining characters and
41443 * g-md5.ads (Update): Document that several call to update are
41444 equivalent to one call with the concatenated string.
41445 (Context): Add fields to allow new Update behaviour.
41447 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
41448 defaulted to False.
41449 When May_Fail is True and no existing file can be found, return No_File.
41451 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
41454 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
41455 spec file name instead on the W line.
41457 2004-02-02 Robert Dewar <dewar@gnat.com>
41459 * ali.adb: Read and acquire info from new format restrictions lines
41461 * bcheck.adb: Add circuits for checking restrictions with parameters
41463 * bindgen.adb: Output dummy restrictions data
41464 To be changed later
41466 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41467 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
41468 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
41469 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
41470 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
41472 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
41473 the warning message on access to possibly uninitialized variable S)
41474 Minor changes for new restrictions handling.
41476 * gnatbind.adb: Minor reformatting
41477 Minor changes for new restrictions handling
41478 Move circuit for -r processing here from bcheck (cleaner)
41480 * gnatcmd.adb, gnatlink.adb: Minor reformatting
41482 * lib-writ.adb: Output new format restrictions lines
41484 * lib-writ.ads: Document new R format lines for new restrictions
41487 * s-restri.ads/adb: New files
41489 * Makefile.rtl: Add entry for s-restri.ads/adb
41491 * par-ch3.adb: Fix bad error messages starting with upper case letter
41494 * restrict.adb: Major rewrite throughout for new restrictions handling
41495 Major point is to handle restrictions with parameters
41497 * restrict.ads: Major changes in interface to handle restrictions with
41498 parameters. Also generally simplifies setting of restrictions.
41500 * snames.ads/adb: New entry for proper handling of No_Requeue
41502 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
41503 restriction counting.
41504 Other minor changes for new restrictions handling
41506 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
41507 Restriction_Warnings now allows full parameter notation
41508 Major rewrite of Restrictions for new restrictions handling
41510 2004-02-02 Javier Miranda <miranda@gnat.com>
41512 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
41513 syntax rule for object renaming declarations.
41514 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
41515 component definitions.
41517 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
41519 (Array_Type_Declaration): Give support to access components. In addition
41520 it was also modified to reflect the name of the object in anonymous
41521 array types. The old code did not take into account that it is possible
41522 to have an unconstrained anonymous array with an initial value.
41523 (Check_Or_Process_Discriminants): Allow access discriminant in
41525 (Process_Discriminants): Allow access discriminant in non-limited types
41526 Initialize the new Access_Definition field in N_Object_Renaming_Decl
41527 node. Change Ada0Y to Ada 0Y in comments
41529 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
41530 equality operators.
41531 Change Ada0Y to Ada 0Y in comments
41533 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
41534 renamings Change Ada0Y to Ada 0Y in comments
41536 * sem_type.adb (Find_Unique_Type): Give support to the equality
41537 operators for universal access types
41538 Change Ada0Y to Ada 0Y in comments
41540 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
41542 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
41544 (N_Object_Renaming_Declaration): Addition of Access_Definition field
41545 Change Ada0Y to Ada 0Y in comments
41547 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
41548 component definition and object renaming nodes
41549 Change Ada0Y to Ada 0Y in comments
41551 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
41553 * restrict.adb: Use the new restriction identifier
41554 No_Requeue_Statements instead of the old No_Requeue for defining the
41555 restricted profile.
41557 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
41558 No_Requeue_Statements.
41560 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
41561 that supersedes the GNAT specific restriction No_Requeue. The later is
41562 kept for backward compatibility.
41564 2004-02-02 Ed Schonberg <schonberg@gnat.com>
41566 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
41567 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
41568 pragma and fix incorrect ones.
41570 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
41571 warning if the pragma is redundant.
41573 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
41575 * 5staprop.adb: Add missing 'constant' keywords.
41577 * Makefile.in: use consistent value for SYMLIB on
41578 platforms where libaddr2line is supported.
41580 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41582 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
41585 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
41587 * init.c (__gnat_install_handler): Setup an alternate stack for signal
41588 handlers in the environment thread. This allows proper propagation of
41589 an exception on stack overflows in this thread even when the builtin
41590 ABI stack-checking scheme is used without support for a stack reserve
41593 * utils.c (create_field_decl): Augment the head comment about bitfield
41594 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
41595 here, because the former is not accurate enough at this point.
41596 Let finish_record_type decide instead.
41597 Don't make a bitfield if the field is to be addressable.
41598 Always set a size for the field if the record is packed, to ensure the
41599 checks for bitfield creation are triggered.
41600 (finish_record_type): During last pass over the fields, clear
41601 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
41602 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
41603 from DECL_BIT_FIELD.
41605 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
41607 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
41608 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
41609 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
41611 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41613 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
41615 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
41616 (ZCX_By_Default): Likewise.
41617 (Front_End_ZCX_Support): Likewise.
41619 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
41620 (Initialize_Lock): Mark Level unreferenced.
41621 (Sleep): Mark Reason unreferenced.
41622 (Timed_Sleep): Likewise.
41623 (Wakeup): Likewise.
41624 (Exit_Task): Use Result.
41625 (Check_No_Locks): Mark Self_ID unreferenced.
41627 * 5gtasinf.adb (New_Sproc): Make Attr constant.
41628 (Bound_Thread_Attributes): Make Sproc constant.
41629 (New_Bound_Thread_Attributes): Likewise.
41631 2004-01-26 Ed Schonberg <schonberg@gnat.com>
41633 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
41634 one-dimensional array an slice assignments, when component type is
41637 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
41638 component type is controlled, and control_actions are in effect, use
41639 TSS procedure rather than generating inline code.
41641 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
41642 arrays with controlled components.
41644 2004-01-26 Vincent Celier <celier@gnat.com>
41646 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
41647 command line for the non VMS case.
41649 * gnatlink.adb (Process_Binder_File): When building object file, if
41650 GNU linker is used, put all object paths between quotes, to prevent ld
41651 error when there are unusual characters (such as '!') in the paths.
41653 * Makefile.generic: When there are sources in Ada and the main is in
41654 C/C++, invoke gnatmake with -B, instead of -z.
41656 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
41657 from VMS_Conversion.
41658 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
41659 specification of argument file on the command line.
41661 2004-01-26 Bernard Banner <banner@gnat.com>
41663 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
41665 2004-01-26 Ed Schonberg <schonberg@gnat.com>
41667 * snames.adb: Update copyright notice.
41668 Add info on slice assignment for controlled arrays.
41670 2004-01-23 Robert Dewar <dewar@gnat.com>
41672 * exp_aggr.adb: Minor reformatting
41674 * exp_ch9.adb: Minor code clean up
41676 Fix bad character in comment
41679 * targparm.adb (Get_Target_Parameters): Give clean abort error on
41680 unexpected end of file, along with more detailed message.
41682 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41684 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
41687 * decl.c (copy_alias_set): New function.
41688 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
41690 2004-01-23 Doug Rupp <rupp@gnat.com>
41692 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
41693 lib$${file} in case subsequent character is not a separator.
41695 2004-01-23 Vincent Celier <celier@gnat.com>
41697 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
41698 when the GCC version is at least 3.
41700 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
41701 Remove all "Opt.", to prepare for opt split
41703 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
41704 Extends_All. Set to True when the project parsed is an extending all
41705 project. Fails for importing an extending all project only when the
41706 imported project is an extending all project.
41707 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
41708 depending on the value of Extends_All returned.
41710 * prj-proc.adb (Process): Check that no project shares its object
41711 directory with a project that extends it, directly or indirectly,
41712 including a virtual project.
41713 Check that no project extended by another project shares its object
41714 directory with another also extended project.
41716 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
41717 Kind = N_With_Clause
41719 * prj-tree.ads: Minor reformatting
41720 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
41722 2004-01-23 Ed Schonberg <schonberg@gnat.com>
41724 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
41725 applies to a type with an incomplete view, use full view in Name of
41726 clause, for consistency with uses of Get_Attribute_Definition_Clause.
41728 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
41730 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
41731 SCHED_RR, since other values are not supported by this policy.
41732 (Initialize): Move initialization of mutex attribute to package
41733 elaboration, to prevent early access to this variable.
41735 * Makefile.in: Remove mention of Makefile.adalib, unused.
41737 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
41738 1ssecsta.ads: Removed, unused.
41740 2004-01-21 Javier Miranda <miranda@gnat.com>
41742 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
41743 entity if already built in the current scope.
41745 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
41746 reminder in internal scopes. Required for nested limited aggregates.
41748 2004-01-21 Doug Rupp <rupp@gnat.com>
41750 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
41751 VMS. Replace all occurences of libgnat- and libgnarl- with
41752 libgnat$(hyphen) and libgnarl$(hyphen).
41753 Fixed shared library build problem on VMS.
41755 2004-01-21 Robert Dewar <dewar@gnat.com>
41757 * mlib-prj.adb: Minor reformatting
41759 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
41761 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
41762 'constant' keywords for declaration of pointers that are not modified.
41764 * exp_pakd.adb: Fix English in comment.
41766 2004-01-21 Ed Schonberg <schonberg@gnat.com>
41769 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
41770 copy all attributes of the parent, including the foreign language
41773 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
41776 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
41777 for 'delay until' statement.
41779 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
41781 * Make-lang.in: Replace $(docdir) with doc.
41782 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
41783 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
41784 to use consistent MAKEINFO rule.
41785 (ada.man, ada.srcman): Dummy entry.
41786 (ADA_INFOFILES): Define.
41787 (ada.info, ada.srcinfo): New rules.
41789 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
41791 * utils.c: Update copyright notice, missed in previous change.
41793 2004-01-19 Vincent Celier <celier@gnat.com>
41795 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
41796 args if Bind is True. Set First_ALI, if not already done.
41797 (Build_Library): For Stand Alone Libraries, extract from one ALI file
41798 an eventual --RTS switch, for gnatbind, and all backend switches +
41799 --RTS, for linking.
41801 2004-01-19 Robert Dewar <dewar@gnat.com>
41803 * sem_attr.adb, memtrack.adb: Minor reformatting
41805 2004-01-19 Ed Schonberg <schonberg@gnat.com>
41807 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
41808 that rename enumeration literals. This is properly done in sem_eval.
41810 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
41811 to functions that rename enumeration literals.
41813 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
41814 functions that rename enumeration literals.
41816 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
41818 * Make-lang.in (utils.o): Depend on target.h.
41819 * utils.c: Include target.h.
41820 (process_attributes): Use targetm.have_named_sections instead
41821 of ASM_OUTPUT_SECTION_NAME.
41823 2004-01-16 Andreas Jaeger <aj@suse.de>
41825 * Makefile.in: Add $(DESTDIR).
41827 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
41829 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
41830 also when not defining if a Size clause applies. That information is
41833 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
41835 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
41836 symbolic links for the shared gnat run time when needed.
41838 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
41840 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
41841 for writing, and terminate with an error message if not.
41843 2004-01-15 Ed Schonberg <schonberg@gnat.com>
41845 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
41846 warning on an access to subprogram in an instance, when the target
41847 type is declared in the same generic unit.
41848 (Eval_Attribute): If 'access is known to fail accessibility check,
41849 rewrite as a raise statement.
41851 2004-01-15 GNAT Script <nobody@gnat.com>
41853 * Make-lang.in: Makefile automatically updated
41855 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
41857 * Make-lang.in (ada.srcextra): Dummy entry.
41859 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
41861 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
41863 2004-01-13 Ed Schonberg <schonberg@gnat.com>
41865 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
41866 components that are initialized with aggregates.
41868 2004-01-13 Vincent Celier <celier@gnat.com>
41870 * gnatlink.adb (Process_Binder_File): To find directory of shared
41871 libgcc, if "gcc-lib" is not a subdirectory, look for the last
41872 subdirectory "lib" in the path of the shared libgnat or libgnarl.
41874 * make.adb (Gnatmake): If GCC version is at least 3, link with
41875 -shared-libgcc, when there is at least one shared library project.
41877 * opt.ads (GCC_Version): New integer constant.
41879 * adaint.c (get_gcc_version): New function.
41881 2004-01-13 Robert Dewar <dewar@gnat.com>
41883 * sem_dist.adb, sem_res.adb, sem_util.adb,
41884 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
41885 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
41887 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
41889 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
41890 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
41893 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
41895 * misc.c: Remove trailing spaces.
41896 Update copyright notice missed in previous change.
41899 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
41902 * Makefile.generic: Update copyright.
41903 Add license notice.
41905 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
41906 of prefix/share/make.
41908 * Makefile.prolog: Update copyright.
41909 Add license notice.
41911 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
41913 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
41914 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
41915 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
41918 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
41921 2004-01-12 Javier Miranda <miranda@gnat.com>
41923 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
41924 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
41925 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
41926 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
41927 Component_Definition node.
41929 2004-01-12 Ed Falis <falis@gnat.com>
41931 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
41933 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
41935 * link.c: Change default libgnat kind to STATIC for FreeBSD.
41937 2004-01-12 Bernard Banner <banner@gnat.com>
41939 * Makefile.in: map 86numaux to a-numaux for x86_64
41941 2004-01-12 Ed Schonberg <schonberg@gnat.com>
41943 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
41944 generated to rename a generic actual, go to the actual itself, the
41945 subtype is not a user-visible entity.
41947 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
41948 part is a private subtype, reset the visibility of its full view, if
41949 any, to be consistent.
41952 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
41953 to use a generic package G as a formal package for another generic
41956 2004-01-12 Robert Dewar <dewar@gnat.com>
41958 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
41960 * usage.adb: Remove mention of obsolete -gnatwb switch
41961 Noticed during code reading
41963 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
41965 * 1ssecsta.adb: Minor changes for -gnatwa warnings
41967 2004-01-12 GNAT Script <nobody@gnat.com>
41969 * Make-lang.in: Makefile automatically updated
41971 2004-01-09 Mark Mitchell <mark@codesourcery.com>
41973 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
41975 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41977 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
41979 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
41981 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
41982 Update comment and copyright date.
41983 * stamp-xgnatug: Delete.
41985 2004-01-05 Robert Dewar <dewar@gnat.com>
41987 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
41988 be modified by the binder generated main program if the -D switch is
41991 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
41992 imported functions (since now we expect this to be done for imported
41995 * 5vtaprop.adb: Add several ??? for sections requiring more comments
41996 Minor reformatting throughout
41998 * 5zinit.adb: Minor reformatting
41999 Add 2004 to copyright date
42000 Minor changes to avoid -gnatwa warnings
42001 Correct some instances of using OR instead of OR ELSE (noted while
42002 doing reformatting)
42004 * sprint.adb: Minor updates to avoid -gnatwa warnings
42006 * s-secsta.ads, s-secsta.adb:
42007 (SS_Get_Max): New function to obtain high water mark for ss stack
42008 Default_Secondary_Stack is not a constant since it may be modified by
42009 the binder generated main program if the -D switch is used.
42011 * switch-b.adb: New -Dnnn switch for binder
42014 Make -gnatg imply all warnings currently in -gnatwa
42016 * vms_conv.adb: Minor reformatting
42017 Add 2004 to copyright notice
42018 Add 2004 to printed copyright notice
42020 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
42021 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
42022 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
42023 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
42024 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
42025 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
42026 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
42027 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
42028 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
42029 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
42030 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
42031 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
42032 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
42033 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
42034 checks.adb, clean.adb, cstand.adb, einfo.ads,
42035 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
42036 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
42037 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
42038 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
42039 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
42040 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
42041 Minor reformatting and code clean ups.
42042 Minor changes to prevent -gnatwa warnings
42044 * ali.adb: Minor reformatting and cleanup of code
42045 Acquire new SS indication of secondary stack use from ali files
42047 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
42048 (since now we expect this to be done for imported functions)
42050 * bindgen.adb: Generate call to modify default secondary stack size if
42053 * bindusg.adb: Add line for new -D switch
42055 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
42056 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
42057 Add circuitry for both records and arrays to avoid gigi
42058 processing if the type involved has non-bit-aligned components
42060 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
42061 N_String_Literal node always references an E_String_Literal_Subtype
42062 entity. This may not be true in the future.
42063 (Possible_Bit_Aligned_Component): Move processing of
42064 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
42066 * exp_ch6.adb (Expand_Thread_Body): Pick up
42067 Default_Secondary_Stack_Size as variable so that we get value modified
42068 by possible -Dnnn binder parameter.
42070 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
42071 (Type_May_Have_Bit_Aligned_Components): New function.
42073 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
42074 (Type_May_Have_Bit_Aligned_Components): New function.
42076 * fe.h: (Set_Identifier_Casing): Fix prototype.
42077 Add declaration for Sem_Elim.Eliminate_Error_Msg.
42078 Minor reformatting.
42080 * freeze.adb (Freeze_Entity): Add RM reference to error message about
42081 importing constant atomic/volatile objects.
42082 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
42083 unless explicit Pure_Function pragma given, to avoid insidious bug of
42084 call to non-pure imported function getting eliminated.
42086 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
42087 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
42088 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
42089 Add 2004 to printed copyright notice
42091 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
42094 * Makefile.rtl: Add entry for g-sestin.o
42095 g-sestin.ads: New file.
42097 * mdll.adb: Minor changes to avoid -gnatwa warnings
42099 * mlib-tgt.adb: Minor reformatting
42101 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
42102 New switch Sec_Stack_Used (GNAT, GNATBIND)
42103 Make Default_Secondary_Stack_Size a variable instead of a constant,
42104 so that it can be modified by the new -Dnnn bind switch.
42106 * rtsfind.adb (Load_Fail): Give full error message in configurable
42107 run-time mode if all_errors mode is set. This was not done in the case
42108 of a file not found, which was an oversight.
42109 Note if secondary stack unit is used by compiler.
42111 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
42112 ineffective elaborate all pragmas on non-visible packages (this
42113 happened when a renamed subprogram was called). Now the elaborate all
42114 always goes on the package containing the renaming rather than the one
42115 containing the renamed subprogram.
42117 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
42118 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
42120 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
42121 has an Etype that references an E_String_Literal.
42122 (Eval_String_Literal): Avoid assumption that N_String_Literal node
42123 always references an E_String_Literal_Subtype entity. This may not
42124 be true in the future.
42126 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
42129 * sem_res.adb (Resolve): Specialize msg for function name used in proc
42132 2004-01-05 Ed Falis <falis@gnat.com>
42134 * g-debuti.adb: Replaced direct boolean operator with short-circuit
42137 2004-01-05 Vincent Celier <celier@gnat.com>
42139 * bld.adb: Minor comment updates
42140 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
42143 * make.adb (Gnatmake): Special process for files to compile/check when
42144 -B is specified. Fail when there are only foreign mains in attribute
42145 Main of the project file and -B is not specified. Do not skip bind/link
42146 steps when -B is specified.
42148 * makeusg.adb: Document new switch -B
42150 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
42152 * switch-m.adb: (Scan_Make_Switches): Process -B switch
42154 * vms_data.ads: Add new GNAT PRETTY qualifier
42155 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
42157 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42159 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
42162 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
42163 Set_Identifier_Casing.
42165 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
42166 has size that overflows.
42168 2004-01-05 Gary Dismukes <dismukes@gnat.com>
42170 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
42171 -gnatwa warning on static condition.
42173 2004-01-05 Doug Rupp <rupp@gnat.com>
42175 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
42177 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
42179 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
42180 all attributes, including read-only attribute.
42182 2004-01-05 Pascal Obry <obry@gnat.com>
42184 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
42185 library naming scheme.
42187 * mlib-prj.adb (Build_Library): Generate different names for the static
42188 or dynamic version of the GNAT runtime. This is needed to support the
42189 new shared library naming scheme.
42190 (Process_Binder_File): Add detection of shared library in binder file
42191 based on the new naming scheme.
42193 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
42194 scheme for the shared runtime libraries.
42197 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
42199 (install-gnatlib): Do not create symlinks for shared libraries.
42200 (gnatlib-shared-default): Idem.
42201 (gnatlib-shared-dual-win32): New target. Not used for now as the
42202 auto-import feature does not support arrays/records.
42203 (gnatlib-shared-win32): Do not create copy for the shared libraries.
42204 (gnatlib-shared-vms): Fix shared runtime libraries names.
42206 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
42207 dependent runtime shared library name.
42209 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
42211 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
42214 2004-01-05 Ed Schonberg <schonberg@gnat.com>
42216 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
42217 protected objects when allocator has a subtype indication, not a
42218 qualified expression. Note that qualified expressions may have to be
42219 checked when limited aggregates are implemented.
42221 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
42222 pure, emit warning.
42223 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
42224 subprogram is imported, remove warning.
42226 2004-01-05 Geert Bosch <bosch@gnat.com>
42228 * s-poosiz.adb: Update copyright notice.
42229 (Allocate): Use Task_Lock to protect against concurrent access.
42230 (Deallocate): Likewise.
42232 2004-01-05 Joel Brobecker <brobecker@gnat.com>
42234 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
42237 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
42239 * gnat_ug.texi: Force a CVS commit by updating copyright.
42240 * gnat_ug_vxw.texi: Regenerate.
42241 * gnat_ug_wnt.texi: Regenerate.
42242 * gnat_ug_vms.texi: Regenerate.
42243 * gnat_ug_unx.texi: Regenerate.
42245 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
42247 * trans.c: Remove uses of "register" specifier in
42248 declarations of local variables.
42250 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
42252 * stamp-xgnatug: New stamp file.
42253 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
42254 (ada/doctools/xgnatug): Add $(build_exeext).
42255 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
42256 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
42258 2003-12-17 Ed Falis <falis@gnat.com>
42260 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
42263 * a-exextr.adb: Add context clause for
42264 Ada.Exceptions.Last_Chance_Handler.
42266 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
42268 * cstand.adb (Create_Standard): Change the way how the declaration of
42269 the Duration type is created (making it the same way as it is for all
42270 the other standard types).
42272 2003-12-17 Robert Dewar <dewar@gnat.com>
42274 * s-crtl.ads: Fix header format
42275 Change Pure to Preelaborate
42277 2003-12-17 Ed Schonberg <schonberg@gnat.com>
42279 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
42280 the expression type only if it is declared in the current unit.
42282 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
42283 are universal and already analyzed, as can occur in constrained
42284 subcomponents that depend on discriminants, when one constraint is a
42287 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
42288 type Any_Fixed is legal as the argument of a conversion, if only one
42289 fixed-point type is in context.
42291 2003-12-17 GNAT Script <nobody@gnat.com>
42293 * Make-lang.in: Makefile automatically updated
42295 2003-12-15 Robert Dewar <dewar@gnat.com>
42297 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
42300 2003-12-15 Vincent Celier <celier@gnat.com>
42302 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
42303 (Gnatchop): Do not set failure status when reporting the number of
42306 2003-12-15 Doug Rupp <rupp@gnat.com>
42308 * s-ctrl.ads: New file.
42310 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
42312 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
42313 (GNATBIND_OBJS): Add ada/s-crtl.o.
42315 * Makefile.in [VMS]: Clean up ifeq rules.
42317 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
42318 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
42319 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
42320 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
42321 s-tasdeb.adb: Update copyright.
42322 Import System.CRTL.
42323 Make minor modifications to use System.CRTL declared functions instead
42324 of importing locally.
42326 2003-12-15 GNAT Script <nobody@gnat.com>
42328 * Make-lang.in: Makefile automatically updated
42330 2003-12-11 Ed Falis <falis@gnat.com>
42332 * 5zinit.adb: Clean up.
42334 * 5zintman.adb (Notify_Exception): replaced case statement with a call
42335 to __gnat_map_signal, imported from init.c to support
42336 signal -> exception mappings that depend on the vxWorks version.
42339 Created and exported __gnat_map_signal to support signal -> exception
42340 mapping that is dependent on the VxWorks version.
42341 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
42343 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
42345 * 5wosinte.ads: Link with -mthreads switch.
42347 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
42349 * init.c (__gnat_install_handler [NetBSD]): Set
42350 __gnat_handler_installed, as done on all other platforms.
42351 Remove duplicated code.
42353 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
42355 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
42357 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
42359 * sinfo.ads: Fix inconsistent example code in comment.
42361 2003-12-11 Robert Dewar <dewar@gnat.com>
42363 * a-tiinau.adb: Add a couple of comments
42365 * sem_ch3.adb: Minor reformatting
42368 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
42369 Minor reformatting throughout
42371 2003-12-11 Ed Schonberg <schonberg@gnat.com>
42373 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
42374 bounds of a loop, create a separate block in order to generate proper
42375 cleanup actions to prevent memory leaks.
42377 * sem_res.adb (Resolve_Call): After a call to
42378 Establish_Transient_Scope, the call may be rewritten and relocated, in
42379 which case no further processing is needed.
42381 * sem_util.adb: (Wrong_Type): Refine previous fix.
42382 Fixes ACATS regressions.
42385 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
42388 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
42390 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
42391 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
42394 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
42397 2003-12-08 Robert Dewar <dewar@gnat.com>
42399 * 7sintman.adb: Minor reformatting
42401 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
42402 standard linker options to get standard libraries linked. We now plan
42403 to provide dummy versions of these libraries to match the appropriate
42404 configurable run-time (e.g. if a library is not needed at all, provide
42405 a dummy empty library).
42407 * targparm.ads: Configurable_Run_Time mode no longer affects linker
42408 options (-L parameters and standard libraries). What we plan to do is
42409 to provide dummy libraries where the libraries are not required.
42411 * gnatbind.adb: Minor comment improvement
42413 2003-12-08 Javier Miranda <miranda@gnat.com>
42415 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
42416 aggregate in the parent. Otherwise constants with limited aggregates
42417 are not supported. Add new formal to pass the component type (Ctype).
42418 It is required to call the corresponding IP subprogram in case of
42419 default initialized components.
42420 (Gen_Assign): In case of default-initialized component, generate a
42421 call to the IP subprogram associated with the component.
42422 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
42423 of aggregate with default initialized components.
42424 (Has_Default_Init_Comps): Improve implementation to recursively check
42425 all the present expressions.
42427 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
42428 to indicate that the initialization call corresponds to a
42429 default-initialized component of an aggregate.
42430 In case of default initialized aggregate with tasks this parameter is
42431 used to generate a null string (this is just a workaround that must be
42432 improved later). In case of discriminants, this parameter is used to
42433 generate a selected component node that gives access to the discriminant
42436 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
42437 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
42438 allocated aggregates with default-initialized components.
42440 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
42441 the box notation is used in positional aggregates.
42443 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
42445 * lib.ads: Fix typo in comment
42447 2003-12-08 Vincent Celier <celier@gnat.com>
42449 * prj.adb (Project_Empty): New component Unkept_Comments
42450 (Scan): Remove procedure; moved to Prj.Err.
42452 * prj.ads (Project_Data): New Boolean component Unkept_Comments
42453 (Scan): Remove procedure; moved to Prj.Err.
42455 * prj-dect.adb: Manage comments for the different declarations.
42457 * prj-part.adb (With_Record): New component Node
42458 (Parse): New Boolean parameter Store_Comments, defaulted to False.
42459 Set the scanner to return ends of line and comments as tokens, if
42460 Store_Comments is True.
42461 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
42462 comments are associated with these nodes. Store the node IDs in the
42464 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
42466 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
42467 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
42468 current project. Call Tree.Restore afterwards. Set the various nodes
42469 for comment storage (Next_End, End_Of_Line, Previous_Line,
42472 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
42473 defaulted to False.
42475 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
42476 to False. When Truncated is True, truncate the string, never go to the
42478 (Write_End_Of_Line_Comment): New procedure
42479 (Print): Process comments for nodes N_With_Clause,
42480 N_Package_Declaration, N_String_Type_Declaration,
42481 N_Attribute_Declaration, N_Typed_Variable_Declaration,
42482 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
42483 Process nodes N_Comment.
42485 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
42486 without comments and there are some comments, set the flag
42487 Unkept_Comments to True.
42488 (Scan): If there are comments, set the flag Unkept_Comments to True and
42489 clear the comments.
42490 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
42491 (Next_End_Nodes: New table
42492 (Comment_Zones_Of): New function
42493 (Scan): New procedure; moved from Prj. Accumulate comments in the
42494 Comments table and set end of line comments, comments after, after end
42496 (Add_Comments): New procedure
42497 (Save, Restore, Seset_State): New procedures
42498 (There_Are_Unkept_Comments): New function
42499 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
42500 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
42502 (First_Comment_After, First_Comment_After_End): New functions
42503 (First_Comment_Before, First_Comment_Before_End): New functions
42504 (Next_Comment): New function
42505 (End_Of_Line_Comment, Follows_Empty_Line,
42506 Is_Followed_By_Empty_Line): New functions
42507 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
42508 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
42509 (Set_Next_Comment): New procedure
42510 (Default_Project_Node): Associate comment before if the node can store
42513 * scans.ads (Token_Type): New enumeration value Tok_Comment
42514 (Comment_Id): New global variable
42516 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
42517 defaulted to False.
42518 (Scan): Store position of start of comment. If comments are tokens, set
42519 Comment_Id and set Token to Tok_Comment when scanning a comment.
42520 (Set_Comment_As_Token): New procedure
42522 * sinput-p.adb: Update Copyright notice
42523 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
42524 that no longer exists.
42526 2003-12-08 Javier Miranda <miranda@gnat.com>
42528 * sem_aggr.adb: Add dependence on Exp_Tss package
42529 Correct typo in comment
42530 (Resolve_Aggregate): In case of array aggregates set the estimated
42531 type of the aggregate before calling resolve. This is needed to know
42532 the name of the corresponding IP in case of limited array aggregates.
42533 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
42534 in case of default initialized array components.
42536 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
42537 types. Required to give support to limited aggregates in generic
42540 2003-12-08 Ed Schonberg <schonberg@gnat.com>
42542 * sem_ch3.adb (Check_Initialization): For legality purposes, an
42543 inlined body functions like an instantiation.
42544 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
42545 until bounds are analyzed, to diagnose premature use of type.
42547 * sem_util.adb (Wrong_Type): Improve error message when the type of
42548 the expression is used prematurely.
42550 2003-12-08 GNAT Script <nobody@gnat.com>
42552 * Make-lang.in: Makefile automatically updated
42554 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
42556 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
42557 they are automatically generated by Make-lang.in and cause nothing but
42558 maintenance troubles.
42560 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
42562 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
42563 version of this unit).
42565 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
42567 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
42568 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
42569 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
42570 the body of System.Interrupt_Management common to several targets.
42571 Update copyright notice when appropriate.
42573 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
42576 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
42577 to ensure that the kernel fills in the interrupted context structure
42578 before calling a signal handler, which is necessary to be able to
42579 unwind past it. Update the copyright notice.
42581 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
42583 * a-elchha.ads: New file.
42585 * a-elchha.adb: New default last chance handler. Contents taken from
42586 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
42588 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
42589 is moved to a-elchha.adb to provide a target-independent default last
42592 * Makefile.rtl: Add a-elchha.o
42594 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
42596 2003-12-05 Ed Schonberg <schonberg@gnat.com>
42598 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
42599 declared in an instance, do not inline the call if the instance is not
42600 frozen yet, to prevent order of elaboration problems.
42602 * sem_prag.adb: Add comments for previous fix.
42604 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
42606 * g-table.adb: Use the right variable in Set_Item.
42607 Update copyright notice.
42609 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
42611 * Makefile.in: Remove unused rules.
42613 2003-12-05 Vincent Celier <celier@gnat.com>
42615 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
42616 -nostdlib. Not needed here after all.
42618 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
42621 * adaint.h, adaint.c, g-os_lib.ads:
42622 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
42623 on some platforms (including FreeBSD), it is a 64 bit value.
42624 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
42626 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
42628 * gnatvsn.ads (Library_Version): Now contain only the relevant
42630 (Verbose_Library_Version): New constant.
42632 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
42633 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
42634 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
42636 * gnatlbr.adb: Clean up: replace Library_Version by
42637 Verbose_Library_Version.
42639 * make.adb, lib-writ.adb, exp_attr.adb:
42640 Clean up: replace Library_Version by Verbose_Library_Version.
42642 * 5lintman.adb: Removed.
42645 Update and simplify computation of LIBRARY_VERSION.
42646 Fix computation of GSMATCH_VERSION.
42647 5lintman.adb is no longer used: replaced by 7sintman.adb.
42649 2003-12-03 Robert Dewar <dewar@gnat.com>
42652 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
42653 name. Modified to consider small non-bit-packed arrays as troublesome
42654 and in need of component-by-component assigment expansion.
42656 2003-12-03 Vincent Celier <celier@gnat.com>
42658 * lang-specs.h: Process nostdlib as nostdinc
42660 * back_end.adb: Update Copyright notice
42661 (Scan_Compiler_Arguments): Process -nostdlib directly.
42663 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
42666 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
42667 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
42668 included in HIE_NONE_TARGET_PAIRS.
42670 2003-12-03 Ed Schonberg <schonberg@gnat.com>
42673 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
42674 is legal in an instance, because legality is cheched in the template.
42677 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
42678 appplied to an unchecked conversion of a formal parameter.
42681 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
42684 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
42686 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
42687 routines. The second one is new functionality to deal with backtracing
42688 through signal handlers.
42689 (unwind): Split into the two separate subroutines above.
42690 Update the documentation, and deal properly with sizeof (REG) different
42691 from sizeof (void*).
42693 2003-12-01 Nicolas Setton <setton@act-europe.fr>
42695 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
42696 so that the debugger can reliably access the value of the parameter,
42697 and therefore is able to display the exception name when an exception
42698 breakpoint is reached.
42700 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
42702 * fmap.adb: Fix typo in warning message.
42704 * g-socket.ads, g-socket.adb: Make Free a visible instance of
42705 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
42707 2003-12-01 Vincent Celier <celier@gnat.com>
42709 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
42711 (Build_Library): Get the switches only if Default_Switches is declared
42714 2003-12-01 Ed Schonberg <schonberg@gnat.com>
42716 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
42717 actuals that are indexed components, reanalyze actual to ensure that
42718 packed array references are properly expanded.
42720 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
42721 attempted assignment to a discriminant.
42723 2003-12-01 Robert Dewar <dewar@gnat.com>
42725 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
42728 * switch-c.adb: Minor reformatting of comments
42730 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
42732 * Makefile.in: Clean ups.
42734 2003-12-01 GNAT Script <nobody@gnat.com>
42736 * Make-lang.in: Makefile automatically updated
42738 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
42740 * 5wsystem.ads: Disable zero cost exception, not ready yet.
42742 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
42744 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
42745 to force serialization.
42747 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
42749 * g-socket.ads, g-socket.adb:
42750 Clarify documentation of function Stream. Introduce a Free procedure
42751 to release the returned Stream once it becomes unused.
42753 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
42755 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
42757 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
42758 since NT 4 cannot handle timeout values that are too large,
42759 e.g. DWORD'Last - 1.
42761 2003-11-26 Ed Schonberg <schonberg@gnat.com>
42764 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
42765 in procedure calls and whose expansion must be deferred.
42767 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
42771 (Build_Derived_Array_Type): Create operator for unconstrained type
42772 if ancestor is unconstrained.
42774 2003-11-26 Vincent Celier <celier@gnat.com>
42776 * make.adb (Project_Object_Directory): New global variable
42777 (Change_To_Object_Directory): New procedure
42778 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
42779 of Change_Dir directly. Do not change working directory to object
42780 directory of main project after each compilation.
42781 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
42783 Change to object directory of main project before binding step.
42784 (Initialize): Initialize Project_Object_Directory to No_Project
42787 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
42788 binding a Stand-Alone Library.
42790 * output.adb: Update Copyright notice
42791 (Write_Char): Output buffer when full
42793 2003-11-26 Robert Dewar <dewar@gnat.com>
42795 * sem_ch13.adb: (Check_Size): Reset size if size is too small
42798 (Check_Size): Fix documentation to include bit-packed array case
42800 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
42802 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
42804 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
42806 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
42809 * utils.c (init_gigi_decls): Change name of built-in setjmp to
42810 __builtin_setjmp, since this is apparently needed by recent
42813 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42815 * adadecode.c: Only include ctype.h if not IN_GCC.
42816 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
42818 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
42821 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
42822 signals and interrupts.
42824 * 5zintman.ads: New File.
42826 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
42827 add exception signals to the set of unmasked signals.
42830 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
42831 between signals and interrupts.
42832 Add to Unblocked_Signal_Mask the set of signals that are in
42836 Adding a check to see whether the Interrupt_ID we want to unmask is in
42837 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
42838 reason is that the index type of the Keep_Unmasked array is not always
42839 Interrupt_ID; it may be a subtype of Interrupt_ID.
42841 2003-11-24 Gary Dismukes <dismukes@gnat.com>
42844 (Remove_Side_Effects): Condition constantness of object created for a
42845 an unchecked type conversion on the constantness of the expression
42846 to ensure the correct value for 'Constrained when passing components
42847 of view-converted class-wide objects.
42849 2003-11-24 Robert Dewar <dewar@gnat.com>
42851 * par-load.adb (Load): Improve handling of misspelled and missing units
42852 Removes several cases of compilation abandoned messages
42854 * lib.adb: (Remove_Unit): New procedure
42856 * lib.ads: (Remove_Unit): New procedure
42858 * lib-load.adb: Minor reformatting
42860 2003-11-24 Vincent Celier <celier@gnat.com>
42863 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
42864 (Marking_Label): Label to mark processed source files. Incremented for
42866 (Gnatmake): Increase Marking_Labet for each executable
42867 (Is_Marked): Compare against marking label
42868 (Mark): Mark with marking label
42870 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
42873 Move the declaration of the TSD for System.Threads to System.Soft_Links.
42876 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
42877 (rts-cert): build a single relocatable object for the run-time lib.
42880 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
42883 Use gnatls rather than gcc to obtain the location of GNAT RTL for
42886 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
42888 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
42889 can not use it as before (that is, as a variable) when dumping it into
42890 the tree file. Add a local variable to store the result of this
42891 function and to be used as the string to be written into the tree.
42893 * scn.adb (Initialize_Scanner): Add comments explaining the recent
42896 * sinput.adb (Source_First, Source_Last): In case of
42897 Internal_Source_File, replace returning attributes of
42898 Internal_Source_Ptr (which is wrong) with returning attributes of
42901 2003-11-24 Ed Schonberg <schonberg@gnat.com>
42904 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
42905 used for implicit concatenation operators.
42909 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
42910 task bodies that are in the scope of a Suppress pragma.
42911 (Check_A Call): Use the flag to prevent spurious elaboration checks.
42913 * sinfo.ads, sinfo.adb:
42914 New flag No_Elaboration_Check on function/procedure calls, to properly
42915 suppress checks on calls in task bodies that are within a local suppress
42919 (Expand_Concatenate_Other): Use the proper integer type for the
42920 expression for the upper bound, to avoid universal_integer computations
42923 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
42925 * .cvsignore: Delete.
42927 2003-11-21 Andreas Schwab <schwab@suse.de>
42929 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
42931 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
42933 * 5wsystem.ads: Enable zero cost exception.
42935 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
42937 * 5ztiitho.adb: Remove an unreferenced variable.
42939 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
42941 * adaint.c: For FreeBSD, use mkstemp.
42943 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
42945 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
42947 2003-11-21 Robert Dewar <dewar@gnat.com>
42949 * bld.adb: Remove useless USE of gnatvsn
42951 * gnatchop.adb: Minor reformatting
42952 Clean up version handling to be more consistent
42954 * gnatxref.adb: Minor reformatting
42956 * gprcmd.adb: Minor reformatting
42957 Fix output of copyright to be more consistent with other tools
42959 2003-11-21 Vincent Celier <celier@gnat.com>
42961 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
42963 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
42965 * atree.adb (Initialize): Add initializations for global variables
42966 used in New_Copy_Tree.
42968 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
42969 Internal_Source_File as the actual).
42970 Put the set of statements creating Any_Character before the set of
42971 statements creating Any_Array to have Any_Character fully initialized
42972 when it is used in creating Any_Array.
42974 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
42975 not call Scan in case if the actual is Internal_Source_File
42976 Add 2003 to copyright note.
42978 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
42979 processing Internal_Source_File.
42981 * types.ads: Add the constant Internal_Source_File representing the
42982 source buffer for artificial source-code-like strings created within
42983 the compiler (the definition of Source_File_Index is changed).
42985 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
42987 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
42988 56system.ads: New file, FreeBSD version.
42990 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
42992 * Make-lang.in (ada.extraclean): Delete.
42994 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
42996 * gnatmem.adb: Clean up verbose output.
42998 * gprcmd.adb: Change copyright to FSF.
43000 2003-11-19 Vincent Celier <celier@gnat.com>
43002 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
43003 and Version (ignored).
43005 * symbols.ads: (Policy): New type
43006 (Initialize): New parameter Reference, Symbol_Policy and
43008 Remove parameter Force.
43009 Minor reformatting.
43011 * snames.ads, snames.adbadb: New standard names
43012 Library_Reference_Symbol_File and Library_Symbol_Policy
43015 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
43019 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
43021 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
43023 * prj.adb: (Project_Empty): New component Symbol_Data
43025 * prj.ads: (Policy, Symbol_Record): New types
43026 (Project_Data): New component Symbol_Data
43029 New attributes Library_Symbol_File, Library_Symbol_Policy and
43030 Library_Reference_Symbol_File.
43033 (Ada_Check): When project is a Stand-Alone library project, process
43034 attribute Library_Symbol_File, Library_Symbol_Policy and
43035 Library_Reference_Symbol_File.
43037 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
43038 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
43039 5sml-tgt.adb (Build_Dynamic_Library): New parameter
43040 Symbol_Data (ignored).
43042 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
43043 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
43044 functions Option_File_Name and Version_String. Set new options of
43045 gnatsym related to symbol file, symbol policy and reference symbol
43049 Extensive modifications to take into account the reference symbol file,
43050 the symbol policy, the library version and to put in the symbol file the
43051 minor and major IDs.
43053 * bld.adb (Process_Declarative_Items): Put second argument of
43054 gprcmd to_absolute between single quotes, to avoid problems with
43057 * bld-io.adb: Update Copyright notice.
43058 (Flush): Remove last character of a line, if it is a back slash, to
43059 avoid make problems.
43062 Implement new scheme with reference symbol file and symbol policy.
43064 * g-os_lib.ads: (Is_Directory): Clarify comment
43066 2003-11-19 Robert Dewar <dewar@gnat.com>
43068 * atree.adb: Move New_Copy_Tree global variables to head of package
43070 * errout.adb: Minor reformatting
43072 2003-11-19 Javier Miranda <miranda@gnat.com>
43074 * sem_ch4.adb: (Diagnose_Call): Improve error message.
43075 Add reference to Ada0Y (AI-50217)
43077 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
43078 sem_util.adb: Add reference to AI-50217
43080 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
43082 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
43084 * sem_aggr.adb: Complete documentation of AI-287 changes
43086 * par-ch4.adb: Document previous changes.
43088 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
43089 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
43092 * exp_aggr.adb: Add references to AI-287 in previous changes
43094 2003-11-19 Ed Schonberg <schonberg@gnat.com>
43097 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
43098 in the rewriting is the result of an inlined call.
43100 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
43101 parameter is a type conversion, use original node to construct the
43102 post-call assignment, because expression may have been rewritten, e.g.
43103 if it is a packed array.
43106 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
43107 body, just as it is in an instance.
43108 Categorization routines
43110 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
43111 Instantiate_Object): Set proper sloc reference for message on missing
43114 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
43116 * Makefile.in: Add FreeBSD libgnat pairs.
43118 * usage.adb: Fix typo in usage message.
43120 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
43122 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
43123 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
43124 pragma Thread_Body.
43125 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
43127 * s-thread.adb: This file is now a dummy implementation of
43130 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
43132 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
43134 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
43136 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
43137 instanciation references in the parent type description.
43139 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43141 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
43143 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
43144 TYPE_PRECISION directly from esize.
43146 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
43149 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
43151 * init.c: Initialization routines for FreeBSD
43153 * link.c: Link info for FreeBSD
43155 * sysdep.c: Add the case of FreeBSD
43157 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
43159 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
43160 already called in System.Threads.
43162 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
43163 environment task, as it has been moved to System.Threads.Initialization.
43165 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
43167 * adaint.c (__gnatlib_install_locks): Only reference
43168 __gnat_install_locks on VMS, since other platforms can avoid using
43169 --enable-threads=gnat
43171 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43173 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
43175 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
43176 TYPE_PACKED_ARRAY_TYPE_P.
43177 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
43179 Part of PR ada/12806
43180 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
43181 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
43183 2003-11-17 Vincent Celier <celier@gnat.com>
43185 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
43187 Do not set exit status to Failure when Warning is True.
43188 (Gnatchop): Make errors "no compilation units found" and
43189 "no source files written" warnings only.
43191 * make.adb (Gnatmake): When using a project file, set
43192 Look_In_Primary_Dir to False.
43193 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
43194 and Local_Configuration_Pragmas in the project where they are declared
43195 not an extending project which might have inherited them.
43197 * osint.adb (Locate_File): If Name is already an absolute path, do not
43198 look for a directory.
43200 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
43201 -gnats (Check_Syntax) is used, issue only a warning, not an error.
43203 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
43204 in objects of type Variable_Value.
43206 * prj.ads: (Variable_Value): New component Project
43208 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
43209 is in a project extended by Project.
43211 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
43212 Project of Variable_Values to this new parameter value.
43213 (Expression): Set component Project of Variable_Values.
43214 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
43215 Set the component Project in array elements.
43217 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
43219 * errout.adb: (Initialize): Add initialization for error nodes.
43221 * sem_ch12.adb (Initialize): Add missing initializations for
43222 Exchanged_Views and Hidden_Entities.
43224 2003-11-17 Ed Schonberg <schonberg@gnat.com>
43226 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
43227 already instantiated tree for use in subsequent inlining.
43228 (Analyze_Associations, Instantiate_Formal_Subprogram,
43229 Instantiate_Object): improve error message for mismatch in
43232 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
43233 instantiations of subprograms declared in instances.
43235 2003-11-17 Javier Miranda <miranda@gnat.com>
43237 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
43238 executed only under the Extensions_Allowed flag.
43240 2003-11-17 Robert Dewar <dewar@gnat.com>
43242 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
43244 (Address_Image): Fix bug of returning 0x instead of 0x0
43245 Minor reformatting (function specs).
43247 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
43248 (missed case of 33-63)
43250 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
43252 * s-thread.adb: Add comments for pragma Restriction
43254 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
43255 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
43257 2003-11-17 Ed Falis <falis@gnat.com>
43259 * s-thread.adb: Added No_Tasking restriction for this implementation.
43261 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
43263 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
43264 instanciation references in the parent type description.
43266 2003-11-17 GNAT Script <nobody@gnat.com>
43268 * Make-lang.in: Makefile automatically updated
43270 2003-11-16 Jason Merrill <jason@redhat.com>
43272 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
43273 and TAGS files that include them for each front end.
43275 2003-11-14 Andreas Jaeger <aj@suse.de>
43277 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
43278 is the canonical version.
43279 * misc.c (gnat_handle_option): Likewise.
43281 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
43283 * 5nsystem.ads: New file for x86_64-linux-gnu.
43285 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
43287 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
43289 * comperr.adb: Fix logic in previous change.
43291 2003-11-13 Vincent Celier <celier@gnat.com>
43293 * 5bml-tgt.adb (Build_Dynamic_Library): Use
43294 Osint.Include_Dir_Default_Prefix instead of
43295 Sdefault.Include_Dir_Default_Name.
43297 * gnatlbr.adb: Update Copyright notice
43298 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
43299 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
43300 instead of Sdefault.Object_Dir_Default_Name
43303 (Process_Binder_File): Never suppress the option following -Xlinker
43306 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
43307 Sdefault.Object_Dir_Default_Name.
43309 * osint.ads, osint.adb:
43310 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
43311 Minor reformatting.
43313 * vms_conv.ads: Minor reformating
43314 Remove GNAT STANDARD and GNAT PSTA
43317 Allow GNAT MAKE to have several files on the command line.
43318 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
43319 Sdefault.Object_Dir_Default_Name.
43321 Remove data for GNAT STANDARD
43324 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
43325 Remove data for GNAT STANDARD
43326 Remove options and documentation for -gnatwb/-gnatwB: these warning
43327 options no longer exist.
43329 2003-11-13 Ed Falis <falis@gnat.com>
43331 * 5zthrini.adb: (Init_RTS): Made visible
43334 (Register): Removed unnecessary call to taskVarGet that checked whether
43335 an ATSD was already set as a task var for the argument thread.
43338 Updated comment to reflect that this is a VxWorks version
43339 Added context clause for System.Threads.Initialization
43340 Added call to System.Threads.Initialization.Init_RTS
43342 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
43345 (Init_RTS): New procedure, for the initialization of the run-time lib.
43348 Remove dependancy on System.Init, so that this file can be used in the
43349 AE653 sequential run-time lib.
43351 2003-11-13 Robert Dewar <dewar@gnat.com>
43353 * bindgen.adb: Minor reformatting
43355 2003-11-13 Ed Schonberg <schonberg@gnat.com>
43358 (Apply_Discriminant_Check): Do no apply check if target type is derived
43359 from source type with no applicable constraint.
43362 (Ensure_System_Dependency): Do not apply the style checks that may have
43363 been specified for the main unit.
43366 (Find_Selected_Component): Further improvement in error message, with
43370 (Resolve): Handle properly the case of an illegal overloaded protected
43373 2003-11-13 Javier Miranda <miranda@gnat.com>
43376 (Has_Default_Init_Comps): New function to check the presence of
43377 default initialization in an aggregate.
43378 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
43379 extension aggregate of a limited record. In addition, a new formal
43380 was added to do not initialize the record controller (if any) during
43381 this recursive expansion of ancestors.
43382 (Init_Controller): Add support for limited record components.
43383 (Expand_Record_Aggregate): In case of default initialized components
43384 convert the aggregate into a set of assignments.
43386 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
43387 describing the new syntax.
43388 Nothing else needed to be done because this subprogram delegates part of
43389 its work to P_Precord_Or_Array_Component_Association.
43390 (P_Record_Or_Array_Component_Association): Give support to the new
43391 syntax for default initialization of components.
43394 (Resolve_Aggregate): Relax the strictness of the frontend in case of
43395 limited aggregates.
43396 (Resolve_Record_Aggregate): Give support to default initialized
43398 (Get_Value): In case of default initialized components, duplicate
43399 the corresponding default expression (from the record type
43400 declaration). In case of default initialization in the *others*
43401 choice, do not check that all components have the same type.
43402 (Resolve_Extension_Aggregate): Give support to limited extension
43406 (Check_Initialization): Relax the strictness of the front-end in case
43407 of aggregate and extension aggregates. This test is now done in
43408 Get_Value in a per-component manner.
43410 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
43411 expression corresponds to a limited aggregate. This test is now done
43414 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
43417 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
43418 present in an N_Component_Association node
43420 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
43422 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
43423 type-conformant entry only if they are homographs.
43425 2003-11-13 GNAT Script <nobody@gnat.com>
43427 * Make-lang.in: Makefile automatically updated
43429 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43431 * adadecode.c: Use <> form of include for ctype.h.
43432 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
43434 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43436 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
43437 Works around PR middle-end/6552.
43439 2003-11-10 Ed Falis <falis@gnat.com>
43441 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
43443 * 5zinit.adb: (Install_Handler): Moved back to spec
43444 (Install_Signal_Handlers): Deleted
43446 * 5zthrini.adb: Added context clause for System.Storage_Elements
43447 (Register): Only handles creation of taskVar; initialization moved to
43449 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
43450 Added declaration of environment task secondary stack and
43453 * s-thread.adb: Implement bodies for thread body processing
43456 Added comment identifying supported targets for pragma Thread_Body.
43458 2003-11-10 Pascal Obry <obry@gnat.com>
43460 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
43464 (Open): Properly check for string length before copying into the buffer.
43465 Raises Name_Error if buffer is too small. Note that this was a potential
43468 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
43470 * bindgen.adb, comperr.adb: Code clean ups.
43471 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
43473 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
43475 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
43477 2003-11-10 Vincent Celier <celier@gnat.com>
43480 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
43483 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
43485 * prj.adb: (Project_Empty): Add new boolean component Virtual
43487 * prj.ads: (Virtual_Prefix): New constant string
43488 (Project_Data): New boolean component Virtual
43490 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
43491 a library project is extended by a virtual extending project.
43494 Modifications throughout to implement extending-all project, including:
43495 (Virtual_Hash, Processed_Hash): New hash tables
43496 (Create_Virtual_Extending_Project): New procedure
43497 (Look_For_Virtual_Projects_For): New procedure
43500 (Process): After checking the projects, if main project is an
43501 extending-all project, set the object directory of all virtual extending
43502 project to the object directory of the main project.
43503 Adjust error message when a virtual extending project has the same
43504 object directory as an project being extended.
43505 (Recursive_Process): If name starts with the virtual prefix, set Virtual
43506 to True in the project data.
43509 (Default_Project_Node): Add new boolean component Extending_All
43510 (Is_Extending_All): New function
43511 (Set_Is_Extending_All): New procedure
43513 * prj-tree.ads: (Is_Extending_All): New function
43514 (Set_Is_Extending_All): New procedure
43515 (Project_Node_Record): New boolean component Extending_All
43517 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
43520 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
43522 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
43523 "gprcmd prefix" to define it.
43525 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
43527 * einfo.ads: Fix a typo and remove an extraneous word in comments.
43530 (Create_Dummy_Package_Unit): Set the scope of the entity for the
43531 created dummy package to Standard_Standard, not to itself, to
43532 defend other parts of the front-end against encoutering a cycle in
43536 (Analyze_With_Clause): When setting the entities for the successive
43537 N_Expanded_Names that constitute the name of a child unit, do not
43538 attempt to go further than Standard_Standard in the chain of scopes.
43539 This case arises from the placeholder units created by
43540 Create_Dummy_Package_Unit in the case of a with_clause for a
43541 nonexistent child unit.
43543 2003-11-10 Ed Schonberg <schonberg@gnat.com>
43546 (Expand_Thread_Body): Place subprogram on scope stack, so that new
43547 declarations are given the proper scope.
43550 (Check_Expr_Constants): Reject an expression that contains a constant
43551 created during expansion, and that appears after the object to which
43552 the address clause applies.
43554 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
43555 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
43556 that uses 'Range of a function call with controlled components, so
43557 that the function result can be finalized before starting the loop.
43560 (Find_Selected_Component): Improve error message when prefix is
43561 an implicit dereference of an incomplete type.
43563 2003-11-10 Robert Dewar <dewar@gnat.com>
43565 * opt.ads: New Print_Standard flag for -gnatS switch
43567 * sem_ch13.adb: Remove some additional checks for unaligned arrays
43569 * cstand.adb (Create_Standard): Print out package standard if -gnatS
43572 * debug.adb: Update doc for -gnatds to discuss relationship with new
43575 * sinfo.adb: Add new field Entity_Or_Associated_Node
43577 * sinfo.ads: Add new field Entity_Or_Associated_Node
43578 Update documentation for Associated_Node and Entity fields to clarify
43579 relationship and usage.
43582 (Write_Id): Properly process Associated_Node field in generic template
43585 Recognize new -gnatS switch for printing package Standard
43586 This replaces gnatpsta
43589 Add line for new -gnatS switch for printing package Standard
43590 This replaces gnatpsta
43592 2003-11-10 Andreas Jaeger <aj@suse.de>
43594 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
43597 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
43599 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
43602 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
43604 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
43607 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
43609 * sysdep.c: Add handling of cygwin.
43611 2003-11-10 GNAT Script <nobody@gnat.com>
43613 * Make-lang.in: Makefile automatically updated
43615 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
43618 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
43619 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
43620 Replace GNAT_ROOT by GCC_ROOT.
43622 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
43624 2003-11-06 Zack Weinberg <zack@codesourcery.com>
43626 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
43627 and update for changed meaning of GET_MODE_BITSIZE.
43629 2003-11-04 Doug Rupp <rupp@gnat.com>
43631 * sysdep.c: Problem discovered during IA64 VMS port.
43632 [VMS] #include <unixio.h> to get proper prototypes.
43635 Issues discovered/problems fixed during IA64 VMS port.
43636 [VMS] #define _POSIX_EXIT for proper semantics.
43637 [VMS] #include <unixio.h> for proper prototypes.
43638 [VMS] (fork): #define IA64 version.
43639 (__gnat_os_exit): Remove unnecessary VMS specific code.
43641 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43643 Part of PR ada/12806
43644 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
43648 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
43651 * targtyps.c, decl.c, misc.c,
43652 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
43653 routines to work around change in FP sizing semantics in GCC.
43656 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
43658 * gigi.h: (enumerate_modes): New function.
43660 * Make-lang.in: (ada/misc.o): Add real.h.
43662 * misc.c: (enumerate_modes): New function.
43664 2003-11-04 Robert Dewar <dewar@gnat.com>
43666 * 3vtrasym.adb: Minor reformatting
43667 Use terminology encoded/decoded name, rather than C++ specific notion
43668 of mangling (this is the terminology used throughout GNAT).
43670 * einfo.h: Regenerated
43672 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
43675 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
43677 * par-prag.adb: Add dummy entry for Thread_Body pragma
43680 Add entries for System.Threads entities for thread body processing
43683 (Analyze_Pragma, Access attributes): Check these are not applied to a
43684 thread body, since this is not permitted
43686 * sem_prag.adb: Add processing for Thread_Body pragma.
43690 (Resolve_Call): Check for incorrect attempt to call a thread body
43691 procedure with a direct call.
43693 * snames.ads, snames.adb: Add entry for Thread_Body pragma
43694 Add names associated with thread body expansion
43696 * snames.h: Add entry for Thread_Body pragma
43698 * s-thread.adb: Add entries for thread body processing
43699 These are dummy bodies so far
43701 * s-thread.ads: Add documentation on thread body handling.
43702 Add entries for thread body processing.
43704 2003-11-04 Javier Miranda <miranda@gnat.com>
43707 (Build_Limited_Views): Return after posting an error in case of limited
43708 with_clause on subprograms, generics, instances or generic renamings
43709 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
43710 on subprograms, generics, instances or generic renamings
43712 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
43714 * raise.c (setup_to_install): Correct mistake in last revision; two
43715 arguments out of order.
43717 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
43718 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
43719 notice, missed in previous change.
43720 Remove trailing blanks and other style errors introduced in previous
43723 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
43725 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
43726 rid of the wrapper for a LJM type, ensuring we don't do that if the
43727 field is addressable. This avoids potential low level type view
43728 mismatches later on, for instance in a by-reference argument passing
43731 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43733 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
43734 aligned at byte boundary.
43736 2003-11-04 Joel Brobecker <brobecker@gnat.com>
43738 * decl.c (components_to_record): Do not delete the empty variants from
43739 the end of the union type.
43741 2003-11-04 Ed Schonberg <schonberg@gnat.com>
43743 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
43744 operation for a derived type, an explicit declaration may use a local
43745 subtype of Boolean.
43747 2003-11-04 Vincent Celier <celier@gnat.com>
43749 * make.adb (Gnatmake): Allow main sources on the command line with a
43750 library project when it is only for compilation (no binding or
43753 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43755 * Makefile.in: Remove many duplicate variables.
43757 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
43759 * Make-lang.in (dvi): Move targets to $(docobjdir).
43760 (gnat_ug_vms.dvi): Simplify rule and adjust target.
43761 (gnat_ug_wnt.dvi): Likewise.
43762 (gnat_ug_unx.dvi): Likewise.
43763 (gnat_ug_vxw.dvi): Likewise.
43764 (gnat_rm.dvi): Likewise.
43765 (gnat-style.dvi): Likewise.
43767 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
43769 * gigi.h: Missed commit from update for C90.
43771 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
43773 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
43775 2003-10-31 Andreas Schwab <schwab@suse.de>
43777 * raise.c (get_action_description_for): Fix typo in last change.
43779 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
43782 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
43783 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
43785 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
43787 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
43788 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
43789 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
43790 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
43791 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
43793 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
43796 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
43797 numbers when symbol name is too long.
43799 2003-10-30 Ed Falis <falis@gnat.com>
43801 * g-signal.ads, g-signal.adb: New files
43803 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
43805 * Makefile.rtl: Introduce GNAT.Signals
43807 2003-10-30 Robert Dewar <dewar@gnat.com>
43809 * freeze.adb: Minor reformatting
43811 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
43813 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
43814 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
43815 New handling of Id_Check parameter to improve recognition of keywords
43816 used as identifiers.
43817 Update copyright notice to include 2003
43819 2003-10-29 Robert Dewar <dewar@gnat.com>
43821 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
43822 sem_ch10.adb: Minor reformatting
43824 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
43825 (Expand_Assign_Record): Test right hand side for bit unaligned as well
43827 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
43829 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
43830 Support for TBK$SYMBOLIZE-based symbolic traceback.
43832 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
43835 Revert previous change, that did not work well when pragma No_Run_Time
43836 was used in conjunction with a run-time other than ZFP.
43838 2003-10-29 Vincent Celier <celier@gnat.com>
43841 (Gnatmake): When there are no Ada mains in attribute Main, disable the
43842 bind and link steps only is switch -z is not used.
43844 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
43846 * Makefile.generic: Remove duplicated setting of CC.
43848 * Makefile.prolog: Set CC to gcc by default, to override make's
43851 * einfo.h: Regenerated.
43853 2003-10-29 Ed Schonberg <schonberg@gnat.com>
43855 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
43856 current body, after compiling subunit.
43858 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
43859 when in deleted code, because gigi needs properly ordered freeze
43860 actions to annotate types.
43862 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
43863 prevent the premature freezing of record type that contains
43864 subcomponents with a private type that does not yet have a completion.
43866 2003-10-29 Javier Miranda <miranda@gnat.com>
43869 (Analyze_Package_Instantiation): Check that instances can not be used in
43870 limited with_clauses.
43873 (Analyze_Package_Renaming): Check that limited withed packages cannot
43874 be renamed. Improve text on error messages related to limited
43877 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
43879 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
43880 Update copyright notice.
43882 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
43883 (Install_Limited_Context_Clauses): New subprogram that isolates all the
43884 checks required for limited context_clauses and installs the limited
43886 (Install_Limited_Withed_Unit): Complete its documentation.
43887 (Analyze_Context): Check that limited with_clauses are only allowed in
43889 (Install_Context): Call Install_Limited_Context_Clauses after the
43890 parents have been installed.
43891 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
43892 package as 'From_With_Type'; this mark indicates that the limited view
43893 is installed. Used to check bad usages of limited with_clauses.
43894 (Build_Limited_Views): Do not add shadow entities to the scope's list
43895 of entities. Do not add real entities to the Non_Limited_Views chain.
43896 Improve error notification.
43897 (Remove_Context_Clauses): Remove context clauses in two phases:
43898 limited views first and regular views later (to maintain the
43900 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
43901 its visible entities.
43903 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
43905 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
43906 with any type that Is_Fixed_Point_Type.
43908 * sinfo.ads: Fix documentation for Associated_Node attribute.
43910 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
43912 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
43913 both '-gnatc' and '-gnatt' are specified.
43915 * atree.adb (Initialize): Add initialization for Node_Count (set to
43918 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43920 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
43921 do not consider as Pure.
43923 Part of implementation of function-at-a-time:
43925 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
43926 (tree_transform): Add new argument to build_component_ref.
43927 (tree_transform, case N_Assignment_Statement): Make and return an
43929 (tree_transform): If result IS_STMT, set flags and return it.
43930 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
43932 * utils2.c (build_simple_component_ref, build_component_ref): Add new
43934 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
43935 (build_allocator): Likewise.
43937 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
43938 Add new arg to build_component_ref.
43939 (maybe_unconstrained_array, unchecked_convert): Likewise.
43941 * ada-tree.def (EXPR_STMT): New code.
43943 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
43945 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
43946 build_component_ref calls.
43948 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
43950 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
43951 (build_component_ref): Add new argument, NO_FOLD_P.
43953 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
43955 * Makefile.generic: Add missing substitution on object_deps handling.
43958 * Make-lang.in (check-ada): Enable ACATS test suite.
43960 2003-10-27 Robert Dewar <dewar@gnat.com>
43963 (Freeze_Array_Type): We do not need an initialization routine for types
43964 derived from String or Wide_String. They should be treated the same
43965 as String and Wide_String themselves. This caused problems with the
43966 use of Initialize_Scalars.
43969 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
43970 composites. This allows use of component clauses that are not byte
43974 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
43975 is an attempt to pack an array of atomic objects.
43977 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
43979 2003-10-27 Pascal Obry <obry@gnat.com>
43982 (Basename): Check for drive letters in a pathname only on DOS based OS.
43984 2003-10-27 Vincent Celier <celier@gnat.com>
43987 (Gnatmake): When unable to change dir to the object dir, display the
43988 content of the parent dir of the obj dir, to try to understand why this
43991 2003-10-27 GNAT Script <nobody@gnat.com>
43993 * Make-lang.in: Makefile automatically updated
43995 2003-10-27 Ed Schonberg <schonberg@gnat.com>
43998 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
43999 should not be done in Save/Restore_Scope_Stack, because it is performed
44003 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
44004 whether use clauses should be removed/restored.
44007 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
44008 whether use clauses should be removed/restored.
44010 2003-10-26 Andreas Jaeger <aj@suse.de>
44012 * Makefile.in: Remove duplicated lines.
44014 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
44016 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
44017 minimize the differences with ACT tree.
44019 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
44020 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
44021 Gnatvsn.Gnat_Static_Version_String to reduce differences between
44024 2003-10-24 Pascal Obry <obry@gnat.com>
44027 * adadecode.c (ostrcpy): New function.
44028 (__gnat_decode): Use ostrcpy of strcpy.
44029 (has_prefix): Set first parameter a const.
44030 (has_suffix): Set first parameter a const.
44031 Update copyright notice. Fix source name in header.
44032 Removes a trailing space.
44034 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
44037 Remove the test against being in No_Run_Time_Mode before generating a
44038 call to Register_Tag. It is redundant with the test against the
44039 availability of the function Register_Tag.
44041 2003-10-24 Vincent Celier <celier@gnat.com>
44043 * g-catiio.adb: (Month_Name): Correct spelling of February
44045 * make.adb: (Mains): New package
44046 (Initialize): Call Mains.Delete
44047 (Gnatmake): Check that each main on the command line is a source of a
44048 project file and, if there are several mains, each of them is a source
44049 of the same project file.
44050 (Gnatmake): When a foreign language is specified in attribute Languages,
44051 no main is specified on the command line and attribute Mains is not
44052 empty, only build the Ada main. If there is no Ada main, just compile
44053 the Ada sources and their closure.
44054 (Gnatmake): If a main is specified on the command line with directory
44055 information, check that the source exists and, if it does, that the path
44056 is the actual path of a source of a project.
44059 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
44060 Full_Path is True, return the full path instead of the simple file name.
44061 (Project_Of): New function
44064 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
44065 defaulted to False.
44066 (Project_Of): New function
44068 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
44070 * Makefile.generic:
44071 Ensure objects of main project are always checked and rebuilt if needed.
44072 Set CC to gcc by default.
44073 Prepare new handling of link by creating a global archive (not activated
44076 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
44077 stringt.h: Update copyright notice. Remove trailing blanks.
44078 Fix source name in header.
44080 2003-10-24 Robert Dewar <dewar@gnat.com>
44082 * sem_ch12.adb: Minor reformatting
44085 Minor reformatting (including new function return style throughout)
44088 Minor reformatting (including new function return style throughout)
44090 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
44092 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
44093 stringt.h: Update copyright notice. Remove trailing blanks.
44094 Fix source name in header.
44096 2003-10-24 GNAT Script <nobody@gnat.com>
44098 * Make-lang.in: Makefile automatically updated
44100 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
44102 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
44103 stringt.h: Convert to ISO C90 declarations and definitions.
44105 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
44108 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
44109 External_Tag attribute definition clauses.
44111 2003-10-23 Ed Schonberg <schonberg@gnat.com>
44114 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
44115 child unit, generate a fully qualified name to avoid spurious errors
44116 when the context contains renamings of different child units with
44117 the same simple name.
44119 * exp_dbug.ads: Add documentation on name qualification for renamings
44122 2003-10-23 Robert Dewar <dewar@gnat.com>
44124 * g-regpat.ads, g-regpat.adb: Minor reformatting
44126 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
44128 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
44130 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
44132 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
44135 * urealp.h: (Machine): Update to proper definition.
44137 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
44139 * init.c, adaint.c: Minor reformatting.
44141 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
44143 * adaint.c (w32_epoch_offset): Define static const at file level.
44144 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
44145 rather than t_create, t_access in call to GetFileTime. Use union
44146 to convert between FILETIME and unsigned long long.
44147 (__gnat_file_time_name): Test for invalid file handle.
44148 (__gnat_set_filetime_name): Support win32 targets using
44149 w32api SetFileTime.
44151 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
44153 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
44155 * ctrl_c.c (__gnat_int_handler): Remove declaration.
44157 * decl.c (creat_concat_name): Const-ify prefix.
44159 * adaint.c: Include ctype.h if __MINGW32__.
44160 (__gnat_readlink): Mark arguments as possibly unused.
44161 (__gnat_symlink): Likewise.
44162 (__gnat_is_symbolic_link): Likewise.
44163 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
44165 (__gnat_file_time_name): Don't declare struct stat statbuf when
44167 (__gnat_is_absolute_path): Add parenthesis around condition of
44168 'if' statement to avoid warning.
44169 (__gnat_plist_init): Specify void as parameter.
44170 (plist_enter): Likewise.
44171 (plist_leave): Likewise.
44172 (remove_handle): Make static. Initialize prev.
44174 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
44177 * Makefile.in: Disable build of gnatpsta.
44178 * cstreams.c (__gnat_full_name): Minor improvements and clean up
44179 of previous change.
44181 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44183 * tracebak.c (MAX): Avoid redefinition warning.
44185 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
44186 Change msg to const char *.
44187 (__gnat_install_handler): Remove ss, unused.
44188 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
44190 * cstreams.c (__gnat_full_name): Declare p only when used.
44191 (__gnat_full_name) [sgi] Return buffer.
44193 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
44195 * mingw32.h: New file.
44196 * gnat_wrapper.adb: New file.
44198 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
44200 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
44201 string match a pre compiled regular expression (the corresponding
44202 version of the function working on a raw regular expression)
44203 Fix typos in various comments
44204 Update copyright notice in spec
44206 2003-10-21 Gary Dismukes <dismukes@gnat.com>
44209 (Component_Needs_Simple_Initialization): Return False when the type is a
44210 packed bit array. Revise spec comments to document this case.
44213 (Expand_Pragma_Import): Set any expression on the imported object to
44214 empty to avoid initializing imported objects (in particular this
44215 covers the case of zero-initialization of bit arrays).
44216 Update copyright notice.
44218 2003-10-21 Ed Schonberg <schonberg@gnat.com>
44221 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
44222 a subunit is missing.
44223 (Instantiate_Subprogram_Body): If body of function is missing, set type
44224 of return expression explicitly in dummy body, to prevent cascaded
44225 errors when a subunit is missing.
44229 (Access_Subprogram_Declaration): Verify that return type is valid.
44233 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
44238 (Corresponding_Discriminant): If the scope of the discriminant is a
44239 private type without discriminant, use its full view.
44242 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
44244 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
44245 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
44246 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
44247 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
44248 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
44249 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
44250 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
44251 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
44252 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
44253 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
44254 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
44255 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
44256 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
44257 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
44258 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
44259 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
44260 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
44261 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
44262 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
44263 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
44264 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
44265 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
44266 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
44267 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
44268 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
44269 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
44270 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
44271 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
44272 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
44273 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
44274 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
44275 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
44276 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
44277 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
44278 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
44279 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
44280 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
44281 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
44282 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
44283 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
44284 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
44285 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
44286 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
44287 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
44288 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
44289 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
44290 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
44291 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
44292 vms_conv.ads, vms_conv.adb, vms_data.ads,
44293 vxaddr2line.adb: Files added. Merge with ACT tree.
44295 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
44296 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
44297 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
44298 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
44299 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
44300 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
44301 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
44302 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
44303 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
44304 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
44306 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
44307 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
44308 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
44309 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
44310 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
44311 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
44312 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
44313 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
44314 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
44315 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
44316 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
44317 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
44318 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
44319 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
44320 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
44321 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
44322 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
44323 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
44324 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
44325 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
44326 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
44327 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
44328 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
44329 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
44330 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
44331 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
44332 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
44333 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
44334 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
44335 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
44336 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
44337 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
44338 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
44339 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
44340 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
44341 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
44342 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
44343 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
44344 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
44345 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
44346 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
44347 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
44348 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
44349 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
44350 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
44351 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
44352 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
44353 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
44354 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
44355 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
44356 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
44357 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
44358 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
44359 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
44360 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
44361 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
44362 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
44363 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
44364 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
44365 checks.adb, checks.ads, cio.c, comperr.adb,
44366 comperr.ads, csets.adb, cstand.adb, cstreams.c,
44367 debug_a.adb, debug_a.ads, debug.adb, decl.c,
44368 einfo.adb, einfo.ads, errout.adb, errout.ads,
44369 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
44370 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
44371 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
44372 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
44373 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
44374 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
44375 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
44376 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
44377 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
44378 fe.h, fmap.adb, fmap.ads, fname.adb,
44379 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
44380 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
44381 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
44382 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
44383 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
44384 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
44385 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
44386 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
44387 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
44388 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
44389 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
44390 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
44391 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
44392 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
44393 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
44394 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
44395 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
44396 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
44397 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
44398 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
44399 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
44400 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
44401 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
44402 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
44403 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
44404 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
44405 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
44406 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
44407 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
44408 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
44409 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
44410 layout.adb, lib.adb, lib.ads, lib-list.adb,
44411 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
44412 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
44413 link.c, live.adb, make.adb, make.ads,
44414 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
44415 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
44416 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
44417 misc.c, mkdir.c, mlib.adb, mlib.ads,
44418 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
44419 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
44420 namet.adb, namet.ads, namet.h, nlists.ads,
44421 nlists.h, nmake.adt, opt.adb, opt.ads,
44422 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
44423 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
44424 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
44425 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
44426 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
44427 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
44428 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
44429 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
44430 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
44431 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
44432 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
44433 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
44434 prj-util.adb, prj-util.ads, raise.c, raise.h,
44435 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
44436 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
44437 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
44438 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
44439 scans.ads, scn.adb, scn.ads, s-crc32.adb,
44440 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
44441 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
44442 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
44443 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
44444 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
44445 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
44446 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
44447 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
44448 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
44449 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
44450 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
44451 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
44452 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
44453 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
44454 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
44455 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
44456 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
44457 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
44458 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
44459 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
44460 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
44461 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
44462 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
44463 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
44464 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
44465 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
44466 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
44467 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
44468 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
44469 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
44470 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
44471 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
44472 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
44473 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
44474 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
44475 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
44476 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
44477 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
44478 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
44479 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
44480 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
44481 stringt.adb, stringt.ads, stringt.h, style.ads,
44482 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
44483 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
44484 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
44485 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
44486 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
44487 table.adb, table.ads, targparm.adb, targparm.ads,
44488 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
44489 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
44490 ttypes.ads, types.ads, types.h, uintp.adb,
44491 uintp.ads, uintp.h, uname.adb, urealp.adb,
44492 urealp.ads, urealp.h, usage.adb, utils2.c,
44493 utils.c, validsw.adb, validsw.ads, widechar.adb,
44494 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
44495 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
44496 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
44497 gnatvsn.ads: Merge with ACT tree.
44499 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
44501 2003-10-20 Mark Mitchell <mark@codesourcery.com>
44503 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
44504 (gnat_ug_vmx.info): Likewise.
44505 (gnat_ug_vxw.info): Likewise.
44506 (gnat_ug_wnt.info): Likewise.
44507 (gnat_rm.info): Likewise.
44508 (gnat-style.info): Likewise.
44510 * Make-lang.in (ada.install-info): Remove target.
44511 (info): New target.
44512 (install-info): Likewise.
44513 (gnat_ug_unx.info): Simplify rule.
44514 (gnat_ug_vmx.info): Likewise.
44515 (gnat_ug_vxw.info): Likewise.
44516 (gnat_ug_wnt.info): Likewise.
44517 (gnat_rm.info): Likewise.
44518 (gnat-style.info): Likewise.
44520 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
44522 * Make-lang.in: Replace uses of $(target_alias) with
44523 $(target_noncanonical).
44524 * ada/Makefile.in: Remove unused mention of $(target_alias).
44526 2003-10-06 Mark Mitchell <mark@codesourcery.com>
44528 * Make-lang.in (ada.info): Replace with ...
44530 (ada.dvi): Replace with ...
44533 2003-09-29 Zack Weinberg <zack@codesourcery.com>
44535 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
44536 initialize dconstp5 and dconstmp5.
44538 2003-09-28 Richard Henderson <rth@redhat.com>
44540 * trans.c (tree_transform): Update call to expand_asm_operands.
44542 2003-09-21 Richard Henderson <rth@redhat.com>
44544 * trans.c, utils.c: Revert.
44546 2003-09-21 Richard Henderson <rth@redhat.com>
44548 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
44551 2003-09-04 Michael Matz <matz@suse.de>
44553 * misc.c: Include "target.h".
44554 * Make-lang.in (misc.o): Add dependency on target.h.
44556 2003-09-03 DJ Delorie <dj@redhat.com>
44558 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
44561 2003-08-30 Zack Weinberg <zack@codesourcery.com>
44563 * Makefile.in: Update substitutions to match changes to
44564 configure. Use include directives instead of @-insertions
44565 to read in host and target fragments. Add a rule to
44566 regenerate ada/Makefile.
44568 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
44570 * lang-options.h: Remove.
44571 * lang.opt: Add help text.
44573 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
44575 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
44578 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
44580 * misc.c (gnat_handle_option): Don't handle filenames.
44582 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
44584 * Make-lang.in: Replace PWD with PWD_COMMAND.
44585 * Makefile.adalib: Likewise.
44586 * Makefile.in: Likewise.
44588 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
44590 * misc.c (gnat_argv): Revert last change.
44591 (gnat_handle_option, gnat_init_options): Copy arguments.
44593 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
44595 * misc.c (gnat_argv): Make const.
44597 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
44599 * misc.c (save_argc, save_argv): Keep non-static!
44601 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
44603 * misc.c (save_argc, save_argv): Make static.
44604 (gnat_init_options): New prototype.
44605 (gnat_init_options): Update.
44607 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
44609 * gnat_ug.texi: Remove unlikely characters from @vars.
44610 * gnat_ug_vms.texi: Regenerate.
44612 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
44614 * misc.c (record_code_position): Adjust emit_note call.
44616 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
44618 * misc.c (gnat_handle_option): Don't check for missing arguments.
44620 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
44622 * utils.c (end_subprog_body): Adjust expand_function_end call.
44624 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
44626 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
44629 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
44631 * lang.opt: Declare Ada.
44632 * misc.c (gnat_init_options): Update.
44634 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
44636 * utils.c (begin_subprog_body): Adjust init_function_start call.
44638 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
44640 * Make-lang.in: Update to use options.c and options.h.
44641 * misc.c: Include options.h not aoptions.h.
44642 (gnat_handle_option): Abort on unrecognized switch.
44643 (gnat_init_options): Request Ada switches.
44645 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
44647 * lang.opt: Add -Wall.
44648 * misc.c (gnat_handle_option): Handle it.
44650 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
44652 * misc.c (gnat_handle_option): Fix warnings.
44654 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
44656 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
44658 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
44660 * Make-lang.in: Update to handle command-line options.
44661 * lang.opt: New file.
44662 * misc.c: Include aoptions.h.
44663 (cl_options_count, cl_options): Remove.
44664 (gnat_handle_option): New.
44665 (gnat_decode_option): Remove.
44666 (LANG_HOOKS_DECODE_OPTION): Remove.
44667 (LANG_HOOKS_HANDLE_OPTION): Override.
44669 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
44671 * init.c, misc.c, trans.c, utils.c: Remove dead code.
44673 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
44675 * Makefile.in: Replace "host_canonical" with "host" for autoconf
44678 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
44680 * Make-lang.in: Update.
44681 * misc.c: Include opts.h. Define cl_options_count and cl_options.
44683 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
44685 * misc.c (gnat_init_options): Update.
44687 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
44689 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
44690 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
44691 __attribute__ ((__unused__)).
44693 2003-06-05 Jan Hubicka <jh@suse.cz>
44695 * Make-lang.in: Add support for stageprofile and stagefeedback
44697 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
44699 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
44700 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
44702 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
44704 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
44705 Remove non-VMS directive.
44706 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
44708 (Examples of gnatls Usage): Remove VMS alternative.
44710 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
44713 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
44714 and turn ZCX_By_Default back to False since the underlying support
44715 is not quite there yet.
44717 2003-06-01 Andreas Jaeger <aj@suse.de>
44719 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
44720 and ROUND_TYPE_SIZE_UNIT.
44722 2003-05-22 Geert Bosch <bosch@gnat.com>
44724 * gnat_rm.texi : Remove reference to Ada Core Technologies.
44726 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
44728 * trans.c (tree_transform): Use location_t and input_location
44730 (build_unit_elab): Likewise.
44731 * utils.c (create_label_decl): Likewise.
44733 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
44735 * trans.c (tree_transform, build_unit_elab,
44736 set_lineno): Rename lineno to input_line.
44737 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
44738 end_subprog_body): Likewise.
44739 * utils2.c (build_call_raise): Likewise.
44741 2003-05-01 Laurent Guerby <guerby@acm.org>
44744 * 5iosinte.ads: Increase pthread_cond_t size to match recent
44745 LinuxThread and NPTL version, merge from ACT.
44747 2003-04-28 Zack Weinberg <zack@codesourcery.com>
44749 * utils.c (convert): No need to clear TREE_CST_RTL.
44751 2003-04-23 Geert Bosch <bosch@gnat.com>
44753 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
44754 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
44755 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
44756 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
44757 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
44758 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
44759 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
44760 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
44761 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
44762 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
44763 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
44764 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
44765 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
44766 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
44767 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
44768 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
44769 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
44770 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
44771 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
44772 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
44773 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
44774 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
44775 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
44776 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
44777 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
44778 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
44779 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
44780 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
44781 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
44782 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
44783 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
44784 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
44785 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
44786 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
44787 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
44788 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
44789 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
44790 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
44791 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
44792 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
44793 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
44794 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
44795 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
44796 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
44797 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
44798 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
44799 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
44800 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
44801 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
44802 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
44803 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
44804 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
44805 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
44806 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
44807 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
44808 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
44809 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
44810 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
44811 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
44812 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
44813 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
44814 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
44815 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
44816 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
44817 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
44818 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
44819 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
44820 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
44821 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
44822 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
44823 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
44824 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
44825 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
44826 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
44827 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
44828 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
44829 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
44830 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
44831 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
44832 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
44833 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
44834 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
44835 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
44836 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
44837 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
44838 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
44839 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
44840 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
44841 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
44842 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
44843 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
44844 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
44845 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
44846 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
44847 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
44848 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
44849 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
44850 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
44851 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
44852 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
44853 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
44854 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
44855 ali.adb, ali.ads, alloc.ads, argv.c,
44856 atree.adb, atree.ads, atree.h, aux-io.c,
44857 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
44858 binde.adb, binde.ads, binderr.adb, binderr.ads,
44859 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
44860 butil.adb, butil.ads, cal.c, calendar.ads,
44861 casing.adb, casing.ads, ceinfo.adb, checks.adb,
44862 checks.ads, cio.c, comperr.adb, comperr.ads,
44863 config-lang.in, csets.adb, csets.ads, csinfo.adb,
44864 cstand.adb, cstand.ads, cuintp.c, debug.adb,
44865 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
44866 dec-io.ads, dec.ads, deftarg.c, directio.ads,
44867 einfo.adb, einfo.ads, elists.adb, elists.ads,
44868 elists.h, errno.c, errout.adb, errout.ads,
44869 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
44870 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
44871 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
44872 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
44873 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
44874 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
44875 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
44876 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
44877 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
44878 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
44879 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
44880 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
44881 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
44882 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
44883 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
44884 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
44885 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
44886 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
44887 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
44888 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
44889 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
44890 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
44891 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
44892 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
44893 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
44894 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
44895 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
44896 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
44897 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
44898 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
44899 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
44900 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
44901 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
44902 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
44903 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
44904 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
44905 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
44906 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
44907 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
44908 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
44909 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
44910 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
44911 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
44912 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
44913 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
44914 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
44915 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
44916 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
44917 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
44918 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
44919 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
44920 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
44921 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
44922 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
44923 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
44924 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
44925 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
44926 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
44927 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
44928 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
44929 lib.adb, lib.ads, live.adb, live.ads,
44930 machcode.ads, make.adb, make.ads, makeusg.adb,
44931 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
44932 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
44933 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
44934 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
44935 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
44936 mlib.ads, namet.adb, namet.ads, nlists.adb,
44937 nlists.ads, opt.adb, opt.ads, osint-b.adb,
44938 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
44939 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
44940 osint.ads, output.adb, output.ads, par-ch10.adb,
44941 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
44942 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
44943 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
44944 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
44945 par-tchk.adb, par-util.adb, par.adb, par.ads,
44946 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
44947 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
44948 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
44949 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
44950 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
44951 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
44952 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
44953 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
44954 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
44955 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
44956 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
44957 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
44958 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
44959 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
44960 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
44961 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
44962 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
44963 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
44964 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
44965 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
44966 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
44967 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
44968 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
44969 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
44970 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
44971 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
44972 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
44973 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
44974 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
44975 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
44976 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
44977 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
44978 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
44979 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
44980 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
44981 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
44982 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
44983 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
44984 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
44985 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
44986 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
44987 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
44988 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
44989 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
44990 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
44991 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
44992 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
44993 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
44994 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
44995 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
44996 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
44997 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
44998 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
44999 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
45000 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
45001 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
45002 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
45003 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
45004 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
45005 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
45006 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
45007 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
45008 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
45009 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
45010 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
45011 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
45012 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
45013 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
45014 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
45015 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
45016 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
45017 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
45018 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
45019 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
45020 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
45021 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
45022 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
45023 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
45024 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
45025 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
45026 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
45027 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
45028 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
45029 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
45030 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
45031 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
45032 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
45033 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
45034 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
45035 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
45036 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
45037 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
45038 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
45039 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
45040 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
45041 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
45042 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
45043 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
45044 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
45045 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
45046 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
45047 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
45048 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
45049 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
45050 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
45051 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
45052 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
45053 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
45054 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
45055 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
45056 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
45057 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
45058 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
45059 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
45060 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
45061 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
45062 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
45063 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
45064 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
45065 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
45066 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
45067 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
45068 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
45069 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
45070 snames.ads, sprint.adb, sprint.ads, stand.adb,
45071 stand.ads, stringt.adb, stringt.ads, style.adb,
45072 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
45073 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
45074 switch-m.ads, switch.adb, switch.ads, system.ads,
45075 table.adb, table.ads, targparm.adb, targparm.ads,
45076 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
45077 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
45078 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
45079 ttypef.ads, ttypes.ads, types.adb, types.ads,
45080 uintp.adb, uintp.ads, uname.adb, uname.ads,
45081 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
45082 usage.adb, usage.ads, validsw.adb, validsw.ads,
45083 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
45084 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
45085 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
45086 formatting and other trivial changes from ACT.
45088 2003-04-12 Zack Weinberg <zack@codesourcery.com>
45090 * gigi.h, utils2.c (build_constructor):
45091 Rename gnat_build_constructor. Use build_constructor.
45092 * decl.c (gnat_to_gnu_entity)
45093 * trans.c (tree_transform, pos_to_constructor, extract_values)
45094 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
45095 (unchecked_convert)
45096 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
45097 (fill_vms_descriptor):
45100 2003-04-06 Zack Weinberg <zack@codesourcery.com>
45102 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
45103 * misc.c (gnat_tree_size): New function.
45104 (LANG_HOOKS_TREE_SIZE): Override.
45106 2003-04-03 Jason Merrill <jason@redhat.com>
45108 * misc.c (gnat_adjust_rli): #if 0.
45110 2003-03-31 Geert Bosch <bosch@gnat.com>
45113 * link.c : Fix misspelled "const" keyword
45115 2003-03-23 Mark Mitchell <mark@codesourcery.com>
45118 * utils2.c: Adjust calls to put_var_into_stack.
45120 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
45122 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
45124 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
45126 * misc.c (gnat_init): Update for new prototype.
45128 2003-03-05 Olivier Hainque <hainque@gnat.com>
45131 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
45132 warning, and fix return type for the IN_RTS && !SJLJ case.
45134 2003-03-04 Tom Tromey <tromey@redhat.com>
45136 * Make-lang.in (ada.tags): New target.
45138 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
45141 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
45142 wrapper, which name remains constant whatever underlying GCC
45145 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
45146 the stable interface needed for a-except.
45148 2003-03-02 Andreas Jaeger <aj@suse.de>
45150 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
45151 gnat_ug_wnt.texi: Regenerate.
45153 2003-03-02 Laurent Guerby <guerby@acm.org>
45155 * Makefile.in (install-gnatlib): Match previous change there
45158 2003-02-28 Andreas Schwab <schwab@suse.de>
45160 * Make-lang.in (install-gnatlib): Change to ada directory before
45161 running make instead of using ada/Makefile directly.
45163 2003-02-18 Ben Elliston <bje@redhat.com>
45165 Part of PR ada/9406
45166 * gnat_ug.texi (Binder output file): Grammar fix.
45168 2003-02-18 Ben Elliston <bje@redhat.com>
45171 * 5qtaprop.adb (Sleep): Fix typo in comment.
45173 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
45175 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
45176 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
45177 gnat_ug_wnt.texi: Regenerate.
45179 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
45181 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
45182 be created if necessary.
45183 (ada.install-common): Let $(DESTDIR)$(bindir) be created
45184 if necessary. Remove erroneous and redundant gnatchop
45185 installation commands. Test for gnatdll before attempting
45187 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
45188 and gnatdll from all plausible locations.
45190 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
45192 * utils2.c (build_unary_op): Don't check flag_volatile.
45193 * gnat_ug.texi: Remove -fvolatile from example.
45194 * gnat_ug_vxw.texi: Likewise.
45196 2003-01-29 Laurent Guerby <guerby@acm.org>
45199 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
45200 * Makefile.in: match previous change.
45201 * Make-lang.in: match previous change.
45203 2003-01-29 Joel Sherrill <joel@OARcorp.com>
45205 * 5rosinte.ads: Add SIGXCPU.
45206 * 5rtpopsp.adb: New file.
45207 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
45208 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
45209 specific file 5rtpopsp.adb.
45210 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
45211 is likely needed for all newlib targets.
45212 * init.c: Add RTEMS specific version of __gnat_initialize().
45214 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
45216 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
45218 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
45220 * init.c (__gnat_error_handler): Make msg const.
45222 * gmem.c (convert_addresses): Move declaration ...
45223 * adaint.h: ... here.
45224 * adaint.c (convert_addresses): Adapt addrs type to match
45227 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
45229 2003-01-24 Andreas Schwab <schwab@suse.de>
45231 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
45232 size_t to avoid warning.
45234 2003-01-21 Zack Weinberg <zack@codesourcery.com>
45236 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
45238 2003-01-09 Geoffrey Keating <geoffk@apple.com>
45240 * gnat_rm.texi: Remove RCS version number.
45242 * ada-tree.h (union lang_tree_node): Add chain_next option.
45244 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
45246 * Make-lang.in (ada.install-info, ada.install-common,
45247 ada.uninstall): Prepend $(DESTDIR) to the destination
45248 directory in all (un)installation commands.
45249 * Makefile.in (install-gnatlib, install-rts): Ditto.
45251 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
45253 * gnat_rm.texi, gnat_ug.texi: Use @copying.
45254 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
45255 gnat_ug_wnt.texi: Regenerate.
45257 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
45259 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
45261 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
45262 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
45263 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
45264 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
45265 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
45266 $(srcdir)/doc/include/gcc-common.texi.
45268 2002-12-15 Geert Bosch <bosch@gnat.com>
45270 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
45272 2002-12-14 Geert Bosch <bosch@gnat.com>
45275 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
45276 case of a body created for a Renaming_As_Body, on which
45277 conformance checks are not performed.
45279 2002-11-30 Zack Weinberg <zack@codesourcery.com>
45281 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
45282 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
45283 not already included.
45284 * Make-lang.in: Update dependencies.
45286 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
45287 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
45288 solution to buffer overflow bug on GNU/Linux.
45290 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
45294 * bindgen.adb: Remove all references to Public_Version.
45295 * comperr.adb: Remove all references to Public_Version and
45296 GNATPRO_Version; correct bug reporting instructions.
45297 * comperr.ads: Change to match bug box.
45298 * gnatvsn.ads: Remove all references to Public version and
45301 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
45304 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
45308 * config-lang.in: Remove diff_excludes.
45310 2002-11-05 Graham Stott <graham.stott@btinternet.com>
45313 * trans.c (gnu_pending_elaboration_lists): New GC root.
45314 (build_unit_elab): Use..
45316 2002-10-30 Geert Bosch <bosch@gnat.com>
45319 * misc.c : Include optabs.h
45321 * Make-lang.in (misc.o): Add dependency on optabs.h
45323 2002-10-29 Geert Bosch <bosch@gnat.com>
45326 * Make-lang.in (gnatbind): Depend on CONFIG_H
45328 2002-10-29 Geert bosch <bosch@gnat.com>
45331 * misc.c: Unrevert misc.c (1.13)
45333 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
45335 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
45336 maintainership comments.
45338 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
45341 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
45342 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
45343 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
45344 7staprop.adb: Correct statements in comments about
45345 maintainership of GNAT.
45348 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
45349 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
45350 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
45351 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
45352 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
45353 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
45354 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
45355 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
45356 comments about maintainership of GNAT.
45358 PR ada/6919 (forward port of patch for PR ada/5904)
45359 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
45360 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
45361 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
45362 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
45363 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
45364 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
45365 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
45366 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
45367 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
45368 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
45369 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
45370 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
45371 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
45372 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
45373 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
45374 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
45375 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
45376 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
45377 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
45378 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
45379 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
45380 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
45381 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
45382 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
45383 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
45384 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
45385 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
45386 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
45387 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
45388 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
45389 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
45390 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
45391 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
45392 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
45393 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
45394 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
45395 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
45396 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
45397 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
45398 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
45399 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
45400 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
45401 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
45402 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
45403 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
45404 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
45405 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
45406 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
45407 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
45408 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
45409 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
45410 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
45411 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
45412 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
45413 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
45414 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
45415 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
45416 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
45417 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
45418 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
45419 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
45420 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
45421 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
45422 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
45423 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
45424 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
45425 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
45426 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
45427 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
45428 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
45429 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
45430 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
45431 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
45432 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
45433 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
45434 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
45435 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
45436 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
45437 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
45438 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
45439 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
45440 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
45441 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
45442 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
45443 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
45444 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
45445 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
45446 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
45447 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
45448 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
45449 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
45450 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
45451 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
45452 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
45453 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
45454 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
45455 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
45456 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
45457 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
45458 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
45459 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
45460 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
45461 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
45462 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
45463 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
45464 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
45465 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
45466 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
45467 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
45468 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
45469 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
45470 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
45471 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
45472 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
45473 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
45474 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
45475 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
45476 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
45477 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
45478 par-endh.adb par-labl.adb par-load.adb par-prag.adb
45479 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
45480 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
45481 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
45482 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
45483 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
45484 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
45485 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
45486 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
45487 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
45488 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
45489 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
45490 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
45491 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
45492 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
45493 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
45494 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
45495 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
45496 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
45497 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
45498 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
45499 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
45500 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
45501 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
45502 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
45503 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
45504 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
45505 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
45506 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
45507 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
45508 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
45509 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
45510 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
45511 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
45512 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
45513 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
45514 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
45515 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
45516 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
45517 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
45518 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
45519 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
45520 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
45521 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
45522 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
45523 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
45524 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
45525 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
45526 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
45527 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
45528 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
45529 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
45530 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
45531 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
45532 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
45533 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
45534 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
45535 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
45536 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
45537 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
45538 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
45539 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
45540 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
45541 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
45542 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
45543 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
45544 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
45545 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
45546 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
45547 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
45548 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
45549 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
45550 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
45551 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
45552 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
45553 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
45554 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
45555 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
45556 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
45557 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
45558 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
45559 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
45560 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
45561 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
45562 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
45563 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
45564 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
45565 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
45566 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
45567 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
45568 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
45569 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
45570 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
45571 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
45572 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
45573 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
45574 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
45575 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
45576 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
45577 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
45578 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
45579 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
45580 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
45581 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
45582 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
45583 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
45584 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
45585 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
45586 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
45587 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
45588 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
45589 stringt.ads stringt.h style.adb style.ads stylesw.adb
45590 stylesw.ads switch.adb switch.ads sysdep.c system.ads
45591 table.adb table.ads targparm.adb targparm.ads targtyps.c
45592 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
45593 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
45594 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
45595 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
45596 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
45597 usage.ads utils.c utils2.c validsw.adb validsw.ads
45598 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
45599 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
45600 xtreeprs.adb: Correct statements in comments about maintainership
45603 2002-09-23 Zack Weinberg <zack@codesourcery.com>
45605 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
45606 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
45607 * gnatvsn.ads: Gnat_Version_String is now a function.
45608 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
45609 copy the C version_string into a String and return it.
45610 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
45611 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
45612 Remove pragma Ident (Gnat_Version_String). If this was the
45613 sole use of package Gnatvsn, remove the with statement too.
45614 * gnat1drv.adb: Tweak -gnatv output.
45616 2002-09-17 Richard Henderson <rth@redhat.com>
45618 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
45619 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
45620 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
45621 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
45622 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
45623 and real_2expN instead of a loop.
45624 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
45625 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
45627 2002-08-25 Andre Leis <a.leis@gmx.net>
45628 David Billinghurst <David.Billinghurst@riotinto.com>
45630 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
45632 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
45634 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
45635 Remove $(CONFIG_H) dependency.
45637 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
45639 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
45641 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
45643 * adadecode.c (ada_demangle): Use xstrdup in lieu of
45645 * misc.c (gnat_decode_option): Likewise.
45647 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
45649 * make.adb (Add_Switch): Make Generic_Position a procedure. The
45650 function approach did not work well because of a side effect (the
45651 function call could reallocate the table which was being indexed
45652 using its result). Fixes ada/4851. [RESURRECTED]
45654 2002-07-01 Roger Sayle <roger@eyesopen.com>
45656 * ada/utils.c (builtin_function): Accept an additional parameter.
45658 2002-06-28 Andreas Jaeger <aj@suse.de>
45661 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
45664 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
45666 * Makefile.in (SHELL): Set to @SHELL@.
45668 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
45670 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
45671 array size calculation.
45673 2002-06-04 Andreas Jaeger <aj@suse.de>
45675 * Make-lang.in (gnatbind): Readd rule that has been lost in last
45678 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
45680 Merge from pch-branch:
45682 * config-lang.in (gtfiles): Add ada-tree.h.
45683 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
45684 (SET_TYPE_MODULUS): New.
45685 (SET_TYPE_INDEX): New.
45686 (SET_TYPE_DIGITS_VALUE): New.
45687 (SET_TYPE_RM_SIZE): New.
45688 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
45689 (SET_TYPE_ADA_SIZE): New.
45690 (SET_TYPE_ACTUAL_BOUNDS): New.
45691 (SET_DECL_CONST_CORRESPONDING_VAR): New.
45692 (SET_DECL_ORIGINAL_FIELD): New.
45693 (TREE_LOOP_ID): Correct typo.
45694 * decl.c: Use new macros.
45695 * utils.c: Include debug.h, use new macros.
45696 * utils2.c: Use new macros.
45698 * ada-tree.h: Update all macros for new tree description.
45699 (struct tree_loop_id): New.
45700 (union lang_tree_node): New.
45701 (struct lang_decl): New.
45702 (struct lang_type): New.
45703 * misc.c (gnat_mark_tree): Delete.
45704 (LANG_HOOKS_MARK_TREE): Delete.
45705 * trans.c (tree_transform): No longer any need to cast
45708 * utils.c (struct language_function): New dummy structure.
45710 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
45711 (misc.o): Likewise.
45712 (utils.o): Likewise; also gtype-ada.h.
45713 * Make-lang.in (gnat1): Add dependency on s-gtype.
45714 (gnatbind): Add dependency on $(CONFIG_H).
45715 * utils.c: Correct last #include.
45716 (stuct e_stack): Remove unnecessary 'static'.
45717 (mark_e_stack): Remove unused prototype.
45719 * scn-nlit.adb: Remove whitespace after version number to
45720 keep lines under 80 chars.
45721 * snames.adb: Likewise.
45722 * treepr.ads: Likewise.
45724 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
45725 (misc.o): Likewise.
45726 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
45727 * config-lang.in (gtfiles): New.
45728 * decl.c: Use gengtype for roots.
45729 * gigi.h: Use gengtype for roots.
45730 * trans.c: Use gengtype for roots.
45731 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
45733 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
45735 * misc.c (gnat_init): Adjust setting of internal_error_function.
45737 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
45739 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
45740 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
45741 gnat_ug_wnt.texi: Regenerate.
45743 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
45745 * 5ntaprop.adb (with System.OS_Primitives): Remove.
45747 * cstreams.c (max_path_len): Move from here ...
45748 * adaint.c (__gnat_max_path_len): ... to here.
45749 * adaint.c (__gnat_max_path_len): Declare.
45750 * g-dirope.adb (Max_Path): Adjust.
45751 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
45752 * i-cstrea.ads (max_path_len): Adjust.
45753 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
45754 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
45756 * Makefile.in, Make-lang.in: Documentation is now built in
45757 Make-lang.in. Store Info and generated Texinfo files in the
45759 * gnat_ug.texi: Remove CVS keywords, correct version number.
45760 Set file name correctly.
45762 * gnat_ug_*.texi: Add.
45763 * .cvsignore: Ignore generated Texinfo files.
45765 2002-05-30 Zack Weinberg <zack@codesourcery.com>
45767 * ada.h: Add MI guard macro.
45768 (SUBTYPE): Define constants with an anonymous enum, not static
45770 (IN): Cast constants to appropriate type before use.
45772 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
45774 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
45777 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
45779 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
45780 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
45781 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
45782 (ALL_ADA_CFLAGS): Likewise.
45783 (ADA_INCLUDES): Likewise.
45784 Adapt for new working dir.
45785 (GNATBIND): Use Makefile.in version.
45786 (.SUFFIXES): Copy from Makefile.in.
45787 (ada-warn): Define.
45788 (.adb.o, .ads.o): Copy from Makefile.in.
45789 Added $(OUTPUT_OPTION).
45790 (GNAT1_C_OBJS): Moved from Makefile.in.
45791 Prefix with ada subdir.
45792 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
45793 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
45794 Adapt for new working dir.
45795 (EXTRA_GNATBIND_OBJS): Likewise.
45796 (ADA_BACKEND): Moved from Makefile.in.
45797 Renamed to avoid conflict with global BACKEND.
45799 (TARGET_ADA_SRCS): Moved from Makefile.in.
45800 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
45802 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
45803 (ada_extra_files): Moved from Makefile.in.
45804 Prefix with ada subdir.
45805 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
45806 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
45807 (ada/nmake.ads): Likewise.
45808 (update-sources): Moved from Makefile.in.
45809 Prefix with ada subdir.
45810 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
45811 (ADA_TREE_H): Likewise.
45812 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
45813 (ada/memtrack.o): Likewise.
45814 (ada/adadecode.o): Likewise.
45815 Update dependencies.
45816 (ada/adaint.o): New.
45817 (ada/argv.o): Moved from Makefile.in.
45818 Prefix with ada subdir.
45819 Update dependencies.
45820 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
45821 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
45822 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
45823 Prefix with ada subdir.
45824 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
45825 (GNAT DEPENDENCIES): Regenerate.
45826 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
45827 toplevel Makefile.in.
45828 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
45829 (TARGET_ADA_SRCS): Removed.
45830 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
45831 (GNATBIND_OBJS): Likewise.
45832 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
45833 (BACKEND): Removed.
45834 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
45835 (TREE_H): Likewise.
45836 (ada_extra_files): Likewise.
45837 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
45838 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
45839 (update-sources): Likewise.
45840 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
45841 (ADA_TREE_H): Likewise.
45842 (adadecoce.o): Likewise.
45843 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
45844 (GNAT DEPENDENCIES): Likewise.
45846 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
45848 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
45849 * Makefile.in: Likewise.
45851 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
45853 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
45854 Restore $(CONFIG_H) and prefix.o dependencies.
45855 (ada.stage[1-4]): Depend on stage?-start.
45857 * Makefile.in (b_gnatb.c): Depend on interfac.o.
45859 2002-05-02 Jim Wilson <wilson@redhat.com>
45861 * utils.c (finish_record_type): Change record_size to record_type.
45863 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
45865 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
45866 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
45867 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
45869 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
45871 * misc.c (gnat_parse_file): Update.
45873 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
45875 * misc.c (gnat_init): Don't set lang_attribute_common.
45877 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
45879 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
45881 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
45883 * gnat_ug.texi: New file.
45885 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
45886 instead of gfdl.texi
45888 * xgnatug.adb, ug_words: New files.
45890 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
45891 gnat_rm and gnat-style manuals.
45893 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
45895 * gigi.h (incomplete_type_error): Remove.
45896 * utils.c (incomplete_type_error): Remove.
45898 2002-04-16 Mark Mitchell <mark@codesourcery.com>
45900 * trans.c (tree_transform): Add has_scope argument to
45901 expand_start_stmt_expr.
45903 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
45905 * gigi.h (truthvalue_conversion): Rename.
45906 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
45907 * trans.c (tree_transform): Update.
45908 * utils2.c (truthvalue_conversion): Rename, update.
45909 (build_binary_op, build_unary_op): Update.
45911 2002-04-04 Laurent Guerby <guerby@acm.org>
45913 * make.adb: Implement -margs, remove restriction about file name placement.
45914 * makeusg.adb: Documentation update.
45915 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
45916 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
45918 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
45920 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
45921 (builtin_function): Similarly.
45923 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
45925 * decl.c (gnat_to_gnu_entity): Update.
45926 * gigi.h (mark_addressable): Rename.
45927 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
45928 * trans.c (tree_transform): Update.
45929 * utils.c (create_var_decl): Update.
45930 * util2.c (build_binary_op, build_unary_op,
45931 fill_vms_descriptor): Update.
45932 (mark_addressable): Rename, update.
45934 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
45936 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
45938 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
45939 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
45940 * trans.c (tree_transform, convert_with_check): Update.
45941 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
45944 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
45946 * gigi.h (finish_incomplete_decl): Rename.
45947 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
45948 * utils.c (gnat_init_decl_processing): Don't set hook.
45949 (finish_incomplete_decl): Rename.
45951 2002-03-29 Andreas Schwab <schwab@suse.de>
45953 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
45956 2001-03-28 Robert Dewar <dewar@gnat.com>
45959 (Remove_Checks): New procedure
45962 (Remove_Checks): New procedure
45965 Use new Duplicate_Subexpr functions
45966 (Duplicate_Subexpr_No_Checks): New procedure
45967 (Duplicate_Subexpr_No_Checks_Orig): New procedure
45968 (Duplicate_Subexpr): Restore original form (checks duplicated)
45969 (Duplicate_Subexpr): Call Remove_Checks
45972 (Duplicate_Subexpr_No_Checks): New procedure
45973 (Duplicate_Subexpr_No_Checks_Orig): New procedure
45974 Add 2002 to copyright notice
45976 * sem_util.adb: Use new Duplicate_Subexpr functions
45979 (Eval_Indexed_Component): This is the place to call
45980 Constant_Array_Ref and to replace the value. We simply merge
45981 the code of this function in here, since it is now no longer
45982 used elsewhere. This fixes the problem of the back end not
45983 realizing we were clever enough to see that this was
45985 (Expr_Val): Remove call to Constant_Array_Ref
45986 (Expr_Rep_Val): Remove call to Constant_Array_Ref
45988 (Constant_Array_Ref): Deal with string literals (patch
45989 suggested by Zack Weinberg on the gcc list)
45991 2001-03-28 Ed Schonberg <schonber@gnat.com>
45993 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
45994 Duplicate_Subexpr_Move_Checks.
45996 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
45997 Duplicate_Subexpr_Move_Checks.
45999 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
46000 value of array exists before retrieving it (it may a private
46001 protected component in a function).
46003 2002-03-28 Geert Bosch <bosch@gnat.com>
46005 * prj-pp.adb : New file.
46007 * prj-pp.ads : New file.
46009 2002-03-28 Andreas Jaeger <aj@suse.de>
46011 * Makefile.in (stamp-sdefault): Fix path for Makefile.
46013 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
46015 * misc.c (gnat_expand_expr): Move prototype.
46017 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
46019 * misc.c (insert_default_attributes): Remove.
46021 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
46023 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
46024 (gnat_init): Don't set hook.
46025 (gnat_expand_expr): Fix prototype.
46027 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
46029 * misc.c (ggc_p): Remove.
46031 2002-03-27 Geert Bosch <bosch@gnat.com>
46033 * prj-makr.ads, prj-makr.adb : New files.
46035 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
46037 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
46038 (lang_mark_tree): Make static, rename.
46040 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
46042 * misc.c (maybe_build_cleanup): Remove.
46044 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
46046 * gigi.h (yyparse): Remove.
46048 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
46050 From Ben Brosgol <brosgol@gnat.com>
46051 * gnat_rm.texi: Sync with ACT version.
46053 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
46055 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
46056 (gnat_init): Remove old hook.
46058 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
46060 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
46061 (yyparse): Rename gnat_parse_file.
46063 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
46065 Delete all lines containing "$Revision:".
46066 * xeinfo.adb: Don't look for revision numbers.
46067 * xnmake.adb: Likewise.
46068 * xsinfo.adb: Likewise.
46069 * xsnames.adb: Likewise.
46070 * xtreeprs.adb: Likewise.
46072 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
46074 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
46075 gnat_tree_code_name): Delete.
46076 (tree_code_type, tree_code_length, tree_code_name): Define.
46077 (gnat_init): Don't try to copy into the various tree_code
46080 2002-03-11 Richard Henderson <rth@redhat.com>
46082 * Makefile.in (.NOTPARALLEL): Add fake tag.
46084 2002-03-07 Geert Bosch <bosch@gnat.com>
46086 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
46087 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
46088 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
46089 switch-m.adb, switch-m.ads : New files.
46091 2002-03-07 Geert Bosch <bosch@gnat.com>
46093 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
46094 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
46095 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
46096 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
46097 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
46098 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
46099 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
46100 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
46101 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
46102 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
46103 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
46104 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
46105 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
46106 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
46107 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
46108 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
46109 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
46110 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
46111 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
46112 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
46113 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
46114 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
46115 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
46116 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
46117 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
46118 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
46119 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
46120 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
46121 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
46122 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
46123 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
46124 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
46125 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
46126 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
46127 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
46128 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
46129 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
46130 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
46131 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
46132 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
46133 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
46134 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
46135 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
46136 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
46137 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
46138 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
46139 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
46140 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
46141 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
46142 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
46143 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
46144 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
46145 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
46146 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
46147 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
46148 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
46149 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
46150 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
46151 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
46152 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
46153 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
46154 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
46155 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
46156 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
46157 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
46158 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
46159 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
46160 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
46161 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
46162 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
46163 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
46164 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
46165 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
46166 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
46167 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
46168 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
46169 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
46170 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
46171 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
46172 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
46173 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
46174 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
46175 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
46176 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
46177 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
46178 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
46179 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
46180 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
46181 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
46182 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
46183 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
46184 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
46185 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
46186 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
46187 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
46188 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
46189 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
46191 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
46192 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
46193 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
46194 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
46196 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
46197 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
46199 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
46200 to mdll-fil.ad[bs] and mdll-util.ad[bs]
46202 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
46203 from mdllfile.ad[bs] and mdlltool.ad[bs]
46205 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
46207 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
46208 lieu of explicit sizeof/sizeof.
46210 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
46212 * misc.c (copy_lang_decl): Remove.
46214 2002-02-27 Zack Weinberg <zack@codesourcery.com>
46216 * misc.c: Delete traditional-mode-related code copied from the
46217 C front end but not used, or used only to permit the compiler
46220 2002-02-07 Richard Henderson <rth@redhat.com>
46222 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
46223 * adaint.h (__gnat_to_gm_time): Update prototype.
46225 2002-01-30 Richard Henderson <rth@redhat.com>
46227 * trans.c (tree_transform) [N_Loop_Statement]: Use
46228 expand_exit_loop_top_cond.
46230 2001-12-23 Richard Henderson <rth@redhat.com>
46232 * utils.c (end_subprog_body): Push GC context around
46233 rest_of_compilation for nested functions.
46235 2001-12-23 Richard Henderson <rth@redhat.com>
46237 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
46239 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
46241 * gnat-style.texi (Declarations and Types): Remove ancient style
46242 rule which was mandated by code generation issues.
46244 * gnat-style.texi (header): Add @dircategory, @direntry.
46245 (title page): Remove date.
46246 (general) Add @./@: where approriate, and two spaces after the
46247 full stop at the end of a sentence. Use @samp markup when
46248 referring concrete lexical entities (keywords, attribute names
46249 etc.), and @syntax for ARM grammar elements. Use @r for English
46250 text in comments. Use @emph for emphasis. Change "if-statements"
46251 etc. to "if statements" (without @samp). Break long lines. Make
46252 casing of section names consistent.
46253 (Identifiers): Use @samp markup for variable names.
46254 (Comments): Use @samp markup for comment characters. Line-end
46255 comments may follow any Ada code, not just statements. Fix
46256 misspelling of "Integer" as "integer".
46257 (Loop statements): Do not use variable name "I", use "J".
46258 (Subprogram Declarations): Document alignment.
46259 (Subprogram Bodies, Block statements): Document empty line before
46262 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
46264 * make.adb (Add_Switch): Make Generic_Position a procedure. The
46265 function approach did not work well because of a side effect (the
46266 function call could reallocate the table which was being indexed
46267 using its result). Fixes ada/4851.
46269 2001-12-19 Robert Dewar <dewar@gnat.com>
46271 * bindgen.adb: Minor reformatting
46273 * cstand.adb: Minor reformatting
46275 * fmap.adb: Minor reformatting
46276 Change name from Add for Add_To_File_Map (Add is much too generic)
46277 Change Path_Name_Of to Mapped_Path_Name
46278 Change File_Name_Of to Mapped_File_Name
46279 Fix copyright dates in header
46282 Change name from Add for Add_To_File_Map (Add is much too generic)
46283 Change Path_Name_Of to Mapped_Path_Name
46284 Change File_Name_Of to Mapped_File_Name
46285 Fix copyright dates in header
46287 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
46288 Add use clause for Fmap.
46290 * make.adb: Minor reformatting
46292 * osint.adb: Minor reformatting. Change of names in Fmap.
46293 Add use clause for Fmap.
46295 * prj-env.adb: Minor reformatting
46297 * prj-env.ads: Minor reformatting
46299 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
46300 error found (there were odd exceptions to this general rule in
46301 -gnatec/-gnatem processing)
46303 2001-12-19 Olivier Hainque <hainque@gnat.com>
46305 * raise.c (__gnat_eh_personality): Exception handling personality
46306 routine for Ada. Still in rough state, inspired from the C++ version
46307 and still containing a bunch of debugging artifacts.
46308 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
46309 inspired from the C++ library.
46311 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
46312 exception handling integration.
46314 2001-12-19 Arnaud Charlet <charlet@gnat.com>
46316 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
46317 (HIE_SOURCES): Add s-secsta.ad{s,b}.
46318 (HIE_OBJS): Add s-fat*.o
46319 (RAVEN_SOURCES): Remove files that are no longer required. Add
46320 interrupt handling files.
46321 (RAVEN_MOD): Removed, no longer needed.
46323 2001-12-19 Robert Dewar <dewar@gnat.com>
46325 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
46326 Add 2001 to copyright date
46328 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
46329 need to force universal inlining for these cases.
46331 2001-12-19 Arnaud Charlet <charlet@gnat.com>
46333 * s-taprob.adb: Minor clean ups so that this unit can be used in
46336 * exp_ch7.adb: Allow use of secondary stack in HI mode.
46337 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
46339 2001-12-19 Vincent Celier <celier@gnat.com>
46341 * prj-tree.ads (Project_Node_Record): Add comments for components
46342 Pkg_Id and Case_Insensitive.
46344 2001-12-19 Pascal Obry <obry@gnat.com>
46346 * g-socket.adb: Minor reformatting. Found while reading code.
46348 2001-12-19 Robert Dewar <dewar@gnat.com>
46350 * prj-tree.ads: Minor reformatting
46352 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
46354 * config-lang.in (diff_excludes): Remove.
46356 2001-12-17 Ed Schonberg <schonber@gnat.com>
46358 * sem_res.adb (Resolve_Selected_Component): do not generate a
46359 discriminant check if the selected component is a component of
46360 the argument of an initialization procedure.
46362 * trans.c (tree_transform, case of arithmetic operators): If result
46363 type is private, the gnu_type is the base type of the full view,
46364 given that the full view itself may be a subtype.
46366 2001-12-17 Robert Dewar <dewar@gnat.com>
46368 * sem_res.adb: Minor reformatting
46370 * trans.c (tree_transform, case N_Real_Literal): Add missing third
46371 parameter in call to Machine (unknown horrible effects from this
46374 * urealp.h: Add definition of Round_Even for call to Machine
46375 Add third parameter for Machine
46377 2001-12-17 Ed Schonberg <schonber@gnat.com>
46379 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
46380 predefined units in No_Run_Time mode.
46382 2001-12-17 Richard Kenner <kenner@gnat.com>
46384 * misc.c (insn-codes.h): Now include.
46386 2001-12-17 Olivier Hainque <hainque@gnat.com>
46388 * a-except.adb: Preparation work for future integration of the GCC 3
46389 exception handling mechanism
46390 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
46391 to factorize previous code sequences and make them externally callable,
46392 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
46393 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
46394 Use the new notification routines.
46396 2001-12-17 Emmanuel Briot <briot@gnat.com>
46398 * prj-tree.ads (First_Choice_Of): Document the when others case
46400 2001-12-17 Arnaud Charlet <charlet@gnat.com>
46402 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
46403 HI-E mode, in order to support Ravenscar profile properly.
46405 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
46406 mode on 32 bits targets.
46408 2001-12-17 Vincent Celier <celier@gnat.com>
46410 * fmap.adb: Initial version.
46412 * fmap.ads: Initial version.
46414 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
46415 If search is successfully done, add to mapping.
46417 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
46420 (Gnatmake): Add new local variable Mapping_File_Name.
46421 Create mapping file when using project file(s).
46422 Delete mapping file before exiting.
46424 * opt.ads (Mapping_File_Name): New variable
46426 * osint.adb (Find_File): Use path name found in mapping, if any.
46428 * prj-env.adb (Create_Mapping_File): New procedure
46430 * prj-env.ads (Create_Mapping_File): New procedure.
46432 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
46435 * usage.adb: Add entry for new switch -gnatem.
46437 * Makefile.in: Add dependencies for fmap.o.
46439 2001-12-17 Ed Schonberg <schonber@gnat.com>
46441 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
46442 is a package instantiation rewritten as a package body.
46443 (Install_Withed_Unit): Undo previous change, now redundant.
46445 2001-12-17 Gary Dismuke <dismukes@gnat.com>
46448 (Compute_Length): Move conversion to Unsigned to callers.
46449 (Get_Max_Size): Convert Len expression to Unsigned after calls to
46450 Compute_Length and Determine_Range.
46451 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
46452 Compute_Length and Determine_Range.
46453 Above changes fix problem with length computation for supernull arrays
46454 where Max (Len, 0) wasn't getting applied due to the Unsigned
46455 conversion used by Compute_Length.
46457 2001-12-17 Arnaud Charlet <charlet@gnat.com>
46460 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
46461 System.Secondary_Stack.
46462 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
46464 Remove unused entity RE_Exception_Data.
46466 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
46468 * rident.ads (No_Secondary_Stack): New restriction.
46470 2001-12-17 Joel Brobecker <brobecke@gnat.com>
46472 * gnat_rm.texi: Fix minor typos. Found while reading the section
46473 regarding "Bit_Order Clauses" that was sent to a customer.
46474 Very interesting documentation!
46476 2001-12-17 Robert Dewar <dewar@gnat.com>
46478 * sem_case.adb (Choice_Image): Avoid creating improper character
46479 literal names by using the routine Set_Character_Literal_Name. This
46480 fixes bombs in certain error message cases.
46482 2001-12-17 Arnaud Charlet <charlet@gnat.com>
46484 * a-reatim.adb: Minor reformatting.
46486 2001-12-17 Ed Schonberg <schonber@gnat.com>
46488 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
46489 case where the formal is an extension of another formal in the current
46490 unit or in a parent generic unit.
46492 2001-12-17 Arnaud Charlet <charlet@gnat.com>
46494 * s-tposen.adb: Update comments. Minor reformatting.
46495 Minor code clean up.
46497 * s-tarest.adb: Update comments. Minor code reorganization.
46499 2001-12-17 Gary Dismukes <dismukes@gnat.com>
46501 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
46504 2001-12-17 Robert Dewa <dewar@gnat.com>
46506 * exp_attr.adb: Minor reformatting
46508 2001-12-17 Ed Schonberg <schonber@gnat.com>
46510 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
46511 derivations nested within a child unit: verify that the parent
46512 type is declared in an outer scope.
46514 2001-12-17 Robert Dewar <dewar@gnat.com>
46516 * sem_ch12.adb: Minor reformatting
46518 2001-12-17 Ed Schonberg <schonber@gnat.com>
46520 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
46521 warning if current unit is a predefined one, from which bodies may
46524 2001-12-17 Robert Dewar <dewar@gnat.com>
46526 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
46527 Fix header format. Add 2001 to copyright date.
46529 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
46530 which caused CE during compilation if checks were enabled.
46532 2001-12-17 Vincent Celier <celier@gnat.com>
46535 (Switches_Of): New function
46536 (Test_If_Relative_Path): New procedure
46537 (Add_Switches): Use new function Switches_Of
46538 (Collect_Arguments_And_Compile): Use new function Switches_Of.
46539 When using a project file, test if there are any relative
46540 search path. Fail if there are any.
46541 (Gnatmake): Only add switches for the primary directory when not using
46542 a project file. When using a project file, change directory to the
46543 object directory of the main project file. When using a project file,
46544 test if there are any relative search path. Fail if there are any.
46545 When using a project file, fail if specified executable is relative
46546 path with directory information, and prepend executable, if not
46547 specified as an absolute path, with the exec directory. Make sure
46548 that only one -o switch is transmitted to the linker.
46550 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
46553 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
46554 when using a non standard naming scheme.
46555 (Check_Ada_Naming_Scheme): Make sure that error messages
46556 do not raise exceptions.
46557 (Is_Illegal_Append): Return True if there is no dot in the suffix.
46558 (Language_Independent_Check): Check the exec directory.
46560 * prj.adb (Project_Empty): Add new component Exec_Directory
46563 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
46564 (Project_Data): Add component Exec_Directory
46566 * snames.adb: Updated to match snames.ads revision 1.215
46568 * snames.ads: Added Exec_Dir
46570 2001-12-17 Robert Dewar <dewar@gnat.com>
46572 * make.adb: Minor reformatting
46574 * prj-nmsc.adb: Minor reformatting
46576 * snames.adb: Updated to match snames.ads
46578 * snames.ads: Alphebetize entries for project file
46580 2001-12-17 Ed Schonberg <schonber@gnat.com>
46582 * trans.c (process_freeze_entity): Do nothing if the entity is a
46583 subprogram that was already elaborated.
46585 2001-12-17 Richard Kenner <kenner@gnat.com>
46587 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
46588 and Esize if object is referenced via pointer.
46590 2001-12-17 Ed Schonberg <schonber@gnat.com>
46592 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
46593 is discrete before analyzing choices.
46595 2001-12-17 Joel Brobecker <brobecke@gnat.com>
46597 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
46598 containing the name of the Ada Main Program. This string is mainly
46599 intended for the debugger.
46600 (Gen_Output_File_C): Do the equivalent change when generating a C file.
46602 2001-12-17 Robert Dewar <dewar@gnat.com>
46604 * ali.adb: Set new Dummy_Entry field in dependency entry
46606 * ali.ads: Add Dummy_Entry field to source dependency table
46608 * bcheck.adb (Check_Consistency): Ignore dummy D lines
46610 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
46612 * lib-writ.ads: Document dummy D lines for missing files.
46614 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
46616 2001-12-17 Robert Dewar <dewar@gnat.com>
46618 * ali.adb: Type reference does not reset current file.
46620 * ali.adb: Recognize and scan renaming reference
46622 * ali.ads: Add spec for storing renaming references.
46624 * lib-xref.ads: Add documentation for handling of renaming references
46626 * lib-xref.adb: Implement output of renaming reference.
46629 (Determine_Range): Document local variables
46630 (Determine_Range): Make sure Hbound is initialized. It looks as though
46631 there could be a real problem here with an uninitialized reference
46632 to Hbound, but no actual example of failure has been found.
46634 2001-12-17 Laurent Pautet <pautet@gnat.com>
46637 Fix comment of Shutdown_Socket and Close_Socket. These functions
46638 should not fail silently because if they are called twice, this
46639 probably means that there is a race condition in the user program.
46640 Anyway, this behaviour is consistent with the rest of this unit.
46641 When an error occurs, an exception is raised with the error message
46642 as exception message.
46644 2001-12-17 Robert Dewar <dewar@gnat.com>
46646 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
46647 that it happens before modification of Sloc values for -gnatD.
46649 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
46650 so that it happens before modification of Sloc values for -gnatD.
46652 * switch.adb: Minor reformatting
46654 2001-12-15 Richard Henderson <rth@redhat.com>
46656 * sem_ch7.adb: Wrap comment.
46658 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
46660 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
46661 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
46662 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
46663 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
46664 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
46665 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
46666 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
46667 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
46668 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
46669 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
46670 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
46671 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
46672 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
46673 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
46674 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
46675 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
46676 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
46677 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
46678 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
46679 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
46680 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
46681 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
46682 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
46683 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
46686 2001-12-14 Vincent Celier <celier@gnat.com>
46688 * osint.adb(Create_Debug_File): When an object file is specified,
46689 put the .dg file in the same directory as the object file.
46691 2001-12-14 Robert Dewar <dewar@gnat.com>
46693 * osint.adb: Minor reformatting
46695 * lib-xref.adb (Output_Instantiation): New procedure to generate
46696 instantiation references.
46698 * lib-xref.ads: Add documentation of handling of generic references.
46700 * ali.adb (Read_Instantiation_Ref): New procedure to read
46701 instantiation references
46703 * ali.ads: Add spec for storing instantiation references
46705 * bindusg.adb: Minor reformatting
46707 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
46709 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
46711 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
46713 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
46717 Add 2001 to copyright date
46718 Add entry for Latin-5 (Cyrillic ISO-8859-5)
46720 2001-12-14 Matt Gingell <gingell@gnat.com>
46722 * adaint.c: mktemp is a macro on Lynx and can not be used as an
46725 2001-12-14 Richard Kenner <kenner@gnat.com>
46727 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
46728 if operand is CONSTRUCTOR.
46730 2001-12-14 Ed Schonberg <schonber@gnat.com>
46732 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
46733 before emiting check on right-hand side, so that exception information
46736 2001-12-14 Richard Kenner <kenner@gnat.com>
46738 * utils.c (create_var_decl): Throw away initializing expression
46739 if just annotating types and non-constant.
46741 2001-12-14 Vincent Celier <celier@gnat.com>
46743 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
46746 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
46748 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
46750 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
46752 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
46754 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
46756 * ChangeLog: Remove piece of diff output.
46758 2001-12-14 Geert Bosch <bosch@gnat.com>
46760 * config-lang.in: Update copyright notice
46762 * layout.adb: Remove commented out code.
46764 * mdllfile.ads: Update copyright notice. Fix header format.
46766 * sem_case.ads: Likewise.
46768 * sem_ch3.adb: Minor reformatting.
46770 2001-12-12 Geert Bosch <bosch@gnat.com>
46772 * freeze.ads: Update copyright date.
46774 * g-comlin.ads: Minor reformatting.
46776 * gnat-style.texi: Fix typo.
46778 2001-12-12 Geert Bosch <bosch@gnat.com>
46780 * einfo.h: Regenerate.
46782 2001-12-12 Ed Schonberg <schonber@gnat.com>
46784 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
46785 on known node types, rather than untyped fields. Further cleanups.
46787 2001-12-12 Robert Dewar <dewar@gnat.com>
46790 (Save_Entity_Descendant): Minor comment update.
46791 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
46792 of an N_Attribute_Reference node. As per note below, this does not
46793 eliminate need for Associated_Node in attribute ref nodes.
46794 (Associated_Node): Documentation explicitly mentions attribute
46795 reference nodes, since this field is used in such nodes.
46797 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
46799 2001-12-12 Robert Dewar <dewar@gnat.com>
46801 * s-stalib.adb: Add more comments on with statements being needed
46803 * par-ch12.adb: Minor reformatting
46805 * prj-dect.ads: Fix copyright header
46807 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
46808 inputs fit in 32 bits, but the result still overflows.
46810 * s-fatgen.ads: Minor comment improvement
46812 2001-12-12 Ed Schonberg <schonber@gnat.com>
46814 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
46815 formal derived type, look for an inherited component from the full
46816 view of the parent, if any.
46818 2001-12-12 Robert Dewar <dewar@gnat.com>
46820 * checks.ads (Apply_Alignment_Check): New procedure.
46822 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
46823 ensure that the alignment of objects with address clauses is
46824 appropriate, and raise PE if not.
46826 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
46827 Exp_Pakd.Known_Aligned_Enough
46829 * mdllfile.ads: Minor reformatting
46831 * mlib-fil.ads: Minor reformatting
46833 2001-12-12 Ed Schonberg <schonber@gnat.com>
46835 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
46836 fix to any component reference if enclosing record has non-standard
46839 2001-12-12 Vincent Celier <celier@gnat.com>
46841 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
46844 2001-12-12 Ed Schonberg <schonber@gnat.com>
46846 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
46849 2001-12-12 Robert Dewar <dewar@gnat.com>
46851 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
46853 2001-12-12 Emmanuel Briot <briot@gnat.com>
46855 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
46856 and it adds dependencies to system.io.
46858 2001-12-12 Pascal Obry <obry@gnat.com>
46860 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
46863 2001-12-11 Ed Schonberg <schonber@gnat.com>
46865 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
46866 that is the parent of other generics, the instance body replaces the
46867 instance node. Retrieve the instance of the spec, which is the one
46868 that is visible in clients and within the body.
46870 2001-12-11 Vincent Celier <celier@gnat.com>
46872 * gnatmain.adb: Initial version.
46874 * gnatmain.ads: Initial version.
46876 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
46878 * snames.adb: Updated to match snames.ads.
46880 * snames.ads: Added Gnatstub.
46882 2001-12-11 Vincent Celier <celier@gnat.com>
46884 * prj-attr.adb (Initialization_Data): Change name from
46885 Initialisation_Data.
46887 2001-12-11 Emmanuel Briot <briot@gnat.com>
46889 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
46890 + and * applied to backslashed expressions like \r.
46892 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
46894 * g-os_lib.ads: String_List type added, Argument_List type is now
46895 subtype of String_List.
46897 2001-12-11 Robert Dewar <dewar@gnat.com>
46899 * g-os_lib.ads: Change copyright to FSF
46900 Add comments for String_List type
46902 2001-12-11 Vincent Celier <celier@gnat.com>
46904 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
46905 string to the buffer).
46907 2001-12-11 Ed Schonberg <schonber@gnat.com>
46909 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
46912 * sem_attr.adb: Simplify previous fix for Address.
46913 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
46914 to avoid anomalies where the bound of the type appears to raise
46917 2001-12-11 Robert Dewar <dewar@gnat.com>
46919 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
46922 2001-12-11 Ed Schonber <schonber@gnat.com>
46924 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
46925 renamed unit before checking for recursive instantiations.
46927 2001-12-11 Emmanuel Briot <briot@gnat.com>
46929 * prj.ads: Add comments for some of the fields.
46931 2001-12-11 Robert Dewar <dewar@gnat.com>
46933 * lib-xref.adb (Output_Refs): Don't output type references outside
46934 the main unit if they are not otherwise referenced.
46936 2001-12-11 Ed Schonberg <schonber@gnat.com>
46938 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
46939 code and diagnose additional illegal uses
46941 * sem_util.adb (Is_Object_Reference): An indexed component is an
46942 object only if the prefix is.
46944 2001-12-11 Vincent Celier <celier@gnat.com>
46946 * g-diopit.adb: Initial version.
46948 * g-diopit.ads: Initial version.
46951 (Expand_Path): Avoid use of Unbounded_String
46952 (Find, Wildcard_Iterator): Moved to child package Iteration
46954 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
46956 2001-12-11 Robert Dewar <dewar@gnat.com>
46958 * sem_attr.adb: Minor reformatting
46960 2001-12-11 Ed Schonberg <schonber@gnat.com>
46962 * sem_ch3.adb: Clarify some ???.
46964 2001-12-11 Robert Dewar <dewar@gnat.com>
46966 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
46967 Exp_Pakd.Known_Aligned_Enough
46969 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
46970 version is moved to Exp_Ch13.
46972 2001-12-11 Robert Dewar <dewar@gnat.com>
46974 * einfo.ads: Minor reformatting
46976 * exp_ch5.adb: Add comment for previous.change
46978 * ali.adb: New interface for extended typeref stuff.
46980 * ali.ads: New interface for typeref stuff.
46982 * checks.adb (Apply_Alignment_Check): New procedure.
46984 * debug.adb: Add -gnatdM for modified ALI output
46986 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
46988 * lib-xref.adb: Extend generation of <..> notation to cover
46989 subtype/object types. Note that this is a complete rewrite,
46990 getting rid of the very nasty quadratic algorithm previously
46991 used for derived type output.
46993 * lib-xref.ads: Extend description of <..> notation to cover
46994 subtype/object types. Uses {..} for these other cases.
46995 Also use (..) for pointer types.
46997 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
46999 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
47000 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
47002 2001-12-11 Vincent Celier <celier@gnat.com>
47005 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
47006 Changed /BIND_ONLY to /ACTIONS=BIND
47007 Changed /LINK_ONLY to /ACTIONS=LINK
47009 2001-12-11 Ed Schonberg <schonber@gnat.com>
47011 * sem_ch8.adb (Find_Selected_Component): improved search for a
47012 candidate package in case of error.
47014 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
47015 chain back on scope stack before reinstalling use clauses.
47017 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
47018 is enabled, do not kill the code for the condition, to preserve
47021 2001-12-11 Robert Dewar <dewar@gnat.com>
47023 * checks.adb (Insert_Valid_Check): Apply validity check to expression
47024 of conversion, not to result of conversion.
47026 2001-12-11 Ed Schonberg <schonber@gnat.com>
47028 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
47029 before freezing parent. If the declarations are mutually recursive,
47030 an access to the current record type may be frozen before the
47031 derivation is complete.
47033 2001-12-05 Vincent Celier <celier@gnat.com>
47035 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
47036 -c /COMPILE_ONLY, -l /LINK_ONLY
47039 (Bind_Only): New Flag
47040 (Link_Only): New flag
47042 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
47045 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
47048 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
47049 (Gnatmake): Set the step flags. Only perform a step if the
47050 corresponding step flag is True.
47051 (Scan_Make_Arg): Reset the bind and link step flags when -u
47052 or -gnatc has been specified.
47054 2001-12-05 Ed Schonberg <schonber@gnat.com>
47056 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
47057 get bounds from right operand.
47059 * sem_eval.adb: Minor reformatting
47061 * exp_util.adb (Make_Literal_Range): use bound of literal rather
47062 than Index'First, its lower bound may be different from 1.
47064 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
47067 2001-12-05 Vincent Celier <celier@gnat.com>
47069 * prj-nmsc.adb Minor reformatting
47071 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
47072 set and libraries are not supported.
47074 2001-12-05 Ed Schonberg <schonber@gnat.com>
47076 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
47077 private view explicitly, so the back-end can treat as a global
47080 2001-12-05 Ed Schonberg <schonber@gnat.com>
47082 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
47083 unit, always replace instance node with new body, for ASIS use.
47085 2001-12-05 Vincent Celier <celier@gnat.com>
47087 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
47088 libraries are not supported and both attributes Library_Name and
47089 Library_Dir are specified.
47091 * prj-proc.adb (Expression): Set location of Result to location of
47094 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
47095 (prj-nmsc is now importing MLib.Tgt)
47097 * prj-proc.adb: Put the change indicated above that was forgotten.
47099 2001-12-05 Robert Dewar <dewar@gnat.com>
47101 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
47103 2001-12-05 Ed Schonberg <schonber@gnat.com>
47105 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
47106 constraint, introduce explicit subtype declaration and derive from it.
47108 * sem_ch3.adb: Minor reformatting
47110 2001-12-05 Robert Dewar <dewar@gnat.com>
47112 * checks.adb (Determine_Range): Increase cache size for checks.
47115 * exp_ch6.adb: Minor reformatting
47116 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
47117 a parameter whose root type is System.Address, since treating such
47118 subprograms as pure in the code generator is almost surely a mistake
47119 that will lead to unexpected results.
47121 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
47122 change handling of conversions.
47124 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
47126 2001-12-05 Ed Schonberg <schonber@gnat.com>
47128 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
47129 aggregate with static wrong size, attach generated Raise node to
47132 2001-12-05 Robert Dewar <dewar@gnat.com>
47134 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
47135 Fixes compilation abandoned bomb in B24009B.
47137 2001-12-05 Ed Schonberg <schonber@gnat.com>
47140 Document use of Associated_Node on Selected_Components.
47141 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
47142 to clarify use of untyped descendant fields.
47144 2001-12-05 Robert Dewar <dewar@gnat.com>
47146 * prj-dect.ads: Add ??? comment
47147 Add 2001 to copyright notice (was not done in after all)
47149 * prj-part.adb: Minor reformatting. Reword one awkward error message.
47151 * prj.ads: Minor reformatting throughout, and add some ??? comments
47153 * snames.ads: Minor reformatting
47155 2001-12-05 Geert Bosch <bosch@gnat.com>
47157 * snames.adb: Autoupdate
47159 2001-12-05 Vincent Celier <celier@gnat.com>
47161 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
47163 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
47165 * prj-env.adb: Minor comment changes (modifying -> extends).
47167 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
47169 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
47172 * prj.adb (Initialize): Change Modifying to Extends.
47174 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
47176 * prj.ads: Minor comment change (Modifying -> extending).
47178 * snames.ads: Change modifying to extends.
47180 2001-12-05 Robert Dewar <dewar@gnat.com>
47182 * sem_warn.adb: Remove stuff for conditionals, we are not going to
47185 * sem_warn.ads: Remove stuff for conditionals, we are not going to
47186 do this after all. Add 2001 to copyright notice
47188 2001-12-04 Geert Bosch <bosch@gnat.com>
47190 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
47192 2001-12-04 Robert Dewar <dewar@gnat.com>
47194 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
47195 location if we already have errors. Stops some cases of cascaded
47198 * errout.adb: Improve comment.
47200 2001-12-04 Robert Dewar <dewar@gnat.com>
47203 (Analyze_Formal_Type_Definition): Defend against Error.
47204 (Analyze_Formal_Subprogram): Defend against Error.
47206 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
47207 remove following semicolon if present. Removes cascaded error.
47209 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
47212 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
47213 exceptions equals 0.
47214 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
47215 Fixes PIWG E tests (which have to be run with -gnatL).
47217 2001-12-04 Robert Dewar <dewar@gnat.com>
47219 * einfo.ads: Minor reformatting
47221 2001-12-04 Ed Schonberg <schonber@gnat.com>
47223 * einfo.ads: Block_Node points to the identifier of the block, not to
47224 the block node itself, to preserve the link when the block is
47225 rewritten, e.g. within an if-statement with a static condition.
47227 * inline.adb (Cleanup_Scopes): recover block statement from block
47228 entity using new meaning of Block_Node.
47230 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
47231 identifier of block node, rather than to node itself.
47233 2001-12-04 Gary Dismukes <dismukes@gnat.com>
47236 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
47237 (Discrimify): Go back to setting the Etypes of the selected component
47238 because the Vname component does not exist at this point and will
47239 fail name resolution. Also set Analyzed.
47240 Remove with and use of Sem_Res.
47242 2001-12-04 Arnaud Charlet <charlet@gnat.com>
47244 * Makefile.in: (HIE_SOURCES): add s-fat*.
47246 2001-12-04 Robert Dewar <dewar@gnat.com>
47249 (Compile_Time_Known_Attribute): New procedure.
47250 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
47251 proper range check.
47253 2001-12-04 Ed Schonberg <schonber@gnat.com>
47255 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
47256 processing discriminants to diagnose illegal default values.
47258 2001-12-04 Ed Schonberg <schonber@gnat.com>
47260 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
47261 access discriminant within a type extension that constrains its
47262 parent discriminants.
47264 2001-12-04 Ed Schonberg <schonber@gnat.com>
47266 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
47267 is malformed, use instance of Any_Id to allow analysis to proceed.
47269 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
47270 type definition is illegal.
47271 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
47274 2001-12-04 Ed Schonberg <schonber@gnat.com>
47276 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
47279 2001-12-04 Robert Dewar <dewar@gnat.com>
47281 * errout.adb: Minor reformatting
47283 2001-12-04 Robert Dewar <dewar@gnat.com>
47285 * exp_util.adb: Minor reformatting from last change
47287 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
47288 which is a rewriting of an expression, traverse the original
47289 expression to remove warnings that may have been posted on it.
47291 2001-12-04 Ed Schonberg <schonber@gnat.com>
47293 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
47294 record that has other packed components.
47296 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
47298 * adaint.c: Minor cleanups.
47300 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
47302 * adaint.c: Do not use utime.h on vxworks.
47304 2001-12-04 Arnaud Charlet <charlet@gnat.com>
47306 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
47307 more confusion than it solves.
47309 2001-12-04 Geert bosch <bosch@gnat.com>
47311 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
47313 2001-12-04 Geert Bosch <bosch@gnat.com>
47315 * Makefile.in (update-sources): New target.
47316 For use by gcc_release script.
47318 2001-12-04 Ed Schonberg <schonber@gnat.com>
47320 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
47321 a configuration pragma, it is now legal wherever a pragma can appear.
47323 2001-12-04 Zack Weinberg <zack@codesourcery.com>
47325 * Makefile.in: Don't set ALL. Delete @cross_defines@,
47326 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
47327 is now @CROSS@ -DIN_GCC; update comment.
47329 2001-12-04 Robert Dewar <dewar@gnat.com>
47331 * einfo.adb (Has_Pragma_Pure_Function): New flag.
47332 Fix problem that stopped ceinfo from working
47334 * einfo.ads (Has_Pragma_Pure_Function): New flag.
47336 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
47338 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
47341 (File_Time_Stamp): New procedure.
47342 (Preserve_Mode): New boolean.
47343 (Write_Unit): Pass time stamp.
47344 Implement -p switch (preserve time stamps).
47346 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
47348 * gnatchop.adb: Do usage info for -p switch
47350 * adaint.h (__gnat_set_file_time_name): New function
47352 * adaint.c (__gnat_set_file_time_name): Implement
47354 * adaint.h: Fix typo
47356 2001-12-03 Robert Dewar <dewar@gnat.com>
47358 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
47359 have Associated_Node.
47361 2001-12-03 Robert Dewar <dewar@gnat.com>
47363 * prj-proc.adb: Minor reformatting
47365 * make.adb: Minor reformatting
47367 2001-12-03 Geert Bosch <bosch@gnat.com>
47369 * make.adb: Minor reformatting.
47371 2001-12-03 Robert Dewar <dewar@gnat.com>
47373 * sem_ch12.adb: Minor reformatting
47375 2001-12-03 Ed Schonberg <schonber@gnat.com>
47377 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
47378 push Standard on the stack before analyzing the instance body,
47379 in order to have a clean visibility environment.
47381 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
47383 2001-12-03 Ed Schonberg <schonber@gnat.com>
47385 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
47386 instantiation of a body that contains an inlined body.
47388 2001-12-03 Ed Schonberg <schonber@gnat.com>
47391 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
47392 to prevent freezing within formal packages.
47393 (Freeze_Subprogram_Body): If body comes from another instance that
47394 appeared before its own body, place freeze node at end of current
47395 declarative part, to prevent a back-end crash.
47396 (Inline_Instance_Body): Handle properly a package instance within
47397 a subprogram instance that is a child unit.
47399 2001-12-01 Graham Stott <grahams@redhat.com>
47401 * Makefile.in (misc.o): Add missing $(srcdir) prefix
47402 and add optabs.h dependency.
47404 * misc.c: Include optabs.h
47405 (gnat_tree_code_type): Make static and const.
47406 (gnat_tree_code_length): Likewise.
47407 (gnat_tree_code_name): Likewise.
47408 (update_setjmp_buf): Obtain operands mode from insn_data.
47410 2001-11-29 Richard Henderson <rth@redhat.com>
47412 * init.c: Remove obsolete dwarf2 frame.h section.
47414 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
47416 * Make-lang.in (ada.generated-manpages): New dummy target.
47418 2001-11-29 Ed Schonberg <schonber@gnat.com>
47420 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
47421 into Command, an array conversion is illegal here. Uncovered by
47424 2001-11-28 Geert Bosch <bosch@gnat.com>
47426 * init.c: Minor whitespace changes.
47428 2001-11-28 Doug Rupp <rupp@gnat.com>
47430 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
47433 2001-11-28 Zack Weinberg <zack@codesourcery.com>
47435 * misc.c (gnat_expand_constant): Move declaration above
47436 definition of lang_hooks.
47437 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
47438 (gnat_init): lang_expand_constant no longer exists.
47440 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
47441 always have vprintf.
47442 (gnat_init): Always call set_internal_error_function.
47444 2001-11-27 Andreas Jaeger <aj@suse.de>
47446 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
47448 2001-11-27 Laurent Guerby <guerby@acm.org>
47450 * Makefile.in: Regenerate Ada dependencies.
47452 2001-11-26 Richard Henderson <rth@redhat.com>
47454 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
47455 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
47456 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
47458 2001-11-25 Laurent Guerby <guerby@acm.org>
47460 * sysdep.c (rts_get_*): Fix style.
47462 2001-11-19 Laurent Guerby <guerby@acm.org>
47464 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
47465 since it is of no apparent use and cause warnings.
47467 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
47469 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
47471 (gnat_init): Don't return NULL.
47472 (finish_parse): Remove.
47474 2001-11-17 Laurent Guerby <guerby@acm.org>
47476 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
47477 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
47478 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
47479 * lang-spec.h: Add missing struct field to silence warnings.
47480 * sysdep.c (rts_get_*): Provide K&R prototype.
47481 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
47482 * traceback.c (Unlock_Task, Lock_Task): Likewise.
47483 * tracebak.c (__gnat_backtrace): Remove unused variable.
47484 * utils.c (end_subprog_body): Move to K&R style.
47486 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
47488 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
47490 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
47492 * misc.c (gnat_init): Change prototype. Include the
47493 functionality of the old init_parse and init_decl_processing.
47494 (gnat_init_decl_processing): New prototype.
47495 (init_parse): Remove.
47496 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
47498 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
47500 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
47501 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
47502 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
47503 set_yydebug): Remove.
47505 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
47507 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
47508 (struct lang_hooks): Constify.
47509 (language_string, lang_identify): Remove.
47510 * utils.c (init_decl_processing): Update.
47512 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
47514 * misc.c: Include langhooks-def.h.
47515 * Makefile.in: Update.
47517 2001-10-30 Robert Dewar <dewar@gnat.com>
47520 (Check_Identifier): Rewrite circuit to be compatible with use of letters
47521 in the upper half of ASCII.
47522 (Check_Identifier): Minor reformatting
47524 2001-10-30 Geert Bosch <bosch@gnat.com>
47526 * (Associated_Node, Set_Associated_Node): Do not check for
47529 2001-10-30 Robert Dewar <dewar@gnat.com>
47531 * a-reatim.ads: Minor reformatting
47533 2001-10-30 Robert Dewar <dewar@gnat.com>
47535 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
47536 undocumented declarations.
47538 2001-10-30 Pascal Obry <obry@gnat.com>
47540 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
47541 to the binder and linker.
47544 * mdll.ads: Fix layout. Update copyright notice.
47546 * mdll.adb: Fix layout. Update copyright notice.
47548 2001-10-30 Robert Dewar <dewar@gnat.com>
47550 * usage.adb: Minor fix to output for -gnaty.
47552 2001-10-30 Ed Schonberg <schonber@gnat.com>
47554 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
47555 to accommodate all its possible values.
47557 * a-reatim.adb (Split): Special-case handling of Time_Span_First
47558 and of small absolute values of T.
47560 2001-10-30 Richard Kenner <kenner@gnat.com>
47562 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
47563 set_mem_attributes since not needed and wrong if RESULT if a REG;
47564 fixes ACATS failures.
47566 2001-10-30 Geert Bosch <bosch@gnat.com>
47568 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
47569 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
47571 2001-10-30 Robert Dewar <dewar@gnat.com>
47573 * bindusg.adb: Undocument -f switch.
47575 * gnatcmd.adb: Remove /FULL_ELABORATION.
47577 * opt.ads (Force_RM_Elaboration_Order): Document that this is
47580 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
47582 * gnatbind.adb: Minor update of warning msg.
47584 2001-10-30 Vincent Celier <celier@gnat.com>
47586 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
47587 for project file switches (-P (/PROJECT_FILE=),
47588 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
47591 2001-10-30 Geert Bosch <bosch@gnat.com>
47593 * decl.c: Minor whitespace fixes.
47595 2001-10-30 Richard Kenner <kenner@gnat.com>
47597 * utils2.c (build_allocator): Test for SIZE overflow in array case too
47599 2001-10-30 Geert Bosch <bosch@gnat.com>
47601 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
47602 Found due to GCC 3.0 warning of using uninitialized value.
47605 (Get_Max_Size): Use variant record for tracking value/expression.
47606 Makes logic clearer and prevents warnings for uninitialized variables.
47607 (Layout_Array_Type): Use variant record for tracking value/expression.
47608 Makes logic clearer and prevents warnings for uninitialized variables.
47610 2001-10-30 Robert Dewar <dewar@gnat.com>
47612 * lib.adb: Minor reformatting
47614 * s-taprop.ads: Minor reformatting
47616 2001-10-29 Laurent Guerby <guerby@acm.org>
47619 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
47621 (_gnat_error_handler): Make MSG const.
47623 2001-10-29 Richard Kenner <kenner@gnat.com>
47625 * sysdep.c: Fix localtime_r problem on LynxOS.
47626 Also remove #elif to avoid warnings.
47628 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
47631 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
47633 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
47635 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
47636 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
47637 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
47638 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
47639 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
47640 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
47641 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
47642 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
47643 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
47644 types.ads, urealp.adb: Fix spelling errors.
47646 2001-10-27 Laurent Guerby <guerby@acm.org>
47648 * trans.c (gigi): Fix non determinism leading to bootstrap
47649 comparison failures for debugging information.
47651 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
47653 * gnat_rm.texi: Use @./@: where appropriate.
47655 2001-10-26 Robert Dewar <dewar@gnat.com>
47657 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
47659 2001-10-26 Richard Kenner <kenner@gnat.com>
47661 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
47663 2001-10-26 Richard Kenner <kenner@gnat.com>
47665 * decl.c (validate_size): Modify message for bad size to avoid
47666 implication that compiler is modifying the size.
47668 2001-10-26 Robert Dewar <dewar@gnat.com>
47670 * prj-util.adb: Minor reformatting. Fix bad header format.
47672 2001-10-26 Robert Dewar <dewar@gnat.com>
47674 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
47676 * sinfo.ads: Clarify use of Associated_Node (documentation only).
47678 * sem_ch12.adb: Change Node4 to Associated_Node. Change
47679 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
47680 much more narrowly in places where needed. These are cleanups.
47682 2001-10-26 Joel Brobecker <brobecke@gnat.com>
47684 * 5zosinte.ads (null_pthread): new constant.
47687 (Initialize_TCB): Initialize thread ID to null, to be able to verify
47688 later that this field has been set.
47689 (Finalize_TCB): ditto.
47690 (Suspend_Task): Verify that the thread ID is not null before using it.
47691 (Resume_Task): ditto.
47694 (Resume_All_Tasks): Lock the tasks list before using it.
47695 (Suspend_All_Tasks): ditto.
47697 2001-10-26 Richard Kenner <kenner@gnat.com>
47699 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
47700 Make constant variant of designated type for Is_Access_Constant.
47701 Call update_pointer_to with main variant.
47703 * trans.c (process_freeze_entity, process_type):
47704 Call update_pointer_to on main variant.
47706 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
47707 If main variant, update all other variants.
47709 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
47712 2001-10-26 Robert Dewar <dewar@gnat.com>
47714 * prj-util.adb: Minor reformatting
47716 2001-10-26 Robert Dewar <dewar@gnat.com>
47718 * prj-util.adb: Minor reformatting
47720 2001-10-26 Robert Dewar <dewar@gnat.com>
47722 * prj-attr.adb: Minor reformatting throughout
47724 2001-10-26 Robert Dewar <dewar@gnat.com>
47726 * prj-attr.ads: Minor reformatting
47727 Add ??? comment (this whole spec has almost no comments)
47729 2001-10-26 Vincent Celier <celier@gnat.com>
47731 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
47732 ("//") that precede the drive letter on Interix.
47734 2001-10-26 Geert Bosch <bosch@gnat.com>
47736 * gnat_rm.texi: Add GNAT Reference Manual.
47738 2001-10-25 Robert Dewar <dewar@gnat.com>
47740 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
47741 is Error. Similar change for other renaming cases.
47743 2001-10-25 Robert Dewar <dewar@gnat.com>
47745 * s-atacco.ads: Add pragma Inline_Always for functions.
47746 Fix header format. Add copyright 2001
47748 2001-10-25 Ed Schonberg <schonber@gnat.com>
47750 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
47751 return Error rather than Empty so that analysis can proceed.
47753 2001-10-25 Ed Schonberg <schonber@gnat.com>
47755 * sem_util.adb (Enter_Name): better handling of cascaded error
47756 messages when a unit appears in its own context.
47758 2001-10-25 Ed Schonberg <schonber@gnat.com>
47760 * sem_util.adb (Defining_Entity): in case of error, attach created
47761 entity to specification, so that semantic analysis can proceed.
47763 2001-10-25 Robert Dewar <dewar@gnat.com>
47766 (Defining_Entity): Deal with Error.
47767 (Process_End_Label): Deal with bad end label for.
47769 2001-10-25 Ed Schonberg <schonber@gnat.com>
47771 * sem_elab.adb (Check_A_Call): refine message when call is in an
47772 instance but callee is not declared in the generic unit.
47774 2001-10-25 Ed Schonberg <schonber@gnat.com>
47776 * sem_elab.adb (Check_A_Call): check for renaming before finding the
47777 enclosing unit, which may already be different from the calling unit.
47779 2001-10-25 Geert Bosch <bosch@gnat.com>
47781 * 4gintnam.ads: fix header format.
47783 2001-10-25 Ed Schonberg <schonber@gnat.com>
47785 * sem_res.adb (Resolve_Call): if the call is actually an indexing
47786 operation on the result of a parameterless call, perform elaboration
47787 check after the node has been properly rewritten.
47789 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
47790 inlined within the generic tree, the defining identifier is not a
47793 2001-10-25 Ed Schonberg <schonber@gnat.com>
47795 * sem_res.adb (Resolve): special-case resolution of Null in an
47796 instance or an inlined body to avoid view conflicts.
47798 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
47799 compatibility by retrieving the access type of the generic copy.
47801 2001-10-25 Robert Dewar <dewar@gnat.com>
47804 (Analyze_Number_Declaration): Handle error expression.
47805 (Signed_Integer_Type_Declaration): Handle error bound.
47806 (Analyze_Subtype_Indication): Handle error range.
47808 * sem_util.adb (Get_Index_Bounds): Check for Error.
47810 2001-10-25 Robert Dewar <dewar@gnat.com>
47812 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
47813 in no run time mode.
47815 2001-10-25 Pascal Obry <obry@gnat.com>
47817 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
47818 mode case for ALLOC case.
47820 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
47821 all platforms. Improvement of last change.
47823 2001-10-25 Robert Dewar <dewar@gnat.com>
47825 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
47827 2001-10-25 Geert Bosch <bosch@gnat.com>
47829 * osint.adb (Is_Relative): Remove duplicate.
47831 2001-10-25 Pascal Obry <obry@gnat.com>
47833 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
47834 pathnames in UNIX and DOS style with drive letter.
47835 (Is_Relative): new routine.
47837 * osint.adb: Minor reformatting
47839 * osint.adb (Is_Relative): implementation using
47840 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
47842 2001-10-25 Pascal Obry <obry@gnat.com>
47844 * g-dirope.adb (Basename): correctly compute offset between the
47845 original Path and the translated one.
47847 * g-dirope.adb: (Base_Name): add some comments.
47849 2001-10-25 Robert Dewar <dewar@gnat.com>
47851 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
47852 in HIE mode, avoids compilation abandoned message
47854 * exp_imgv.adb: Correct typo in previous change
47856 * exp_imgv.adb: Correct typo in previous change (not my day!)
47858 2001-10-25 Robert Dewar <dewar@gnat.com>
47860 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
47862 2001-10-25 Pascal Obry <obry@gnat.com>
47864 * g-awk.ads: Move all pragma inlines next to the routine
47865 declarations. This is more uniform with other GNAT spec.
47867 2001-10-22 Geert Bosch <bosch@gnat.com>
47869 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
47871 2001-10-19 Geert Bosch <bosch@gnat.com>
47873 * Makefile.in (tools, gnattools): Remove gnatmem.
47875 2001-10-17 Richard Henderson <rth@redhat.com>
47877 * Makefile.in (misc.o): Depend on langhooks.h.
47878 * misc.c: Include it.
47879 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
47880 (LANG_HOOKS_DECODE_OPTION): New.
47881 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
47883 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
47885 * trans.c (tree_transform): Adjust to recent change in
47886 expand_asm_operands to implement named asm operands.
47888 2001-10-11 Ed Schonberg <schonber@gnat.com>
47890 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
47891 renaming of discriminant for mutable record type.
47893 2001-10-11 Robert Dewar <dewar@gnat.com>
47895 * validsw.adb: Properly save -gnatVn status.
47897 2001-10-11 Robert Dewar <dewar@gnat.com>
47899 * usage.adb: Add lines for V switch.
47901 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
47902 (/VALIDITY_CHECKING).
47904 2001-10-11 Ed Schonberg <schonber@gnat.com>
47906 * sem_type.adb (Add_One_Interp): an operator for a type declared in
47907 an extension of System is known to be visible.
47909 2001-10-11 Ed Schonberg <schonber@gnat.com>
47911 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
47912 properly. Fixes regression on ACATS C34005G.
47914 2001-10-11 Robert Dewar <dewar@gnat.com>
47916 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
47917 loop in generic instance, since this is likely not very useful.
47919 2001-10-11 Robert Dewar <dewar@gnat.com>
47921 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
47922 the error message for high integrity mode.
47924 * rtsfind.adb (RTE): Give message if we try to find an entity that
47925 is not available in high integrity mode.
47928 (OK_To_Use_In_HIE_Mode): New array.
47929 (RTE): May return Empty in high integrity mode.
47931 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
47932 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
47934 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
47935 unit if not inlined always and in no runtime mode. Fixes problem
47936 caused by new Rtsfind changes.
47938 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
47941 * rtsfind.adb (RTE): Make sure we do not try to load unit after
47942 giving message for entity not available in high integrity mode.
47944 2001-10-11 Pascal Obry <obry@gnat.com>
47946 * impunit.adb: Add GNAT.CRC32.
47948 2001-10-11 Ed Schonberg <schonber@gnat.com>
47950 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
47951 properly the case where one universal operand in a non-static
47952 exponentiation of a real literal.
47954 2001-10-11 Ed Schonberg <schonber@gnat.com>
47956 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
47957 clause, return the gobal finalization list, for lack of anthing else.
47959 2001-10-11 Ed Schonberg <schonber@gnat.com>
47961 * exp_ch7.adb (Make_Transient_Block): if statement is within
47962 exception handler, always use new transient scope to place Clean
47965 2001-10-11 Pascal Obry <obry@gnat.com>
47968 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
47969 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
47970 (GNATLS_RTL_OBJS): add g-crc32.o
47971 (GNATMAKE_RTL_OBJS): add g-crc32.o
47974 (CRC_Match): new function.
47975 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
47976 instead of the previous simple checksum algorithm.
47977 (Time_Stamp_Mismatch): use CRC_Match for comparison.
47978 (Set_Source_Table): idem.
47981 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
47982 instead of simple checksum.
47983 (CRC_Match): new function.
47984 (CRC_Error): new constant.
47986 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
47987 a CRC now and not a simple checksum. A CRC uses lower-case hex
47988 letters, fixes ambiguity in parsing.
47990 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
47991 is what this variable will store.
47993 * bcheck.adb: Change reference to chechsum in comments by CRC.
47994 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
47995 rename All_Checksum_Match to All_CRC_Match. Change due to API
47996 renaming since now GNAT does not use a simple checksum but a
47997 CRC using GNAT.CRC32.
47999 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
48000 now and not anymore a simple checksum.
48002 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
48005 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
48008 (Restore_Scan_State): rename Checksum to CRC.
48009 (Save_Scan_State): idem.
48013 (Checksum): rename to CRC.
48014 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
48016 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
48017 GNAT.CRC32). Update copyright notice.
48019 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
48020 GNAT.CRC32). Update copyright notice.
48023 (Accumulate_Checksum): removed.
48024 (Update): new procedure. Add a wide-character into the CRC.
48027 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
48028 (Load_File): fix initialization of S (change Source_Checksum to
48031 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
48032 Source_CRC in S initialization.
48034 * sinput.adb (Source_Checksum): renamed to Source_CRC.
48036 * sinput.ads (Source_Checksum): renamed to Source_CRC.
48037 Update comments for the CRC.
48039 * types.adb (Hex): Use lowercase for the letter part.
48041 * types.ads (Get_Hex_String): Returns the hexadecimal representation
48042 for a word. This is currently used only for CRC. In previous version,
48043 the checksum was using a representation with all letter being
48044 upper-case. With the new implementation (using CRC) we do not remove
48045 the 32th bit of the CRC, so we can have an upper-case starting letter
48046 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
48047 It is ambigous since the CRC was optional and could be followed by
48048 options like EB, EE. So now this routines uses lower-case letter for
48049 the hexadecimal representation. Strange enough only lower case letters
48050 where checked in Scan_ALI (even if this was not a possible case).
48052 * gnatvsn.ads (Library_Version): changed to 3.15a.
48054 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
48057 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
48060 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
48061 Add 2001 to copyright notice
48062 (Accumulate_Checksum): Modify to use System.CRC32.
48064 * ali-util.ads: Redo changes of previous revision to continue to use
48065 the word Checksum. Add 2001 to copyright notice.
48067 * ali.adb: Undo some of previous changes, not needed.
48068 Keep the change for lower case letters in the checksum.
48070 * ali.ads: Undo previous change not needed.
48072 * bcheck.adb: Undo most of previous change, not needed.
48073 But do use Checksums_Match for checksum comparison.
48075 * gnatls.adb: Undo most of previous change, not needed.
48076 But do use Checksums_Match for comparing checksums.
48078 * lib-load.adb: Undo previous change, not needed.
48080 * lib-writ.adb: Undo previous change, not needed.
48082 * lib-writ.ads: Document that checksums use lower case,
48083 not upper case letters.
48085 * scans.adb: Undo previous change, not needed
48087 * scans.ads: Undo previous change, not needed.
48089 * scn-nlit.adb: Undo previous changes, not needed.
48091 * scn-slit.adb: Undo previous change, not needed. Fix header format.
48094 (Accumulate_Checksum): Use System.CRC32.
48095 (Initialize_Checksum): New procedure.
48096 Remove other changes of previous revision.
48098 * sinput-p.adb: Undo previous change, not needed.
48100 * sinput.adb: Undo previous change, not needed.
48102 * sinput-l.adb: Undo previous change, not needed.
48104 * sinput.ads: Undo previous change, not needed. Keep only comment
48105 on new checksum algorithm
48107 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
48108 Also remove a-tags and a-stream from GNAT sources.
48110 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
48112 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
48114 2001-10-11 Geert Bosch <bosch@gnat.com>
48116 * einfo.h: Regenerate.
48118 * nmake.ads: Regenerate.
48120 * nmake.adb: Regenerate.
48122 * sinfo.h: Regenerate.
48124 * treeprs.adb: Regenerate.
48126 2001-10-10 Geert Bosch <bosch@gnat.com>
48128 * gnat-style.texi: New file describing coding guidelines for Ada.
48130 2001-10-10 Ed Schonberg <schonber@gnat.com>
48132 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
48135 2001-10-10 Geert Bosch <bosch@gnat.com>
48137 * snames.ads: Add new names for project facility.
48139 * snames.adb: Update to reflect snames.ads changes.
48141 * snames.h: Update to reflect snames.ads changes.
48143 2001-10-10 Vincent Celier <celier@gnat.com>
48146 (Add_Switches): reflect the changes for the switches attributes
48147 Default_Switches indexed by the programming language,
48148 Switches indexed by the file name.
48149 (Collect_Arguments_And_Compile): Idem.
48150 Reflect the attribute name changes.
48153 (Initialisation_Data): Change the names of some packages and
48155 (Initialize): process case insensitive associative arrays.
48158 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
48161 (Parse_Attribute_Declaration): For case insensitive associative
48162 arrays, set the index string to lower case.
48165 Reflect the changes of the project attributes.
48168 Replace Check_Naming_Scheme by Ada_Check and
48169 Language_Independent_Check.
48172 Replaced Check_Naming_Scheme by 2 procedures:
48173 Ada_Check and Language_Independent_Check.
48176 (Process_Declarative_Items): For case-insensitive associative
48177 arrays, set the index string to lower case.
48178 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
48179 Prj.Nmsc.Check_Naming_Scheme.
48182 (Case_Insensitive): New function
48183 (Set_Case_Insensitive): New procedure
48186 (Case_Insensitive): New function
48187 (Set_Case_Insensitive): New procedure
48188 (Project_Node_Record): New flag Case_Insensitive.
48191 (Value_Of): new function to get the string value of a single
48192 string variable or attribute.
48195 (Value_Of): new function to get the string value of a single
48196 string variable or attribute.
48199 (Ada_Default_Spec_Suffix): New function
48200 (Ada_Default_Impl_Suffix): New function
48201 Change definitions of several constants to reflect
48202 new components of record types.
48205 (Naming_Data): Change several components to reflect new
48206 elements of naming schemes.
48207 (Project_Data): New flags Sources_Present and
48208 Language_Independent_Checked.
48209 (Ada_Default_Spec_Suffix): New function.
48210 (Ada_Default_Impl_Suffix): New function.
48213 Modification of predefined names for project manager: added
48214 Implementation, Specification_Exceptions, Implementation_Exceptions,
48215 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
48216 Default_Switches, _Languages, Builder, Cross_Reference,
48217 Finder. Removed Body_Part, Specification_Append, Body_Append,
48218 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
48221 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
48224 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
48225 not that it is Nil_Variable_Value.
48227 * prj.ads: Add ??? for uncommented declarations
48229 2001-10-10 Ed Schonberg <schonber@gnat.com>
48231 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
48232 constant, do not indicate possible modification, so that gigi can
48233 treat it as a bona fide constant.
48235 2001-10-10 Robert Dewar <dewar@gnat.com>
48237 * sem_prag.adb: Add processing for pragma External.
48239 * snames.ads: Add entry for pragma External.
48241 * par-prag.adb: Add pragma External.
48243 * snames.adb: Updated to match snames.ads.
48245 2001-10-10 Ed Schonberg <schonber@gnat.com>
48247 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
48248 a dynamic task if the allocator appears in an indexed assignment
48249 or selected component assignment.
48251 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
48252 For a dynamic task in an assignment statement, use target of
48253 assignment to generate meaningful name.
48255 2001-10-10 Ed Schonberg <schonber@gnat.com>
48257 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
48260 * einfo.ads: Body_Entity is also defined for generic package.
48261 Documentation change only
48263 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
48264 others_choice for a discriminated component initialization,
48265 convert discriminant references into the corresponding discriminals.
48267 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
48268 only if original type is private and expression has to be wrapped
48272 (Apply_Constraint_Check): Do not perform length check
48273 if expression is an aggregate with only an others_choice.
48274 (Length_N_Cond): two references to the same in_parameter
48275 (typically the discriminal in an init_proc) denote the same value.
48276 Two useful optimization uncovered by bugfixes above.
48278 2001-10-10 Robert Dewar <dewar@gnat.com>
48280 * xeinfo.adb: Change int to char in translation of enumeration types.
48281 This fixes a problem in the C representation of component alignment.
48282 Add 2001 to copyright notice
48284 2001-10-10 Richard Kenner <kenner@gnat.com>
48286 * decl.c: (validate_size): Do check size of object of integral type
48287 if it is a packed array type.
48289 2001-10-10 Richard Kenner <kenner@gnat.com>
48291 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
48292 VAR_DECL for constant if not Is_Public but -O0.
48294 2001-10-10 Richard Kenner <kenner@gnat.com>
48296 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
48298 2001-10-10 Geert Bosch <bosch@gnat.com>
48300 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
48301 use '/' as switch character, allowing for absolute file names.
48303 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
48305 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
48308 2001-10-08 Geert Bosch <bosch@gnat.com>
48310 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
48311 Automatically build utilities when files need to be regenerated.
48313 2001-10-08 Geert Bosch <bosch@gnat.com>
48315 * xsnames.adb: New utility for updating snames.ads and snames.adb
48317 2001-10-08 Zack Weinberg <zack@codesourcery.com>
48319 * Make-lang.in (ADAFLAGS): Add -W -Wall.
48320 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
48321 (gnat1): Also depend on attribs.o.
48322 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
48323 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
48324 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
48325 (ADAFLAGS): Add -W -Wall.
48326 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
48329 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
48330 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
48331 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
48332 Use $(ADAC), not $(CC), as compilation command.
48334 (gnattools): Depend directly on tools to build, don't use
48336 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
48338 * einfo.h, sinfo.h: New files (autogenerated).
48340 2001-10-08 Richard Henderson <rth@redhat.com>
48342 * comperr.adb (Abort_In_Progress): New.
48343 (Compiler_Abort): Use it to prevent recursion.
48345 2001-10-08 Robert Dewar <dewar@gnat.com>
48347 * atree.adb: Set Error_Posted in Error node, helps error recovery.
48349 * par-endh.adb (Output_End_Expected): We should also not test
48350 Error_Posted on the Error node, since now it is always set.
48352 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
48353 to help error recovery. Part of general work on 9407-004.
48355 * par.adb: Add ??? for misuse of error
48358 (Resolve): Defend against Error, fixes 9407-003.
48359 (Resolve_Discrete_Subtype_Indication): Defend against Error.
48361 * sinfo.ads (N_Error): Now has Etype field (which will be set
48362 to Any_Type to help error recovery).
48364 2001-10-08 Richard Kenner <kenner@gnat.com>
48366 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
48367 Consistently set MEM attributes from expression; fixes
48368 bootstrap failure on x86.
48370 2001-10-08 Geert Bosch <bosch@gnat.com>
48372 * 5oosinte.adb: Add 2001 to copyright notice.
48374 2001-10-08 Geert Bosch <bosch@gnat.com>
48376 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
48378 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
48380 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
48382 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
48384 2001-10-05 Geert Bosch <bosch@gnat.com>
48386 * adaint.h: Small formatting fix.
48388 2001-10-04 Geert Bosch <bosch@gnat.com>
48390 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
48391 Arg is int, not FILE *, in dummy version of functions.
48393 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
48394 Arg is int, not FILE *.
48396 2001-10-04 Geert Bosch <bosch@gnat.com>
48398 * 3lsoccon.ads: Added file, missed with initial check ins.
48400 * 4lintnam.ads: Fix header format.
48401 Change Linux to GNU/Linux.
48403 * 5iosinte.adb: Change Linux to GNU/Linux.
48405 * 5iosinte.ads: Change Linux to GNU/Linux.
48407 * 5itaprop.adb: Change Linux to GNU/Linux.
48409 * 5itaspri.ads: Change Linux to GNU/Linux.
48410 Update copyright notice.
48412 * 5lintman.adb: Change Linux to GNU/Linux.
48414 * 5lml-tgt.adb: Change Linux to GNU/Linux.
48416 * 5losinte.ads: Change Linux to GNU/Linux.
48418 * 5lsystem.ads: Change Linux to GNU/Linux.
48420 * 5qosinte.adb: Change Linux to GNU/Linux.
48422 * 5qosinte.ads: Change Linux to GNU/Linux.
48424 * 5qparame.ads: Change Linux to GNU/Linux.
48426 * 5qtaprop.adb: Change Linux to GNU/Linux.
48428 * 5qtaspri.ads: Change Linux to GNU/Linux.
48429 Add 2001 to copyright notice.
48431 * 5vintman.ads: Change Linux to GNU/Linux.
48432 Fix header format. Add 2001 to copyright notice.
48434 * g-soccon.ads: Change Linux to GNU/Linux.
48436 * g-trasym.ads: Change Linux to GNU/Linux.
48437 Add 2001 to copyright notice.
48439 * memtrack.adb: Change Linux to GNU/Linux.
48441 * s-intman.ads: Change Linux to GNU/Linux.
48442 Add 2001 to copyright notice. Fix header format.
48444 * s-stache.adb: Change Linux to GNU/Linux.
48446 * adaint.c: Change Linux to GNU/Linux.
48448 * cio.c: Change Linux to GNU/Linux.
48450 * cstreams.c: Change Linux to GNU/Linux.
48452 * init.c: Change Linux to GNU/Linux.
48454 * gmem.c: Change Linux to GNU/Linux.
48456 * tracebak.c: Change Linux to GNU/Linux.
48459 2001-10-02 Geert Bosch <bosch@gnat.com>
48461 * misc.c (insert_default_attributes): Add dummy version.