1 2007-09-07 Janis Johnson <janis187@us.ibm.com>
3 Reapply reverted change:
5 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
7 * trans.c (convert_with_check): Update call to real_2expN.
9 2007-09-06 Janis Johnson <janis187@us.ibm.com>
13 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
15 * trans.c (convert_with_check): Update call to real_2expN.
17 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
19 * trans.c (convert_with_check): Update call to real_2expN.
21 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
23 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
24 * utils.c (end_subprog_body): Likewise.
26 2007-09-03 Nick Clifton <nickc@redhat.com>
28 * Make-lang.in: Change copyright header to refer to version 3 of
29 the GNU General Public License and to point readers at the
30 COPYING3 file and the FSF's license web page.
31 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
32 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
33 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
34 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
37 2007-08-31 Vincent Celier <celier@adacore.com>
41 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
42 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
43 (Check_Version_And_Help): New procedure in package Switch to process
44 switches --version and --help.
45 Use Check_Version_And_Help in GNAT tools
48 (Compile_Sources): Make sure that sources that are "excluded" are not
50 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
52 (Version_Switch): Remove, moved to Switch
53 (Help_Switch): Remove, moved to Switch
54 (Display_Version): Remove, moved to Switch
56 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
57 package Switch to process switches --version and --help.
58 (Display_Version): New procedure
60 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
62 2007-08-31 Javier Miranda <miranda@adacore.com>
64 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
67 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
69 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
70 (Mark_Non_Null): If the node for which we just generated an access check
71 is a reference to an *in* parameter and the reference appears in the
72 declarative part of a subprogram body, mark the node as known non null.
74 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
76 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
77 structure of E_Exception to reflect the new flag.
78 (Is_Raised, Set_Is_Raised): New inlined routines.
79 Update the usage of available flag to reflect the addition of Is_Raised.
80 (Is_Raised, Set_Is_Raised): Bodies of new routines.
81 (Write_Entity_Flags): Write the status of flag Is_Raised.
82 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
83 spurious ambiguities when integer literals appear in the context of an
84 address type that is a visible integer type.
86 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
87 exceptions never being raised.
88 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
91 2007-08-31 Javier Miranda <miranda@adacore.com>
93 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
94 statement when compiling under restriction No_Exceptions_Proparation.
96 2007-08-31 Ed Schonberg <schonberg@adacore.com>
98 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
99 initialization aggregate for the type, generate itype references for
100 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
102 2007-08-31 Gary Dismukes <dismukes@adacore.com>
104 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
105 library-level package renaming, pass the declaration associated with
106 the renaming's special debug variable to Qualify_Entity_Names to ensure
107 that its encoded name is properly qualified.
109 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
110 occurring in the list of entities to qualify, and do not attempt to
111 traverse an entity list in that case. Variables associated with
112 ` library-level package renamings can now occur in the table.
114 * exp_dbug.ads: Revise documentation of the encoding for renaming
117 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
119 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
120 access type points to an unconstrained array.
122 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
124 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
127 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
128 simple redundant qualifications. The check is performed whenever the
129 expression is a non-overloaded identifier.
130 (Resolve_Type_Conversion): Enchance the redundant type conversion check
131 to include loop parameters.
132 (Valid_Conversion): Avoid generation of spurious error message.
134 2007-08-31 Bob Duff <duff@adacore.com>
136 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
137 concatenations of string literals into a single literal, in order to
138 avoid very deep recursion in the front end, which was causing stack
141 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
142 string, and the right operand is a string literal (the case of "" &
143 "..."), optimize by avoiding copying the right operand -- just use the
144 value of the right operand directly.
146 * stringt.adb (Store_String_Chars): Optimize by growing the
147 String_Chars table all at once, rather than appending characters one by
149 (Write_String_Table_Entry): If the string to be printed is very long,
150 just print the first few characters, followed by the length. Otherwise,
151 doing "pn(n)" in the debugger can take an extremely long time.
153 * sem_prag.adb (Process_Interface_Name): Replace loop doing
154 Store_String_Char with Store_String_Chars.
156 2007-08-31 Vincent Celier <celier@adacore.com>
158 * prj-attr.adb: Add new attribute Excluded_Source_Files
160 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
161 Locally_Removed_Files.
163 * snames.ads, snames.adb: New standard name Excluded_Source_Files
165 2007-08-31 Ed Schonberg <schonberg@adacore.com>
167 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
168 clauses of subunits, ignore limited_with_clauses that are illegal and
169 have not been fully analyzed.
171 2007-08-31 Ed Schonberg <schonberg@adacore.com>
173 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
174 flag, for effiency. It is called when analyzing arithmetic operators
175 and also for actuals in calls that are universal_integers. The flag is
176 set for the predefined type address, and for any type or subtype
179 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
180 Universal_Integer, when the formal is a descendent of address and the
181 call appears in user code.
182 (Analyze_Selected_Component): if the prefix is a private extension, the
183 tag component is visible.
185 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
188 2007-08-31 Robert Dewar <dewar@adacore.com>
190 * s-fileio.adb (Open): Normalize file name to lower case in non-case
191 sensitive file name systems to avoid unexpected mismatch in Vista.
193 2007-08-31 Vincent Celier <celier@adacore.com>
195 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
197 2007-08-31 Vincent Celier <celier@adacore.com>
199 * symbols-vms.adb (Initialize): Read symbol files with continuation
201 (Finalize): If symbol is long, split the line
203 2007-08-31 Vincent Celier <celier@adacore.com>
205 * fmap.ads: Minor comment updates
207 2007-08-31 GNAT Script <nobody@adacore.com>
209 * Make-lang.in: Makefile automatically updated
211 2007-08-31 Bob Duff <duff@adacore.com>
213 * sinfo.ads: Minor comment fix.
215 2007-08-31 Thomas Quinot <quinot@adacore.com>
217 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
219 Documentation cleanup only.
221 2007-08-31 Sergey Rybin <rybin@adacore.com>
223 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
224 gnatpp '--separate-stmt-name' option.
225 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
228 * gnat_ugn.texi: Add description for the new gnatpp
229 '--separate-stmt-name' and '--use-on-new-line' options.
231 2007-08-31 Ben Elliston <bje@au.ibm.com>
233 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
234 when compiling for powerpc64-*-linux.
235 * system-linux-ppc64.ads: New file.
237 2007-08-22 Krister Walfridsson <cato@df.lth.se>
239 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
242 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
244 * misc.c (gnat_type_max_size): Constify.
246 2007-08-16 Gary Dismukes <dismukes@adacore.com>
248 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
249 associated with Standard_Debug_Renaming_Type, to be used as the type of
250 the special variables whose names provide debugger encodings for
251 renaming declarations.
253 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
254 (Set_Debug_Renaming_Link): Change to set Node25.
255 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
256 (Write_Field25_Name): Add case for E_Variable to output
257 "Debug_Renaming_Link".
258 (Write_Field23_Name): Correct the output string for "Limited_View".
260 * exp_dbug.adb: Add with and use of Tbuild.
261 (Debug_Renaming_Declaration): Replace creation of an enumeration type
262 and literal with creation of a variable of type
263 Standard_Debug_Renaming_Type whose name encodes both the renamed object
264 and the entity of the renaming declaration.
265 (Qualify_Entity_Name): Add the delayed qualification of the entity name
266 part of the name of a variable that has a Debug_Renaming_Link.
268 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
269 special type to be associated with variables that provide debugger
270 encodings for renaming declarations.
272 2007-08-16 Gary Dismukes <dismukes@adacore.com>
273 Ed Schonberg <schonberg@adacore.com>
274 Javier Miranda <miranda@adacore.com>
276 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
277 ancestor part given by an aggregate to test for an unchecked conversion,
278 since this can occur in some cases when the ancestor part is a function
279 call, and we don't want to fall into the recursive call to this
280 procedure in that case.
282 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
283 stream attributes on limited types to account for user-specified
284 attributes as well as whether Input (resp. Output) becomes available
285 due to Read (resp. Write) being available for the type. Change Boolean
286 variable to the more accurate name
287 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
288 double-"not" predicate at beginning of return statement to more
291 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
292 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
293 in a block statement and use that as the first statement of the
294 expanded return rather than incorrectly using the handled sequence as
297 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
298 operation, generate an explicit freeze node for it rather than
299 generating extra formals, to ensure that gigi has the proper order of
300 elaboration for anonymous subtypes in the signature of the subprograms.
301 (Build_In_Place_Formal): Move assertion to beginning of loop.
302 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
303 applied to a function call (occurs for some cases of 'Input).
304 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
305 applied to a function call (occurs for some cases of 'Input).
307 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
308 2005, generate an extended return statement enclosing the result object
311 * freeze.adb (Freeze_Record_Type): Extend the current management of
312 components that are access type with an allocator as default value: add
313 missing support to the use of qualified expressions of the
314 allocator (which also cause freezing of the designated type!)
315 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
316 dispatching operation, since extra formals may be needed by calls to
317 build-in-place functions (such as stream 'Input).
319 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
320 formals for 'Constrained and accessibility level in the case of a
321 predefined dispatching operation.
323 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
324 point, no need to find the parent node.
326 2007-08-16 Javier Miranda <miranda@adacore.com>
328 * exp_attr.adb (Attribute_Priority): Add missing support for entries
331 2007-08-16 Javier Miranda <miranda@adacore.com>
333 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
334 is not really required and can introduce regression with the debugger.
335 The original problem is fixed with the patch written for checks.adb.
337 2007-08-16 Thomas Quinot <quinot@adacore.com>
339 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
340 Range_Check on Allocated_Table.
342 2007-08-16 Vincent Celier <celier@adacore.com>
344 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
345 Including_Non_Switch set to False.
346 (Gnatmake): For the compiler, call Test_If_Relative_Path with
347 Including_Non_Switch set to False.
349 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
350 parameter Including_Non_Switch, defaulted to True. When
351 Including_Non_Switch is False, options that are not switches and
352 appear as relative path are not converted to absolute paths.
354 2007-08-16 Nicolas Roche <roche@adacore.com>
356 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
359 * Make-lang.in: Update dependencies
361 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
363 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
364 currently inspected is a selected component, retrieve the entity of
366 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
367 from the immediate ancestor of Main_Unit_Entity.
368 (Install_Limited_Withed_Unit): Do not install the limited view of
369 package P if P is reachable through an ancestor chain from package C
370 and C also has a with clause for P in its body.
371 (Has_Limited_With_Clause): New routine.
372 (Has_With_Clause): New routine.
374 2007-08-16 Ed Schonberg <schonberg@adacore.com>
376 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
377 generic for an enclosing instance is a global reference, even though
378 its scope is the enclosing instance.
380 2007-08-16 Gary Dismukes <dismukes@adacore.com>
381 Javier Miranda <miranda@adacore.com>
383 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
384 initialize a limited object.
385 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
387 Make sure Has_Complex_Representation is inherited by derived type.
389 2007-08-16 Robert Dewar <dewar@adacore.com>
391 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
394 2007-08-16 Ed Schonberg <schonberg@adacore.com>
396 * sem_disp.adb (Check_Dispatching_Operation): If the operation
397 implements an operation inherited from a progenitor interface, verify
398 that they are subtype-conformant.
400 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
401 Bob Duff <duff@adacore.com>
402 Nicolas Setton <setton@adacore.com>
404 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
405 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
406 the statement which is being resolved comes from a predefined library
407 unit, all non-predefined library interpretations are skipped.
408 (Resolve_Op_Concat): If string concatenation was folded in the parser,
409 but the "&" is user defined, give an error, because the folding would
412 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
413 the parser has folded a long sequence of concatenations of string
416 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
417 and "JMP_BUF" variables as artificial.
418 (N_String_Literal): Do not use alloca for very long string literals. Use
419 xmalloc/free instead. Otherwise the stack might overflow.
421 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
424 2007-08-16 Vincent Celier <celier@adacore.com>
426 * vms_conv.adb (Process_Argument): Ensure that project related options
427 are not put in the -cargs section when using GNAT COMPILE.
429 2007-08-16 Robert Dewar <dewar@adacore.com>
431 * gnat_ugn.texi: Add note on preprocessing (output file not written)
433 2007-08-16 Thomas Quinot <quinot@adacore.com>
435 * a-tags.adb: Minor reformatting.
437 2007-08-16 Bob Duff <duff@adacore.com>
439 * sem_type.ads, sem_ch4.adb: Minor reformatting.
441 2007-08-14 Thomas Quinot <quinot@adacore.com>
443 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
444 s-osinte-interix.ads, system-interix.ads: Removed.
446 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
448 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
449 calls to Check_Within_Time_Bounds.
450 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
451 (Difference): Account for possible rounding of the resulting difference
453 2007-08-14 Robert Dewar <dewar@adacore.com>
455 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
456 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
457 s-osinte-solaris.adb, s-osinte-solaris.ads,
458 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
460 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
461 switch -gnatyS. Enable -gnatyS in GNAT style check mode
463 2007-08-14 Robert Dewar <dewar@adacore.com>
464 Ed Schonberg <schonberg@adacore.com>
466 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
467 Suppress unmodified in-out parameter warning in some cases
468 This patch is a also fairly significant change to the way suppressible
471 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
472 needed for access to concurrent record types generated by the expander.
473 (Generate_Range_Check): When generating a temporary to capture the
474 value of a conversion that requires a range check, set the type of the
475 temporary before rewriting the node, so that the type is always
476 properly placed for back-end use.
477 (Apply_Float_Conversion_Check): Handle case where the conversion is
479 (Get_Discriminal): Code reformatting. Climb the scope stack looking
480 for a protected type in order to examine its discriminants.
482 2007-08-14 Robert Dewar <dewar@adacore.com>
483 Gary Dismukes <dismukes@adacore.com>
484 Ed Schonberg <schonberg@adacore.com>
485 Thomas Quinot <quinot@adacore.com>
487 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
488 a-stwisu.adb, a-strsup.adb: Fix warnings for range
491 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
492 (Get_Allocator_Final_List): For the case of an anonymous access type
493 that has a specified Associated_Final_Chain, do not go up to the
495 (Expand_N_Type_Conversion): Test for the case of renamings of access
496 parameters when deciding whether to apply a run-time accessibility
498 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
499 aggregate code before allocator, and ahead of declaration for
500 temporary, to prevent access before elaboration when the allocator is
501 an actual for an access parameter.
502 (Expand_N_Type_Conversion): On an access type conversion involving an
503 access parameter, do not apply an accessibility check when the
504 operand's original node was an attribute other than 'Access. We now
505 create access conversions for the expansion of 'Unchecked_Access and
506 'Unrestricted_Access in certain cases and clearly accessibility should
507 not be checked for those.
509 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
510 includes a type conversion of a packed component that has been expanded,
511 recover the original expression for the object, and use this expression
512 in the post-call assignment statement, so that the assignment is made
513 to the object and not to a back-end temporary.
514 (Freeze_Subprogram): In case of primitives of tagged types not defined
515 at the library level force generation of code to register the primitive
516 in the dispatch table. In addition some code reorganization has been
517 done to leave the implementation clear.
518 (Expand_Call): When expanding an inherited implicit conversion,
519 preserve the type of the inherited function after the intrinsic
520 operation has been expanded.
522 * exp_ch2.ads, exp_ch2.adb
523 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
524 of an entry formal appearing in an assignment statement does not assign
526 (Expand_Current_Value): Instead of calling a routine to determine
527 whether the prefix of an attribute reference should be optimized or
528 not, prevent the optimization of such prefixes all together.
530 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
531 component whose prefix is known to be of an access type is an implicit
532 dereference and does not assign to the prefix.
534 2007-08-14 Ed Schonberg <schonberg@adacore.com>
535 Robert Dewar <dewar@adacore.com>
537 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
538 itype is visited, make an entry into table to link associated node and
540 Add comments and correct harmless error in Build_NCT_Hash_Tables
541 (Array_Aggr_Subtype): Associate each itype created for an index type to
542 the corresponding range construct, and not to the aggregate itself. to
543 maintain a one-to-one correspondence between itype and its associated
544 node, to prevent errors when complex expression is copied.
545 Fix mishandling of multiple levels of parens
547 * sem_aggr.adb: Create a limited view of an incomplete type, to make
548 treatment of limited views uniform for all visible declarations in a
549 limited_withed package.
550 (New_Copy_Tree): If hash table is being used and itype is visited,
551 make an entry into table to link associated node and new itype.
552 (Resolve_Record_Aggregate): Do not add an others box association for a
553 discriminated record component that has only discriminants, when there
554 is a box association for the component itself.
556 * par-ch4.adb: Fix mishandling of multiple levels of parens
558 2007-08-14 Robert Dewar <dewar@adacore.com>
560 * comperr.adb: Fix problem with suppressing warning messages from gigi
562 * erroutc.ads, erroutc.adb, errout.ads,
563 errout.adb (Write_Eol): Remove trailing spaces before writing the line
564 (Write_Eol_Keep_Blanks): New procedure to write a line, including
565 possible trailing spaces.
566 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
567 Fix problem with suppressing warning messages from back end
568 Improve handling of deleted warnings
571 Fix problem with suppressing warning messages from back end
572 Handle setting of Static_Dispatch_Tables flag.
575 Fix problem with suppressing warning messages from back end
577 * exp_intr.adb: Improve handling of deleted warnings
579 2007-08-14 Robert Dewar <dewar@adacore.com>
581 * debug.adb: Improve -gnatdI to cover all cases of serialization
582 Add documentation of dZ, d.t
584 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
586 (Sprint_Node_Actual): Generate new output associated with implicit
587 importation and implicit exportation of object declarations.
589 2007-08-14 Ed Schonberg <schonberg@adacore.com>
590 Robert Dewar <dewar@adacore.com>
591 Javier Miranda <miranda@adacore.com>
592 Gary Dismukes <dismukes@adacore.com>
594 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
595 to make treatment of limited views uniform for all visible declarations
596 in a limited_withed package.
597 Improve warnings for in out parameters
598 (Set_Related_Interaface/Related_Interface): Allow the use of this
599 attribute with constants.
600 (Write_Field26_Name): Handle attribute Related_Interface in constants.
601 Warn on duplicate pragma Preelaborable_Initialialization
603 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
604 generation of a freezing node to ensure proper management of null
605 excluding access types in the backend.
606 (Create_Extra_Formals): Test base type of the formal when checking for
607 the need to add an extra accessibility-level formal. Pass the entity E
608 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
609 originally being done in a couple of cases), to ensure that the
610 Extra_Formals list gets set on the entity E when the first entity is
612 (Conforming_Types): Add missing calls to Base_Type to the code that
613 handles anonymous access types. This is required to handle the
614 general case because Process_Formals builds internal subtype entities
615 to handle null-excluding access types.
616 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
617 functions that need it, even when not marked Requires_Overriding.
618 Improve warnings for in out parameters
619 (Analyze_Function_Return): Warn for disallowed null return
620 Warn on return from procedure with unset out parameter
621 Ensure consistent use of # in error messages
622 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
623 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
624 the implicit conversion of the expression done for anonymous access
625 types. This is required to generate the code of the null excluding
628 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
629 A formal parameter is never publicly referenceable outside of its body.
630 (Check_References): For an unreferenced formal parameter in an accept
631 statement, use the same warning circuitry as for subprogram formal
633 (Warn_On_Unreferenced_Entity): New subprogram, taken from
634 Output_Unreferenced_Messages, containing the part of that routine that
635 is now reused for entry formals as described above.
636 (Goto_Spec_Entity): New function
637 (Check_References): Do not give IN OUT warning for dispatching operation
638 Improve warnings for in out parameters
639 (Test_Ref): Check that the entity is not undefinite before calling
640 Scope_Within, in order to avoid infinite loops.
641 Warn on return from procedure with unset out parameter
642 Improved warnings for unused variables
644 2007-08-14 Robert Dewar <dewar@adacore.com>
645 Javier Miranda <miranda@adacore.com>
646 Gary Dismukes <dismukes@adacore.com>
648 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
649 (Expand_N_Attribute_Reference): Further unify the handling of the
650 three forms of access attributes, using common code now for all three
651 cases. Add a test for the case of applying an access attribute to
652 an explicit dereference when the context is an access-to-interface
653 type. In that case we need to apply the conversion to the prefix
654 of the explicit dereference rather than the prefix of the attribute.
655 (Attribute_Version, UET_Address): Set entity as internal to ensure
656 proper dg output of implicit importation.
657 (Expand_Access_To_Type): Removed.
658 (Expand_N_Attribute_Reference): Merge the code from the three cases
659 of access attributes, since the processing is largely identical for
660 these cases. The substantive fix here is to process the case of a
661 type name prefix (current instance case) before handling the case
662 of interface prefixes.
664 2007-08-14 Thomas Quinot <quinot@adacore.com>
665 Ed Schonberg <schonberg@adacore.com>
666 Javier Miranda <miranda@adacore.com>
667 Robert Dewar <dewar@adacore.com>
669 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
670 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
671 type that is an anonymous access to controlled object, establish
672 an associated finalization chain to avoid corrupting the global
673 finalization list when a dynamically allocated object designated
674 by such a component is deallocated.
675 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
676 functions that need it, even when not marked Requires_Overriding.
677 (Initialize_Tag): Replace call to has_discriminants by call to
678 Is_Variable_Size_Record in the circuitry that handles the
679 initialization of secondary tags.
680 (Is_Variable_Size_Record): New implementation.
681 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
682 Suppress_Initialization pragma for a derived type.
683 (Is_Variable_Size_Record): New subprogram.
684 (Build_Offset_To_Top_Functions): New implementation that simplifies the
685 initial version of this routine and also fixes problems causing
686 incomplete initialization of the table of interfaces.
687 (Build_Init_Procedure): Improve the generation of code to initialize the
688 the tag components of secondary dispatch tables.
689 (Init_Secondary_Tags): New implementation that simplifies the previous
690 version of this routine.
691 (Make_DT): Add parameter to indicate when type has been frozen by an
692 object declaration, for diagnostic purposes.
693 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
694 diagnose attemps to freeze a subprogram when some untagged type of its
695 profile is a private type whose full view has not been analyzed yet.
696 (Freeze_Array_Type): Generate init proc for packed array if either
697 Initialize or Normalize_Scalars is set.
698 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
699 constructing the new profile, copy the null_exclusion indicator for each
700 parameter, to ensure full conformance of the new body with the spec.
702 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
703 Create wrappers for constructor functions that need it, even when not
704 marked Requires_Overriding.
705 (Covers): Handle properly designated types of anonymous access types,
706 whose non-limited views are themselves incomplete types.
707 (Add_Entry): Use an entity to store the abstract operation which hides
709 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
710 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
711 initialization aggregate.
712 (Function_Interp_May_Be_Hidden): Rename to
713 Function_Interp_Has_Abstract_Op.
714 (Has_Compatible_Type): Remove machinery that skips interpretations if
715 they are labeled as potentially hidden by an abstract operator.
716 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
717 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
718 (Write_Overloads): Output the abstract operator if present.
719 (Add_Entry): Before inserting a new entry into the interpretation table
720 for a node, determine whether the entry will be disabled by an abstract
722 (Binary_Op_Interp_May_Be_Hidden): New routine.
723 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
725 (Function_Interp_May_Be_Hidden): New routine.
726 (Has_Compatible_Type): Do not consider interpretations hidden by
727 abstract operators when trying to determine whether two types are
729 (Has_Hidden_Interp): New routine.
730 (Set_May_Be_Hidden_Interp): New routine.
731 (Write_Overloads): Write the status of flag May_Be_Hidden.
733 2007-08-14 Ed Schonberg <schonberg@adacore.com>
734 Javier Miranda <miranda@adacore.com>
736 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
737 types declared in the declarative part of a nested package body or in
738 the proper body of a stub.
739 (Set_All_DT_Position): Add missing check to avoid wrong assignation
740 of the same dispatch table slot to renamed primitives.
741 (Make_Select_Specific_Data_Table): Handle private types.
742 (Tagged_Kind): Handle private types.
743 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
744 output of implicit importation and exportation.
745 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
746 first formal of the thunk is always associated with the controlling
747 type. In addition perform the following code cleanup: remove formal
748 Thunk_Alias which is no longer required, cleanup evaluation of the
749 the controlling type, and update the documentation.
750 Replace occurrence of Default_Prim_Op_Count by
751 Max_Predef_Prims. Addition of compile-time check to verify
752 that the value of Max_Predef_Prims is correct.
753 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
754 (Make_DT): Add parameter to indicate when type has been frozen by an
755 object declaration, for diagnostic purposes.
756 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
757 construction of statically allocated dispatch tables.
758 (Make_DT): In case of library-level tagged types export the declaration
759 of the primary tag. Remove generation of tags (now done by Make_Tags).
760 Additional modifications to handle non-static generation of dispatch
761 tables. Take care of building tables for asynchronous interface types
762 (Make_Tags): New subprogram that generates the entities associated with
763 the primary and secondary tags of Typ and fills the contents of Access_
764 Disp_Table. In case of library-level tagged types imports the forward
765 declaration of the primary tag that will be declared later by Make_DT.
766 (Expand_Interface_Conversion): In case of access types to interfaces
767 replace an itype declaration by an explicit type declaration to avoid
768 problems associated with the scope of such itype in transient blocks.
770 2007-08-14 Robert Dewar <dewar@adacore.com>
771 Ed Schonberg <schonberg@adacore.com>
772 Javier Miranda <miranda@adacore.com>
774 * exp_util.ads, exp_util.adb:
775 This patch replaces a number of occurrences of explicit tests for N_Null
776 with calls to Known_Null. This improves tracking of null values, since
777 Known_Null also catches null constants, and variables currently known to
778 be null, so we get better tracking.
779 (Ensure_Defined): create an itype reference only in the scope of the
781 (Side_Effect_Free): A selected component of an access type that
782 denotes a component with a rep clause must be treated as not
783 side-effect free, because if it is part of a linked structure its
784 value may be affected by a renaming.
785 (Expand_Subtype_From_Expr): For limited objects initialized with build
786 in place function calls, do nothing; otherwise we prematurely introduce
787 an N_Reference node in the expression initializing the object, which
788 breaks the circuitry that detects and adds the additional arguments to
789 the called function. Bug found working in the new patch for statically
790 allocated dispatch tables.
791 (Is_Library_Level_Tagged_Type): New subprogram.
792 (Remove_Side_Effects): If the expression of an elementary type is an
793 operator treat as a function call.
794 (Make_Literal_Range): If the index type of the array is not integer, use
795 attributes properly to compute the constraint on the resulting aggregate
798 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
799 class-wide type whose base type is an incomplete private type, leave
800 class-wide type unfrozen so that freeze nodes can be generated
801 properly at a later point.
802 (Freeze_Entity, array case): Handle case of pragma Pack and component
803 size attributre clause for same array.
805 2007-08-14 Vincent Celier <celier@adacore.com>
807 * prj.ads, prj.adb: Update Project Manager to new attribute names for
809 Allow all valid declarations in configuration project files
810 (Reset): Initialize all tables and hash tables in the project tree data
811 Major update of the Project Manager and of the project aware tools,
812 including gprmake, so that the same sources in the GNAT repository
813 can be used by gprbuild.
814 (Slash_Id): Change type to be Path_Name_Type
815 (Slash): Return a Path_Name_Type instead of a File_Name_Type
817 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
819 Update Project Manager to new attribute names for ghprbuild
820 Allow all valid declarations in configuration project files
821 Major update of the Project Manager and of the project aware tools,
822 including gprmake, so that the same sources in the GNAT repository
823 can be used by gprbuild.
826 Major update of the Project Manager and of the project aware tools,
827 including gprmake, so that the same sources in the GNAT repository
828 can be used by gprbuild.
830 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
831 insensitive flag for attributes with optional index.
832 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
833 array attribute, put the index in lower case.
834 Update Project Manager to new attribute names for ghprbuild
835 Allow all valid declarations in configuration project files
836 Major update of the Project Manager and of the project aware tools,
837 including gprmake, so that the same sources in the GNAT repository
838 can be used by gprbuild.
840 * prj-env.ads, prj-env.adb:
841 Major update of the Project Manager and of the project aware tools,
842 including gprmake, so that the same sources in the GNAT repository
843 can be used by gprbuild.
844 (Get_Reference): Change type of parameter Path to Path_Name_Type
846 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
847 removing '-' from the path to start with the first character of the
849 Major update of the Project Manager and of the project aware tools,
850 including gprmake, so that the same sources in the GNAT repository
851 can be used by gprbuild.
852 Major update of the Project Manager and of the project aware tools,
853 including gprmake, so that the same sources in the GNAT repository
854 can be used by gprbuild.
856 * prj-nmsc.ads, prj-nmsc.adb:
857 Update Project Manager to new attribute names for ghprbuild
858 Allow all valid declarations in configuration project files
859 (Search_Directories): Detect subunits that are specified with an
860 attribute Body in package Naming. Do not replace a source/unit in the
861 same project when the order of the source dirs are known. Detect
862 duplicate sources/units in the same project when the order of the
863 source dirs are not known.
864 (Check_Ada_Name): Allow all identifiers that are not reserved words
866 Major update of the Project Manager and of the project aware tools,
867 including gprmake, so that the same sources in the GNAT repository
868 can be used by gprbuild.
869 (Look_For_Sources): If the list of sources is empty, set the object
870 directory of non extending project to nil.
871 Change type of path name variables to be Path_Name_Type
872 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
873 otherwise creating missing directories will fail.
875 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
876 prj-part.ads, prj-part.adb:
877 Major update of the Project Manager and of the project aware tools,
878 including gprmake, so that the same sources in the GNAT repository
879 can be used by gprbuild.
881 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
882 insensitive flag for attributes with optional index.
883 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
884 array attribute, put the index in lower case.
885 (Parse_Variable_Reference): Allow the current project name to be used in
886 the prefix of an attribute reference.
888 * prj-util.ads, prj-util.adb
889 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
890 defaulted to False. When True, always check against indexes in lower
893 * snames.ads, snames.h, snames.adb:
894 Update Project Manager to new attribute names for gprbuild
895 Allow all valid declarations in configuration project files
897 2007-08-14 Robert Dewar <dewar@adacore.com>
898 Ed Schonberg <schonberg@adacore.com>
900 * opt.ads: Warning for non-local exception propagation now off by
902 New switch -gnatI to disable representation clauses
903 Implement new pragma Implicit_Packing
906 Warning for non-local exception propagation now off by default
907 Add warning for unchecked conversion of pointers wi different
909 New switch -gnatI to disable representation clauses
911 * usage.adb: new switch -gnatyS
913 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
914 note that aggregates of anonymous array types are not flagged.
915 -gnatwc now includes membership tests optimized away
916 -gnatw.x warnings are now off by default
917 Added conditional compilation Appendix
918 Add documentation of -gnatI
919 Add documentation for new -gnatyS style check
920 Update documentation about SAL and auto-init on Windows.
923 Add documentation for pragma Check_Name and 'Enabled attribute
924 Document that Eliminate on dispatching operation is ignored
925 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
927 Document pragma Implicit_Packing
929 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
930 different conventions
931 New switch -gnatI to disable representation clauses
933 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
934 recognized, report the invalid characters including "-gnat" instead of
935 just the first character in the switch.
936 New switch -gnatI to disable representation clauses
937 Set Warn_On_Object_Renames_Function true for -gnatg
939 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
940 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
941 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
942 to switch -aP (add directory to project search dir).
944 * par-prag.adb: Implement new pragma Implicit_Packing
946 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
947 type as having a non-standard representation, to force expansion on
948 conversion to related types.
949 (Analyze_Pragma): Warn on misspelled pragma
950 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
951 Ensure consistent use of # in error messages
952 Implement pragma Implicit_Packing
954 2007-08-14 Olivier Hainque <hainque@adacore.com>
955 Eric Botcazou <ebotcazou@adacore.com>
957 * targtyps.c (get_target_maximum_default_alignment): New function.
959 that the compiler might choose by default for a type or object.
960 (get_target_default_allocator_alignment): New function. Alignment known
961 to be honored by the target default allocator.
962 (get_target_maximum_allowed_alignment): New function. Maximum alignment
963 we might accept for any type or object on the target.
964 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
966 * gigi.h (get_target_maximum_default_alignment): Declare new function.
967 (get_target_default_allocator_alignment): Likewise.
968 (get_target_maximum_allowed_alignment): Likewise.
971 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
972 result of a function call, first try to use a stabilized reference for
973 a constant renaming too.
974 (validate_alignment): Use target_maximum_allowed_alignment instead of
975 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
976 (gnat_to_gnu_entity): Use common nodes directly.
977 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
978 alignment and size for the object.
979 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
980 and N_Procedure_Call_Statement.
981 (takes_address): Rename to lvalue_required_p, add third parameter
982 'aliased' and adjust recursive calls.
983 <N_Indexed_Component>: Update 'aliased' from the array type.
984 <N_Selected_Component>: New case.
985 <N_Object_Renaming_Declaration>: New Likewise.
986 (Identifier_to_gnu): Adjust for above changes.
987 (maybe_stabilize_reference) <CONST_DECL>: New case.
989 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
990 between type variants.
991 (build_simple_component_ref): Likewise.
992 (build_call_alloc_dealloc): Use target_default_allocator_alignment
993 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
994 aligning type circuitry for allocations from the default storage pool.
995 (build_allocator): Likewise.
996 (build_simple_component_ref): Manually fold the reference for a
997 constructor if the record type contains a template.
999 * utils.c (value_zerop): Delete.
1000 (gnat_init_decl_processing): Emit debug info for common types.
1001 (rest_of_record_type_compilation): If a union contains a field
1002 with a non-constant qualifier, treat it as variable-sized.
1003 (finish_record_type): Give the stub TYPE_DECL a name.
1004 (rest_of_record_type_compilation): Likewise.
1005 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
1006 types are equivalent array types.
1007 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
1008 even if the type is not passed by reference.
1009 (static_ctors, static_dtors): Delete.
1010 (end_subprog_body): Do not record constructors and destructors.
1011 (build_global_cdtor): Delete.
1012 (gnat_write_global_declarations): Do not call build_global_cdtor.
1014 * lang-specs.h: If TARGET_VXWORKS_RTP is defined, append -mrtp when
1015 -fRTS=rtp is specified.
1016 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
1019 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
1020 of the personality function with SJLJ exceptions.
1022 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
1023 the name of the personality function with SJLJ exceptions.
1025 2007-08-14 Robert Dewar <dewar@adacore.com>
1026 Ed Schonberg <schonberg@adacore.com>
1028 * par.ads, par.adb: Improve handling of extra right parens.
1029 (Par): Remove flag From_Limited_With_Clause.
1031 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
1032 Improve handling of extra right parens.
1034 2007-08-14 Robert Dewar <dewar@adacore.com>
1036 * par-tchk.adb (TF_Semicolon): Improve error recovery
1038 2007-08-14 Robert Dewar <dewar@adacore.com>
1039 Ed Schonberg <schonberg@adacore.com>
1041 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
1042 enumeration type, mark all literals as referenced.
1043 (Eval_Attribute, case 'Image): If the argument is an enumeration
1044 literal and names are available, constant-fold but mark nevertheless as
1046 Clean up function names.
1047 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
1049 (Requires_Simple_Name_Prefix): Removed.
1051 2007-08-14 Robert Dewar <dewar@adacore.com>
1052 Ed Schonberg <schonberg@adacore.com>
1054 * sem_ch11.adb: Improved warnings for unused variables
1056 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
1057 is a synchronized interface, the derived type is limited.
1058 (Analyze_Object_Declaration): Mark the potential coextensions in the
1059 definition and expression of an object declaration node.
1060 (Build_Derived_Type): For the completion of a private type declaration
1061 with a derived type declaration, chain the parent type's representation
1062 items to the last representation item of the derived type (not the
1063 first one) if they are not present already.
1064 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
1065 object declaration of forward references to tags.
1066 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
1067 subprogram types can appear as access discriminants of synchronized
1069 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
1070 given in prefixed form as a selected component.
1071 (Process_Discriminants): If not all discriminants have defaults, place
1072 error message on a default that is present.
1073 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
1074 extend a synchronized tagged type.
1075 Improved warnings for unused variables
1076 (Is_Visible_Component): Fix a visibility hole on a component inherited
1077 by a private extension when parent is itself declared as a private
1078 extension, and the derivation is in a child unit.
1079 (Find_Hidden_Interface): Move spec from the package body.
1081 2007-08-14 Robert Dewar <dewar@adacore.com>
1082 Ed Schonberg <schonberg@adacore.com>
1084 * sem_ch5.adb: Improve warnings on redundant assignments
1086 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
1088 (Is_Synchronized_Tagged_Type): New subprogram that returns true
1089 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
1090 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
1091 is set to False. Improves handling of Known_[Not_]Null.
1092 (Wrong_Type): Special case address arithmetic attempt
1093 (Collect_Abstract_Interfaces): Add new formal to allow collecting
1094 abstract interfaces just using the partial view of private types.
1095 (Has_Abstract_Interfaces): Add new formal to allow checking types
1096 covering interfaces using the partial view of private types.
1097 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
1098 component still needs to be defined in this case, but is never
1099 initialized as VMs are using other dispatching mechanisms.
1100 (Abstract_Interface_List): For a protected type, use base type to get
1102 Improve warnings on redundant assignments
1103 (Is_Variable): Handle properly an implicit dereference of a prefixed
1105 (Build_Actual_Subtype): If this is an actual subtype for an
1106 unconstrained formal parameter, use the sloc of the body for the new
1107 declaration, to prevent anomalises in the debugger.
1109 2007-08-14 Robert Dewar <dewar@adacore.com>
1111 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
1112 dispatching operation
1114 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1115 Gary Dismukes <dismukes@adacore.com>
1118 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
1119 expanded aggregate code before allocator, and ahead of declaration for
1120 temporary, to prevent access before elaboration when the allocator is
1121 an actual for an access parameter.
1122 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
1123 the TSD and the table of interfaces.
1124 (Convert_To_Assignments): Augment the test for delaying aggregate
1125 expansion for limited return statements to include the case of extended
1126 returns, to prevent creation of an unwanted transient scope.
1127 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
1128 (Expand_Array_Aggregate): Handle aggregates associated with
1129 statically allocated dispatch tables.
1130 (Expand_Record_Aggregate): Handle aggregates associated with
1131 statically allocated dispatch tables.
1132 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
1133 of anonymous access type.
1135 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1137 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
1138 is a variable that renames a slice, use the variable itself in the
1139 expannsion when the renamed expression itself may be modified between
1140 the declaration of the renaming and the array assignment.
1142 2007-08-14 Jerome Guitton <guitton@adacore.com>
1144 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
1145 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
1146 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
1147 New functions; dummy implementations.
1149 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
1150 functions, used to implement the multi-tasks mode routines on VxWorks.
1152 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
1154 binding to the VxWorks routines which have changed between VxWorks 5
1156 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
1157 which are not callable from a RTP.
1159 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
1160 implemented for the multi-tasks mode on VxWorks 5 and 6.
1162 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
1164 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
1167 2007-08-14 Vincent Celier <celier@adacore.com>
1169 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
1170 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
1171 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
1172 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1173 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1174 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
1175 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
1177 (Major_Id_Name): New function.
1178 mlib-tgt.ads/mlib.tgt.adb:
1179 (Library_Major_Minor_Id_Supported): New function, default returns True
1180 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
1181 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
1182 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
1183 Implementation of Library_Major_Minor_Id_Supported returns False
1185 (Clean_Library_Directory): If major/minor ids are supported, clean all
1187 Major update of the Project Manager and of the project aware tools,
1188 including gprmake, so that the same sources in the GNAT repository
1189 can be used by gprbuild.
1191 2007-08-14 Olivier Hainque <hainque@adacore.com>
1193 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
1194 (GCC_ZCX_Support): Switch to True.
1196 * s-intman-solaris.adb (Notify_Exception): Call
1197 Adjust_Context_For_Raise before raising, as expected for signal
1198 handlers in general.
1200 * s-intman-posix.adb (Notify_Exception): Remove declaration of
1201 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
1202 to other implementation bodies.
1204 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
1205 be visible by multiple implementation bodies.
1207 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
1208 only for conditions coming from hardware.
1209 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
1210 adjustments to signal context prior to exception raise from signal
1212 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
1214 Solaris section: (__gnat_adjust_context_for_raise): New function.
1215 Implementation of the machine context adjustments to perform prior to
1216 raise from a signal handler. Version for both sparc and x86.
1217 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
1218 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
1219 prior to raising as expected for any handler, before possible nested
1220 faults to make sure all the contexts in a chain have been adjusted by
1221 the time we propagate.
1223 2007-08-14 Pascal Obry <obry@adacore.com>
1225 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
1226 (SYSTEM_INFO): New record.
1227 (SetThreadIdealProcessor): New imported routine needed for supporting
1228 task_info pragma on Windows.
1230 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
1231 info can be applied to the current host.
1232 (Create_Task): Set the ideal processor if information is present.
1234 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
1235 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
1237 2007-08-14 Olivier Hainque <hainque@adacore.com>
1239 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
1240 stack size and initial stack pointer value for a given task.
1241 (Enter_Task): Get the stack attributes of the task we are entering and
1242 let the stack checking engine know about them.
1244 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
1245 Let the stack-checking engine know about the initial sp value and stack
1246 size associated with the current task.
1247 (Set_Stack_Info): If a stack base has been notified for the current
1248 task, honor it. Fallback to the previous less accurate method otherwise.
1250 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
1252 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1254 * sem_ch10.adb: Create a limited view of an incomplete type, to make
1255 treatment of limited views uniform for all visible declarations in a
1256 limited_withed package.
1257 Set flag indicating that a subprogram body for a child unit has a
1259 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
1260 separate declaration, remove the unit name from visibility after
1261 compilation, so that environment is clean for subsequent compilations.
1262 (Install_Limited_Context_Clauses): Do not install a
1263 limited_private_with_clause unless the current unit is a body or a
1265 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
1266 in the same fashion.
1267 (Install_Limited_Withed_Unit): Do not install a limited with clause if
1268 it applies to the declaration of the current package body.
1269 (Remove_Private_With_Clauses): If there is a regular with_clause for
1270 the unit, delete Private_With_Clause from context, to prevent improper
1271 hiding when processing subsequent nested packages and instantiations.
1273 2007-08-14 Jose Ruiz <ruiz@adacore.com>
1275 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
1276 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
1277 representing absolute path names.
1278 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
1280 * cstreams.c (__gnat_full_name for VxWorks): Use
1281 __gnat_is_absolute_path to detect whether we need to add the current
1282 directory to normalize the path.
1284 2007-08-14 Javier Miranda <miranda@adacore.com>
1287 a-tags.adb (Displace): Associate a message with the raised CE
1289 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
1290 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
1291 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
1293 (Default_Prim_Op_Count): Removed.
1294 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
1295 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
1296 Remove pragma Inline_Always.
1298 * rtsfind.ads (Default_Prim_Op_Count): Removed
1299 (Max_Predef_Prims): New entity
1300 (RE_Expanded_Name): Removed
1301 (RE_HT_Link): Removed
1302 (RE_Iface_Tag): Remmoved
1303 (RE_Ifaces_Table): Removed
1304 (RE_Interfaces_Array): Removed
1305 (RE_Interface_Data_Element): Removed
1306 (RE_Nb_Ifaces): Removed
1307 (RE_RC_Offset): Removed
1308 (RE_Static_Offset_To_Top): Removed
1310 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
1312 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
1313 Prim_Op_Count by Max_Predef_Prims.
1315 2007-08-14 Thomas Quinot <quinot@adacore.com>
1316 Vincent Celier <celier@adacore.com>
1318 * binde.adb (Elab_All_Links): Remove unnecessary call to
1319 Generic_Separately_Compiled (if a unit satisfies this predicate, there
1320 won't be an associated Afile).
1321 (Elab_All_Links): Fail if a referenced unit cannot be found
1324 Fix comments in bindgen regarding consistency checks done in Bcheck:
1325 the checks are made across units within a partition, not across several
1327 Fix generation of C binder file for VxWorks.
1329 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
1330 Generic_May_Lack_ALI, more descriptive of the current use of the
1331 predicate, and update documentation.
1333 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
1334 reorganization and documentation update for the case of predefined
1335 library generics (for which we do not reference an Afile).
1337 2007-08-14 Robert Dewar <dewar@adacore.com>
1339 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
1340 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
1341 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
1342 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
1343 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
1344 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
1345 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
1346 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
1347 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
1348 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
1349 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
1350 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
1351 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
1352 g-altcon.adb: Minor reformatting
1354 ada-tree.h: Delete empty line.
1356 ali.ads: Minor reformatting
1357 Clarification of comments.
1358 Minor spelling correction
1360 * exp_dbug.adb: Add Warnings Off to suppress new warning
1362 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
1365 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
1368 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
1370 * a-textio.ads: Reorder the standard input/output/error declarations
1373 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
1375 * par-ch2.adb: Recognize RM specially in errout
1376 Change 'R'M to RM in all error messages
1378 * scng.adb: Recognize RM specially in errout
1380 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
1381 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
1383 * s-direio.adb: Add missing routine header box.
1385 * sem_attr.ads: Add ??? comments
1387 * sem_eval.adb: Recognize RM specially in errout
1388 Change 'R'M to RM in all error messages
1390 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
1392 * s-tasinf.ads: Fix minor comment typo.
1394 * a-cihama.adb: Minor comment addition
1396 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
1399 * s-tasinf-tru64.ads: Fix minor comment typo.
1401 * itypes.ads: Comment update.
1403 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
1406 * argv.c: Added protection against null gnat_argv and gnat_envp.
1408 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
1409 warning message when Tolerate_Consistency_Errors is True.
1411 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
1412 Any_Id, as this subprogram is only applicable to *type* entities (it
1413 sets RM_Size). Instead initialize just Esize and Alignment.
1415 2007-08-14 Bob Duff <duff@adacore.com>
1417 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
1418 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
1419 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
1420 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
1421 a-coorse.ads (Next): Applied pragma Inline.
1422 Make all Containers packages Remote_Types (unless they are already
1424 (Previous): applied pragma Inline
1425 (Elements_Type): is now a record instead of an array
1427 2007-08-14 Thomas Quinot <quinot@adacore.com>
1429 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
1431 (Set_Item): When the new item is an element of the currently allocated
1432 table passed by reference, save a copy on the stack if we're going
1433 to reallocate. Also, in Table.Set_Item, make sure we test the proper
1434 variable to determine whether to call Set_Last.
1436 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
1437 symbols-vms.adb, symbols-processing-vms-alpha.adb,
1438 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
1439 some occurrences of the pattern
1441 T.Table (T.Last) := Value;
1442 with a cleaner call to
1445 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1446 Gary Dismukes <dismukes@adacore.com>
1447 Thomas Quinot <quinot@adacore.com>
1449 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
1450 derived type with interface progenitors use the analyzed formal as the
1451 parent of the actual, to create renamings for all the inherited
1452 operations in Derive_Subprograms.
1453 (Collect_Previous_Instances): new procedure within of
1454 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
1455 unit being loaded, to ensure that the generation of global symbols is
1456 consistent in different compilation modes.
1457 (Is_Tagged_Ancestor): New function testing the ancestor relation that
1458 takes progenitor types into account.
1459 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
1460 traversing over the primitives of the formal and actual types to locate
1461 any abstract subprograms of the actual type that correspond to a
1462 nonabstract subprogram of the formal type's ancestor type(s), and issue
1463 an error if such is found.
1464 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
1465 Instantiate_Package_Body, Instantiate_Subprogram_Body):
1466 Remove bogus guard around calls to Inherit_Context.
1467 (Reset_Entity): If the entity is the selector of a selected component
1468 that denotes a named number, propagate constant-folding to the generic
1469 template only if the named number is global to the generic unit.
1470 (Set_Instance_Env): Only reset the compilation switches when compiling
1471 a predefined or internal unit.
1473 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1475 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
1476 parameter to determine whether operation applies to the prefix.
1477 (Complete_Object_Operation): If actual has an access type and
1478 controlling formal is not an in_parameter, reject the actual if it is
1479 an access_to_constant type.
1480 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
1481 type, the candidate operations are found in the scope of declaration of
1482 the type, because the type has no primitive subprograms.
1483 (Analyze_Selected_Component): If prefix is class-wide, and root type is
1484 a private extension, only examine visible components before trying to
1485 analyze as a prefixed call.
1486 Change Entity_List to Type_To_Use, for better readability.
1487 (Has_Fixed_Op): Use base type when checking whether the type of an
1488 operator has a user-defined multiplication/division
1489 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
1490 user-defined operators are available for fixed-point types.
1492 2007-08-14 Thomas Quinot <quinot@adacore.com>
1493 Ed Schonberg <schonberg@adacore.com>
1495 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
1496 formal At_Any_Place indicating, when True, that we want to test for
1497 availability of the stream attribute at any place (as opposed to the
1498 current visibility context only).
1499 (Missing_Read_Write_Attributes): A stream attribute is missing for the
1500 purpose of enforcing E.2.2(8) only if it is not available at any place.
1501 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
1502 when checking the legality of an extension aggregate in a preelaborable
1503 package. Treat the literal null as a valid default expression in a
1504 component declaration for a type with preelaborable initialization.
1505 A limited interface is a legal progenitor for the designated type of a
1506 remote access to class-wide type.
1508 2007-08-14 Thomas Quinot <quinot@adacore.com>
1509 Ed Schonberg <schonberg@adacore.com>
1511 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
1512 reference): Use correct entity as denoted entity for the selector of
1514 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
1515 setting the Referenced_As_LHS flag for entities that are implicitly
1517 (Find_Type): If the type is an internally generated incomplete type,
1518 mark the full view as referenced, to prevent spurious warnings.
1519 (Find_Selected_Component, Has_Components): Handle properly non-limited
1520 views that are themselves incomplete types.
1521 Handle interfaces visible through limited-with clauses.
1522 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
1523 subprogram generic actual for which we have generated a renaming.
1524 Warn when the renaming introduces a homonym of
1525 the renamed entity, and the renamed entity is directly visible.
1527 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1528 Hristian Kirtchev <kirtchev@adacore.com>
1530 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
1531 appear in the subtree to the current allocator if it is not a static
1533 (Resolve_Allocator): Perform cleanup if resolution has determined that
1534 the allocator is not a coextension.
1535 (Resolve): Skip an interpretation hidden by an abstract operator only
1536 when the type of the interpretation matches that of the context.
1537 (Resolve): When looping through all possible interpretations of a node,
1538 do not consider those that are hidden by abstract operators.
1539 (Resolve_Actuals): When verifying that an access to class-wide object
1540 is an actual for a controlling formal, ignore anonymous access to
1541 subprograms whose return type is an access to class_wide type.
1542 (Resolve_Slice): If the prefix of the slice is a selected component
1543 whose type depends on discriminants, build its actual subtype before
1544 applying range checks on the bounds of the slice.
1545 (Valid_Conversion): In an instance or inlined body, compare root types,
1546 to prevent anomalies between private and public views.
1547 (Resolve): Improve error message for ambiguous fixed multiplication
1548 expressions that involve universal_fixed multiplying operations.
1550 2007-08-14 Javier Miranda <miranda@adacore.com>
1551 Hristian Kirtchev <kirtchev@adacore.com>
1553 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
1554 location to allow the correct generation of errors in case of
1555 restrictions applied to the expanded code.
1556 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
1557 function if the condition does not reference them.
1558 (Expand_Entry_Body_Declarations): Mark the index constant as having a
1561 2007-08-14 Thomas Quinot <quinot@adacore.com>
1563 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
1564 typecode parameters for a union (in a variant record), remove
1565 extraneous layer of Any wrapping for member label.
1566 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
1567 elabration statements, register the package with the name server
1568 at the beginning, not at the end, of the elaboration statements so
1569 that they can create remote access to subprogram values that designate
1570 remote subprograms from the package.
1572 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
1574 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
1575 values to compute the number of seconds since the Unix Epoc in order to
1576 account for Daylight Savings Time. Perform special processing for dates
1577 that are earlier than the Unix Epoc to obtain a negative number.
1579 2007-08-14 Emmanuel Briot <briot@adacore.com>
1581 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
1584 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
1586 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
1587 binder-generated file is not in Ada.
1588 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
1589 recorded in the ALI file.
1590 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
1592 2007-08-14 Vincent Celier <celier@adacore.com>
1594 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
1595 (Output_Source): Do nothing if parameter is No_Sdep_Id
1597 * make.adb (Gnatmake): Do not rebuild an archive simply because a
1598 shared library it imports has a later time stamp.
1599 (Check): Resolve the symbolic links in the path name of the object
1601 Check that the ALI file is in the correct object directory
1602 Check if a file name does not correspond to the mapping of units
1604 (Display_Version): New procedure
1605 (Initialize): Process switches --version and --help
1606 Use type Path_Name_Type for path name
1608 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
1610 * impunit.adb: Re-organize System.Random_Numbers and
1611 GNAT.Random_Numbers and add to builds.
1613 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
1615 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
1617 * a-assert.ads, a-assert.adb: New files.
1619 2007-08-14 Gary Dismukes <dismukes@adacore.com>
1621 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
1622 if AAMP_On_Target is True, then the size of the type encompasses two
1623 addresses (a static link and a subprogram address), except in the case
1624 of library-level access types.
1626 2007-08-14 Vincent Celier <celier@adacore.com>
1628 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
1630 (Write_Eol_Keep_Blanks): New procedure to write a line, including
1631 possible trailing spaces.
1632 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
1634 2007-08-14 Javier Miranda <miranda@adacore.com>
1636 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
1637 null-excluding access types.
1639 2007-08-14 Javier Miranda <miranda@adacore.com>
1641 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
1642 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
1643 of private types add missing check on matching interfaces in the
1644 partial and full declarations.
1645 (Analyze_Protected_Type): Code cleanup.
1646 (Analyze_Task_Type): Code cleanup.
1648 2007-08-14 Javier Miranda <miranda@adacore.com>
1650 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
1651 generated interface thunk.
1653 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1655 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
1656 obsolescent warning on application of 'Class to an incomplete type.
1658 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
1659 prevent obsolescent warning on application of 'Class to an incomplete
1662 2007-08-14 Pascal Obry <obry@adacore.com>
1664 * s-fileio.adb (Is_Open): Add check for usability of the underlying
1667 2007-08-14 Cyrille Comar <comar@adacore.com>
1669 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
1670 since it is potentially used in cases implying double finalization of
1673 2007-08-14 Jose Ruiz <ruiz@adacore.com>
1675 * s-tasini.adb (Get_Stack_Info): Move this function to
1676 System.Soft_Links.Tasking because it is common to the full and the
1677 restricted run times.
1678 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
1679 in SSL.Tasking.Init_Tasking_Soft_Links.
1681 * s-solita.adb (Get_Stack_Info): Function moved from
1682 System.Tasking.Initialization because it is common to the full and the
1683 restricted run times.
1684 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
1686 2007-08-14 Arnaud Charlet <charlet@adacore.com>
1688 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
1689 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
1690 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
1693 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
1696 2007-08-14 Gary Dismukes <dismukes@adacore.com>
1698 * s-veboop.adb (SU): New named number initialized to
1699 System.Storage_Unit.
1700 (True_Val): The initialization expression is revised to use SU (=
1701 Storage_Unit) rather than assuming 8 for the component size of an
1702 unpacked Boolean array.
1704 2007-08-14 Tristan Gingold <gingold@adacore.com>
1706 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
1708 * tb-ivms.c: New file.
1710 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
1712 2007-08-14 Geert Bosch <bosch@adacore.com>
1714 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
1715 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
1716 Add required linker pragmas for automatically linking with the gnalasup
1717 linear algebra support library, and the systems math library.
1718 Rename cdot to cdotu and zdot to zdotu.
1719 Update header comment to describe purpose of package.
1721 2007-08-14 Thomas Quinot <quinot@adacore.com>
1723 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
1724 an explicitly specified Associated_Final_Chain, use that list.
1725 (Expand_N_Package_Body): Build dispatch tables of library level tagged
1727 (Expand_N_Package_Declaration): Build dispatch tables of library level
1728 tagged types. Minor code cleanup.
1730 2007-08-14 Vincent Celier <celier@adacore.com>
1732 * gnatchop.adb (Terminate_Program): Remove exception and use
1733 Types.Terminate_Program instead.
1735 * osint.ads, osint.adb (Current_Exit_Status): New global variable
1736 (Find_Program_Name): Added protection against empty name.
1737 (OS_Exit_Through_Exception): New procedure
1739 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
1740 (OS_Exit_Default): New procedure that contains the previous
1741 implementation of procedure OS_Exit.
1742 (Final_Value): Remove obsolete Interix stuff.
1744 2007-08-14 Thomas Quinot <quinot@adacore.com>
1746 * g-socket.ads: Reorganize example code so that it also works on
1749 2007-08-14 Tristan Gingold <gingold@adacore.com>
1751 * g-trasym.ads: AIX now supports symbolic backtraces.
1753 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1755 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
1756 units being loaded to detect circularities. A circularity may be
1757 present even if the current chain of pending units to load starts from
1758 a limited_with_clause.
1760 * lib-load.ads: Change profile of Load_Unit to use a with_clause
1761 rather than a boolean flag, in order to detect circularities in
1764 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
1765 than propagating the From_Limited_With flag, in order to handle
1766 properly circularities involving with_clauses.
1768 2007-08-14 Nicolas Setton <setton@adacore.com>
1770 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
1773 2007-08-14 Arnaud Charlet <charlet@adacore.com>
1775 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
1776 to build for libgnala.
1777 libgnat: Add rules to build libgnala.a
1778 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
1779 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
1780 Add s-osinte-vxworks-kernel.adb to the target pairs of the
1781 kernel run-time lib for VxWorks 6, which would provide a different
1782 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
1783 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
1784 running ZCX by default.
1785 Add g-sttsne-locking to LynxOS version.
1786 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
1787 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
1789 * system-darwin-x86.ads: New file.
1791 * Make-lang.in: Delete files before copying onto them, so if they are
1792 read-only, the copy won't fail.
1795 2007-08-14 Pascal Obry <obry@adacore.com>
1797 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
1800 2007-08-14 Vincent Celier <celier@adacore.com>
1802 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
1803 (Gcc): Initialize Gcc_Name at the first call
1805 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1807 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
1808 with_clauses of the enclosing unit when analyzing the package
1809 specification of a nested instance.
1811 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
1813 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
1814 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
1815 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
1816 layout of N_Allocator.
1818 2007-08-14 Thomas Quinot <quinot@adacore.com>
1820 * rtsfind.adb (Check_RPC): Add PCS version check.
1822 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
1823 (Gnat_Free_Software): New function.
1825 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
1826 the PCS_Version value from s-parint, used to check that it is consistent
1827 with what exp_dist expects.
1829 * s-parint.ads (PCS_Version): New entity for checking consistency
1830 between exp_dist and PCS.
1832 * gen-soccon.c: (SO_REUSEPORT): New constant.
1834 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
1836 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
1837 variable Sub_Second to Duration in order to accomodate a larger range
1838 of arithmetic operations.
1840 2007-08-14 Bob Duff <duff@adacore.com>
1842 * g-sttsne-locking.ads: Move comments from spec to body.
1843 * g-sttsne-locking.adb: Move comments from spec to body.
1844 * g-sttsne-vxworks.ads: Removed.
1845 * g-sttsne-vxworks.adb: Removed.
1847 2007-08-11 Ian Lance Taylor <iant@google.com>
1849 * misc.c (gnat_get_alias_set): Change return type to
1852 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1854 * decl.c, utils2.c: Fix whitespace in last change.
1856 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1858 * decl.c (compare_field_bitpos): Constify.
1859 * utils2.c (compare_elmt_bitpos): Likewise.
1861 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
1863 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
1864 anonymous access type.
1865 (pthread_sigmask): Now take an access sigset_t.
1867 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
1869 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
1871 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
1873 PR tree-optimization/25737
1874 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
1876 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1878 * trans.c (Attribute_to_gnu): When subtracting an
1879 offset from a pointer, use POINTER_PLUS_EXPR with
1880 NEGATE_EXPR instead of MINUS_EXPR.
1881 (gnat_to_gnu): Likewise.
1882 * utils.c (convert): When converting between
1883 thin pointers, use POINTER_PLUS_EXPR and sizetype
1885 * utils2.c (known_alignment): POINTER_PLUS_EXPR
1886 have the same semantics as PLUS_EXPR for alignment.
1887 (build_binary_op): Add support for the semantics of
1888 POINTER_PLUS_EXPR's operands.
1889 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
1891 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
1893 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
1894 of get_signed_or_unsigned_type.
1895 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
1897 2007-06-11 Bob Duff <duff@adacore.com>
1898 Thomas Quinot <quinot@adacore.com>
1900 * g-stsifd-sockets.adb (Create): Work around strange behavior of
1901 'bind' on windows that causes 'connect' to fail intermittently, by
1902 retrying the 'bind'.
1903 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
1905 2007-06-10 Duncan Sands <baldrick@free.fr>
1907 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
1908 than to void, for the fields when making a new fat pointer type.
1909 (gnat_substitute_in_type): Now substitute_in_type.
1910 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
1911 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
1912 * utils.c (update_pointer_to): Update fat pointers by updating the
1913 dummy node pointers used for the fields.
1915 2007-06-06 Thomas Quinot <quinot@adacore.com>
1916 Bob Duff <duff@adacore.com>
1918 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
1919 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1920 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
1921 constant Thread_Blocking_IO, always True by default, set False
1922 on a per-runtime basis.
1923 (Need_Netdb_Buffer): New constant.
1925 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
1926 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
1929 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
1930 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
1931 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
1932 child package Task_Safe_NetDB
1933 (Host_Error_Messages): Add stub body.
1934 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
1936 * g-soccon-mingw.ads: Add Windows-specific constants.
1937 (Need_Netdb_Buffer): New constant.
1938 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
1939 wrapper and import inet_addr(3) from the standard sockets library
1941 (In_Addr): Add alignment clause.
1942 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
1944 2007-06-06 Robert Dewar <dewar@adacore.com>
1946 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
1947 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
1948 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
1949 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
1950 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
1951 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
1952 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
1953 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
1954 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
1955 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
1956 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
1957 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
1958 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
1959 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
1960 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
1961 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
1962 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
1963 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
1964 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
1965 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
1966 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
1967 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
1968 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
1969 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
1970 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
1971 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
1972 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
1973 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
1974 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
1975 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
1976 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
1977 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
1978 Unchecked_* by Ada.Unchecked_*
1980 2007-06-06 Robert Dewar <dewar@adacore.com>
1982 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
1983 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
1984 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
1985 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
1986 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
1987 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
1989 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
1990 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
1991 s-tasloc.adb, s-tasloc.ads: New files.
1993 2007-06-06 Bob Duff <duff@adacore.com>
1996 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
1997 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
1998 (Send_Signal, Close): Raise Invalid_Process if the process id is
2000 (Pattern_Matcher_Access): Is now a general access type to be able to
2003 2007-06-06 Thomas Quinot <quinot@adacore.com>
2004 Arnaud Charlet <charlet@adacore.com>
2006 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
2007 (SIGEMT is now used instead of SIGTERM on AIX).
2009 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
2010 (Time_Slice_Supported): Set to True.
2011 Use SIGEMT instead of SIGTERM as SIGADAABORT.
2013 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2015 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
2016 (Time, Time)): Use To_Relative_Time rather than manual calculation to
2017 express the bounds of Duration as Time. Raise Time_Error when the
2018 result is greater or equal to the higher bound of Duration (on the
2020 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
2022 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
2024 ("-" (Time, Time)): Reorder code.
2025 (All_Leap_Seconds): Removed.
2026 (Arithmetic_Operations.Add): Remove sign related kludge.
2027 (Arithmetic_Operations.Difference): Control the leaps seconds processing
2028 with flag Leap_Support.
2029 (Arithmetic_Operations.Subtract): Remove sign related kludge.
2030 (Check_Within_Time_Bounds): New procedure.
2031 (Clock): Control the leap seconds processing with flag Leap_Support.
2032 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
2033 (Formatting_Operations.Split): Control the leap seconds processing with
2035 (Formatting_Operations.Time_Of): Control the leaps seconds processing
2036 with flag Leap_Support. Adjust the year, month and day (if applicable)
2037 when the value of day seconds designates a new day.
2038 (Split): Use parameter associations for better readability. Integrate
2040 (Time_Of): Use parameter associations for better readability. Integrate
2043 * a-calfor.adb (Split): Use parameter associations for better
2044 readability. Integrate flag Is_Ada_05.
2045 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
2046 better readability. Integrate flag Is_Ada_05.
2048 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2050 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
2051 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
2052 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
2053 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
2054 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
2055 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
2056 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
2057 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
2058 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
2059 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
2060 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
2061 time when entering this routine to detect a backward clock setting
2062 (manual setting or DST adjustment), to avoid waiting for a longer delay
2064 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
2065 Remove handling of deferred priority change, and replace by setting the
2066 task priority directly, as required by AI-188.
2068 (Max_Task_Image_Length): New constant.
2069 Replace Warnings (Off) by Unreferenced pragma, cleaner.
2070 (Dynamic_Priority_Support): Removed, no longer needed.
2071 (Poll_Base_Priority_Change): Ditto.
2072 (Set_Ceiling): Add this procedure to change the ceiling priority
2073 associated to a lock. This is a dummy implementation because dynamic
2074 priority ceilings are not supported by the underlying system.
2076 * a-dynpri.adb (Set_Priority): Take into account case where Target is
2077 accepting a RV with its priority boosted.
2078 Remove handling of deferred priority change, and replace by setting the
2079 task priority directly, as required by AI-188.
2081 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
2083 Remove handling of deferred priority change, and replace by setting the
2084 task priority directly, as required by AI-188.
2085 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
2088 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
2089 (Poll_Base_Priority_Change): Removed.
2090 Code clean up: use SSL.Current_Target_Exception.
2092 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
2093 to run as this is a potentially dispatching point.
2094 (Call_Synchronous): Use Local_Defer_Abort.
2095 (Callable): Relax assertion.
2096 (Selective_Wait): Relax assertion in case abort is not allowed.
2097 Remove handling of deferred priority change, and replace by setting the
2098 task priority directly, as required by AI-188.
2100 * s-tasuti.adb (Make_Passive): Adjust assertions.
2101 Remove handling of deferred priority change, and replace by setting the
2102 task priority directly, as required by AI-188.
2104 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2106 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
2107 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
2108 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
2109 system-vxworks-mips.ads, system-vxworks-alpha.ads,
2110 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
2111 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
2112 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
2113 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
2114 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
2115 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
2116 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
2117 This patch changes the largest non-binary modulus from 2**31-1 to
2119 (Compiler_System_Version): Removed, no longer used.
2120 Clean up system files by removing flags only used on a single target.
2121 Also remove obsolete flags, only used during bootstrap from system.ads
2122 (Address): Add a pragma Preelaborable_Initialization.
2124 * system-aix.ads: Ditto.
2125 (GCC_ZCX_Support): Set to true.
2126 Update priority range on AIX and map Ada priorities to target
2127 priorities appropriately for different scheduling policies.
2129 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
2131 2007-06-06 Vincent Celier <celier@adacore.com>
2133 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
2134 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
2136 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
2137 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
2138 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
2139 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2140 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
2141 MLib.Tgt, containing the default versions of the exported subprograms.
2142 For each platform, create a specific version of the body of new child
2143 package MLib.Tgt.Specific that contains only the body of subprograms
2144 that are different from the default.
2145 (Archive_Builder_Append_Options): New function.
2147 2007-06-06 Matthew Gingell <gingell@adacore.com>
2149 * s-osinte-aix.adb: Map Ada priorities to target priorities
2150 appropriately for different scheduling policies.
2152 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2154 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
2156 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
2157 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
2159 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
2161 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
2162 Noop on VMS, added for interface commonality.
2164 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
2165 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2166 Olivier Hainque <hainque@adacore.com>
2168 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
2169 renamed expression of a full renaming at toplevel.
2170 (gnat_to_gnu_entity, case object): If not defining, do not look inside
2171 the values the constant is initialized to if it is an N_Allocator.
2172 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
2173 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
2174 (make_aligning_type): Accept an extra ROOM argument for storage to be
2175 made available before the aligned field, and an extra BASE_ALIGN
2176 argument for callers to pass the alignment guaranteed to be honored for
2177 the whole aligning object. Avoid call to finish_record_type, which only
2178 interferes with the sizes we want to set.
2179 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
2180 make_aligning_type for super-aligned objects on stack.
2181 (components_to_record): Pass the adjusted size of the type when creating
2182 fields in the qualified union for the variant part.
2183 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
2184 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
2186 (maybe_pad_type): Set TYPE_USER_ALIGN.
2187 (make_aligning_type): Likewise.
2188 ALIGN argument is unsigned int.
2189 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
2190 (gnat_to_gnu_param): Likewise, for parameters.
2191 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
2192 if it is constant and stems from a function call.
2193 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
2194 of the record is specified. Adjust accordingly.
2195 (adjust_packed): New static function.
2196 (gnat_to_gnu_field): Use it to adjust the packedness setting.
2197 (components_to_record): Likewise.
2198 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
2199 side-effects if the object is deemed constant.
2200 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
2201 type instead of merely finalizing it. Tidy.
2202 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
2203 <E_Access_Type>: Likewise.
2204 (defer_debug_incomplete_list): Rename to defer_finalize_list.
2205 (defer_debug_level): Delete.
2206 (gnat_to_gnu_entity) <debug_deferred>: Likewise
2207 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
2209 <E_Record_Type>: Do not explicitly defer finalizing the type.
2210 Adjust for write_record_type_debug_info renaming.
2211 <E_Subprogram_Type>: Likewise.
2212 Finalize deferred types right after deferred incomplete types are
2214 (rest_of_type_decl_compilation): New global function.
2215 (components_to_record): Rename defer_debug parameter to do_not_finalize.
2216 (components_to_record): Propagate the packedness to the fields of the
2217 qualified union type if there is a variant part.
2218 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
2219 instead of inline code to adjust the XUT field offsets.
2220 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
2221 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
2222 and write the debug info if the type derives from a discriminated one.
2223 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
2224 <E_Array_Subtype>: Likewise.
2225 <E_String_Literal_Subtype>: Likewise.
2226 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
2227 an alignment clause.
2228 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
2229 before giving warning.
2230 (prepend_one_attribute_to): New function, helper to prepend an attribute
2231 to an attribute list.
2232 (gnat_to_gnu_entity) <E_Procedure>: Use it.
2233 (prepend_attributes): Likewise.
2234 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
2235 <E_Array_Type>: Declare the padding type for the element type, if any.
2236 <E_Array_Subtype>: Likewise.
2237 (defer_limited_with): New variable.
2238 (Gigi_Equivalent_Type): New function.
2239 (gnat_to_gnu_entity): Use it at start and use result throughout.
2240 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
2241 Gigi_Equivalent_Type, support Limited_With, allow two levels of
2242 indirection, precompute if unconstrained array to simplify logic, and
2243 use defer_limited_with to defer elaboration of some types from limited
2245 (finalize_from_with_types): New function.
2247 2007-06-06 Gary Dismukes <dismukes@adacore.com>
2248 Eric Botcazou <ebotcazou@adacore.com>
2249 Tristan Gingold <gingold@adacore.com>
2250 Olivier Hainque <hainque@adacore.com>
2252 * trans.c (Identifier_to_gnu): Change test for deferred constant by
2253 adding guard that the entity is an E_Constant before testing presence
2254 of Full_view (and remove unnecessary test that entity is not a type).
2255 For a CONST_DECL used by reference, manually retrieve
2256 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
2257 (struct language_function): Move from utils.c to here.
2258 (struct parm_attr): New structure.
2259 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
2260 (f_parm_attr_cache): New macro.
2261 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
2262 expressions for the 'First, 'Last and 'Length attributes of the
2263 unconstrained array IN parameters.
2264 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
2265 Allocate the information structure for the function earlier, as well
2266 as the language-specific part.
2267 If the parameter attributes cache has been populated, evaluate the
2268 cached expressions on entry.
2269 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
2270 N_Procedure_Call_Statement and N_Indexed_Component.
2271 (Pragma_to_gnu): Translate inspection_point to an asm statement
2272 containaing a comment and a reference to the object (either its address
2273 for BLKmode or its value).
2274 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
2275 to go to DECL_INITIAL. Together with the size constraint relaxation
2276 in create_var_decl, enlarges the set of situations in which an
2277 identifier may be used as an initializer without implying elaboration
2279 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
2280 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
2282 (maybe_stabilize_reference): Remove lvalues_only parameter.
2283 (gnat_stabilize_reference): Adjust for above change.
2284 (gnat_to_gnu): Do not set location information on the result
2285 if it is a reference.
2286 (add_cleanup): Add gnat_node parameter and set the location of the
2288 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
2289 (Exception_Handler_to_gnu_zcx): Likewise.
2290 (gigi): Remove the cgraph node if the elaboration procedure is empty.
2291 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
2292 the former right after the latter.
2293 (start_stmt_group): Make global.
2294 (end_stmt_group): Likewise.
2295 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
2297 (gnu_program_error_label_stack): Likewise.
2298 (gigi): Initialize them.
2299 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
2300 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
2302 (push_exception_label_stack): New function.
2303 (takes_address): New function.
2305 * utils.c (struct language_function): Move to trans.c from here.
2306 (unchecked_convert): Do not wrap up integer constants in
2308 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
2309 the latter for aggregate types, unexpected by later passes, and relax an
2310 arbitrary size constraint on the former.
2311 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
2312 to compare the sizes.
2313 (convert_vms_descriptor): When converting to a fat pointer type, be
2314 prepared for a S descriptor at runtime in spite of a SB specification.
2315 (shift_unc_components_for_thin_pointers): New function.
2316 (write_record_type_debug_info): For variable-sized fields, cap the
2317 alignment of the pointer to the computed alignment.
2318 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
2319 If REP_LEVEL is 2, do not compute the sizes.
2320 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
2321 (build_unc_object_type): Likewise.
2322 (declare_debug_type): New function.
2324 * ada-tree.def: USE_STMT: removed (not emitted anymore).
2326 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
2327 no statement is expandable anymore.
2328 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
2329 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
2330 when the user requested it explicitely.
2331 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
2333 (get_alias_set): Return alias set 0 for a type if
2334 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
2336 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
2337 (DECL_FUNCTION_STUB): New accessor macro.
2338 (SET_DECL_FUNCTION_STUB): New setter macro.
2340 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
2342 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
2345 2007-06-06 Jose Ruiz <ruiz@adacore.com>
2347 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
2348 Rename to Abort_Task_Interrupt to be able to keep the same interface
2349 as the rest of the targets.
2351 * s-osinte-vxworks.ads s-osinte-vxworks.adb
2352 (To_VxWorks_Priority): Remove explicit "in" mode indicator
2354 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
2357 2007-06-06 Robert Dewar <dewar@adacore.com>
2359 * a-chahan.ads: Remove obsolescent pragmas
2361 * a-chlat1.ads: Minor reformatting
2363 2007-06-06 Robert Dewar <dewar@adacore.com>
2365 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
2368 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
2371 * errout.ads (Finalize): Changed interface
2372 (Output_Messages): New procedure
2373 (Compilation_Errors): New Interface
2375 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
2376 Finalize/Output_Messages interface for Errout
2377 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
2380 2007-06-06 Thomas Quinot <quinot@adacore.com>
2381 Olivier Hainque <hainque@adacore.com>
2382 Robert Dewar <dewar@adacore.com>
2384 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
2386 (Raise_Current_Excep): Call Debug_Raise_Exception just before
2387 propagation starts, to let debuggers know about the event in a reliable
2389 (Local_Raise): Moved to System.Exceptions
2390 More convenient to have this as a separate unit
2392 * s-except.adb, s-except.ads: New files.
2394 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
2395 Debug_Unhandled_Exception in System.Exceptions where it belongs
2396 together with a couple of other debug helpers.
2397 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
2398 the former Unhandled_Exception.
2400 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
2401 (Warn_No_Exception_Propagation): New procedure
2402 (Warn_If_No_Propagation): Rewritten for new warning generation
2403 (Expand_Exception_Handlers): New warning generation
2404 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
2405 (Add_Exception_Label): Use Special_Exception_Package_Used for test
2406 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
2407 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
2408 even if restriction is set (makes life easier in Check_Returns)
2409 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
2410 checking exception identities.
2411 (Expand_Local_Exception_Handlers): Do not optimize when all others case
2412 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
2413 block for handler (used by Check_Returns)
2414 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
2415 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
2416 remove all exception handlers when optimizing local raise statements.
2417 (Find_Local_Handler): Use Get_Renamed_Entity
2418 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
2419 marked analyzed after expanding exception handlers, do not generate
2420 redundant cleanup actions, because they have been constructed already.
2422 2007-06-06 Thomas Quinot <quinot@adacore.com>
2424 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
2425 presence of this categorization pragma is mandated by the language.
2426 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
2429 2007-06-06 Vincent Celier <celier@adacore.com>
2430 Robert Dewar <dewar@adacore.com>
2432 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
2433 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
2434 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
2435 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
2436 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
2437 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
2438 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
2439 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
2440 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
2441 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
2442 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
2444 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
2445 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
2446 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
2447 Use variables of types File_Name_Type and Unit_Name_Type in error
2449 (Get_Name): Add parameter Ignore_Special, and set it reading file name
2450 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
2452 Define flags Flag217-Flag230 with associated subprograms
2453 (Flag_Word5): New record type.
2454 (Flag_Word5_Ptr): New access type.
2455 (To_Flag_Word5): New unchecked conversion.
2456 (To_Flag_Word5_Ptr): Likewise.
2457 (Flag216): New function.
2458 (Set_Flag216): New procedure.
2460 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2462 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
2465 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
2467 2007-06-06 Javier Miranda <miranda@adacore.com>
2469 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
2471 (Object_Specific_Data_Array): This is now internal to the package.
2472 (Object_Specific_Data): This is now internal to the package.
2473 (Select_Specific_Data_Element): This is now internal to the package.
2474 (Select_Specific_Data_Array): This is now internal to the package.
2475 (Select_Specific_Data): This is now internal to the package.
2476 (Offset_To_Top_Function_Ptr): This is now public.
2477 (To_Offset_To_Top_Function_Ptr): Removed.
2478 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
2479 local to subprogram Offset_To_Top.
2480 (Predefined_DT): Removed.
2481 (Typeinfo_Ptr): Removed.
2482 (OSD): This function is now internal to this package.
2483 (SSD): This function is now internal to this package.
2484 (DT): New function that displaces the pointer to the table of primitives
2485 to get access to the enclosing wrapper record.
2486 (IW_Membership): Code cleanup.
2487 (Offset_To_Top): Code cleanup.
2488 (Predefined_DT): Removed.
2489 (Register_Interface_Tag): Removed.
2490 (Set_Interface_Table): Removed.
2491 (Set_Offset_Index): Removed.
2492 (Set_Offset_To_Top): Code cleanup.
2494 (Set_Signature): Removed.
2496 (Set_Tagged_Kind): Removed.
2497 (Typeinfo_Ptr): Removed.
2499 (Displace): Add missing check on null actual.
2501 * exp_disp.ads, exp_disp.adb
2502 (Select_Expansion_Utilities): Removed.
2503 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
2504 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
2505 the interface requires a new parameter.
2506 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
2507 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
2508 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
2509 Done to remove package Select_Expansion_Utilities.
2510 (Make_DT): New implementation for statically allocated dispatch tables.
2511 (Make_Secondary_DT): Moved to the scope of Make_DT.
2512 (Register_Primitive): Code cleanup plus incoporate the use of the new
2513 function DT_Address_Attribute.
2514 (Expand_Interface_Thunk): The profile of this subprogram has been
2515 changed to return the Thunk_Id and the corresponding code.
2516 (Fill_DT_Entry): Removed. Its functionality is now provided by
2517 subprogram Register_Primitive.
2518 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
2519 subprogram Register_Primitive.
2520 (Register_Primitive): New subprogram that incorporates the previous
2521 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
2522 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
2523 was only required to call Make_DT_Access_Action, which is now removed.
2524 (Ada_Actions): Removed
2525 (Action_Is_Proc): Removed
2526 (Action_Nb_Arg): Removed
2527 Replace all the calls to Make_DT_Access_Action by direct calls to
2528 Make_Procedure_Call_Statement or Make_Function_Call.
2529 (Set_DTC_Entity_Value): New subprogram.
2530 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
2531 (Expand_Interface_Thunk): Add missing support for primitives that are
2532 functions with a controlling result (case in which there is no need
2533 to generate the thunk).
2535 * exp_atag.ads, exp_atag.adb
2536 (Build_DT): New subprogram that displaces the pointer to reference the
2537 base of the wrapper record.
2538 (Build_Typeinfo_Offset): Removed.
2539 (RTE_Tag_Node): Removed.
2540 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
2541 (Build_Get_RC_Offset): Removed.
2542 (Build_Inherit_Predefined_Prims): Removed.
2543 (Build_Inherit_TSD: Removed.
2544 (Build_New_TSD): Removed.
2545 (Build_Set_External_Tag): Removed.
2546 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
2547 (Build_Set_Prim_Op_Address): Add documentation.
2548 (Build_Set_TSD): Removed.
2550 * rtsfind.ads, rtsfind.adb
2551 (Load_Fail): If load fails and we are not in configurable run-time
2552 mode, then raise Unrecoverable_Error.
2553 (Text_IO_Kludge): Generate an error message if a run-time library is
2554 not available in a given run-time (ie. zfp run-time).
2555 (RTE_Record_Component): Add code to check that the component we search
2556 for is not found in two records in the given run-time package.
2557 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
2558 (RE_DT_Predef_Prims_Offset): New entity
2559 (RE_Static_Offset_To_Top): New entity
2560 (RE_HT_Link): New entity.
2561 (System_Address_Image): Addition of this run-time package.
2562 (RE_Address_Image): New entity.
2563 (RE_Abstract_Interface): Removed.
2564 (RE_Default_Prim_Op_Count): Removed.
2565 (RE_DT_Entry_Size): Removed.
2566 (RE_DT_Min_Prologue_Size): Removed.
2567 (RE_DT_Prologue_Size): Removed.
2568 (RE_Ifaces_Table_Ptr): Removed.
2569 (RE_Interface_Data_Ptr): Removed.
2570 (RE_Type_Specific_Data): Removed.
2571 (RE_Primary_DT): Removed.
2572 (RE_Register_Interface_Tag): Removed.
2573 (RE_Set_Offset_Index): Removed.
2574 (RE_Set_OSD): Removed.
2575 (RE_Set_SSD): Removed.
2576 (RE_Set_Signature): Removed.
2577 (RE_Set_Tagged_Kind): Removed.
2578 (RE_Address_Array): New entity.
2579 (RE_DT): New entity.
2580 (RE_Iface_Tag): New entity.
2581 (RE_Interfaces_Table): New entity.
2582 (RE_No_Dispatch_Table): New entity.
2583 (RE_NDT_Prims_Ptr): New entity.
2584 (RE_NDT_TSD): New entity.
2585 (RE_Num_Prims): New entity.
2586 (RE_Offset_To_Top_Function_Ptr): New entity.
2587 (RE_OSD_Table): New entity.
2588 (RE_OSD_Num_Prims): New entity.
2589 (RE_Predef_Prims): New entity
2590 (RE_Predef_Prims_Table_Ptr): New entity.
2591 (RE_Primary_DT): New entity.
2592 (RE_Signature): New entity.
2593 (RE_SSD): New entity.
2594 (RE_TSD): New entity.
2595 (RE_Type_Specific_Data): New entity.
2596 (RE_Tag_Kind): New entity.
2598 2007-06-06 Thomas Quinot <quinot@adacore.com>
2600 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
2601 C imported variable.
2602 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
2605 2007-06-06 Robert Dewar <dewar@adacore.com>
2607 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
2610 2007-06-06 Vincent Celier <celier@adacore.com>
2612 * a-tifiio.adb (Put, internal): For negative numbers, check that there
2613 is room for at least one digit and the minus sign.
2614 (Put.Put_Character): Never put a character outside of the range of
2617 2007-06-06 Olivier Hainque <hainque@adacore.com>
2618 Eric Botcazou <ebotcazou@adacore.com>
2620 * utils2.c (build_allocator): Provide the extra arguments to
2621 make_aligning_type for super-aligned objects allocated from the default
2622 pool. Leave enough room for a pointer before the aligning field, and
2623 store the system's allocator return value there.
2624 (build_call_alloc_dealloc): When releasing a super-aligned object,
2625 retrieve the system's allocator return value from where build_allocator
2626 has stored it, just ahead of the adjusted address we are passed.
2627 (build_call_raise): Handle properly the generation of line numbers when
2628 the node is marked No_Location.
2629 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
2630 by using DECL_UID on ties.
2631 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
2633 (build_call_raise): Handle converting exception into goto; support new
2635 (build_component_ref): Add new arg to build_call_raise.
2637 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2639 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
2640 "." in the case of nnn.xxx when nnn terminates with an underscore.
2641 Parse the remaining "#" or ":" in the case of nnn#.xxx#
2643 2007-06-06 Robert Dewar <dewar@adacore.com>
2645 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
2647 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2648 Vincent Celier <celier@adacore.com>
2649 Robert Dewar <dewar@adacore.com>
2651 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
2653 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
2654 ((destructor)) for adafinal, even when switch -a is used.
2655 Do not issue pragma Linker_Destructor for adafinal when switch -a is
2657 (Gen_Object_Files_Options): Add formatting of Linker Options, when
2658 Output_Linker_Option_List is set. Suppress this formatting when
2659 Zero_Formatting is set.
2660 Add case for CLI_Target.
2661 (System_Restrictions_Used): New flag, used to avoid generating with of
2662 System_Restrictions and initialization of the data unless there is
2663 some use of System.Restrictions in the partition.
2664 (Check_System_Restrictions_Used): New procedure
2666 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
2667 since we only with this unit in the binder file if it is used elsewhere
2670 2007-06-06 Vincent Celier <celier@adacore.com>
2672 * bindusg.adb: Add line for @<response file>
2673 Add lines for new switches -R and -Z
2675 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
2676 hierarchy in the list of files of the closure when -R is used
2677 (Gnatbind): Accept arguments starting with '@' to indicate response
2678 files and take the arguments from the response files.
2679 If List_Closure is set, display the referenced files
2681 2007-06-06 Javier Miranda <miranda@adacore.com>
2682 Robert Dewar <dewar@adacore.com>
2683 Ed Schonberg <schonberg@adacore.com>
2685 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
2686 which the address-clause is applied to in-mode actuals (allowed by
2688 (Apply_Discriminant_Check): Do not generate a check if the type is
2689 constrained by a current instance.
2690 (Activate_Division_Check): New procedure
2691 (Activate_Overflow_Check): New procedure
2692 (Activate_Range_Check): New procedure
2693 Call these new Activate procedures instead of setting flags directly
2694 (Apply_Array_Size_Check): Removed, no longer needed.
2695 Code clean up: remove obsolete code related to GCC 2.
2696 (Get_E_Length): Protect against bomb in case scope is standard
2697 (Selected_Range_Checks): If the node to be checked is a conversion to
2698 an unconstrained array type, and the expression is a slice, use the
2699 bounds of the slice to construct the required constraint checks.
2700 Improve NOT NULL error messages
2701 (Apply_Constraint_Check): If the context is a null-excluding access
2702 type, diagnose properly the literal null.
2704 2007-06-06 Pascal Obry <obry@adacore.com>
2706 * clean.adb (Clean_Archive): Use untouched casing for the archive name
2707 and the corresponding .deps file.
2708 (Clean_Interface_Copy_Directory): Use untouched casing for the library
2709 src directory. Minor code-clean-up. Use untouched casing for files
2710 read into the library src dir.
2711 (Clean_Library_Directory): Idem.
2712 (Parse_Cmd_Line): Accept new switch -aP
2714 2007-06-06 Javier Miranda <miranda@adacore.com>
2715 Ed Schonberg <schonberg@adacore.com>
2716 Robert Dewar <dewar@adacore.com>
2717 Eric Botcazou <ebotcazou@adacore.com>
2718 Arnaud Charlet <charlet@adacore.com>
2720 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
2721 applicable to types that have the With_Type flag set. Returns the
2722 non-limited view of the type, if available, otherwise the type itself.
2723 For class-wide types, there is no direct link in the tree, so we have
2724 to retrieve the class-wide type of the non-limited view of the Etype.
2725 New attributes Static_Initialization and Static_Elaboration_Desired.
2726 Remove the pragma Thread_Body, and the associated flag
2727 Is_Thread_Body in entities, and all related code.
2728 (Suppress_Value_Tracking_On_Call): New flag
2729 E_Exception has Esize and Alignment fields
2730 (Universal_Aliasing): New function.
2731 (Set_Universal_Aliasing): New procedure.
2732 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
2733 (Check_Nested_Access): New procedure.
2734 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
2735 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
2736 (Related_Interface): New attribute. Present in dispatch table pointer
2737 components of records. Set to point to the entity of the corresponding
2739 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
2740 (Original_Access_Type): Remove, not needed.
2741 (Root_Type): Handle properly subtypes of class-wide-types.
2744 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
2745 class-wide types visible through limited-with clauses.
2746 (Try_Primitive_Operation): When examining all primitive operations of a
2747 tagged type, do not consider subprograms labeled as hidden unless they
2748 belong to a private generic type with a tagged parent.
2749 (Try_Object_Operation): Extensive rewriting, to handle properly various
2750 overloading cases, when several ancestors may have class-wide operations
2751 that are possible candidates, and when the overloaded functions return
2752 array types and have defaulted parameters so that the call may be
2753 interpreted as an indexing.
2754 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
2755 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
2756 successive actuals before analyzing the call itself.
2757 (Try_Primitive_Operation): A primitive operation is compatible with the
2758 prefix if the prefix has a synchronized type and the type of the formal
2759 is its corresponding record, as can be the case when the primitive
2760 operation is declared outside of the body of the type.
2761 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
2762 perform homonym traversal, looking for class-wide operation matches
2763 (formerly done in statements of Try_Class_Wide_Operation). Matches on
2764 access parameters are now restricted to anonymous access types.
2765 (Mark_Allocator): An allocator with a discriminant association parent is
2767 (Try_One_Prefix_Interpretation): If the type of the object is
2768 incomplete, as can be happen when it is a limited view obtained through
2769 a limited_with_clause, the selected component is not part of a prefixed
2771 (Complete_Object_Operation): Diagnose properly an object that is not
2772 aliased when the corresponding controlling formal is an access
2774 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
2775 ambiguous calls in prefixed notation, where two primitives differ only
2776 in that the controlling argument of one is an access parameter.
2778 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
2779 whether a function that returns an unconstrained type can be inlined.
2780 (Process_Formals): Diagnose properly the illegal use of an incomplete
2781 type in the profile of an access_to_subprogram declaration.
2782 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
2783 operations are attached to the corresponding record.
2784 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
2785 When processing a primitive of a concurrent type which implements an
2786 interface change the type of all controlling formals to that of the
2787 corresponding record type.
2788 (Check_Synchronized_Overriding): Relax the conditional logic when trying
2789 to determine the tagged type to which a primitive belongs.
2790 (Check_Conventions): Capture condition to ignore a primitive operation
2791 (which is shared between the loop in Check_Conventions and the one in
2792 Check_Convention) in a new local function Skip_Check.
2793 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
2794 confusion with Check_Conventions' own Prim_Op local variable.
2795 (Create_Extra_Formals): Test for a tagged result type rather than a
2796 controlling result when determining whether to add a BIP_Alloc_Form
2797 formal and a BIP_Final_List formal to the function.
2798 (Check_Conformance); For parameters that are anonymous access types,
2799 subtype conformance requires that the not null and the constant
2800 indicators must match
2801 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
2802 to retrieve the appropriate type when processing a concurrent type
2803 declared within a generic. Minor comment reformatting. Change invocation
2804 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
2806 (Analyze_Subprogram_Body): If the return type of a function is an
2807 anonymous access to the limited view of a class-wide type, and the
2808 non-limited view of the type is available, update the type of the
2809 function so that code can be generated.
2810 (Process_Formals): In case of access-subtype itype whose designated
2811 type is also an itype (situation that happens now with access to
2812 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
2813 attribute to avoid backend problems.
2814 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
2815 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
2816 anonymous types' designated types are same before testing
2817 Subtypes_Statically_Match.
2818 (Create_Extra_Formals): Test for a named access parameter that is a
2819 controlling formal as an additional condition for adding an
2820 accessibility level formal. This can occur in the subp type created for
2821 dispatching calls in Expand_Dispatching_Call, and allows calling
2822 Create_Extra_Formals from that procedure rather than special-casing the
2823 extra formals there.
2824 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
2825 when the function has a controlling result.
2826 (Check_Returns): Add much more knowledge of the optimization of local
2827 raise statements to gotos, to retain proper warnings in this case.
2828 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
2829 nodes when looking for last statement.
2831 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
2832 class-wide types visible through limited with clauses.
2833 (Add_One_Interp): If the operands are anonymous access types, the
2834 predefined operator on universal_access is immediately visibles
2835 (Find_Unique_Type): Handle anonymous access to subprogram types just as
2836 other anonymous access types.
2837 (Disambiguate): Take into account CIL convention.
2838 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
2840 2007-06-06 Robert Dewar <dewar@adacore.com>
2842 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
2843 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
2844 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
2845 Fix lower bound of tables.
2848 * nlists.adb: Ditto.
2849 (Prev_Node, Next_Node): Change index type to Int so that it properly
2850 covers the range First_Node_Id - 1 up.
2852 2007-06-06 Javier Miranda <miranda@adacore.com>
2853 Ed Schonberg <schonberg@adacore.com>
2854 Bob Duff <duff@adacore.com>
2855 Hristian Kirtchev <kirtchev@adacore.com>
2857 * exp_aggr.ads, exp_aggr.adb:
2858 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
2859 in extension aggregates.
2860 (Flatten): Other conditions being met, an aggregate is static if the
2861 low bound given by component associations is different from the low
2862 bound of the base index type.
2863 (Packed_Array_Aggregate_Handled): If the component type is itself a
2864 packed array or record, the front-end must expand into assignments.
2865 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
2866 Init_Pr, instead of Ancestor_Is_Expression.
2867 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
2868 coextension chain root, either generate a list controller or use the
2869 already existing one.
2870 (Static_Array_Aggregate): New procedure to construct a positional
2871 aggregate that can be handled by the backend, when all bounds and
2872 components are compile-time known constants.
2873 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
2874 types covering interface types into assignments.
2875 (Replace_Type): move to Build_Record_Aggr_Code.
2876 (Expand_Record_Aggr_Code): if the target of the aggregate is an
2877 interface type, convert to the definite type of the aggregate itself,
2878 so that needed components are visible.
2879 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
2880 components and the context is an extended return statement do not
2881 create a transient block for it, to prevent premature finalization
2882 before the return is executed.
2883 (Gen_Assign): Do not generate a call to deep adjust routine if the
2884 component type is itself an array of controlled (sub)-components
2885 initialized with an inner aggregate.
2886 (Component_Check): New name for Static_Check. This name is now more
2887 appropriate, and documentation is added which was missing.
2888 (Component_Check): Add test for bit aligned component value
2889 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
2890 Tagged_Comps, name is more appropriate given added function below.
2891 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
2893 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2894 Javier Miranda <miranda@adacore.com>
2895 Robert Dewar <dewar@adacore.com>
2897 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
2898 Terminated: Add unchecked type conversion from System.Address to
2899 System.Tasking.Task_Id when calling the predefined primitive
2901 Disable new Ada 05 accessibility check for JVM.NET targets, which
2902 cannot be implemented in a practical way.
2903 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
2904 the sources always references the tag of the actual object. Therefore,
2905 if 'Tag is applied in the sources to class-wide interface objects we
2906 generate code that displaces "this" to reference the base of the object.
2907 (Expand_N_Attribute_Reference, case Size): Return specified size if
2909 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
2910 has code that displaces the pointer of the object to manage interface
2911 types. However this code must not be executed when the prefix is a
2912 subprogram. This bug caused the wrong expansion of the internally
2913 generated assignment that fills the dispatch table when the primitive
2914 is a function returning a class-wide interface type.
2915 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
2916 Set_Attribute_Name for Name_Unaligned_Valid.
2918 2007-06-06 Ed Schonberg <schonberg@adacore.com>
2919 Gary Dismukes <dismukes@adacore.com>
2921 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
2922 If the initialization is the equivalent aggregate of the initialization
2923 procedure of the type, do not remove it.
2924 (Expand_N_Attribute_Definition_Clause): Exclude access variables
2925 initialized to null from having their expression reset to empty and
2926 note this exception in the comment.
2928 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2929 Robert Dewar <dewar@adacore.com>
2930 Ed Schonberg <schonberg@adacore.com>
2931 Gary Dismukes <dismukes@adacore.com>
2933 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
2934 Add "with" and "use" clauses for Sem_Attr.
2935 (Expand_Current_Value): Do not replace occurences of attribute
2936 references where the prefix must be a simple name.
2938 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
2939 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
2940 Attribute_Requires_Simple_Name_Prefix.
2941 (Name_Modifies_Prefix): Body of new function.
2942 (Requires_Simple_Name_Prefix): Body of new function.
2943 (Resolve_Attribute, case Access): Improve error message for case of
2944 mismatched conventions.
2945 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
2947 (Analyze_Attribute, case 'Access): If the type of the prefix is a
2948 constrained subtype for a nominal unconstrained type, use its base type
2949 to check for conformance with the context.
2950 (Resolve_Attribute): Remove test of the access type being associated
2951 with a return statement from condition for performing accessibility
2952 checks on access attributes, since this case is now captured by
2953 Is_Local_Anonymous_Access.
2954 (Analyze_Access_Attribute): Set Address_Taken on entity
2955 (Analyze_Attribute, case Address): Set Address_Taken on entity
2956 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
2957 validating an access attribute whose prefix is a current instance.
2958 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
2959 applied to dispatching operations, if freezing is required then we set
2960 the attribute Has_Delayed_Freeze in the prefix's entity.
2961 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
2962 current scope if access of local subprogram taken
2963 (Analyze_Access_Attribute): Check legality of self-reference even if the
2964 expression comes from source, as when a single component association in
2965 an aggregate has a box association.
2966 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
2967 the prefix if it is a protected operation and the attribute is
2968 Unrestricted_Access.
2969 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
2970 reference to the base type of the context, to force a constraint check
2971 when the context is an access subtype with an explicit constraint.
2972 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
2973 node is rewritten as an interface conversion. leave unanalyzed after
2974 resolution, to ensure that type checking against the context will take
2977 2007-06-06 Ed Schonberg <schonberg@adacore.com>
2978 Javier Miranda <miranda@adacore.com>
2979 Robert Dewar <dewar@adacore.com>
2981 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
2982 wrapper when the full view of the controlling type of an inherited
2983 function that dispatches on result implements interfaces.
2984 (Expand_N_Object_Declaration): In cases where the type of the
2985 declaration is anonymous access, create finalization list for it.
2986 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
2987 if the object has no explicit initialization, to match description of
2988 functionality of pragam Persistent_BSS.
2989 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
2990 new function to build static aggregates, to replace initialization call
2991 when static initialization is desired.
2992 (Freeze_Type): Generate a list controller for an access type whenever
2993 its designated type has controlled anonymous access discriminants.
2994 (Build_Equivalent_Aggregate): New procedure to compute a static
2995 aggregate to be used as default initialization for composite types,
2996 instead of a generating a call to the initialization procedure for the
2998 (Build_Initialization_Call): When available, replace a call to the
2999 initialization procedure with a copy of the equivalent static aggregate
3001 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
3002 declarations for objects of a class-wide interface type, rather than
3003 just identifiers, to prevent visibility problems.
3004 (Expand_N_Object_Declaration): When expanding the declaration for an
3005 object of a class-wide interface type, preserve the homonym chain of
3006 the original entity before exchanging it with that of the generated
3007 renaming declaration.
3008 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
3009 active, because there is no way to handle the exception.
3010 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
3011 to do a minimum decoration of the Access_Disp_Table list.
3012 (Expand_Record_Controller): Avoid the addition of the controller between
3013 the component containing the tag of a secondary dispatch table and its
3014 adjacent component that stores the offset to the base of the object.
3015 This latter component is only generated when the parent type has
3016 discriminants ---documented in Add_Interface_Tag_Components).
3017 (Apply_Array_Size_Check): Removed, no longer needed.
3018 (Expand_N_Full_Type_Declaration): If the type has anonymous access
3019 components, create a Master_Entity for it only if it contains tasks.
3020 (Build_Init_Procedure): Suppress the tag assignment compiling under
3022 (Freeze_Record_Type): Remove code associated with creation of dispatch
3024 (Init_Secondary_Tags): Update type of actuals when generating calls to
3025 Ada.Tags.Set_Offset_To_Top
3026 (Stream_Operation_OK): Disable use of streams compiling under no
3028 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
3029 if Has_Init_Expression set.
3030 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
3031 Register_Primitive, which provides the same functionality.
3032 (Requires_Init_Proc): Return false in case of interface types.
3033 (Add_Secondary_Tables): Use the new attribute Related_Interface to
3035 (Predefined_Primitive_Freeze): Do not assume that an internal entity
3036 is always associated with a predefined primitive because the internal
3037 entities associated with interface types are not predefined primitives.
3038 Therefore, the call to Is_Internal is replaced by a call to the
3039 function Is_Predefined_Dispatching_Operation.
3040 (Make_Eq_If): When generating the list of comparisons for the
3041 components of a given variant, omit the controller component that is
3042 present if the variant has controlled components.
3044 2007-06-06 Javier Miranda <miranda@adacore.com>
3045 Hristian Kirtchev <kirtchev@adacore.com>
3046 Bob Duff <duff@adacore.com>
3048 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
3049 handle the creation of finalization lists and calls for nested
3050 coextensions when the root of the chains is part of a return statement.
3051 (Inside_A_Return_Statement): New function inside Complete_Coextension_
3053 (Expand_Record_Equality): Skip components that are interface types.
3054 (Displace_Allocator_Pointer): Add missing support for interface subtypes
3055 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
3056 with Rewrite_Coextension. Change the condition for detecting coextension
3058 (Is_Local_Access_Discriminant): Removed.
3059 (Rewrite_Coextension): New routine which rewrites a static coextension
3060 as a temporary and uses its unrestricted access in the construction of
3062 (Complete_Coextension_Finalization): New routine. Generate finalization
3063 attachment calls to all delayed coextensions.
3064 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
3065 the allocator is not a coextension itself and has delayed coextensions.
3066 If the current allocator is controlled, but also a coextension, delay
3067 the generation of the finalization attachment call.
3068 Rename local variable "Node" to "Nod" in order to avoid confusion with
3070 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
3071 limited types that are not inherently limited. Such an allocator is
3072 illegal, but is generated by the expander for a return statement, to
3073 copy the result onto the secondary stack. This is the only case where a
3074 limited object can be copied. Generate code to displace the pointer
3075 to the object if the qualified expression is a class-wide interface
3076 object. Such displacement was missing and hence the copy of the object
3078 (Apply_Accessibility_Check): Handle allocated objects initialized in
3080 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
3081 and Expand_Allocator_Expression. Allocating class-wide interface objects
3082 this routine displaces the pointer to the allocated object to reference
3083 the component referencing the corresponding secondary dispatch table.
3084 Expand_Allocator_Expression): Add missing support to allocate class-wide
3085 interface objects initialized with a qualified expression.
3086 (Get_Allocator_Final_List): Test for an anonymous access type that is a
3087 function result type, and use the finalization list associated with the
3088 function scope in that case (such an anonymous type should not be
3089 treated like an access parameter's type).
3091 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3092 Gary Dismukes <dismukes@adacore.com>
3093 Javier Miranda <miranda@adacore.com>
3095 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
3096 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
3097 required exception handler.
3098 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
3099 properly the case of a function whose return type is a limited
3100 class-wide interface type. Modify the code of the accessibility
3101 check to handle class-wide interface objects. In this case we need to
3102 displace "this" to reference the primary dispatch table to get access
3103 to the TSD of the object (to evaluate its accessibility level).
3104 (Expand_N_Extended_Return_Statement): Test for a tagged result type
3105 rather than a controlling result as one of the conditions for
3106 generating tests of the implicit BIP_Alloc_Form formal. The
3107 initialization assignment is also handled according to whether the
3108 result is tagged instead of controlling.
3109 In the case where the init assignment is inserted in the "then" part of
3110 the allocation conditional, rewrite the target to be a dereference of
3111 the implicit BIP_Object_Access formal.
3112 If the returned value is unconstrained and created on the secondary
3113 stack, mark the enclosing block and function so that the secondary
3114 stack is not reclaimed on return.
3115 Treat returns from functions with controlling results similarly to
3116 returns from functions with unconstrained result subtypes.
3117 If the object returned is unconstrained, and an allocator must be
3118 created for it, analyze the allocator once the block for the extended
3119 return is installed, to ensure that finalizable components
3120 of the expression use the proper finalization list. Guard the call to
3121 Move_Final_List with a check that there is something to finalize.
3122 (Make_Tag_Ctrl_Assignment): Use "old" handling
3123 of controlled type assignment for virtual machines, since new code uses
3124 unsupported features (such as direct access to bytes in memory).
3126 2007-06-06 Gary Dismukes <dismukes@adacore.com>
3127 Ed Schonberg <schonberg@adacore.com>
3129 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
3130 accessibility actual, check for the case of an aliased object that has
3131 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
3132 we fall into processing for the attribute rather than the name of the
3134 (Expand_Inline_Call): If an actual is a literal, and the corresponding
3135 formal has its address taken in the body, create a temporary to capture
3136 value. If the return type is a limited interface, do not treat the
3137 return value as Controlled.
3138 (Is_In_Place_Function): If the return type is a limited interface,
3139 treat as returning in place. The actual returned object may not always
3140 be limited, but the caller has to assume that it is returned in place.
3141 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
3142 context of an allocator, use the correct finalization chain (that is,
3143 the chain belonging to the access type, rather than the chain belonging
3144 to the current scope).
3145 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
3146 result type rather than a controlling result as a precondition for
3147 adding an allocation form actual to a build-in-place call.
3148 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
3149 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
3150 primitive in the dispatch tables. This work is now done by Make_DT when
3152 (Register_Predefined_DT_Entry): Removed.
3153 (Add_Return): If end label is not present, use sloc of last statement
3154 for generated return statement in procedure, for better gdb behavior
3156 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
3157 object address nodes to ensure proper processing by routines like
3159 (Expand_Call): Fix generation of validity check for parameter
3160 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
3161 the allocation form parameter if the result subtype is constrained,
3162 except when the function has a controlling result.
3163 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
3164 rather than Is_Controlled and Has_Controlled_Component, since we want to
3165 include class-wide result types in this treatment. Also test for a
3166 controlling result, since that also requires passing a finalization
3168 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
3169 even when the result subtype is constrained, to handle calls involving
3170 controlling results.
3171 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
3172 is now called even when the result subtype is constrained, to handle
3173 calls involving controlling results.
3174 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
3175 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
3176 now performs the test).
3177 (Make_Build_In_Place_Call_In_Object_Declaration):
3178 Add_Alloc_Form_Actual_* is now called even when the result subtype is
3179 constrained, to handle calls involving controlling results.
3180 (Add_Return): Accomodate rewritten pattern from local raise to goto
3181 transformation, so that we still recognize an transfer statement
3182 and do the right thing here in that case.
3183 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
3184 and end of subprogram code.
3185 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
3186 support for primitives that are functions (without formals) with a
3188 (Inherited_From_Formal): If the actual subtype has not generic parent
3189 type, it is not an actual for a formal derived type, and there is no
3190 operation to inherit from the formal.
3192 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3193 Thomas Quinot <quinot@adacore.com>
3195 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
3196 inserted cleanup code appropriately for GDB use.
3197 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
3198 exception handler for Deep_Adjust or Deep_Finalize.
3199 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
3200 Raise_From_Controlled_Operation is available, use a call to that
3201 subprogram instead of a plain "raise Program_Error" node to raise
3202 Program_Error if an exception is propagated from an Adjust or Finalize
3204 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
3205 appears in the optional statement list of a triggering alternative, the
3206 scope actions can be inserted directly there, and not in the list that
3207 includes the asynchronous select itself.
3209 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3210 Robert Dewar <dewar@adacore.com>
3211 Hristian Kirtchev <kirtchev@adacore.com>
3213 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
3214 generated exception handler appropriately when debugging generated code.
3215 Deal properly with No_Exception_Propagation restriction mode.
3216 (Expand_N_Abort_Statement): Add an unchecked type conversion from
3217 System.Address to System.Tasking.Task_Id when processing the result of
3218 the predefined primitive _disp_get_task_id.
3219 (Expand_N_Asynchronous_Select): Clarify comment.
3220 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
3221 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
3222 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
3223 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
3224 privals and for generated call to Complete_Entry_Body, for better gdb
3226 (Copy_Result_Type): Utility to construct a parameter and result profile
3227 for protected functions whose return type is an anonymous access to
3229 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
3231 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
3232 point when the local-raise-to-goto transformation has taken place.
3234 2007-06-06 Javier Miranda <miranda@adacore.com>
3235 Nicolas Setton <setton@adacore.com>
3237 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
3238 functionality when the backend is generating code.
3239 Otherwise any serious error
3240 reported by the backend calling the frontend routine Error_Msg
3241 changes the Compilation_Mode to Check_Semantics, disables the
3242 functionality of this routine and causes the generation of
3243 spureous additional errors.
3245 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
3246 debugging information now generated by the compiler for fat-pointer
3248 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
3250 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
3252 2007-06-06 Thomas Quinot <quinot@adacore.com>
3254 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
3255 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
3256 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
3257 For a remote call to a function with a classwide return type, apply an
3258 E.4(18) check to the returned value.
3259 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
3260 stream attributes of the designated type of an RACW, as they are not
3261 dispatching primitive operations.
3263 2007-06-06 Geert Bosch <bosch@adacore.com>
3265 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
3267 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
3269 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
3270 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
3272 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
3274 2007-06-06 Javier Miranda <miranda@adacore.com>
3276 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
3277 attribute compiling package Ada.Tags under No_Run_Time_Mode.
3279 2007-06-06 Javier Miranda <miranda@adacore.com>
3281 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
3282 deallocation of class-wide interface objects.
3283 (Expand_Dispatching_Constructor_Call): Take into account that if the
3284 result of the dispatching constructor is an interface type, the
3285 function returns a class-wide interface type; otherwise the returned
3286 object would be actual. The frontend previously accepted returning
3287 interface types because Expand_Interface_Actuals silently performed
3288 the management of the returned type "as if" it were a class-wide
3290 (Expand_Dispatching_Constructor_Call): Replace call to
3291 Make_DT_Access_Action by direct call to Make_Function_Call.
3293 2007-06-06 Robert Dewar <dewar@adacore.com>
3294 Ed Schonberg <schonberg@adacore.com>
3296 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
3297 compute masking constant, since we now set Esize properly to the
3299 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
3300 to match the alignment.
3301 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
3302 packed arrays of 8 bits or less.
3304 * freeze.adb (Freeze_Entity): When freezing the formals of a
3305 subprogram, freeze the designated type of a parameter of an access type
3306 only if it is an access parameter.
3307 Increase size of C convention enumeration object
3308 (Freeze_Entity, array type case): Make sure Esize value is properly
3309 adjusted for the alignment if it is known.
3310 (Freeze_Entity, array type case): When checking bit packed arrays for
3311 the size being incorrect, check RM_Size, not Esize.
3312 (Freeze_Record_Type): Check for bad discriminated record convention
3313 (In_Exp_Body): Return true if the body is generated for a subprogram
3314 renaming, either an attribute renaming or a renaming as body.
3315 (Check_Itype): If the designated type of an anonymous access component
3316 is a non-protected subprogram type, indicate that it is frozen, to
3317 prevent out-of-scope freeze node at some subsequent call.
3318 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
3319 only if the subprogram is neither imported nor exported, as well as the
3320 NCA descriptor class if the subprogram is exported.
3322 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3323 Arnaud Charlet <charlet@adacore.com>
3324 Robert Dewar <dewar@adacore.com>
3325 Gary Dismukes <dismukes@adacore.com>
3327 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
3328 default initialization on an imported object, when there is no
3329 initialization call generated for it.
3330 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
3333 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
3334 Static_Elaboration_Desired.
3335 Remove pragma Thread_Body.
3336 Implement a new pragma No_Body
3337 Removes the Explicit_Overriding pragma
3338 Remove Optional_Overriding pragma
3339 (Prag): Deal with Universal_Aliasing.
3340 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
3341 Pragma_CIL_Constructor): New names.
3343 * sem_cat.adb (Validate_Object_Declaration): An initialization that
3344 uses the equivalent aggregate of a type must be treated as an implicit
3346 (Get_Categorization): Check a unit for pragma Preelaborate only if it
3347 has none of the other categories.
3348 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
3349 to apply Import to an object renaming declaration.
3351 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
3352 from a C++ class should be declared as limited and that it will be
3353 considererd limited.
3354 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
3355 should be declared as limited and that it will be considererd limited.
3356 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
3357 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
3358 (Analyze_Pragma): Deal with Universal_Aliasing.
3359 (Sig_Flags): Likewise.
3360 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
3361 (Overflow_Checks_Unsuppressed): New flag.
3362 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
3363 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
3364 case of JVM or .NET targets, and compiling user code.
3365 Add debugging convenience routine rv
3367 2007-06-06 Robert Dewar <dewar@adacore.com>
3369 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
3371 (Build_Elementary_Input_Call): For floating-point use right type in the
3372 absence of strange size or stream size clauses.
3373 (Build_Elementary_Write_Call): Same fix
3374 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
3375 set to value that does not match base type size.
3377 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3379 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
3380 object of a limited type can be initialized with a call to a function
3381 that returns in place. If the limited type has unknown discriminants,
3382 and the underlying type is a constrained composite type, build an actual
3383 subtype from the function call, as is done for private types.
3384 (Side_Effect_Free): An expression that is the renaming of an object or
3385 whose prefix is the renaming of a object, is not side-effect free
3386 because it may be assigned through the renaming and its value must be
3387 captured in a temporary.
3388 (Has_Controlled_Coextensions): New routine.
3389 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
3390 as is done for other limited types.
3391 (Non_Limited_Designated_Type): new predicate.
3392 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
3394 Remove all handling of with_type clauses.
3396 * par-ch10.adb: Remove all handling of with_type clauses.
3398 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
3399 checksum if the main source could not be parsed.
3400 (Loat_Unit): When processing a child unit, determine properly whether
3401 the parent unit is a renaming when the parent is itself a child unit.
3402 Remove handling of with_type clauses.
3404 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
3405 (Set_Is_Static_Coextension): New procedure.
3406 (Has_Local_Raise): New function
3407 (Set_Has_Local_Raise): New procedure
3408 (Renaming_Exception): New field
3409 (Has_Init_Expression): New flag
3410 (Delay_Finalize_Attach): Remove because flag is obsolete.
3411 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
3412 Remove all handling of with_type clauses.
3413 (Exception_Junk): Can now be set in N_Block_Statement
3415 2007-06-06 Vincent Celier <celier@adacore.com>
3416 Robert Dewar <dewar@adacore.com>
3418 * frontend.adb (Frontend): Return immediately if the main source could
3419 not be parsed, because of preprocessing errors.
3421 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
3422 (Gnat1drv): Exit with errors if the main source could not be parsed,
3423 because of preprocessing errors.
3424 (Check_Rep_Info): New procedure
3426 2007-06-06 Robert Dewar <dewar@adacore.com>
3428 * g-hesorg.ads, g-heasor.ads,
3429 g-busorg.ads, g-bubsor.ads: Update documentation
3430 GNAT.Heap/Bubble_Sort_G is now pure
3432 2007-06-06 Robert Dewar <dewar@adacore.com>
3434 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
3436 2007-06-06 Robert Dewar <dewar@adacore.com>
3437 Ed Schonberg <schonberg@adacore.com>
3439 * g-comlin.ads, g-comlin.adb:
3440 Add new warning for renaming of function return objects
3442 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
3443 (Tree_Read): Use size of object instead of type'object_size, since the
3444 latter is incorrect for packed array types.
3445 (Tree_Write): Same fix
3447 * opt.ads: Add new warning for renaming of function return objects
3448 (Generating_Code): New boolean variable used to indicate that the
3449 frontend as finished its work and has called the backend to process
3450 the tree and generate the object file.
3451 (GCC_Version): Is now private
3452 (Static_Dispatch_Tables): New constant declaration.
3453 (Overflow_Checks_Unsuppressed): New flag.
3454 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
3455 (List_Closure): New flag for gnatbind (-R)
3456 Zero_Formatting: New flag for gnatbind (-Z)
3457 (Special_Exception_Package_Used): New flag.
3458 (Warn_On_Unrepped_Components): New flag.
3460 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
3461 unit is a compilation unit, rather than relying on its scope, so that
3462 Standard can be renamed.
3463 (Analyze_Object_Renaming): Add new warning for renaming of function
3465 Also reject attempt to rename function return object in Ada 83 mode.
3466 (Attribute_Renaming): In case of tagged types, add the body of the
3467 generated function to the freezing actions of the type.
3468 (Find_Type): A protected type is visible right after the reserved word
3469 "is" is encountered in its type declaration. Set the entity and type
3470 rather than emitting an error message.
3471 (New_Scope): Properly propagate Discard_Names to inner scopes
3472 (Check_Nested_Access): New procedure.
3473 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
3474 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
3476 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
3477 Add new warning for renaming of function return objects
3478 (Check_References): Suppress warnings for objects whose type or
3479 base type has Warnings suppressed.
3480 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
3481 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
3483 2007-06-06 Vincent Celier <celier@adacore.com>
3484 Emmanuel Briot <briot@adacore.com>
3485 Olivier Hainque <hainque@adacore.com>
3487 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
3488 absolute value of Header.Block_Size when displaying the freed physical
3490 (Allocate): Compute Storage_Address using Integer_Address, not
3491 Storage_Offset, because the range of Storage_Offset may not be large
3493 (Configure): New parameter Low_Level_Traces
3494 (Allocate, Deallocation, Free_Physically): Added low-level traces
3495 (Configure): new parameter Errors_To_Stdout.
3496 (Output_File): new subprogram
3497 (Deallocate, Dereference): Send error messages to the proper stream
3498 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
3499 documented. Previous code would send it to the current output file
3500 defined in GNAT.IO, which might not be stdout
3501 (Is_Valid): Adjust comment to mention that a positive reply means that
3502 Header_Of may be used to retrieve the allocation header associated with
3503 the subprogram Storage address argument. Return False early if this
3504 address argument is misaligned.
3506 2007-06-06 Vincent Celier <celier@adacore.com>
3508 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
3510 (ASIS_Main): New global variable
3511 (Get_Closure): New procedure
3512 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
3513 check, metric or pretty. Call Get_Closure in this case.
3514 (Check_Files): For GNAT LIST, check all sources of all projects when
3515 All_Projects is True.
3516 (GNATCmd): Accept -U for GNAT LIST
3518 2007-06-06 Vincent Celier <celier@adacore.com>
3520 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
3522 Correct error message when invocation of the linker fails
3523 Add explicit size clause for the C imported variables
3524 Object_List_File_Supported and Using_GNU_Linker to emphasize that
3525 we expect char size.
3526 Read target parameters earlier, since this is needed to set
3527 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
3530 2007-06-06 Vincent Celier <celier@adacore.com>
3533 Add 3 spaces before the default project directory when displaying
3534 the project search path.
3535 Add new command line switch '-l' to display license information.
3537 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
3539 * gmem.c: Add support for timestamps on memory operations.
3541 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
3542 operations (not used currently, just foundation for future
3543 enhancements). Add possibility to perform full dump of gmem.out file.
3544 (Print_Back_Traces): Declare accesses to root arrays constants since
3545 they aren't modified.
3546 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
3548 2007-06-06 Vincent Celier <celier@adacore.com>
3550 * gnatsym.adb: Update Copyright notice
3551 (Parse_Cmd_Line): Accept new switch -D
3552 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
3555 * prj.ads (Policy): New policy Direct
3556 (Yes_No_Unknown): New enumeration type
3557 (Project_Data): New component Libgnarl_Needed
3559 * prj-nmsc.adb (Check_For_Source): When recording a source file make
3560 use the untouched pathname casing.
3561 (Get_Directories): Ensure that the Display_Exec_Directory is using the
3562 proper casing on non case-sensitive platforms like Windows.
3563 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
3564 on all platforms, as it is not possible to know which one is allowed
3565 before processing the project files.
3566 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
3567 specified when symbol policy is Direct. Check that when there is a
3568 symbol file defined (either by default or with attribute
3569 Library_Symbol_File) it is not the same as the reference symbol file.
3570 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
3571 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
3573 (Record_Ada_Source): Record a source that has been locally removed in an
3576 * symbols.ads (Policy): New policy Direct
3578 * symbols-vms.adb (Initialize): Take new policy Direct in case
3581 2007-06-06 Vincent Celier <celier@adacore.com>
3583 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
3584 Correct obvious bug (return Dir; instead of return Directory;).
3585 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
3587 2007-06-06 Thomas Quinot <quinot@adacore.com>
3589 * g-pehage.adb (Produce): Open output files in Binary mode, so that
3590 they have UNIX line endings (LF only) even on Windows, and thus pass
3591 all GNAT style checks.
3593 2007-06-06 Emmanuel Briot <briot@adacore.com>
3595 * g-regpat.adb (Quote): Fix improper quoting of '.'
3597 2007-06-06 Thomas Quinot <quinot@adacore.com>
3599 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
3600 default, set False on a per-runtime basis.
3601 (Need_Netdb_Buffer): New constant.
3603 * g-socket.ads, g-socket.adb: Import new package
3604 GNAT.Sockets.Thin.Task_Safe_NetDB.
3605 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
3606 binding to obtain proper message.
3607 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
3608 Replace various occurrences of Arry (Arry'First)'Address with the
3609 equivalent Arry'Address (GNAT always follows implementation advice from
3611 (Get_Host_By_Address, Get_Host_By_Name,
3612 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
3613 instead, rely on platform-specific task safe netdb operations provided
3616 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
3617 parameter Process_Blocking_IO.
3618 (Host_Error_Messages): Add stub body.
3619 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3620 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
3621 Safe_Getservbyport): Move functions into new child package
3623 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
3624 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
3625 (In_Addr): Add alignment clause.
3627 2007-06-06 Robert Dewar <dewar@adacore.com>
3629 * g-trasym.ads, g-traceb.ads: Update list of supported targets
3630 Add note about symbolic traceback
3632 2007-06-06 Pascal Obry <obry@adacore.com>
3634 * hostparm.ads (Normalized_CWD): Use the host directory separator
3635 instead of the hardcoded forward slash which is not the proper
3636 character on Windows for example.
3639 2007-06-06 Vincent Celier <celier@adacore.com>
3640 Arnaud Charlet <charlet@adacore.com>
3642 * a-clrefi.adb, a-clrefi.ads: New files
3644 * impunit.adb: Add s-os_lib in the list of user visible units.
3645 (Non_Imp_File_Names_95): Add a-clrefi to this list
3646 Remove obsolete run-time entries.
3647 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
3648 "a-exetim" -- Ada.Execution_Time
3649 "a-extiti" -- Ada.Execution_Time.Timers
3651 * mlib-prj.ads, mlib-prj.adb
3652 (Build_Library): Use untouched object dir and library dir. At the
3653 same time makes sure that the checks are done using the canonical
3654 form. Removes hard-coded directory separator and use the proper host
3656 (Process_Project): Do not look in object directory to check if libgnarl
3657 is needed for a library, if there is no object directory.
3658 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
3660 (Build_Library): When invoking gnatbind, use a response file if the
3661 total size of the arguments is too large.
3663 * Makefile.rtl: (g-sttsne): New object file.
3664 Add entry for a-clrefi, s-utf_32, System.Exceptions
3666 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
3667 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
3668 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
3669 Change g-string to s-string, g-os_lib to s-os_lib
3670 Change all g-utf_32 references to s-utf_32
3672 2007-06-06 Tristan Gingold <gingold@adacore.com>
3673 Olivier Hainque <hainque@adacore.com>
3675 * init.c: Do not adjust IP of an imported VMS exception of ia64.
3676 LIB$STOP is called to raise an exception and the IP of the exception
3677 is the instruction right after the call.
3678 (__gnat_adjust_context_for_raise, AIX): Implement.
3679 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
3680 adjust_context_for_raise before Raise_From_Signal_Hanler.
3681 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
3682 siginfo is passed to the handler, necessary to let the zcx propagation
3683 engine unwind past it.
3685 2007-06-06 Olivier Hainque <hainque@adacore.com>
3687 * initialize.c (__gnat_initialize for vxworks): Update documentation
3688 on the ZCX support, using different sets of crtstuff objects than with
3691 2007-06-06 Robert Dewar <dewar@adacore.com>
3693 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
3695 (Layout_Type): Fix recomputation of size from alignment.
3697 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3698 Javier Miranda <miranda@adacore.com>
3700 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
3701 association in an instance.
3702 (Copy_Generic_Node): If the node is a string literal, no need to copy
3704 (Is_Generic_Formal): For a formal subprogram, the declaration is the
3705 grandparent of the entity.
3706 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
3707 to simplify handling of formal interfaces that derive from other formal
3709 (Instantiate_Subprogram_Body): The defining unit name of the body of
3710 the instance should be a defining identifier.
3711 (Install_Formal_Packages): make global to the package, for use in
3712 instantiations of child units.
3713 (Analyze_Package_Instantiation): Do not attempt to set information on an
3714 enclosing master of an entry when expansion is disabled.
3715 (Instantiate_Type): If the actual is a tagged synchronized type and the
3716 generic ancestor is an interface, create a generic actual for the
3717 corresponding record.
3718 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
3719 declaration, to ensure that the interface list is processed correctly.
3720 (Inline_Instance_Body): If enclosing scope is an instance body, remove
3721 its entities from visibiility as well.
3722 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
3723 given with a named association, analyze the expression only, not the
3724 discriminant association itself.
3725 (Reset_Entity): If the analysis of a selected component is transformed
3726 into an expanded name in the prefix of a call with parameters, do not
3727 transform the original node into an expanded name, to prevent visibility
3728 errors in the case of nested generics.
3729 (Check_Private_View): For an array type, check whether the index types
3730 may need exchanging.
3732 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3733 Vincent Celier <celier@adacore.com>
3735 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
3736 since both are separated.
3737 Add support for imported CIL packages.
3738 Add further special handling of "value_type" for CIL.
3739 Add special handling of pragma Import for CIL.
3741 * make.ads, make.adb: When switch -eS is used, direct all outputs to
3742 standard output instead of standard error, except errors.
3743 (Absolute_Path): Use untouched casing for the parent directory.
3744 (Add_Library_Search_Dir): Use the untouched directory name.
3745 (Add_Source_Search_Dir): Idem.
3746 (Change_To_Object_Directory): Update output to use proper casing.
3747 (Create_Binder_Mapping_File): Use the untouched filename to set
3749 (Gnatmake): Use untouched library and executable directory names.
3750 (Insert_Project_Sources): Use untouched filename for spec and body.
3751 (Is_In_Object_Directory): Use untouched object directory.
3752 (Mark_Directory): Idem.
3753 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
3754 contains the non-canonical filename in all cases.
3755 (Change_To_Object_Directory): In verbose mode, display the name of the
3756 object directory we're changing to.
3757 (Compile_Sources): Make sure, when a project file is used, to compile
3758 the body of the unit, when there is one, even when only the spec is
3759 recorded in an ALI file.
3760 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
3762 (Report_Compilation_Failed): New procedure
3763 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
3764 procedures moved from the spec to the body.
3765 (Extract_Failure): Removed, not used
3766 Replace explicit raises of exception Bind_Failed and Link_Failed with
3767 calls to Make_Failed with the proper message.
3768 Replace explicit raises of exception Compilation_Failed with calls to
3769 procedure Report_Compilation_Failed.
3770 (Initialize): Create mapping files unconditionally when using project
3773 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
3774 Pragma_CIL_Constructor): New names.
3776 * targparm.ads, targparm.adb
3777 (Compiler_System_Version): Removed, no longer used.
3778 (Get_Target_Parameters): Relax checks on system.ads validity. Add
3779 handling of two new system flags: JVM and CLI.
3781 2007-06-06 Jose Ruiz <ruiz@adacore.com>
3782 Arnaud Charlet <charlet@adacore.com>
3784 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
3785 time, use the default s-interr body that provides interrupt support
3787 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
3788 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
3789 g-soccon.ads, and s-taprop.adb for the marte run time.
3790 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
3791 timers are supported on marte.
3792 (EH_MECHANISM for marte): Do not use ZCX.
3793 (THREADSLIB for marte): Use -lmarte.
3794 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
3795 Add mlib-tgt-specific.o to gnatmake objects
3796 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
3798 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
3799 6, either kernel or rtp, use a specialized version of s-osinte.ads.
3801 2007-06-06 Pascal Obry <obry@adacore.com>
3803 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
3805 2007-06-06 Vincent Celier <celier@adacore.com>
3807 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
3808 separator, use instead the proper host directory separator.
3809 (Copy_ALI_Files): Make sure that an already existing ALI file in the
3810 ALI copy dir is writable, before doing the copy.
3812 * mlib-utl.ads, mlib-utl.adb:
3813 (Gcc): If length of command line is too long, put the list of object
3814 files in a response file, if this is supported by the platform.
3815 (Ar): If invocation of the archive builder is allowed to be done in
3816 chunks and building it in one shot would go above an OS dependent
3817 limit on the number of characters on the command line, build the archive
3820 2007-06-06 Vincent Celier <celier@adacore.com>
3822 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
3823 of specified object file is not equal to base name of source.
3825 2007-06-06 Javier Miranda <miranda@adacore.com>
3826 Hristian Kirtchev <kirtchev@adacore.com>
3827 Ed Schonberg <schonberg@adacore.com>
3829 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
3830 the full type declaration.
3831 (Analyze_Component_Declaration): Add local variable E to capture the
3832 initialization expression of the declaration. Replace the occurences of
3833 Expression (N) with E.
3834 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
3835 limited interface object with a function call.
3836 (Array_Type_Declaration): If the declaration lacks subtype marks for
3837 indices, create a simple index list to prevent cascaded errors.
3838 (Is_Null_Extension): Ignore internal components created for secondary
3839 tags when checking whether a record extension is a null extension.
3840 (Check_Abstract_Interfaces): Add missing support for interface subtypes
3841 and generic formals.
3842 (Derived_Type_Declaration): Add missing support for interface subtypes
3843 and generic formals.
3844 (Analyze_Object_Declaration): If an initialization expression is
3845 present, traverse its subtree and mark all allocators as static
3847 (Add_Interface_Tag_Component): When looking for components that may be
3848 secondary tags, ignore pragmas that can appear within a record
3850 (Check_Abstract_Overriding): an inherited function that dispatches on
3851 result does not need to be overriden if the controlling type is a null
3853 (Mentions_T): Handle properly a 'class attribute in an anonymous access
3854 component declaration, when the prefix is an expanded name.
3855 (Inherit_Component): If the derivation is for a private extension,
3856 inherited components remain visible and their ekind should not be set
3858 (Find_Type_Of_Object): In the case of an access definition, always set
3859 Is_Local_Anonymous_Access. We were previously not marking the anonymous
3860 access type of a return object as a local anonymous type.
3861 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
3862 range with character literal bounds.
3863 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
3864 (Access_Subprogram_Declaration): Indicate that the type declaration
3865 depends on an incomplete type only if the incomplete type is declared
3867 (Analyze_Subtype_Declaration): Handle properly subtypes of
3868 synchronized types that are tagged, and that may appear as generic
3870 (Access_Subprogram_Declaration): An anonymous access to subprogram can
3871 appear as an access discriminant in a private type declaration.
3872 (Add_Interface_Tag_Components): Complete decoration of the component
3873 containing the tag of a secondary dispatch table and the component
3874 containing the offset to the base of the object (this latter component
3875 is only generated when the parent type has discriminants --as documented
3877 (Inherit_Components): Use the new decoration of the tag components to
3878 improve the condition that avoids inheriting the components associated
3879 with secondary tags of the parent.
3880 (Build_Discriminanted_Subtype): Indicate to the backend that the
3881 size of record types associated with dispatch tables is known at
3883 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
3884 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
3885 to include task, protected, and synchronized interfaces as limited
3887 (Process_Discriminants): Remove the setting of
3888 Is_Local_Anonymous_Access on the type of (anonymous) access
3889 discriminants of nonlimited types.
3890 (Analyze_Interface_Type_Declaration): Complete the decoration of the
3891 class-wide entity it is is already present. This situation occurs if
3892 the limited-view has been previously built.
3893 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
3895 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
3898 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3900 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
3901 of the type that specify the position of interface tags when the type
3902 inherits discriminated array components from the parent type.
3903 If a component is initialized with a box, check for the presence of a
3904 default expression in its declaration before using its default
3905 initialization procedure.
3906 (Resolve_Record_Aggregate): If a component is box-initialized, and the
3907 component type has a discriminants, create a partial aggregate for it
3908 by copying the discriminants of the component subtype.
3909 Reject attempt to initialize a discriminant with a box.
3910 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
3911 associated with dispatch tables is known at compile time.
3912 (Get_Value): If an association in a record aggregate has a box
3913 association, and the corresponding record component has a default
3914 expression, always copy the default expression, even when the
3915 association has a single choice, in order to create a proper
3916 association for the expanded aggregate.
3918 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3919 Robert Dewar <dewar@adacore.com>
3921 * par-ch12.adb (P_Generic_Associations): The source position of an
3922 Others association is that of the others keyword, not that of the token
3923 that follows the box.
3924 (P_Formal_Type_Definition): Handle formal access types that carry a
3927 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
3928 multiple identifier are present, save Scan_State before scanning the
3929 colon, to ensure that separate trees are constructed for each
3931 (P_Identifier_Declarations): For object declaration, set new flag
3932 Has_Init_Expression if initialization expression present.
3933 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
3934 Improve NOT NULL error messages
3936 2007-06-06 Robert Dewar <dewar@adacore.com>
3938 * par-ch4.adb: (P_Name): Recover from literal used as name
3940 2007-06-06 Vincent Celier <celier@adacore.com>
3942 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
3944 In the "not" case, recursive call with Complemented set to True.
3945 Do not allow "or" or "and" operators when Complemented is True.
3947 2007-06-06 Vincent Celier <celier@adacore.com>
3949 * prj.adb (Project_Empty): Gives default value for new component
3952 * prj-attr.ads: Minor reformatting
3954 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
3955 directory using the untouched casing.
3956 (For_All_Source_Dirs): Idem.
3958 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
3959 directories specified with switches -aP.
3960 (Add_Search_Project_Directory): New procedure
3961 (Initialize_Project_Path): Put the directories in table
3962 Search_Directories in the project search path.
3963 (Initialize_Project_Path): For VMS, transform into canonical form the
3966 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3968 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
3969 true if configurable run-time or No_Run_Time is set.
3970 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
3971 processing an unit which is not the one being compiled.
3973 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3975 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
3976 Replace UC by Ada.UC
3978 * s-bitops.adb: Get rid of System.Pure_Exceptions.
3979 Replace UC by Ada.UC
3981 2007-06-06 Robert Dewar <dewar@adacore.com>
3983 * scng.adb: (Check_End_Of_Line): Deal with very long lines
3985 2007-06-06 Robert Dewar <dewar@adacore.com>
3987 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
3988 Remove no longer used nodes.
3990 2007-06-06 Javier Miranda <miranda@adacore.com>
3991 Ed Schonberg <schonberg@adacore.com>
3992 Robert Dewar <dewar@adacore.com>
3994 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
3995 on obsolescent withed unit in case of limited-withed units.
3996 (Analyze_Compilation_Unit): Add guard to code that removed an
3997 instantiation from visibility, to prevent compiler aborts when
3998 instantiation is abandoned early on.
3999 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
4000 current unit being analyzed, and Distinguish local incomplete types
4001 from limited views of types declared elsewhere.
4002 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
4003 to state that the class-wide entity is shared by the limited-view
4005 (Analyze_With_Clause): Improve placement of flag for case of
4007 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
4008 manner similar to GNAT.Current_Exception. This is a violation of
4009 restriction (No_Exception_Propagation), and also inhibits the
4010 optimization of local raise to goto.
4011 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
4012 and if so set Most_Recent_Exception_Used flag in Opt, and also check
4013 for violation of restriction No_Exception_Propagation.
4015 2007-06-06 Javier Miranda <miranda@adacore.com>
4016 Hristian Kirtchev <kirtchev@adacore.com>
4017 Gary Dismukes <dismukes@adacore.com>
4019 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
4020 use of entity Exception_Occurrence if it is not available in the
4023 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
4024 concurrent types are declared within an Ada 2005 generic, build their
4025 corresponding record types since they are needed for overriding-related
4027 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
4028 protected type does not implement a task interface or a nonlimited
4030 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
4031 type does not implement a protected interface or a nonlimited interface.
4032 (Single_Task_Declaration, Single_Protected_Declaration): use original
4033 entity for variable declaration, to ensure that debugging information
4034 is correcty generated.
4035 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
4036 routines if the expander is not active.
4037 (Analyze_Task_Body): Mark all handlers to stop optimization of local
4038 raise, since special things happen for task exception handlers.
4040 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
4041 concurrent types declared within a generic.
4042 (Check_Dispatching_Operation): Do not emit warning about late interface
4043 operations in the context of an instance.
4044 (Check_Dispatching_Call): Remove restriction against calling a
4045 dispatching operation with a limited controlling result.
4046 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
4047 Register_Interface_DT_Entry by calls to Register_Primitive.
4048 (Check_Dispatching_Formals): Handle properly a function with a
4049 controlling access result.
4051 2007-06-06 Robert Dewar <dewar@adacore.com>
4052 Arnaud Charlet <charlet@adacore.com>
4054 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
4055 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
4056 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
4057 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
4058 message when using a VM, since this attribute is not supported.
4059 (Analyze_Record_Representation_Clause): Give unrepped component warnings
4061 * usage.adb: Add new warning for renaming of function return objects
4062 Indicate that -gnatwp and -gnatwP concern front-end inlining
4063 Add line for -gnatyg
4064 Add usage information for -gnatw.c/C
4066 2007-06-06 Robert Dewar <dewar@adacore.com>
4067 Ed Schonberg <schonberg@adacore.com>
4070 (Find_Var): Do not consider function call in test for infinite loop
4071 warning if warnings set off for function entity.
4072 (One_Bound): Do not create a temporary for a loop bound if it is a
4074 (Analyze_Assignment): Traverse the right hand side of an assignment and
4075 mark all allocators as static coextensions.
4076 (Analyze_Assignment): Exempt assignments involving a dispatching call
4077 to a function with a controlling access result from the check requiring
4078 the target to be class-wide.
4080 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4081 Ed Schonberg <schonberg@adacore.com>
4082 Robert Dewar <dewar@adacore.com>
4083 Javier Miranda <miranda@adacore.com>
4085 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
4086 chain of coextensions when an allocator serves as the root of such a
4088 (Propagate_Coextensions): Remove the test for the root being an
4090 (Resolve_Allocator): Add condition to ensure that all future decoration
4091 occurs on an allocator node. Add processing and cleanup for static
4093 (Valid_Conversion): If the operand type is the limited view of a
4094 class-wide type, use the non-limited view is available to determine
4095 legality of operation.
4096 (Ambiguous_Character): move to spec, for use elsewhere.
4097 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
4098 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
4100 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
4101 Do_Division_Check flag explicitly.
4102 (Resolve_Actuals): If the actual is of a synchronized type, and the
4103 formal is of the corresponding record type, this is a call to a
4104 primitive operation of the type, that is declared outside of the type;
4105 the actual must be unchecked-converted to the type of the actual
4106 (Resolve_Call): Kill all current values for any subprogram call if
4107 flag Suppress_Value_Tracking_On_Call is set.
4108 (Resolve_Type_Conversion): Generate error message the the operand
4109 or target of interface conversions come from a limited view.
4110 (Check_Infinite_Recursion): Ignore generated calls
4111 (Check_Allocator_Discrim_Accessibility): New procedure for checking
4112 that an expression that constrains an access discriminant in an
4113 allocator does not denote an object with a deeper level than the
4114 allocator's access type.
4115 (Resolve_Allocator): In the case of an allocator initialized by an
4116 aggregate of a discriminated type, check that associations for any
4117 access discriminants satisfy accessibility requirements by calling
4118 Check_Allocator_Discrim_Accessibility.
4119 (Resolve_Equality_Op): Handle comparisons of anonymous access to
4120 subprogram types in the same fashion as other anonymous access types.
4121 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
4122 message that is not a continuation message.
4123 (Resolve_Type_Conversion): Add missing support for conversion to
4125 (Resolve_Actuals): Introduce a transient scope around the call if an
4126 actual is a call to a function returning a limited type, because the
4127 resulting value must be finalized after the call.
4128 (Resolve_Actuals): If the call was given in prefix notations, check
4129 whether an implicit 'Access reference or implicit dereference must be
4130 added to make the actual conform to the controlling formal.
4132 2007-06-06 Robert Dewar <dewar@adacore.com>
4133 Javier Miranda <miranda@adacore.com>
4135 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
4136 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
4137 overriding of an inherited private subprogram now there is no need to
4138 inherit its dispatching slot and reduce the size of the dispatch table.
4139 Set_All_DT_Position now ensures that the same slot is now assigned to
4140 both entities. This is required to statically build the dispatch table.
4141 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
4142 of calling Set_All_DT_Position to re-evaluate the position of the
4143 entries in the dispatch table. Such reevaluation is not desired if
4144 the tagged type is already frozen.
4146 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4147 Gary Dismukes <dismukes@adacore.com>
4148 Robert Dewar <dewar@adacore.com>
4149 Javier Miranda <miranda@adacore.com>
4151 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
4152 reference acts as an lvalue when the attribute name modifies the prefix
4153 (Is_Coextension_Root): New routine.
4154 (Mark_Static_Coextensions): New routine.
4155 (Type_Access_Level): Revise code for checking the level of the
4156 anonymous access type of a return object.
4157 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
4158 (Matches_Prefixed_View_Profile): Remove the no longer necessary
4159 retrieval of the corresponding controlling record type.
4160 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
4161 concurrent types declared within a generic as well as class wide types.
4162 Emit a mode incompatibility error whenever a protected entry or routine
4163 override an interface routine whose first parameter is not of mode
4164 "out", "in out" or access to variable.
4165 (Overrides_Synchronized_Primitive): Rename to
4166 Find_Overridden_Synchronized_Primitive.
4167 (Collect_Interface_Components): New subprogram that collects all the
4168 components of a tagged record containing tags of secondary dispatch
4170 (Add_Global_Declaration): New procedure
4171 (Abstract_Interface_List): Handle properly the case of a subtype of a
4173 (Type_Access_Level): In the case of a type whose parent scope is a
4174 return statement, call Type_Access_Level recursively on the enclosing
4175 function's result type to determine the level of the return object's
4177 (Build_Elaboration_Entity): Build name of elaboration entity from the
4178 scope chain of the entity, rather than the unit name of the file name.
4179 (Check_Nested_Access): New procedure.
4180 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
4181 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
4182 (Get_Renamed_Entity): Utility routine for performing common operation
4183 of chasing the Renamed_Entity field of an entity.
4185 2007-06-06 Robert Dewar <dewar@adacore.com>
4187 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
4189 (Check_A_Call): Add check for entry call which was causing blowup
4191 2007-06-06 Olivier Hainque <hainque@adacore.com>
4193 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
4194 special code on ia64-vms to handle major incompatibilities between the
4195 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
4196 this routine with a very different set of arguments and expectations on
4199 2007-06-06 Thomas Quinot <quinot@adacore.com>
4201 * socket.c (__gnat_close_signalling_fd): New function.
4202 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
4203 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
4204 New supporting functions for task safe Netdb operations.
4206 2007-06-06 Thomas Quinot <quinot@adacore.com>
4207 Olivier Hainque <hainque@adacore.com>
4209 * a-except-2005.ads, a-except-2005.adb
4210 (Raise_From_Controlled_Operation): New procedure in
4211 (private part of) Ada.Exceptions (standard runtime version). Used to
4212 provide informational exception message when Program_Error is raised as
4213 a result of an Adjust or Finalize operation propagating an exception.
4214 (Rmsg_28): Fix description for E.4(18) check.
4215 (Raise_Current_Excep): Call Debug_Raise_Exception just before
4216 propagation starts, to let debuggers know about the event in a reliable
4218 Take the address of E and dereference to make sure it is homed on stack
4219 and prevent the stores from being deleted, necessary for proper
4220 debugger behavior on "break exception" hits.
4221 (Local_Raise): Moved to System.Exceptions
4223 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
4224 exception message from the current occurrence and raise Program_Error
4225 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
4227 2007-06-06 Jose Ruiz <ruiz@adacore.com>
4228 Arnaud Charlet <charlet@adacore.com>
4230 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
4233 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
4234 priority associated to a lock.
4236 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
4237 assertion to take into account case of no abort restriction.
4238 (Initialize_Protection_Entries): Add initialization for the field
4239 New_Ceiling associated to the protected object.
4240 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
4243 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
4244 since this function needs to be set consistently with Update_Exception.
4246 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
4247 since this function needs to be set consistently with Update_Exception.
4249 * s-taskin.ads: Update comments on
4250 Interrupt_Server_Blocked_On_Event_Flag.
4251 (Unbind_Handler): Fix handling of server_task wakeup
4252 (Server_Task): Set self's state so that Unbind_Handler can take
4253 appropriate actions.
4254 (Common_ATCB): Now use a constant from System.Parameters to determine
4255 the max size of the Task_Image field.
4257 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
4258 Initialize_Analyzer function.
4259 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
4260 take into account case of no abort restriction.
4261 ([Vulnerable_]Complete_Master): Modify assertion.
4263 * s-tataat.adb (Finalize): Use the nestable versions of
4264 Defer/Undefer_Abort.
4266 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
4268 * s-tpobop.ads: Update comments.
4270 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
4271 of locking the object manually, to avoid inconsistencies between
4272 Lock/Unlock_Entry assertions.
4274 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
4276 application and System.Parameters.No_Abort is True.
4277 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
4278 (Unbind_Handler): Fix handling of server_task wakeup
4279 (Server_Task): Set self's state so that Unbind_Handler can take
4280 appropriate actions.
4282 2007-06-06 Thomas Quinot <quinot@adacore.com>
4284 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
4285 declarations instead of an explicit null body, for conciseness.
4287 2007-06-06 Robert Dewar <dewar@adacore.com>
4289 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
4290 illegal aggregate and the type is still Any_Composite.
4291 (Subtypes_Statically_Match): Fix problem of empty discriminant list
4293 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4295 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
4296 to prevent subsequent expansion.
4298 2007-06-06 Robert Dewar <dewar@adacore.com>
4300 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
4302 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4303 Robert Dewar <dewar@adacore.com>
4305 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
4307 (Write_Itype): Handle case of string literal subtype, which
4308 comes up in this context.
4309 (Update_Itype): when debugging expanded code, update sloc of itypes
4310 associated with defining_identifiers and ranges, for gdb use.
4311 (Sprint_Node_Actual): Add static keyword to object or exception
4312 declaration output if Is_Statically_Allocated is True.
4313 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
4314 or task body, so that the tree carries the proper Sloc information for
4316 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
4318 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4320 * s-secsta.adb (Chunk): Ensure this object has a static size known at
4321 compile time, to avoid dynamic memory allocation
4322 (Elaboration code): Only use dynamic memory allocation when needed.
4324 2007-06-06 Quentin Ochem <ochem@adacore.com>
4326 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
4328 (Stack_Analyzer): Added field "Overflow_Guard"
4329 (Task_Result): Added field "Overflow_Guard".
4330 (Index_Str): New constant.
4331 (Task_Name_Str): New constant.
4332 (Actual_Size_Str): New constant.
4333 (Pattern_Array_Element_Size): New constant.
4334 (Get_Usage_Range): New subprogram.
4335 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
4336 Now align the output.
4338 (Initialize): Added value for Overflow_Guard.
4339 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
4340 Update the value of the overflow guard according to the actual
4341 beginning of the pattern array.
4342 (Initialize_Analyzer): Added parameter Overflow_Guard.
4343 Take this parameter into accound when computing the max size.
4344 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
4345 (Report_Result): Removed extra useless procedure.
4346 Updated call to Output_Result.
4347 Moved full computation of the Task_Result here.
4349 2007-06-06 Thomas Quinot <quinot@adacore.com>
4351 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
4352 Thread_Blocking_IO, always True by default, set False on a per-runtime
4354 Add Windows-specific constants
4355 Add new constant Need_Netdb_Buffer.
4356 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
4357 not, whether to use getXXXbyYYY_r.
4359 * gsocket.h: Add new constant Need_Netdb_Buffer.
4360 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
4361 not, whether to use getXXXbyYYY_r.
4363 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
4365 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
4366 than their first call.
4367 Add type Dummy_Communication_Block used in the generation of the pre-
4368 defined dispatching primitive _disp_asynchronous_select.
4369 (Storage_Element): Put Pragma Universal_Aliasing on it.
4371 2007-06-06 Vincent Celier <celier@adacore.com>
4373 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
4376 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
4377 letter if it is not followed by a '/' or a '\'.
4378 (Windows): New Boolean function
4380 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
4382 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
4384 (Containing_Directory): Raise Use_Error when the directory is a root
4386 (Extension): When returning the result, use a conversion to Result_Type,
4387 not a qualification.
4389 2007-06-06 Robert Dewar <dewar@adacore.com>
4391 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
4392 (Set_Style_Check_Options): Recognize new -gnatyg style switch
4394 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
4395 Warn_On_Non_Local_Exception to False, to turn off warnings for
4396 No_Exception_Propagation in ZFP runtime.
4397 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
4399 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
4401 2007-06-06 Vincent Celier <celier@adacore.com>
4403 * switch-b.adb (Scan_Binder_Switches): Add processing for new
4406 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
4407 (Scan_Make_Switches): Recognize new switch -aP
4409 2007-06-06 Matthew Gingell <gingell@adacore.com>
4410 Jose Ruiz <ruiz@adacore.com>
4412 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
4413 VxWorks task descriptor in the Ada run time, call a C subprogram
4414 (__gnat_get_stack_info) that extracts the required information.
4416 * sysdep.c: Back out temporary lynxos workaround.
4417 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
4418 time the stack information associated to the currently executing task.
4419 Only VxWorks systems require this function.
4421 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
4423 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
4424 add the stack bias if the offset is computed from a frame address.
4425 (__gnat_backtrace): Adjust for above change.
4427 2007-06-06 Thomas Quinot <quinot@adacore.com>
4429 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
4430 PE_Non_Transportable_Actual.
4431 (By_Descriptor_Last): New constant.
4432 (By_Copy_Return): Likewise.
4434 2007-06-06 Vincent Celier <celier@adacore.com>
4436 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
4439 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
4440 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
4441 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
4442 Add missing comment for /OPTIMIZE=SPACE
4443 Add entry for OPTIMIZE=SPACE
4444 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
4445 Add documentation for new qualifiers corresponding to -gnatw.c/.C
4447 2007-06-06 Vincent Celier <celier@adacore.com>
4448 Robert Dewar <dewar@adacore.com>
4450 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
4453 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
4454 Document gnatbind switch -a
4455 (case Constructions): Document that variables declarations are allowed
4456 for previously declared variables.
4457 Fix external lib project example
4458 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
4459 Indicate that "#if not X or Y then" is not allowed in input files to
4461 Document gnatw.x and gnatw.X warning flags
4462 Mention -Winline switch to activate warnings when back-end inlining is
4464 Add gnatcheck rule descriptions
4465 Describe how to use the GNAT driver to call a tool on a closure.
4466 Describe how to run project-wide checks or metrics.
4467 Document gnatbind's -R option
4468 Updated to account for Ada 2005 support
4470 * gnat_rm.texi (Case Construction): Allow variable declarations for
4471 previously declared variables.
4472 (Representation Clauses and Pragmas): Lift restriction on alignment
4473 clauses for record types.
4474 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
4475 Document No_Exception_Propagation restriction
4476 Document No_Body pragma
4477 Updated to account for Ada 2005 support; corrected some typos
4478 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
4480 * gnat-style.texi: Make it clear that we never use mode IN for
4481 procedures or functions
4483 * ug_words: Add entries for -gnatw.x and -gnatw.X
4484 Add entries for -gnatw.c/.C
4486 2007-06-06 Pascal Obry <obry@adacore.com>
4487 Vincent Celier <celier@adacore.com>
4489 * makegpr.adb (Add_Archive_Path): Use untouched object and library
4490 dirs and library name.
4491 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
4493 (Build_Library): Idem.
4494 (Compile_Individual_Sources): Idem.
4495 (Compile_Link_With_Gnatmake): Idem.
4496 (Compile_Sources): Idem.
4497 (Get_Imported_Directories): Idem.
4498 (Link_Executables): Idem. Same change for the executable dir.
4499 (Check_Compilation_Needed): C_Source_Path new variable containing
4500 the canonical form of Source_Path to check against the source names
4501 in the dependency file.
4502 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
4503 verbose mode, display the name of the object directory we're changing
4505 (Saved_Switches): New name of table X_Switches
4506 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
4507 (Usage): New line for switch -aP
4508 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
4509 testing if a directory should be added to the search path.
4511 2007-06-06 Javier Miranda <miranda@adacore.com>
4513 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
4514 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
4515 declaration after freezing point of all its associated tagged types;
4516 otherwise such types are frozen too early.
4518 2007-06-06 Robert Dewar <dewar@adacore.com>
4520 * a-reatim.adb: Documentation addition
4522 * g-cgideb.adb: Minor code reorganization
4524 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
4525 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
4526 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
4528 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
4529 function. Change name New_Scope to Push_Scope
4530 (Get_Debug_Flag_K): Remove unused obsolete function.
4532 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
4535 * makeusg.adb: Update Copyright notice
4536 Add line for switch -aP
4538 * makeusg.adb: Fix wording of some usage messages
4540 * s-assert.adb (Raise_Assert_Failure): Add call to
4541 Debug_Raise_Assert_Failure.
4543 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
4544 (2, Standard'Alignment) for compatibility with AAMP (where alignment
4545 is restricted to 1).
4547 * s-wchjis.adb: Remove use of System.Pure_Exceptions
4549 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
4550 node location to No_Location when we're not debugging the expanded
4553 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
4555 * misc.c (enumerate_modes): Consider log2_b to always be one.
4557 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
4559 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
4561 2007-05-02 Pascal Obry <obry@adacore.com>
4563 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
4564 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
4565 encoding support of Stream_IO.
4568 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
4569 filename and corresponding encoding to match the OS requirement.
4570 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
4571 routine will fail on specific devices like CON: AUX: ...
4573 PR ada/29856: Add missing braces
4575 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
4578 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
4580 2007-04-21 Jan Hubicka <jh@suse.cz>
4582 * misc.c (gnat_expand_body): Don't call target for destructors,
4583 avoid redundant check on syntax errors.
4585 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
4587 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
4588 instead of checking GIMPLE_STMT_P in chain_next.
4590 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
4593 * system-linux-alpha.ads: Disable constant condition warning for the
4594 Default_Bit_Order variable.
4595 * system-linux-s390.ads: Likewise.
4596 * system-linux-s390x.ads: Likewise.
4597 * system-linux-sparc.ads: Likewise.
4599 2007-04-06 Javier Miranda <miranda@adacore.com>
4600 Matt Heaney <heaney@adacore.com>
4601 Robert Dewar <dewar@adacore.com>
4603 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4604 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
4605 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
4606 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
4607 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
4608 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
4609 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
4610 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
4611 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
4612 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
4613 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
4614 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
4615 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
4616 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
4617 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
4618 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
4619 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
4620 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
4621 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
4622 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
4623 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
4624 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
4625 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
4626 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
4627 s-taprop-tru64.adb, s-taprop-irix.adb,
4628 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
4629 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
4630 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
4631 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
4632 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
4633 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
4634 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
4635 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
4636 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
4637 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
4638 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
4639 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
4640 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
4641 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
4642 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
4643 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
4644 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
4645 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
4646 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
4647 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
4649 Update documentation.
4652 2007-04-06 Robert Dewar <dewar@adacore.com>
4654 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
4655 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4656 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
4657 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
4658 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
4659 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4660 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
4661 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
4662 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4663 system-hpux-ia64.ads, targparm.adb,
4664 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
4666 * system.ads: Move Functions_Return_By_DSP to obsolete section,
4667 kept for bootstrap purposes only.
4669 2007-04-06 Arnaud Charlet <charlet@adacore.com>
4671 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4672 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
4673 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
4674 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
4676 2007-04-06 Robert Dewar <dewar@adacore.com>
4678 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
4679 (Local_Raise): New dummy procedure called when a raise is converted
4680 to a local goto. Used for debugger to detect that the exception
4683 * debug.adb: Document new d.g flag (expand local raise statements to
4684 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
4686 * exp_sel.adb: Use Make_Implicit_Exception_Handler
4688 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
4689 suppress warnings for unused handlers.
4690 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
4691 warnings for raise statements not handled locally.
4692 (Get_RT_Exception_Entity): New function
4693 (Get_Local_Call_Entity): New function
4694 (Find_Local_Handler): New function
4695 (Warn_If_No_Propagation): New procedure
4696 (Expand_At_End_Handler): Call Make_Implicit_Handler
4697 (Expand_Exception_Handlers): Major additions to deal with local handlers
4698 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
4699 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
4702 * exp_ch11.ads (Get_RT_Exception_Entity): New function
4703 (Get_Local_Call_Entity): New function
4705 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
4706 of restrictions that the binder will never suggest adding.
4708 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
4711 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
4712 be with'ed in the presence of pragma Restriction
4713 (No_Exception_Propagation).
4715 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
4717 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
4718 parameter, then the handler is not a suitable target for a local raise,
4719 and this is a violation of restriction No_Exception_Propagation.
4720 (Analyze_Handled_Statements): Analyze choice parameters in exception
4721 handlers before analyzing statement sequence (needed for proper
4722 detection of local raise statements).
4723 (Analyze_Raise_Statement): Reraise statement is a violation of the
4724 No_Exception_Propagation restriction.
4726 * s-rident.ads: Add new restriction No_Exception_Propagation
4728 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
4729 function, like Make_Exception_Handler but sets Local_Raise_Statements
4731 (Add_Unique_Serial_Number): Deal with case where this is called during
4732 processing of configuration pragmas.
4734 2007-04-06 Thomas Quinot <quinot@adacore.com>
4735 Pat Rogers <rogers@adacore.com>
4736 Pascal Obry <obry@adacore.com>
4738 * g-stsifd-sockets.adb: New file.
4740 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
4741 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
4742 g-socthi-vms.adb: Move signalling
4743 fd management to a nested package, so that they can conveniently be
4744 moved to a subunit that is shared across Windows, VMS, and VxWorks
4745 (Ada implementation) or completed with imported bodies from socket.c
4747 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
4749 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
4750 the signalling file descriptor.
4751 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
4752 signalling file descriptor.
4753 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
4754 instead of creating a pair of sockets for signalling here.
4756 * g-socthi.adb: Ditto.
4757 Set the runtime process to ignore SIGPIPEs on platforms that support
4758 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
4760 * g-socthi-mingw.adb: Ditto.
4761 (WS_Version): Use Windows 2.2.
4762 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
4764 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
4765 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
4767 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
4768 added GNAT byte swapping facility
4769 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
4771 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
4773 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
4775 (__gnat_create_signalling_fds): New subprogram.
4776 Set the runtime process to ignore SIGPIPEs on platforms that support
4777 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
4779 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
4780 Vincent Celier <celier@adacore.com>
4782 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
4783 New version of Ada.Calendar which supports the new upper bound of Ada
4784 time (2399-12-31 86_399.999999999).
4785 The following modifications have been made to the package:
4786 - New representation of time as count of nanoseconds since the start of
4787 Ada time (1901-1-1 0.0).
4788 - Target independent Split and Time_Of routines which service both
4789 Ada 95 and Ada 2005 code.
4790 - Target independent interface to the Ada 2005 children of Calendar.
4791 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
4792 - Handling of non-leap centenial years.
4793 - Updated clock function.
4794 - Updated arithmetic and comparison operators.
4796 * a-caldel.adb (To_Duration): Add call to target independent routine in
4797 Ada.Calendar to handle the conversion of time to duration.
4799 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
4801 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
4803 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
4804 targets do not have a natural time zone, GMT is used as a default.
4805 (__gnat_get_task_options): New.
4807 * a-direct.adb (Modification_Time): Add with and use clauses for
4808 Ada.Calendar and Ada.
4809 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
4810 since it is no longer needed.
4811 (Duration_To_Time): Removed.
4812 (OS_Time_To_Long_Integer): Removed.
4813 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
4814 Formatting Time_Of routines which automatically handle time zones,
4815 buffer periods and leap seconds.
4817 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
4818 target independent routines in Ada.Calendar.
4820 * a-calfor.ads, a-calfor.adb:
4821 Code cleanup and addition of validity checks in various routines.
4822 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
4825 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
4826 independent routine in Ada.Calendar.
4828 2007-04-06 Olivier Hainque <hainque@adacore.com>
4831 (convert_addresses): Adjust prototype and dummy definition to expect an
4832 extra file_name argument.
4834 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
4835 filling the now expected file_name argument with the appropriate
4837 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
4838 (tracebk): Array of void * instead of char *, corresponding to what
4839 convert_addresses expects.
4840 (exename): New static global, to hold the executable file name to be
4841 used in all convert_addresses invocations.
4842 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
4844 (__gnat_gmem_a2l_initialize): Resolve exename.
4845 (__gnat_convert_addresses): Use exename as the convert_addresses
4848 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
4849 "convert_addresses", now expecting a filename argument. Import the
4850 necessary entities to compute the filename to use and pass it to
4853 2007-04-06 Matt Gingell <gingell@adacore.com>
4855 * system-aix.ads: Back out previous change.
4856 (Functions_Return_By_DSP): Removed
4858 2007-04-06 Pascal Obry <obry@adacore.com>
4860 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
4861 or the monotonic used by Ada.Real_Time) to compute the sleep duration
4864 2007-04-06 Jose Ruiz <ruiz@adacore.com>
4866 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
4867 function. Its value changes in different VxWorks versions, and it is
4868 now handled by the function __gnat_get_task_options.
4870 * s-taprop-vxworks.adb (Create_Task): Call the function
4871 __gnat_get_task_options to get the required options for creating a task.
4873 2007-04-06 Pascal Obry <obry@adacore.com>
4874 Thomas Quinot <quinot@adacore.com>
4876 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
4877 dealing with filename.
4878 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
4879 filename from a standard string to a wide-string depending on the
4881 (__gnat_freopen): Idem.
4882 (__gnat_current_time): New function (wrapper for time(3) standard C
4885 * g-os_lib.ads (Current_Time): New function. Returns the current
4886 system time as an OS_Time value.
4888 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
4889 (Monotonic_Clock): Same.
4891 2007-04-06 Quentin Ochem <ochem@adacore.com>
4893 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
4895 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
4897 2007-04-06 Jose Ruiz <ruiz@adacore.com>
4899 * a-retide.adb: Add elaboration code to ensure that the tasking run
4900 time is initialized when using delay operations even when no task is
4903 2007-04-06 Javier Miranda <miranda@adacore.com>
4905 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
4906 component Num_Prim_Ops.
4907 (Set_Num_Prim_Ops): Removed.
4908 Remove all the assertions because all the routines of this
4909 package are inline always.
4910 (Get_Offset_Index): Add support to primary dispatch tables.
4911 Move the documentation about the dispatch table to a-tags.ads
4912 (Set_External_Tag): Removed
4913 (Inherit_TSD): Removed.
4914 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
4916 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
4917 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
4918 of the TSD field "Table" because this field has been renamed to
4920 (Inherit_CPP_DT): Removed.
4921 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
4922 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
4923 declarations have been moved to a-tags.ads
4924 (Check_Size): Removed.
4925 (Expanded_Name): Updated to get access to the new field of TSD
4926 containing the address of the expanded name.
4927 (Get_Access_Level/Set_Access_Level): Removed.
4928 (Get_Predefined_Prim_Op_Address): Removed.
4929 (Set_Predefined_Prim_Op_Address): Removed.
4930 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
4931 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
4932 (Set_Expanded_Name): Removed.
4933 (Inherit_DT): Removed.
4934 (Inherit_CPP_DT): Removed.
4935 (Set_RC_Offset): Removed.
4937 (Base_Address): New function that displaces "this" to point to the base
4938 of the object (that is, to point to the primary tag of the object).
4940 2007-04-06 Ed Schonberg <schonberg@adacore.com>
4941 Javier Miranda <miranda@adacore.com>
4943 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
4944 anonymous access component, do not create a master_id if type already
4945 has one, as may happen if the type is a subcomponent of a packed array
4947 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
4948 Initialize_Tag): Remove code associated with the old CPP pragmas.
4949 CPP_Virtual and CPP_Vtable are no longer supported.
4950 (Build_Offset_To_Top_Internal): Add support for concurrent record types
4951 (Build_Offset_To_Top_Functions): Add support for concurrent record types
4952 (Freeze_Record_Type): Remove call to
4953 Init_Predefined_Interface_Primitives.
4954 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
4955 code required to initialize the tags of the secondary dispatch tables.
4956 This leaves the algoritm more clear.
4957 (Init_Secondary_Tags): Add support for concurrent record types
4958 (Make_Predefined_Primitive_Specs): Code cleanup.
4959 (Predefined_Primitive_Bodies): Code cleanup.
4960 (Build_Master_Renaming): New local subprogram.
4961 (Expand_N_Full_Type_Declaration): Build the master_id associated with
4962 anonymous access to task type components.
4963 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
4964 subtype indication are resolved during analysis, and must not be done
4966 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
4968 2007-04-06 Geert Bosch <bosch@adacore.com>
4969 Ed Schonberg <schonberg@adacore.com>
4970 Javier Miranda <miranda@adacore.com>
4971 Bob Duff <duff@adacore.com>
4973 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
4974 for conversion of a Float_Type'Truncation to integer.
4976 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
4977 check if a node is an attribute that can be handled directly by the
4979 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
4980 attributes that can be handled directly by the back end.
4981 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
4982 use new predicate Is_Access_Protected_Subprogram_Type.
4983 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
4984 and Unchecked_Union if it is generated as part of the default Output
4985 procedure for a type with default discriminants.
4986 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
4987 if we are compiling under restriction No_Dispatching_Calls.
4988 (Constrained): Use Underlying_Type, in case the type is private without
4989 discriminants, but the full type has discriminants.
4990 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
4991 call to Build_Get_Access_Level.
4992 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
4993 interface objects requires a call to the run-time subprogram that
4994 returns the base address of the object.
4995 (Valid_Conversion): Improve error message on illegal attempt to store
4996 an anonymous access to subprogram value into a record component.
4998 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
5000 (Simplify_Type_Conversion): New procedure that performs simplification
5001 of Int_Type (Float_Type'Truncation (X)).
5002 (Resolve_Type_Conversion): Call above procedure after resolving operand
5003 and before performing checks. This replaces the existing ineffective
5005 (Set_String_Literal_Subtype): When creating the internal static lower
5006 bound subtype for a string literal, use a newly created copy of the
5007 subtree representing the lower bound.
5008 (Resolve_Call): Exclude build-in-place function calls from transient
5009 scope treatment. Update comments to describe this exception.
5010 (Resolve_Equality_Op): In case of dispatching call check violation of
5011 restriction No_Dispatching_Calls.
5012 (Resolve_Call): If the call returns an array, the context imposes the
5013 component type of the array, and the function has one non-defaulted
5014 parameter, rewrite the call as the indexing of a call with a single
5015 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
5017 (Resolve_Actuals): If an actual is an allocator for an access parameter,
5018 the master of the created object is the innermost enclosing statement.
5019 (Remove_Conversions): For a binary operator, check if type of second
5020 formal is numeric, to check if an abstract interpretation is present
5021 in the case of exponentiation as well.
5023 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5024 Bob Duff <duff@adacore.com>
5026 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
5027 copying a parameter list in a call, set properly the First_Named_Formal
5028 and Next_Named_Formal fields in the new list and in the enclosing call.
5029 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
5030 names, to ease typing in the debugger. Improve comments.
5031 (Watch_Node): New variable, intended to be set in the debugger.
5032 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
5033 called when the watched node is created.
5034 (New_Node_Debugging_Output): Combined version of local procedures
5035 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
5036 with a parameter so that conditional breakpoints like "if Node = 12345"
5038 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
5041 2007-04-06 Thomas Quinot <quinot@adacore.com>
5042 Ed Schonberg <schonberg@adacore.com>
5043 Gary Dismukes <dismukes@adacore.com>
5045 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
5046 required for a conversion between two access-to-unconstrained-array
5048 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
5049 to discriminant constraints on discriminant objects. This rule must
5050 apply as well to discriminants of protected types in private components.
5051 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
5052 object of a null-excluding access type then don't require the
5053 the object declaration to have an expression and don't emit a
5056 2007-04-06 Arnaud Charlet <charlet@adacore.com>
5057 Eric Botcazou <botcazou@adacore.com>
5059 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
5062 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
5063 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
5066 * fe.h (Compiler_Abort): Add third parameter.
5068 * misc.c (internal_error_function): Build third argument from current
5069 input location and pass it to Compiler_Abort.
5071 2007-04-06 Gary Dismukes <dismukes@adacore.com>
5073 * cstand.adb (Create_Standard): When the target's storage unit size is
5074 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
5077 2007-04-06 Nicolas Roche <roche@adacore.com>
5079 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
5080 absolute path can have the following form: device:/a/b. In this case
5081 '/' should be inserted between the path and the filename.
5083 2007-04-06 Olivier Hainque <hainque@adacore.com>
5084 Eric Botcazou <botcazou@adacore.com>
5086 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
5087 VAR_DECL to a CONST_DECL we make for a public constant when we know the
5088 corresponding definition has created the so made visible variable.
5089 Handle anonymous access to protected subprogram.
5090 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
5091 object with an address clause volatile. Re-enable original fix.
5092 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
5094 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
5095 associated with either the Equivalent or Root type, instead of the
5097 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
5098 subtree for every field of a global record type.
5099 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
5100 discriminants, invoke again variable_size on its newly computed sizes.
5102 2007-04-06 Robert Dewar <dewar@adacore.com>
5103 Thomas Quinot <quinot@adacore.com>
5104 Ed Schonberg <schonberg@adacore.com>
5105 Bob Duff <duff@adacore.com>
5107 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
5108 (Next_Component_Or_Discriminant): New function and procedure
5109 (First_Index, First_Literal, Master_Id,
5110 Set_First_Index, Set_First_Literal, Set_Master_Id):
5111 Add missing Ekind assertions.
5112 (Is_Access_Protected_Subprogram_Type): New predicate.
5113 (Has_RACW): New entity flag, set on package entities to indicate that
5114 the package contains the declaration of a remote accecss-to-classwide
5116 (E_Return_Statement): This node type has the Finalization_Chain_Entity
5117 attribute, in case the result type has controlled parts.
5118 (Requires_Overriding): Add this new flag, because "requires
5119 overriding" is subtly different from "is abstract" (see AI-228).
5120 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
5121 Is_Abstract_Type. Make sure these are called only when appropriate.
5122 (Has_Pragma_Unreferenced_Objects): New flag
5124 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
5125 class-wide, the tag of the right-hand side must be an exact match, not
5126 an ancestor of that of the object on left-hand side.
5127 (Move_Activation_Chain): New procedure to create the call to
5128 System.Tasking.Stages.Move_Activation_Chain.
5129 (Expand_N_Extended_Return_Statement): Generate code to call
5130 System.Finalization_Implementation.Move_Final_List at the end of a
5131 return statement if the function's result type has controlled parts.
5132 Move asserts to Build_In_Place_Formal.
5133 (Move_Final_List): New function to create the call statement.
5134 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
5135 tagged type, replace generation of call to the run-time subprogram
5136 CW_Membership by call to Build_CW_Membership.
5137 (Expand_N_Return_Statement): Replace generation of call to the run-time
5138 subprogram Get_Access_Level by call to Build_Get_Access_Level.
5139 (Expand_N_Simple_Function_Return): Replace generation of call to the
5140 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
5142 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
5143 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
5144 access to protected operations.
5145 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
5146 master and chain actual parameters to a build-in-place function call
5148 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
5150 (Make_Build_In_Place_Call_In_Allocator,
5151 Make_Build_In_Place_Call_In_Anonymous_Context,
5152 Make_Build_In_Place_Call_In_Assignment,
5153 Make_Build_In_Place_Call_In_Object_Declaration): Call
5154 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
5155 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
5156 stubbed procedure with a null body, replace the call with a null
5157 statement without using the full inlining machinery, for efficiency
5158 and to avoid invalid values in source file table entries.
5160 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
5161 renamings of calls to build-in-place functions.
5163 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
5164 provides the functionality of RTE_Available to record components.
5165 (RTU_Entity): The function Entity has been renamed to RTU_Entity
5166 to avoid undesired overloading.
5167 (Entity): New subprogram that returns the entity for the referened
5168 unit. If this unit has not been loaded, it returns Empty.
5169 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
5170 Remove no longer used entities.
5171 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
5172 (RE_Type_Specific_Data): New entity.
5173 (RE_Move_Any_Value): New entity.
5174 (RE_TA_A, RE_Get_Any_Type): New entities.
5175 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
5176 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
5177 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
5178 (Entity): New subprogram that returns the entity for the referened
5179 unit. If this unit has not been loaded, it returns Empty.
5180 (RTE): Addition of a new formal that extends the search to the scopes
5181 of the record types found in the chain of the package.
5183 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
5184 "abstract subprograms must be visible" message, whether or not the type
5185 is an interface; that is, remove the special case for interface types.
5186 (Analyze_Function_Return): Remove error message "return of task objects
5187 is not yet implemented" because this is now implemented.
5188 (Create_Extra_Formals): Add the extra master and activation chain
5189 formals in case the result type has tasks.
5190 Remove error message "return of limited controlled objects is not yet
5192 (Create_Extra_Formals): Add the extra caller's finalization list formal
5193 in case the result type has controlled parts.
5194 (Process_Formals): In case of access formal types there is no need
5195 to continue with the analysis of the formals if we already notified
5197 (Check_Overriding_Indicator): Add code to check overriding of predefined
5199 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
5200 flags for formals that do not require them,.
5201 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
5202 hidden entity is use visible or directly visible.
5203 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
5204 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
5205 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
5206 New_Overloaded_Entity): Split Is_Abstract flag into
5207 Is_Abstract_Subprogram and Is_Abstract_Type.
5209 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
5210 a return statement's finalization list to the caller's list, used for
5211 build-in-place functions with result type with controlled parts.
5212 Remove no longer used entities.
5214 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
5215 longer needed, because the full type is now limited, and therefore a
5216 pass-by-reference type.
5217 (Foreign_Task_Level): New constant.
5219 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
5220 move tasks from the activation chain belonging to a return statement to
5221 the one passed in by the caller, and update the master to the one
5222 passed in by the caller.
5223 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
5224 of unactivated tasks, so we don't kill the ones that are being returned
5225 by a build-in-place function.
5226 (Create_Task): Ignore AI-280 for foreign threads.
5228 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5229 Robert Dewar <dewar@adacore.com>
5230 Bob Duff <duff@adacore.com>
5231 Gary Dismukes <dismukes@adacore.com>
5233 * errout.adb (Unwind_Internal_Type): Use predicate
5234 Is_Access__Protected_Subprogram_Type.
5236 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
5237 (Freeze_Entity, packed array case): Do not override explicitly set
5238 alignment and size clauses.
5239 (Freeze_Entity): An entity declared in an outer scope can be frozen if
5240 the enclosing subprogram is a child unit body that acts as a spec.
5241 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
5242 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
5243 Remove all code for DSP option
5245 * layout.adb (Layout_Record_Type): Use First/
5246 Next_Component_Or_Discriminant
5247 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
5248 to handle properly the anonymous access case.
5250 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
5251 for all access attributes, because overload resolution should work the
5252 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
5253 causes the error message for the ambiguous "X'Access = Y'Access" and
5254 "X'Unrestricted_Access = Y'Access" and so forth to match.
5255 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
5256 now that anonymous access to protected operations have their own kind.
5257 (Resolve_Attribute): In case of dispatching call check the violation of
5258 restriction No_Dispatching_Calls.
5259 (Check_Array_Type): Check new -gnatyA array index style option
5261 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
5262 attempt to derive from a synchronized tagged type.
5263 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
5264 type, inherit the class-wide type already created, because it may
5265 already have been used in a self-referential anonymous access component.
5266 (Mentions_T): Recognize self-referential anonymous access components
5267 that use (a subtype of) the class-wide type of the enclosing type.
5268 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
5269 Derived_Type for Prev formal on call to
5270 Check_Anonymous_Access_Components rather than Empty.
5271 (Make_Incomplete_Type_Declaration): Add test for case where the type has
5272 a record extension in deciding whether to create a class-wide type,
5273 rather than just checking Tagged_Present.
5274 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
5275 to stand-alone object declarations as well as component declarations.
5276 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
5277 prevent accidental overwriting when enclosing package appears in
5278 a limited_with_clause.
5279 (Array_Type_Declaration): If the component type is an anonymous access,
5280 the associated_node for the itype is the type declaration itself.
5281 (Add_Interface_Tag_Components): Modified to support concurrent
5282 types with abstract interfaces.
5283 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
5284 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
5285 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
5286 to complete the decoration of synchronized interface types. Add also
5287 a call to Check_Abstract_Interfaces to verify the ARM rules.
5288 (Derive_Interface_Subprograms): Modified to support concurrent types
5289 with abstract interfaces.
5290 (Analyze_Subtype_Indication): Resolve the range with the given subtype
5291 mark, rather than delaying the full resolution depending on context.
5292 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
5293 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
5294 Array_Type_Declaration,Build_Derived_Record_Type,
5295 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
5296 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
5297 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
5298 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
5299 called only when appropriate.
5300 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
5302 (Analyze_Subtype_Declaration): For an access subtype declaration, create
5303 an itype reference for the anonymous designated subtype, to prevent
5304 scope anonmalies in gigi.
5305 (Build_Itype_Reference): New utility, to simplify construction of such
5308 2007-04-06 Vincent Celier <celier@adacore.com>
5310 * errutil.adb (Initialize): Initialize warnings table, if all warnings
5311 are suppressed, supply an initial dummy entry covering all possible
5314 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
5315 and start with only one, such as "-RTS=none".
5316 (Collect_Arguments): Do not check for sources outside of projects.
5317 Do not collect arguments if project is externally built.
5318 (Compile_Sources): Do nothing, not even check if the source is up to
5319 date, if its project is externally built.
5320 (Compile): When compiling a predefined source, add -gnatpg
5321 as the second switch, after -c.
5322 (Compile_Sources): Allow compilation of Annex J renames without -a
5323 (Is_In_Object_Directory): Check if the ALI file is in the object
5324 even if there is no project extension.
5325 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
5326 gnatbind if the ALI file effectively exists.
5327 (Initialize): Add the directory where gnatmake is invoked in front of
5328 the path if it is invoked from a bin directory, even without directory
5329 information, so that the correct GNAT tools will be used when spawned
5330 without directory information.
5332 * makeusg.adb: Change switch -S to -eS
5333 Add lines for new switches -we, -wn and -ws
5334 Add line for new switch -p
5336 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
5337 Treat_As_Error and there are warnings.
5339 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
5340 -gnatww Change gnatmake switch -S to -eS
5341 (Scan_Make_Switches): Code reorganisation. Process separately multi
5342 character switches and single character switches.
5343 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
5344 False when switch is not recognized by gnatmake.
5345 (Scan_Make_Switches): Set Setup_Projects True when -p or
5346 --create-missing-dirs is specified.
5348 * fname.adb (Is_Predefined_File_Name): Return True for annex J
5349 renamings Calendar, Machine_Code, Unchecked_Conversion and
5350 Unchecked_Deallocation only when Renamings_Included is True.
5352 * par.adb: Allow library units Calendar, Machine_Code,
5353 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
5354 when -gnatg is not specified.
5355 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
5356 there is no need to generate always a record_definition_node in case
5357 of synchronized interface types.
5358 (SIS_Entry_Active): Initialize global variable to False
5359 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
5360 indicate cases where AI-447 says "not null" is legal.
5362 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
5364 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
5365 files with with several lines starting with the object fileb name.
5366 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
5368 (Initialize): Add the directory where gprmake is invoked in front of the
5369 path, if it is invoked from a bin directory or with directory
5370 information, so that the correct GNAT tools will be used when invoked
5372 (Check_Compilation_Needed): Process correctly backslashes on Windows.
5374 * vms_data.ads: Update switches/qualifiers
5376 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5377 Thomas Quinot <quinot@adacore.com>
5380 If the array component is a discriminated record, the array aggregate
5381 is non-static even if the component is given by an aggregate with
5383 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
5384 (Convert_Aggr_In_Allocator): If the allocator is for an access
5385 discriminant and the type is controlled. do not place on a finalization
5386 list at this point. The proper list will be determined from the
5388 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
5389 initialize record controller if needed, before the components, to ensure
5390 that they are properly finalized.
5391 (Build_Record_Aggr_Code): For the case of an array component that has a
5392 corresponding array aggregate in the record aggregate, perform sliding
5395 2007-04-06 Javier Miranda <miranda@adacore.com>
5396 Gary Dismukes <dismukes@adacore.com>
5397 Ed Schonberg <schonberg@adacore.com>
5399 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
5400 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
5402 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
5403 accessibility on class-wide allocators if the allocator occurs at the
5404 same scope level as the allocator's type. The check is guaranteed to
5405 succeed in that case, even when the expression originates from a
5406 parameter of the containing subprogram.
5407 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
5408 under No_Dispatching_Calls restriction. During the semantic analysis
5409 we already notified such violation.
5410 (Tagged_Membership): Constant folding. There is no need to check
5411 the tag at run-time if the type of the right operand is non
5412 class-wide abstract.
5413 Replace call to Is_Ancestor by call to Is_Parent
5414 to support concurrent types with interface types.
5415 (Expand_N_Allocator): Add an assertion associated with the generation
5417 (Expand_N_Slice): Do not enable range check to nodes associated
5418 with the frontend expansion of the dispatch table.
5419 (Is_Local_Access_Discriminant): Subsidiary function to
5421 (Tagged_Membership): Replace generation of call to the run-time
5422 subprogram CW_Membership by call to Build_CW_Membership.
5423 (Expand_Allocator_Expression): Replace generation of call to the
5424 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
5426 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
5427 initialize most the TSD components by means of an aggregate.
5428 Modify the declaration of the object containing the TSD
5429 because we now expand code that has a higher level of abstraction.
5430 The TSD has a discriminant containing the Inheritance Depth Level,
5431 value that is used in the membership test but also to fix the size
5432 of the table of ancestors.
5433 (Expand_Interface_Conversion): Insert function body at the closest place
5434 to the conversion expression, to prevent access-before-elaboration
5435 errors in the backend.
5436 Code improved to reduce the size of the dispatch table if
5437 compiling under restriction No_Dispatching_Calls plus code cleanup.
5438 Code reorganization plus removal of calls to Set_Num_Prim_Ops
5439 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
5440 (Expand_Dispatching_Call): Minor code reorganization plus addition of
5441 code to return immediately if compiling under No_Dispatching_Calls
5443 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
5444 CPP_Virtual and CPP_Vtable are no longer supported.
5445 (Expand_Interface_Conversion): Add missing support for interface type
5447 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
5448 Is_Parent to support concurrent types with interfaces.
5449 (Init_Predefined_Interface_Primitives): Removed.
5450 (Make_Secondary_DT): Modified to support concurrent record types.
5451 (Set_All_DT_Position): Modified to support concurrent record types.
5452 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
5453 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
5454 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
5456 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
5457 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
5458 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
5459 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
5460 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
5461 (Expand_Dispatching_Call): Replace generation of call to the run-time
5462 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
5463 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
5465 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
5466 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
5467 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
5468 Build_Set_Prim_Op_Address.
5469 (Get_Remotely_Callable): Subprogram removed.
5470 (Init_Predefined_Interface_Primitives): Replace generation of call to
5471 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
5474 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
5475 First (Parameter_Associations ()) with the call to First_Actual that
5476 returns an actual parameter expression for both named and positional
5479 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
5480 check violation of restriction No_Dispatching_Calls.
5481 (Check_Controlling_Type): A formal of a tagged incomplete type is a
5482 controlling argument.
5484 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
5485 First/Next_Component_Or_Discriminant
5486 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
5487 (Find_Implemented_Interface): Removed. All the calls to this subprogram
5488 specify Any_Limited_Interface, and this functionality is already
5489 provided by the function Has_Abstract_Interfaces.
5490 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
5491 support concurrent types implementing interfaces.
5492 (Find_Implemented_Interface): Removed. All the calls to this subprogram
5493 specify kind Any_Limited_Interface, and this functionality is already
5494 provided by the function Has_Abstract_Interfaces.
5495 (Remove_Side_Effects): replace Controlled_Type by
5496 CW_Or_Controlled_Type whenever the issue is related to
5497 using or not the secondary stack.
5499 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
5500 P_Interface_Type_Definition to fulfill the new interface (the formal
5501 Is_Synchronized is no longer required).
5503 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
5504 Update dependencies.
5506 * exp_atag.ads, exp_atag.adb: New file
5508 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5509 Bob Duff <duff@adacore.com>
5510 Cyrille Comar <comar@adacore.com>
5512 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
5513 anonymous, use finalization list of enclosing dynamic scope.
5514 (Expand_N_Package_Declaration): For a library package declaration
5515 without a corresponding body, generate RACW subprogram bodies in the
5516 spec (just as we do for the task activation call).
5517 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
5518 Is_Abstract_Type. Make sure these are called only when appropriate.
5519 Remove all code for DSP option
5520 (CW_Or_Controlled_Type): new subprogram.
5522 2007-04-06 Eric Botcazou <botcazou@adacore.com>
5523 Ed Schonberg <schonberg@adacore.com>
5524 Gary Dismukes <dismukes@adacore.com>
5526 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
5527 parameter. If it is set to true, return a result capped according to
5528 the global upper bound for the index of an entry family.
5529 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
5530 (Build_Find_Body_Index): Adjust for above change.
5531 (Entry_Index_Expression): Likewise.
5532 (Is_Potentially_Large_Family): New function extracted from...
5533 (Collect_Entry_Families): ...here. Call it to detect whether the family
5534 is potentially large.
5535 (Build_Entry_Count_Expression): If the family is potentially large, call
5536 Family_Size with 'Cap' set to true.
5537 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
5538 a protected version of an operation declared in the private part of
5539 a protected object, because they may be invoked through a callback.
5540 (Set_Privals): If the type of a private component is an anonymous access
5541 type, do not create a new itype for each protected body.
5542 If the body of a protected operation creates
5543 controlled types (including allocators for class-widetypes), the
5544 body of the corresponding protected subprogram must include a
5546 (Build_Activation_Chain_Entity): Build the chain entity for extended
5548 (Type_Conformant_Parameters): Use common predicate Conforming_Types
5549 to determine whether operation overrides an inherited primitive.
5550 (Build_Wrapper_Spec): Add code to examine the parents while looking
5551 for a possible overriding candidate.
5552 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
5553 hold an actual parameter value since its initialization is separated
5554 from the the declaration. Prevents errors on null-excluding access
5557 2007-04-06 Thomas Quinot <quinot@adacore.com>
5559 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
5560 Do an Unchecked_Conversion to handle the passage from the Underlying
5561 Type to the Base Type when calling Build_To_Any_Call and
5562 Build_From_Any_Call.
5563 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
5564 E_Constant, depending upon Variable formal.
5565 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
5566 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
5567 parameter that requires an extra constrained parameter, declare
5568 temporary for actual as a variable, not a constant.
5569 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
5570 the unit being compiled is the one that contains the stub type.
5571 Change primitive operation name for the RACW associated with a RAS
5572 from Call to _Call so it cannot clash with any legal identifier.
5573 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
5575 (Append_RACW_Bodies): New subprogram.
5576 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
5577 Add_Receiving_Stubs_To_Declarations functions.
5578 When expanding a package body, this list correspond to the
5579 statements in the HSS at the end of the pacakge.
5580 When expanding a package spec, this list correspond to the
5582 (Add_Receiving_Stubs_To_Declarations): Append the function
5583 registering the receiving stubs at the end of the 'Stmts' list.
5584 (RCI_Package_Locator): Pass the new Version generic formal when
5585 instantiating a RCI_Locator package.
5586 (Build_From_Any_Function): To compute the High bound for an
5587 unconstrained array actual, we add the Low bound with the length.
5588 Thus we must convert the low bound and the length to an appropriate
5589 type before doing the sum.
5590 (Build_Subprogram_Receiving_Stubs, PolyORB):
5591 * Retrieve the extra formals parameters at the
5592 end of the parameter stream.
5593 * Use Move_Any_Value to write back out parameters
5594 after executing the request as it is more efficient
5595 than Copy_Any_Value.
5596 * Build the any containing Extra Formals with the
5597 appropriate typecode.
5598 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
5599 empty Component_List.
5600 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
5601 the tree the declaration for an object that serves as actual parameter
5602 in server-side stubs.
5603 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
5604 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
5605 Use Build_Actual_Object_Declaration to prepare the actuals.
5606 (Add_Parameter_To_NVList): Set the parameter mode to In for
5607 Extra Constrained Parameters.
5608 (Build_General_Calling_Stubs): Set the parameter type to boolean for
5609 Extra Constrained parameters.
5610 (Build_To_Any_Function, Build_From_Any_Function,
5611 Built_TypeCode_Function): When Typ is implicit, call the correct
5612 function with the first not implicit parent type.
5613 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
5614 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
5615 typecode from the Etype. Therefore we retrieve the correct typecode
5616 with a call to Get_Any_Type.
5617 (Copy_Specification): Do controlling formal type substitution based on
5618 Is_Controlling_Formal flag, instead of caller-provided object type.
5619 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
5620 a RACW primitive operation, we might get a subprogram declaration for an
5621 ancestor of the RACW designated type (not for the designated type
5622 itself), in the case where this operation is inherited. In this case we
5623 have no easy means of determining the original tagged type for which
5624 the primitive was declared, so instead we now rely on
5625 Copy_Specification to use the Is_Controlling_Formal flag to determine
5626 which formals require type substitution.
5628 2007-04-06 Robert Dewar <dewar@adacore.com>
5629 Ed Schonberg <schonberg@adacore.com>
5631 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
5632 GNAT.Current_Exception are not allowed if pragma Restrictions
5633 (No_Exception_Propagation) is set and in any case make the associated
5634 handler unsuitable as a target for a local raise statement.
5635 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
5636 run-time subprogram CW_Membership by call to Build_CW_Membership.
5637 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
5638 by a function call, a temporary must be created before expanding the
5639 Constructor_Call itself, to prevent out-of-order elaboration in the
5640 back-end when stack checking is enabled..
5642 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5644 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
5645 result are the bounds of the left operand, not the right.
5647 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5650 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
5651 discriminant defaults.
5652 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
5653 (Make_Component_List_Attributes): Ditto.
5655 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5656 Bob Duff <duff@adacore.com>
5658 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
5659 an association with a box as providing a value even though the
5660 initialization procedure for the type is not available.
5661 (Resolve_Record_Aggregate): Check that a choice of an association with a
5662 box corresponds to a component of the type.
5663 (Resolve_Record_Aggregate): Split Is_Abstract flag into
5664 Is_Abstract_Subprogram and Is_Abstract_Type.
5666 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
5669 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
5670 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
5671 called only when appropriate.
5673 2007-04-06 Olivier Hainque <hainque@adacore.com>
5675 * g-alleve.ads (Low Level Vector type definitions): Map each to the
5676 associated vector view instead of all to the unsigned char view.
5678 * g-altcon.adb (Generic_Conversions): New internal generic package,
5679 offering facilities for all the Vector/View conversion routines
5680 implemented by this unit.
5681 (To_View/To_Vector - all versions): Reimplemented in a systematic
5682 manner, using the internal Generic_Conversions facilities.
5684 2007-04-06 Pascal Obry <obry@adacore.com>
5686 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
5688 (Create): Free the source string before storing the new one.
5690 2007-04-06 Vincent Celier <celier@adacore.com>
5692 * g-debpoo.adb (Validity): New package with a complete new
5693 implementation of subprograms Is_Valid and Set_Valid.
5694 (Is_Valid): Move to local package Validity
5695 (Set_Valid): Move to local package Validity
5697 2007-04-06 Arnaud Charlet <charlet@adacore.com>
5699 * g-expect.adb (Get_Command_Output): When expanding the output buffer
5700 we must ensure that there is enough place for the new data we are going
5703 2007-04-06 Thomas Quinot <quinot@adacore.com>
5705 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
5708 2007-04-06 Jose Ruiz <ruiz@adacore.com>
5709 Vincent Celier <celier@adacore.com>
5711 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
5712 (Stack_String): Add this String that contains the name of the Stack
5713 package in the project file.
5714 (Packages_To_Check_By_Stack): Add this list that contains the packages
5715 to be checked by gnatstack, which are the naming and the stack packages.
5716 (Check_Files): If no .ci files were specified for gnatstack we add all
5717 the .ci files belonging to the projects, including binder generated
5719 (Non_VMS_Usage): Document that gnatstack accept project file switches.
5720 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
5721 Add gnatstack to the list of commands that use project file related
5722 switches, and get the single attribute Switches from the stack package
5723 in a project file when calling gnatstack. Parse the -U flag for
5724 processing files belonging to all projects in the project tree.
5725 Remove all processing for command Setup
5727 * prj-attr.adb: Add new package Stack with single attribute Switches
5729 * vms_conv.ads (Command_Type): Add command Stack.
5730 Move to body declarations that are only used in the body: types Item_Id,
5731 Translation_Type, Item_Ptr, Item and its subtypes.
5733 * vms_conv.adb: (Initialize): Add data for new command Stack.
5734 Add declarations moved from the spec: types Item_Id, Translation_Type,
5735 Item_Ptr, Item and its subtypes.
5736 (Cargs_Buffer): New table
5737 (Cargs): New Boolean global variable
5738 (Process_Buffer): New procedure to create arguments
5739 (Place): Put character in table Buffer or Cargs_Buffer depending on the
5741 (Process_Argument): Set Cargs when processing qualifiers for GNAT
5743 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
5744 empty, for table Cargs_Buffer.
5745 (Initialize): Remove component Setup in Command_List
5747 2007-04-06 Vincent Celier <celier@adacore.com>
5749 * gprep.adb (Process_Files.Process_One_File): Use full file name when
5750 issuing pragma Source_Reference.
5752 2007-04-06 Emmanuel Briot <briot@adacore.com>
5754 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
5755 [[:xdigit:]] character class.
5756 Also raise an exception when an invalid character class is used.
5758 2007-04-06 Pascal Obry <obry@adacore.com>
5760 * i-cstrea.ads: (fopen): Add encoding parameter.
5762 Change reference from a-sysdep.c to sysdep.c in comment.
5763 Update copyright notice.
5764 This set of patch add support for the encoding form parameter.
5766 * mingw32.h (S2WSU): New macro to convert from a string to a
5767 wide-string using the UTF-8 encoding. The S2WS macro supports now only
5768 standard 8bits encoding.
5769 (WS2SU): As above but converting from wide-sring to string.
5770 This is needed as it is necessary to have access to both versions in the
5771 runtime for the form parameter encoding support.
5772 This set of patch add support for the encoding form parameter.
5773 (S2WS): Improve implementation to handle cases where the filename is not
5774 UTF-8 encoded. In this case we default to using the current code page
5777 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
5778 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
5779 the constants defined in adaint.h.
5780 (fopen): Add encoding parameter.
5783 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
5784 encoding. This is needed for the Reset routine (freopen low level-call).
5786 * s-fileio.adb (Open): Decode encoding form parameter and set the
5787 corresponding encoding value into AFCB structure.
5788 (Reset): Pass the encoding value to freopen.
5789 (Close): Move the call to Lock_Task to the beginning of the procedure.
5791 2007-04-06 Geert Bosch <bosch@adacore.com>
5792 Robert Dewar <dewar@adacore.com>
5794 * i-fortra.ads: Add Double_Complex type.
5796 * impunit.adb: (Is_Known_Unit): New function
5797 Add Gnat.Byte_Swapping
5799 Add new Ada 2005 units
5800 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
5801 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
5802 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
5803 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
5805 * impunit.ads (Is_Known_Unit): New function
5807 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
5808 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
5809 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
5810 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
5811 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
5812 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
5815 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
5817 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
5819 2007-04-06 Eric Botcazou <botcazou@adacore.com>
5820 Arnaud Charlet <charlet@adacore.com>
5822 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
5823 __gnat_adjust_context_for_raise.
5824 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
5825 implementation of floating point operations as native x86 targets.
5826 So the FPU should be initialized in the same way using finit. Fix
5827 floating point operations accuracy issues.
5828 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
5829 member in struct sigaction, so as to avoid warning for incompatible
5832 2007-04-06 Serguei Rybin <rybin@adacore.com>
5834 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
5835 switches from previously loaded tree
5837 2007-04-06 Thomas Quinot <quinot@adacore.com>
5839 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
5840 cases where a given dependency has a body or not.
5841 (Write_With_File_Names): New subprogram, common code for the two cases
5844 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5845 Javier Miranda <miranda@adacore.com>
5847 * lib-xref.ads, lib-xref.adb:
5848 Modify the loop that collects type references, to include interface
5849 types that the type implements. List each of these interfaces when
5850 building the entry for the type.
5851 (Generate_Definition): Initialize component Def and Typ of new entry
5852 in table Xrefs, to avoid to have these components unitialized.
5853 (Output_References): Split Is_Abstract flag into
5854 Is_Abstract_Subprogram and Is_Abstract_Type.
5855 (Generate_Reference): Add barrier to do not generate the warning
5856 associated with Ada 2005 entities with entities generated by the
5859 2007-04-06 Robert Dewar <dewar@adacore.com>
5860 Arnaud Charlet <charlet@adacore.com>
5861 Vincent Celier <celier@adacore.com>
5863 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
5864 Update 'Exception Handling Control' chapter which was outdated.
5865 Minor fix to documentation of -gnatwq
5866 Remove section "Adapting the Run Time to a New C++ Compiler" because
5868 Add passage on need of -nostart-files in some non-ada-main cases.
5869 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
5870 Update documentation about Interfacing with C++
5871 Add documentation for new gnatmake switch -p
5872 Add missing protocol part in URLs.
5874 Document pragma Compile_Time_Error
5875 Add documentation for Object_Size indicating that stand alone
5876 objects can have a larger size in some cases.
5877 Add node for GNAT.Byte_Swapping, GNAT.SHA1
5878 Update reference to the Ravenscar profile.
5879 Document pragma Unreferenced_Objects
5881 * gnat-style.texi: Fix typo
5883 2007-04-06 Vincent Celier <celier@adacore.com>
5885 * mlib.adb (Building_Library): Only output "building a library..." in
5888 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
5889 files in verbose mode.
5891 * mlib-utl.adb (Ar): Only output the first object files when not in
5893 (Gcc): Do not display all the object files if not in verbose mode, only
5896 2007-04-06 Robert Dewar <dewar@adacore.com>
5898 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
5899 it no longer destroys the contents of Name_Buffer or Name_Len and
5900 non-standard and invalid names are handled better.
5901 (Get_Decoded_Name_String): Improve performance by using
5902 Name_Has_No_Encodings flag in the name table.
5903 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
5904 Used for debugging printouts.
5906 2007-04-06 Robert Dewar <dewar@adacore.com>
5907 Javier Miranda <miranda@adacore.com>
5908 Bob Duff <duff@adacore.com>
5910 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
5911 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
5912 there is no need to generate always a record_definition_node in case
5913 of synchronized interface types.
5914 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
5915 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
5916 illegal in Ada 95, in cases where it is legal. Change the warnings to
5917 errors in other cases. Don't give the error unless the "not null"
5918 parses properly. Correct the source position at which the error occurs.
5919 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
5920 P_Null_Exclusion, to suppress "not null" warnings.
5921 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
5922 associated goto statements.
5924 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
5927 * scans.ads (Type_Token_Location): New flag
5929 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
5930 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
5931 P_Null_Exclusion, to suppress "not null" warnings.
5933 2007-04-06 Robert Dewar <dewar@adacore.com>
5934 Javier Miranda <miranda@adacore.com>
5935 Bob Duff <duff@adacore.com>
5936 Vincent Celier <celier@adacore.com>
5938 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
5939 (Extensions_Allowed): No longer sets Ada_Version
5940 Entry for pragma Unreferenced_Objects
5942 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
5943 system.tasking if pragma priority used in a procedure
5944 (Analyze_Pragma, case Warning): Handle dot warning switches
5945 (Process_Compile_Time_Warning_Or_Error): New procedure
5946 (Analyze_Pragma): Add processing for Compile_Time_Error
5947 Add support for extra arguments External_Name and Link_Name.
5948 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
5949 (Process_Import_Or_Interface): Add support for the use of pragma Import
5951 (Extensions_Allowed): No longer affects Ada_Version
5952 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
5953 Is_Abstract_Type. Make sure these are called only when appropriate.
5954 Add processing for pragma Unreferenced_Objects
5956 * snames.h, snames.ads, snames.adb: Add entry for pragma
5958 Add new standard name Minimum_Binder_Options for new gprmake
5959 Add new standard names for gprmake: Archive_Suffix,
5960 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
5961 Library_Support, Library_Version_Options,
5962 Shared_Library_Minimum_Options,
5963 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
5964 Change Name_Call to Name_uCall so that it cannot clash with a legal
5966 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
5967 Append C_Plus_Plus to convention identifiers as synonym for CPP
5968 Add new standard names Stack and Builder_Switches
5969 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
5970 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
5971 Run_Path_Option, Toolchain_Version.
5972 Entry for pragma Unreferenced_Objects
5974 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
5975 switches, without repetition of "eD". Make sure that last character of
5976 -gnatep= switch is not taken as -gnat switch character.
5977 Complete rewrite of circuit for handling saving compilation options
5978 Occasioned by need to support dot switchs for -gnatw, but cleans up
5980 -gnatX does not affect Ada_Version
5981 Include -gnatyA in -gnatg style switches
5983 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
5984 warnings on return objects.
5985 (Warn_On_Useless_Assignment): Exclude warnings on return objects
5986 (Set_Dot_Warning_Switch): New procedure
5987 (Check_References): Add missing case of test for
5988 Has_Pragma_Unreferenced_Objects
5989 (Output_Unreferenced_Messages): Implement effect of new pragma
5990 Unreferenced_Objects, remove special casing of limited controlled
5993 2007-04-06 Vincent Celier <celier@adacore.com>
5995 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
5996 the default project path, initially done during elaboration of the
5998 If the prefix returned by Sdefault is null, get the prefix from a call
5999 to Executable_Prefix_Path.
6000 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
6003 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
6004 canonical directory name to open the directory from which files are
6006 (Record_Other_Sources): Idem.
6007 (Locate_Directory): Add the possibility to create automatically missing
6008 directories when Setup_Projects is True.
6009 Call Locate_Directory so that the directory will be created when
6010 Setup_Projects is True, for object dir, library dir, library ALI dir,
6011 library source copy dir and exec dir.
6013 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
6016 2007-04-06 Robert Dewar <dewar@adacore.com>
6018 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
6019 Use First/Next_Component_Or_Discriminant
6020 (Analyze_Record_Representation_Clause):
6021 Use First/Next_Component_Or_Discriminant
6022 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
6023 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
6024 definition if type is unconstrained.
6025 (Adjust_Record_For_Reverse_Bit_Order): New procedure
6026 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
6027 Is_Abstract_Subprogram and Is_Abstract_Type.
6028 (Adjust_Record_For_Reverse_Bit_Order): New procedure
6030 * repinfo.adb (List_Record_Info): Use First/
6031 Next_Component_Or_Discriminant.
6033 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
6036 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
6037 Include -gnatyA in default switches
6039 * opt.ads: (Warn_On_Non_Local_Exception): New flag
6040 (Warn_On_Reverse_Bit_Order): New flag
6041 (Extensions_Allowed): Update the documentation.
6042 (Warn_On_Questionable_Missing_Parens): Now on by default
6044 * usage.adb: Add documentation of -gnatw.x/X switches
6045 Document new -gnatyA style switch
6046 -gnatq warnings are on by default
6048 2007-04-06 Ed Falis <falis@adacore.com>
6050 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
6051 full word is no longer compared twice.
6053 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6055 * sem_ch10.adb (Install_Limited_Context_Clauses.
6056 Expand_Limited_With_Clause): Use a new copy of selector name in the
6057 call to Make_With_Clause. This fixes the tree structure for ASIS
6058 purposes. Nothing is changed in the compiler behaviour.
6059 (Process_Body_Clauses): Handle properly use clauses whose prefix is
6061 (Install_Limited_With_Clauses): Do not install non-limited view when it
6062 is still incomplete.
6064 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6065 Gary Dismukes <dismukes@adacore.com>
6067 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
6068 when capturing size information, instead of base type, which for a
6069 formal array type will be the unconstrained type.
6070 (Analyze_Formal_Object_Declaration): Add check for illegal default
6071 expressions for a formal in object of a limited type.
6072 (Instantiate_Object): Ditto.
6073 (Check_Formal_Package_Instance): Skip entities that are formal objects,
6074 because they were defaulted in the formal package and no check applies
6076 (Check_Formal_Package_Instance): Extend conformance check to other
6077 discrete types beyond Integer.
6078 (Process_Default): Copy directly the unmatched formal. A generic copy
6079 has already been performed in Analyze_Formal_Package.
6080 (Analyze_Associations): If a formal subprogram has no match, check for
6081 partial parametrization before looking for a default, to prevent
6083 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
6084 not set the instantiation environment before analyzing the actuals.
6085 Fixes regression on 8515-003 with implementation of AI-133.
6086 Set_Instance_Env checks whether the generic unit is a predefined
6087 unit, in which case the instance must be analyzed with the latest Ada
6088 mode. This setting must take place after analysis of the actuals,
6089 because the actuals must be analyzed and frozen in the Ada mode extant
6090 outside of the current instantiation.
6091 (Save_Env, Restore_Env): Preserve and restore the configuration
6092 parameters so that predefined units can be compiled in the proper Ada
6094 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
6095 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
6096 and Is_Abstract_Type.
6097 (Analyze_Formal_Package): For better error recovery, Add exception
6098 handler to catch Instantion_Error, which can be raised in
6099 Analyze_Associations
6101 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6102 Bob Duff <duff@adacore.com>
6103 Gary Dismukes <dismukes@adacore.com>
6105 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
6106 prefix type is a discriminated subtype of the type of the formal.
6107 (Analyze_Allocator): Collect all coextensions regardless of the context.
6108 Whether they can be allocated statically is determined in exp_ch4.
6109 (Analyze_Selected_Component): If the prefix is a limited view and the
6110 non-limited view is available, use the non-limited one.
6111 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
6112 therefore illegal), suggest a qualified expression rather than a type
6113 conversion, because a type conversion would be illegal in this context.
6114 (Anayze_Allocator): Trace recursively all nested allocators so that all
6115 coextensions are on the corresponding list for the root. Do no mark
6116 coextensions if the root allocator is within a declaration for a stack-
6117 allocated object, because the access discriminants will be allocated on
6119 (Analyze_Call): Remove restriction on calls to limited functions for the
6120 cases of generic actuals for formal objects, defaults for formal objects
6121 and defaults for record components.
6122 (Analyze_Allocator): Before analysis, chain coextensions on the proper
6123 element list. Their expansion is delayed until the enclosing allocator
6124 is processed and its finalization list constructed.
6125 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
6126 for an operation with the given name among the primitive operations of
6127 the corresponding record type.
6128 (Analyze_Selected_Component): If the prefix is a task type that
6129 implements an interface, and there is no entry with the given name,
6130 check whether there is another primitive operation (e.g. a function)
6132 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
6133 properly the indexing of a function call written in prefix form, where
6134 the function returns an array type, and all parameters of the function
6135 except the first have defaults.
6136 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
6137 the original operands, rather than relocating them, for efficiency and
6138 to work properly when an operand is overloaded.
6139 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
6140 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
6141 (Analyze_Selected_Component): If the prefix is a private extension, only
6142 scan the visible components, not those of the full view.
6143 (Try_Primitive_Operation): If the operation is a procedure, collect all
6144 possible interpretations, as for a function, because in the presence of
6145 classwide parameters several primitive operations of the type can match
6146 the given arguments.
6148 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6149 Robert Dewar <dewar@adacore.com>
6151 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
6152 tag-indeterminate call to an abstract function, when the left-hand side
6154 (Analyze_Loop_Statement): Improve detection of infinite loops
6156 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6157 Thomas Quinot <quinot@adacore.com>
6159 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
6160 out of Analyze_Package_Declaration, because processing must be applied
6161 to package bodies as well, for deferred constants completed by pragmas.
6162 (Analyze_Package_Declaration): When the package declaration being
6163 analyzed does not require an explicit body, call Check_Completion.
6164 (May_Need_Implicit_Body): An implicit body is required when a package
6165 spec contains the declaration of a remote access-to-classwide type.
6166 (Analyze_Package_Body): If the package contains RACWs, append the
6167 pending subprogram bodies generated by exp_dist at the end of the body.
6168 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
6169 Is_Abstract_Subprogram and Is_Abstract_Type.
6170 (Preserve_Full_Attributes): The full entity list is not an attribute
6171 that must be preserved from full to partial view.
6173 * sem_dist.adb (Add_RAS_Dereference_TSS):
6174 Change primitive name to _Call so it cannot clash with any legal
6175 identifier, and be special-cased in Check_Completion.
6176 Mark the full view of the designated type for the RACW associated with
6177 a RAS as Comes_From_Source to get proper view switching when installing
6178 private declarations.
6179 Provite a placeholder nested package body along with the nested spec
6180 to have a place for Append_RACW_Bodies to generate the calling stubs
6181 and stream attributes.
6183 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6184 Robert Dewar <dewar@adacore.com>
6186 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
6187 that is a limited view, check the non-limited view if available.
6188 (Undefined): Refine error message for missing with of Text_IO
6189 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
6190 to distinguish real missing with cases.
6191 Fix format of all missing with messages
6192 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
6193 renaming as body when renamed entity is abstract.
6195 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6196 Javier Miranda <miranda@adacore.com>
6198 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
6199 predicate recursive, to handle complex expressions on literals whose
6200 spurious ambiguity comes from the abstract interpretation of some
6202 (Interface_Present_In_Ancestor): Add support to concurrent record
6204 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
6205 Is_Abstract_Subprogram and Is_Abstract_Type.
6207 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6208 Javier Miranda <miranda@adacore.com>
6210 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
6211 dereference of a local object R created as a reference to another
6212 object O, use the access level of O.
6213 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
6214 rather than local Same_Formal_Type, to check whether protected operation
6215 overrides an inherited one.
6216 (Same_Formal_Type): New predicate, used when matching signatures of
6217 overriding synchronized operations, to handle the case when a formal
6218 has a type that is a generic actual.
6219 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
6220 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
6221 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
6222 syntactic ambiguities involving indexing of function calls that return
6224 (Abstract_Interface_List): New subprogram that returns the list of
6225 abstract interfaces associated with a concurrent type or a
6226 concurrent record type.
6227 (Interface_Present_In_Parent): New subprogram used to check if a
6228 given type or some of its parents implement a given interface.
6229 (Collect_Abstract_Interfaces): Add support for concurrent types
6230 with interface types.
6231 (Has_Abstract_Interfaces): Add support for concurrent types with
6233 (Is_Parent): New subprogram that determines whether E1 is a parent
6234 of E2. For a concurrent type its parent is the first element of its
6235 list of interface types; for other types this function provides the
6236 same result than Is_Ancestor.
6237 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
6238 (Collect_Synchronized_Interfaces): Removed because the subprogram
6239 Collect_Abstract_Interfaces provides this functionality.
6240 (Collect_Abstract_Interfaces): Minor update to give support to
6241 concurrent types and thus avoid undesired code duplication.
6242 (Get_Subprogram_Entity): Handle entry calls.
6243 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
6245 (Enter_Name): Do not give -gnatwh hiding warning for record component
6246 entities, they never result in hiding.
6248 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6249 Robert Dewar <dewar@adacore.com>
6251 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
6252 to chain nested components that are allocators for access discriminants
6253 of the enclosing object.
6254 Add N_Push and N_Pop nodes
6255 New field Exception_Label added
6256 (Local_Raise_Statements): New field in N_Exception_Handler_Node
6257 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
6258 (Is_Coextension): New flag for allocators, to mark allocators that
6259 correspond to access discriminants of dynamically allocated objects.
6260 (N_Block_Statement): Document the fact that the corresponding entity
6261 can be an E_Return_Statement.
6262 (Is_Coextension): New flag for allocators.
6263 Remove all code for DSP option
6265 * sprint.ads, sprint.adb: Display basic information for class_wide
6266 subtypes. Add handling of N_Push and N_Pop nodes
6268 2007-04-06 Arnaud Charlet <charlet@adacore.com>
6270 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
6271 before propagating exception.
6273 2007-04-06 Olivier Hainque <hainque@adacore.com>
6275 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
6276 an address always within the call instruction from a return address.
6278 2007-04-06 Olivier Hainque <hainque@adacore.com>
6279 Eric Botcazou <botcazou@adacore.com>
6281 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
6282 expression with a COMPOUND_EXPR including the call instead of emitting
6283 the call directly here.
6284 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
6285 high bound is constant and the slice is empty. Tidy.
6286 (tree_transform, case N_Op_Not): Handle properly the case where the
6287 operation applies to a private type whose full view is a modular type.
6288 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
6289 Address_Clause, use the associated Expression as the GNAT tree
6290 representing the choice value to ensure the corresponding GCC tree is
6292 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
6293 instead of just the operands, as the base GCC stabilize_reference does.
6294 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
6295 requested; otherwise fail.
6296 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
6298 2007-04-06 Thomas Quinot <quinot@adacore.com>
6300 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
6301 implementation of UI_Div.
6302 (UI_Div): Reimplement as a call to UI_Div_Rem.
6303 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
6304 remainder, avoiding the cost of a multiplication and a subtraction.
6305 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
6306 provides both quotient and remainder in a single computation.
6307 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
6309 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
6310 is undefined if the given n is not inversible.
6312 2007-04-06 Olivier Hainque <hainque@adacore.com>
6314 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
6315 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
6318 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6319 Olivier Hainque <hainque@adacore.com>
6321 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
6322 when updating the contents of the old pointer to an unconstrained array.
6323 (end_subprog_body): Set error_gnat_node to Empty.
6324 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
6325 (unchecked_convert): For subtype to base type conversions, require that
6326 the source be a subtype if it is an integer type.
6327 (builtin_decls): New global, vector of available builtin functions.
6328 (gnat_pushdecl): Add global builtin function declaration nodes to the
6330 (gnat_install_builtins): Adjust comments.
6331 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
6332 calling gnat_pushdecl, so that it knows when it handed a builtin
6333 function declaration node.
6334 (builtin_decl_for): Search the builtin_decls list.
6336 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6338 * s-stchop-vxworks.adb:
6339 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
6341 2007-04-06 Robert Dewar <dewar@adacore.com>
6342 Arnaud Charlet <charlet@adacore.com>
6344 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
6346 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
6348 Add mention of -Sev (set initialize_scalars option from environment
6349 variable at run time) in gnatbind usage message.
6351 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
6353 * fname-uf.ads: Minor comment fix
6355 * osint.ads: Change pragma Elaborate to Elaborate_All
6357 * par-load.adb: Add documentation.
6359 * sem_cat.ads, sem_cat.adb: Minor code reorganization
6361 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
6363 * s-secsta.ads: Extra comments
6365 * s-soflin.ads: Minor comment fixes
6367 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
6369 * s-wchcon.ads: Minor comment addition
6371 * treepr.adb: Minor change in message
6372 (Print_Name,Print_Node): Make these debug printouts more robust: print
6373 "no such..." instead of crashing on bad input.
6375 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
6377 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
6378 instead of gnat_signed_or_unsigned_type.
6379 * utils.c (gnat_signed_or_unsigned_type): Remove.
6380 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
6381 * gigi.h (gnat_signed_or_unsigned_type): Remove
6383 2007-03-09 Roger Sayle <roger@eyesopen.com>
6385 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
6386 fold with the result of buildN.
6387 * decl.c (gnat_to_gnu_entity): Likewise.
6388 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
6389 * utils.c (finish_record_type, merge_sizes, max_size, convert):
6391 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
6392 nonbinary_modular_operation, build_binary_op, build_unary_op,
6393 build_cond_expr): Likewise.
6395 * utils.c (convert): Use fold_build1 when casting values to void.
6396 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
6397 fold_convert instead of convert when appropriate.
6399 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
6401 * Make-lang.in: Add install-pdf target as copied from
6402 automake v1.10 rules.
6404 2007-02-28 Andreas Schwab <schwab@suse.de>
6406 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
6407 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
6408 (doc/gnat-style.info): Likewise.
6410 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
6412 * gnat-style.texi: Standardize title page.
6413 * gnat_rm.texi: Likewise.
6414 * gnat_ugn.texi: Likewise.
6416 2007-02-25 Mark Mitchell <mark@codesourcery.com>
6418 * decl.c (annotate_value): Adjust for refactoring of tree_map
6421 2007-02-24 Mark Mitchell <mark@codesourcery.com>
6423 * decl.c (annotate_value): Adjust for refactoring of tree_map
6426 2007-02-21 Ed Schonberg <schonberg@adacore.com>
6429 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
6430 untagged derived type, add hidden components to keep discriminant
6431 layout consistent, when a given discriminant of the derived type
6432 constraints several discriminants of the parent type.
6434 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
6435 Sandra Loosemore <sandra@codesourcery.com>
6437 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
6438 build the call expression.
6439 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
6440 * utils.c (max_size) <tcc_exceptional>: Delete.
6441 <tcc_vl_exp>: New case.
6442 <tcc_expression>: Delete CALL_EXPR subcase.
6443 (build_global_cdtor): Use build_call_nary instead of build3.
6444 * utils2.c (build_call_1_expr): Likewise.
6445 (build_call_2_expr): Likewise.
6446 (build_call_0_expr): Likewise.
6447 (build_call_alloc_dealloc): Likewise.
6449 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
6451 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
6452 get_action_description_for): Replace _Unwind_Word with _uleb128_t
6453 and _Unwind_SWord with _sleb128_t.
6455 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
6457 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
6458 * decl.c: Include gt-ada-decl.h.
6459 (annotate_value_cache): New.
6460 (annotate_value): Use it instead of TREE_COMPLEXITY.
6462 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
6464 * misc.c, utils2.c: Fix comment typos.
6466 2007-01-24 Roger Sayle <roger@eyesopen.com>
6468 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
6469 TREE_CONSTANT_OVERFLOW.
6470 (allocatable_size_p, annotate_value): Likewise.
6471 * trans.c (gnat_to_gnu): Likewise.
6472 * utils.c (unchecked_convert): Likewise.
6473 * utils2.c (build_simple_component_ref): Likewise.
6475 2007-01-23 Richard Guenther <rguenther@suse.de>
6478 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
6479 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
6480 (gnatboot3): Likewise.
6481 (GNATBIND): Do not define.
6482 * Makefile.in (GNATBIND): Do not define.
6484 2007-01-08 Richard Guenther <rguenther@suse.de>
6486 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
6487 * trans.c (gnat_to_gnu): Likewise.
6489 2006-12-07 Geoffrey Keating <geoffk@apple.com>
6491 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
6492 * adaint.c: Likewise.
6494 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
6496 Merge from gimple-tuples-branch:
6497 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
6499 * ada-tree.h (lang_tree_node): Handle gimple tuples.
6500 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
6503 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
6505 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
6506 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
6509 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
6512 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
6513 if the initializer takes into account the padding.
6515 2006-11-11 Richard Guenther <rguenther@suse.de>
6517 * trans.c (maybe_stabilize_reference): Remove handling of
6518 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
6520 2006-11-05 Arnaud Charlet <charlet@adacore.com>
6523 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
6524 (To_Target_Priority): New function.
6526 2006-10-31 Robert Dewar <dewar@adacore.com>
6528 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
6529 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
6530 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
6531 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
6532 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
6533 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
6534 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
6535 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
6536 a-szbzha.adb: Minor reformatting. Fix header.
6538 * a-numaux-x86.adb: Add parentheses for use of unary minus
6539 * a-ngcefu.adb: Supply missing parentheses for unary minus
6540 * a-ngcoty.adb: Add parens for use of unary minus
6541 * a-ngelfu.adb: Add missing parens for unary minus
6542 * a-tifiio.adb: Add parentheses for uses of unary minus
6544 2006-10-31 Robert Dewar <dewar@adacore.com>
6545 Bob Duff <duff@adacore.com>
6546 Ed Schonberg <schonberg@adacore.com>
6548 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
6549 with multiplying operator.
6550 (Expected_Type_Is_Any_Real): New function to determine from the Parent
6551 pointer whether the context expects "any real type".
6552 (Resolve_Arithmetic_Op): Do not give an error on calls to the
6553 universal_fixed "*" and "/" operators when they are used in a context
6554 that expects any real type. Also set the type of the node to
6555 Universal_Real in this case, because downstream processing requires it
6556 (mainly static expression evaluation).
6557 Reword some continuation messages
6558 Add some \\ sequences to continuation messages
6559 (Resolve_Call): Refine infinite recursion case. The test has been
6560 sharpened to eliminate some false positives.
6561 Check for Current_Task usage now includes entry barrier, and is now a
6562 warning, not an error.
6563 (Resolve): If the call is ambiguous, indicate whether an interpretation
6564 is an inherited operation.
6565 (Check_Aggr): When resolving aggregates, skip associations with a box,
6566 which are priori correct, and will be replaced by an actual default
6567 expression in the course of expansion.
6568 (Resolve_Type_Conversion): Add missing support for conversion from
6569 a class-wide interface to a tagged type. Minor code cleanup.
6570 (Valid_Tagged_Converion): Add support for abstact interface type
6572 (Resolve_Selected_Component): Call Generate_Reference here rather than
6573 during analysis, and use May_Be_Lvalue to distinguish read/write.
6574 (Valid_Array_Conversion): New procedure, abstracted from
6575 Valid_Conversion, to incorporate accessibility checks for arrays of
6576 anonymous access types.
6577 (Valid_Conversion): For a conversion to a numeric type occurring in an
6578 instance or inlined body, no need to check that the operand type is
6579 numeric, since this has been checked during analysis of the template.
6580 Remove legacy test for scope name Unchecked_Conversion.
6582 * sem_res.ads: Minor reformatting
6584 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
6585 (PE_Current_Task_In_Entry_Body): New exception code
6586 (SE_Restriction_Violation): Removed, not used
6588 * a-except.ads: Update comments.
6590 * types.h, types.ads: Add definition for Validity_Check
6591 (PE_Current_Task_In_Entry_Body): New exception code
6592 (SE_Restriction_Violation): Removed, not used
6594 2006-10-31 Thomas Quinot <quinot@adacore.com>
6596 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
6599 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
6600 Jose Ruiz <ruiz@adacore.com>
6602 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
6603 part of Ada.Calendar: all subprogram raise Unimplemented.
6604 (Split_W_Offset): Temp function body, raising Unimplemented
6606 * a-calend.ads, a-calend-vms.ads:
6607 Add imported variable Invalid_TZ_Offset used to designate targets unable
6608 to support time zones.
6609 (Unimplemented): Temporary function raised by the body of new
6611 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
6612 unit provides handling of leap seconds and is used by the new Ada 2005
6613 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
6614 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
6615 version returns an extra value which is the offset to UTC.
6617 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
6618 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
6619 (Split_W_Offset): New function body.
6620 (Time_Of): When a date is close to UNIX epoch, compute the time for
6621 that date plus one day (that amount is later substracted after
6622 executing mktime) so there are no problems with time zone adjustments.
6624 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
6626 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
6627 a-catizo.ads, a-catizo.adb: New files.
6629 * impunit.adb: Add new Ada 2005 entries
6631 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
6632 Rename all occurences of "__gnat_localtime_r" to
6633 "__gnat_localtime_tzoff".
6634 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
6635 zone data and calculate the GMT offset.
6636 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
6637 Use the field "tm_gmtoff" to extract the GMT offset.
6638 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
6639 the external variable "timezone" to calculate the GMT offset.
6641 2006-10-31 Arnaud Charlet <charlet@adacore.com>
6642 Jose Ruiz <ruiz@adacore.com>
6644 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
6645 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
6646 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
6647 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
6648 System.Any_Priority to a POSIX priority on the target.
6650 * system-linux-ia64.ads:
6651 Extend range of Priority types on Linux to use the whole range made
6652 available by the system.
6654 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
6655 function maps from System.Any_Priority to a POSIX priority on the
6657 (PTHREAD_PRIO_PROTECT): Set real value.
6658 (PTHREAD_PRIO_INHERIT): Now a function.
6659 (SIGCPUFAIL): New signal.
6660 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
6661 are documented as reserved by the OS.
6663 * system-aix.ads: Use the full range of priorities provided by the
6666 * s-taprop-posix.adb: Call new function To_Target_Priority.
6667 (Set_Priority): Take into account Task_Dispatching_Policy and
6668 Priority_Specific_Dispatching pragmas when determining if Round Robin
6669 must be used for scheduling the task.
6671 * system-linux-x86_64.ads, system-linux-x86.ads,
6672 system-linux-ppc.ads: Extend range of Priority types on Linux to use
6673 the whole range made available by the system.
6675 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
6676 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
6677 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
6678 when deallocating the TCB in order to avoid potential references to
6680 (Set_Priority): Take into account Task_Dispatching_Policy and
6681 Priority_Specific_Dispatching pragmas when determining if Round Robin
6682 or FIFO within priorities must be used for scheduling the task.
6684 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
6685 the Thread field (to be used internally by the run-time system) and the
6686 kernel-level task id in the LWP field (to be used by the debugger).
6687 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
6688 instance, and propagate the current task options to the spawned task.
6689 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
6690 (Initialize): Set Round Robin dispatching when the corresponding pragma
6693 2006-10-31 Robert Dewar <dewar@adacore.com>
6695 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
6696 system-linux-hppa.ads, system-hpux-ia64.ads,
6697 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
6698 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
6699 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
6700 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
6701 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
6702 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
6703 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
6704 Default_Bit_Order) to kill constant condition warnings for references
6707 2006-10-31 Vincent Celier <celier@adacore.com>
6708 Eric Botcazou <ebotcazou@adacore.com>
6710 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
6711 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
6712 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
6713 Ext_To, when building the library file name
6715 * mlib-tgt-vxworks.adb: ditto.
6716 (Get_Target_Suffix): Add support for x86 targets.
6718 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
6720 * mlib-tgt-darwin.adb:
6721 Use Append_To, instead of Ext_To, when building the library file name
6722 (Flat_Namespace): New global variable.
6723 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
6724 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
6725 (Link_Shared_Libgcc): Delete.
6726 (Build_Dynamic_Library): Adjust for above changes.
6728 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
6730 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
6732 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
6733 (Initialize): Add type conversions required by above change.
6735 2006-10-31 Jose Ruiz <ruiz@adacore.com>
6737 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
6738 (getpid): New body for this function that uses the underlying taskIdSelf
6739 function for VxWorks 5 and VxWorks 6 in kernel mode.
6740 (unsigned_int): New type, modular to allow logical bit operations.
6741 (taskOptionsGet): New imported function.
6743 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
6744 field to be compliant with the type used by the corresponding operating
6747 2006-10-31 Pascal Obry <obry@adacore.com>
6748 Eric Botcazou <ebotcazou@adacore.com>
6749 Vincent Celier <celier@adacore.com>
6751 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
6752 ASCII version of the registry API. This is needed as the GNAT runtime
6753 is now UNICODE by default.
6755 (get_gcc_version): Do not hardcode the return value.
6756 (__gnat_file_time_name): On Windows properly set the default returned
6757 value to -1 which corresponds to Invalid_Time.
6758 (__gnat_fopen): New routine. A simple wrapper on all plateforms
6759 except on Windows where it does conversion for unicode support.
6760 (__gnat_freopen): Idem.
6761 (__gnat_locate_exec_on_path): If environment variable PATH does not
6762 exist, return a NULL pointer
6764 * adaint.h: (__gnat_fopen): Declare.
6765 (__gnat_freopen): Likewise.
6767 * mingw32.h (_tfreopen): Define this macro here for older MingW
6769 Activate the unicode support on platforms using a MingW runtime
6770 version 3.9 or newer.
6772 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
6773 This is needed for proper unicode support on Windows.
6776 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
6777 Nicolas Setton <setton@adacore.com>
6778 Olivier Hainque <hainque@adacore.com>
6779 Gary Dismukes <dismukes@adacore.com>
6781 * gigi.h: (tree_code_for_record_type): Declare.
6782 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
6783 (get_global_renaming_pointers): Rename to
6784 invalidate_global_renaming_pointers.
6785 (static_ctors): Delete.
6786 (static_dtors): Likewise.
6787 (gnat_write_global_declarations): Declare.
6788 (create_var_decl): Adjust descriptive comment to indicate that the
6789 subprogram may return a CONST_DECL node.
6790 (create_true_var_decl): Declare new function, similar to
6791 create_var_decl but forcing the creation of a VAR_DECL node.
6792 (get_global_renaming_pointers): Declare.
6793 (add_global_renaming_pointer): Likewise.
6795 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
6797 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
6798 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
6800 (gnat_to_gnu_entity): Remove From_With_Type from computation for
6802 <E_Access_Type>: Use the Non_Limited_View as the full view of the
6803 designated type if the pointer comes from a limited_with clause. Make
6804 incomplete designated type if it is in the main unit and has a freeze
6806 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
6807 Underlying_Full_View similarly. Return earlier if the full view already
6808 has an associated tree.
6809 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
6810 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
6811 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
6812 reference type built for objects with an address clause.
6813 Use create_true_var_decl with const_flag set for
6814 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
6816 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
6817 for Character and Wide_Character types. This info is read by the
6818 dwarf-2 writer, and is needed to be able to use the command "ptype
6819 character" in the debugger.
6820 (gnat_to_gnu_entity): When generating a type representing
6821 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
6822 so that debug writers can distinguish it from ordinary integers.
6823 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
6824 addition to TREE_READONLY to assert the constantness of variables for
6825 elaboration purposes.
6826 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
6827 parameters to call new Einfo function First_Formal_With_Extras.
6828 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
6829 protected type with its corresponding discriminant, to obtain a usable
6831 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
6832 for a multiple elaboration of the "equivalent" type.
6833 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
6834 into record_global_renaming_pointer.
6835 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
6836 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
6837 <E_Array_Subtype>: Likewise.
6838 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
6839 incomplete subtypes and incomplete subtypes of incomplete types visible
6840 through a limited with clause.
6841 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
6842 the base index type for the maximum size of the array only if they are
6844 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
6845 expression into a SAVE_EXPR if stabilization failed.
6847 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
6848 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
6849 by lower level compilation passes.
6850 (gnat_genericize): New function, lowering a function body to GENERIC.
6851 Turn the type of RESULT_DECL into a real reference type if the decl
6852 has been marked DECL_BY_REFERENCE, and adjust references to the latter
6854 (gnat_genericize_r): New function. Tree walking callback for
6856 (convert_from_reference, is_byref_result): New functions. Helpers for
6858 (create_type_decl): Call gnat_pushdecl before calling
6859 rest_of_decl_compilation, to make sure that field TYPE_NAME of
6860 type_decl is properly set before calling the debug information writers.
6861 (write_record_type_debug_info): The heuristics which compute the
6862 alignment of a field in a variant record might not be accurate. Add a
6863 safety test to make sure no alignment is set to a smaller value than
6864 the alignment of the field type.
6865 (make_dummy_type): Use the Non_Limited_View as the underlying type if
6866 the type comes from a limited_with clause. Do not loop on the full view.
6867 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
6868 (dummy_node_table): New global variable, moved from decl.c.
6869 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
6870 (save_gnu_tree): Use above macros.
6871 (get_gnu_tree): Likewise.
6872 (present_gnu_tree): Likewise.
6873 (init_dummy_type): New function, moved from decl.c. Use above macros.
6874 (make_dummy_type): Likewise.
6875 (tree_code_for_record_type): New function extracted from make_dummy_type
6876 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
6877 (static_ctors): Change it to a vector, make static.
6878 (static_dtors): Likewise.
6879 (end_subprog_body): Adjust for above change.
6880 (build_global_cdtor): Moved from trans.c.
6881 (gnat_write_global_declarations): Emit global constructor and
6882 destructor, and call cgraph_optimize before emitting debug info for
6883 global declarations.
6884 (global_decls): New global variable.
6885 (gnat_pushdecl): Store the global declarations in global_decls, for
6887 (gnat_write_global_declarations): Emit debug information for global
6889 (create_var_decl_1): Former create_var_decl, with an extra argument to
6890 state whether the creation of a CONST_DECL is allowed.
6891 (create_var_decl): Behavior unchanged. Now a wrapper around
6892 create_var_decl_1 allowing CONST_DECL creation.
6893 (create_true_var_decl): New function, similar to create_var_decl but
6894 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
6895 (create_field_decl): Do not always mark the field as addressable
6896 if its type is an aggregate.
6897 (global_renaming_pointers): New static variable.
6898 (add_global_renaming_pointer): New function.
6899 (get_global_renaming_pointers): Likewise.
6901 * misc.c (gnat_dwarf_name): New function.
6902 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
6903 (gnat_post_options): Add comment about structural alias analysis.
6904 (gnat_parse_file): Do not call cgraph_optimize here.
6905 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
6907 * trans.c (process_freeze_entity): Don't abort if we already have a
6908 non dummy GCC tree for a Concurrent_Record_Type, as it might
6909 legitimately have been elaborated while processing the associated
6910 Concurrent_Type prior to this explicit freeze node.
6911 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
6912 exception handler volatile if it is of variable size.
6913 (process_type): Remove bypass for types coming from a limited_with
6915 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
6916 actual, convert the corresponding gnu_actual to the real destination
6917 type when necessary.
6918 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
6919 originally TREE_READONLY but whose elaboration cannot be performed
6921 Part of fix for F504-021.
6922 (tree_transform, subprogram cases): Change loops on formal parameters to
6923 call new Einfo function First_Formal_With_Extras.
6924 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
6925 stemming from type conversion for the lhs.
6926 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
6927 number of bits per unit for components of records.
6928 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
6929 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
6930 with At_End_Proc after the SJLJ EH cleanup.
6931 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
6933 (elaborate_all_entities): Do not retest type_annotate_only.
6934 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
6935 result type of an abstract subprogram, which may be an itype associated
6936 with an anonymous access result (related to AI-318-02).
6937 (build_global_cdtor): Move to utils.c.
6938 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
6939 this choice is not a null tree nor an integer constant.
6940 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
6941 on the body of elaboration routines instead of mark_unvisited.
6942 (add_stmt): Do not mark the tree.
6943 (add_decl_expr): Tweak comment.
6944 (mark_unvisited): Delete.
6945 (unshare_save_expr): New static function.
6946 (call_to_gnu): Issue an error when making a temporary around a
6947 procedure call because of non-addressable actual parameter if the
6948 type of the formal is by_reference.
6949 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
6950 after building the elaboration routine.
6952 2006-10-31 Bob Duff <duff@adacore.com>
6954 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
6955 as finalization-started, so we can raise Program_Error on 'new'.
6957 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
6958 collection has already started.
6960 * s-finimp.ads (Collection_Finalization_Started): Added new special
6961 flag value for indicating that a collection's finalization has started.
6963 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
6964 create a task whose master has already waited for dependent tasks.
6966 2006-10-31 Robert Dewar <dewar@adacore.com>
6968 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
6970 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
6971 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
6972 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
6973 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
6974 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
6975 a-except-2005.ads: Add pragma Preelaborable_Warning
6977 2006-10-31 Robert Dewar <dewar@adacore.com>
6978 Jose Ruiz <ruiz@adacore.com>
6980 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
6982 * ali.adb (Get_Name): Properly handle scanning of wide character names
6983 encoded with brackets notation.
6984 (Known_ALI_Lines): Add S lines to this list.
6985 (Scan_ALI): Acquire S (priority specific dispatching) lines.
6986 New flag Elaborate_All_Desirable in unit table
6988 * ali.ads (Priority_Specific_Dispatching): Add this range of
6989 identifiers to be used for Priority_Specific_Dispatching table entries.
6990 (ALIs_Record): Add First_Specific_Dispatching and
6991 Last_Specific_Dispatching that point to the first and last entries
6992 respectively in the priority specific dispatching table for this unit.
6993 (Specific_Dispatching): Add this table for storing each S (priority
6994 specific dispatching) line encountered in the input ALI file.
6995 New flag Elaborate_All_Desirable in unit table
6997 * bcheck.adb: (Check_Configuration_Consistency): Add call to
6998 Check_Consistent_Dispatching_Policy.
6999 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
7000 verifying that the use of Priority_Specific_Dispatching,
7001 Task_Dispatching_Policy, and Locking_Policy is consistent across the
7004 * bindgen.adb: (Public_Version_Warning): function removed.
7005 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
7006 required information from ALI files in order to initialize the table
7007 containing the specific dispatching policy.
7008 (Gen_Adainit_Ada): Generate the variables required for priority specific
7009 dispatching entries (__gl_priority_specific_dispatching and
7010 __gl_num_specific_dispatching).
7011 (Gen_Adainit_C): Generate the variables required for priority specific
7012 dispatching entries (__gl_priority_specific_dispatching and
7013 __gl_num_specific_dispatching).
7014 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
7016 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
7017 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
7019 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
7020 a call to gnat_set_globals.
7021 Generate a string containing settings from
7022 Priority_Specific_Dispatching pragma entries.
7023 (Gen_Object_Files_Options): Do not include the runtime libraries when
7024 pragma No_Run_Time is specified.
7026 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
7027 consistency with s-intman-posix.adb.
7028 (__gnat_error_handler, case FreeBSD): Account for the fact that the
7029 handler is installed with SA_SIGINFO.
7030 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
7031 FreeBSD ZCX support, copied from Linux version.
7032 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
7033 sigfillset, and sigemptyset so the routines defined by MaRTE.
7034 (__gl_priority_specific_dispatching): Add this variable that stores the
7035 string containing priority specific dispatching policies in the
7037 (__gl_num_specific_dispatching): Add this variable that indicates the
7038 highest priority for which a priority specific dispatching pragma
7040 (__gnat_get_specific_dispatching): Add this routine that returns the
7041 priority specific dispatching policy, as set by a
7042 Priority_Specific_Dispatching pragma appearing anywhere in the current
7043 partition. The input argument is the priority number, and the result
7044 is the upper case first character of the policy name.
7045 (__gnat_set_globals): Now a dummy function.
7046 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
7047 mechargs instead of sigargs, as the latter can be retrieved from the
7048 former and sigargs is not what we want on ia64.
7049 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
7051 (__gnat_adjust_context_for_raise, ia64-vms): New function.
7052 (tasking_error): Remove unused symbol.
7053 (_abort_signal): Move this symbol to the IRIX specific part since this
7054 is the only target that uses this definition.
7055 (Check_Abort_Status): Move this symbol to the IRIX specific part since
7056 this is the only target that uses this definition.
7057 (Lock_Task): Remove unused symbol.
7058 (Unlock_Task): Remove unused symbol.
7060 * lib-writ.adb (Write_ALI): Output new S lines for
7061 Priority_Specific_Dispatching pragmas.
7062 Implement new flag BD for elaborate body desirable
7064 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
7065 (Specific_Dispatching): Add this table for storing the entries
7066 corresponding to Priority_Specific_Dispatching pragmas.
7067 Document new BD flag for elaborate body desirable
7069 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
7072 2006-10-31 Javier Miranda <miranda@adacore.com>
7074 * a-tags.ads, a-tags.adb:
7075 (Predefined_DT): New function that improves readability of the code.
7076 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
7077 Inherit_DT): Use the new function Predefined_DT to improve code
7079 (Register_Interface_Tag): Update assertion.
7080 (Set_Interface_Table): Update assertion.
7081 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
7082 determining progenitor interfaces in Tags.
7083 (Inherit_CPP_DT): New subprogram.
7085 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
7086 analysis of the thunk code.
7087 (Expand_Interface_Conversion): Handle run-time conversion of
7088 access to class wide types.
7089 (Expand_Dispatching_Call): When generating the profile for the
7090 subprogram itype for a dispatching operation, properly terminate the
7091 formal parameters chaind list (set the Next_Entity of the last formal
7093 (Collect_All_Interfaces): Removed. This routine has been moved to
7094 sem_util and renamed as Collect_All_Abstract_Interfaces.
7095 (Set_All_DT_Position): Hidden entities associated with abstract
7096 interface primitives are not taken into account in the check for
7097 3.9.3(10); this check is done with the aliased entity.
7098 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
7099 interfacing with CPP by default.
7100 (Expand_Interface_Conversion): Add missing support for static conversion
7101 from an interface to a tagged type.
7102 (Collect_All_Interfaces): Add new out formal containing the list of
7103 abstract interface types to cleanup the subprogram Make_DT.
7104 (Make_DT): Update the code to generate the table of interfaces in case
7105 of abstract interface types.
7106 (Is_Predefined_Dispatching_Alias): New function that returns true if
7107 a primitive is not a predefined dispatching primitive but it is an
7108 alias of a predefined dispatching primitive.
7109 (Make_DT): If the ancestor of the type is a CPP_Class and we are
7110 compiling under full ABI compatibility mode we avoid the generation of
7111 calls to run-time services that fill the dispatch tables because under
7112 this mode we currently inherit the dispatch tables in the IP subprogram.
7113 (Write_DT): Emit an "is null" indication for a null procedure primitive.
7114 (Expand_Interface_Conversion): Use an address as the type of the formal
7115 of the internally built function that handles the case in which the
7116 target type is an access type.
7118 2006-10-31 Robert Dewar <dewar@adacore.com>
7120 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
7122 2006-10-31 Robert Dewar <dewar@adacore.com>
7124 * bindusg.ads, bindusg.adb:
7125 Change to package and rename procedure as Display, which
7126 now ensures that it only outputs usage information once.
7128 2006-10-31 Jose Ruiz <ruiz@adacore.com>
7130 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
7133 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
7136 2006-10-31 Robert Dewar <dewar@adacore.com>
7137 Ed Schonberg <schonberg@adacore.com>
7139 * treepr.adb: Use new subtype N_Membership_Test
7141 * checks.ads, checks.adb: Add definition for Validity_Check
7142 (Range_Or_Validity_Checks_Suppressed): New function
7143 (Ensure_Valid): Test Validity_Check suppressed
7144 (Insert_Valid_Check): Test Validity_Check suppressed
7145 (Insert_Valid_Check): Preserve Do_Range_Check flag
7146 (Validity_Check_Range): New procedure
7147 (Expr_Known_Valid): Result of membership test is always valid
7148 (Selected_Range_Checks): Range checks cannot be applied to discriminants
7149 by themselves. Disabling those checks must also be done for task types,
7150 where discriminants may be used for the bounds of entry families.
7151 (Apply_Address_Clause_Check): Remove side-effects if address expression
7152 is non-static and is not the name of a declared constant.
7153 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
7154 Code cleanup and new error messages.
7155 (Enable_Range_Check): Test for some cases of suppressed checks
7156 (Generate_Index_Checks): Suppress index checks if index checks are
7157 suppressed for array object or array type.
7158 (Apply_Selected_Length_Checks): Give warning for compile-time detected
7159 length check failure, even if checks are off.
7160 (Ensure_Valid): Do not generate a check on an indexed component whose
7161 prefix is a packed boolean array.
7162 * checks.adb: (Alignment_Checks_Suppressed): New function
7163 (Apply_Address_Clause_Check): New procedure, this is a completely
7164 rewritten replacement for Apply_Alignment_Check
7165 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
7166 we request a discriminal value only in case of discriminants.
7167 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
7168 assignments where the target subtype is unconstrained and the target
7169 object is a parameter or dereference (other aliased cases are known
7170 to be unconstrained).
7172 2006-10-31 Robert Dewar <dewar@adacore.com>
7174 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
7175 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
7176 vms_conv.adb: Fix bad table increment values (much too small)
7178 * table.adb (Realloc): Make sure we get at least some new elements
7179 Defends against silly small values for table increment
7181 2006-10-31 Robert Dewar <dewar@adacore.com>
7182 Ed Schonberg <schonberg@adacore.com>
7183 Bob Duff <duff@adacore.com>
7185 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
7186 entities. Move other fields around to make this possible
7187 (Is_Derived_Type): Add missing call to Is_Type.
7188 (Extra_Formals): New function for subprograms, entries, subprogram
7190 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
7191 (First_Formal_With_Extras): New function for subprogs, entries, subp
7193 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
7194 Add node information for E_Return_Statement.
7195 (Elaborate_Body_Desirable): New flag
7196 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
7197 to be Is_Inherently_Limited_Type, because return-by-reference has
7198 no meaning in Ada 2005.
7199 (E_Return_Statement): New entity kind.
7200 (Return_Applies_To): Field of E_Return_Statement.
7201 (Is_Return_Object): New flag in object entities.
7202 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
7203 (Must_Have_Preelab_Init): New flag
7204 (Known_To_Have_Preelab_Init): New flag
7205 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
7206 (Is_Visible_Formal): New flag on entities in formal packages.
7207 (Low_Bound_Known): New flag
7208 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
7210 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
7211 output when Id is an incomplete subtype.
7213 2006-10-31 Robert Dewar <dewar@adacore.com>
7215 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
7216 Avoid abbreviation Creat
7217 (Finalize): List all sources in extended mail source if -gnatl
7219 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
7220 (Finalize): Implement new -gnatl=xxx switch to output listing to file
7221 (Set_Specific_Warning_On): New procedure
7222 (Set_Specific_Warning_Off): New procedure
7223 Add implementation of new insertion \\
7224 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
7225 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
7227 (Error_Msg_Internal): Make sure that we set Last_Killed to
7228 True when a message from another package is suppressed.
7229 Implement insertion character ~ (insert string)
7230 (First_Node): Minor adjustments to get better placement.
7233 Implement new -gnatl=xxx switch to output listing to file
7236 Implement new -gnatl=xxx switch to output listing to file
7238 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
7239 (Commands_To_Stdout): New flag
7240 Implement new -gnatl=xxx switch to output listing to file
7241 New switch Dump_Source_Text
7242 (Warn_On_Deleted_Code): New warning flag for -gnatwt
7243 Define Error_Msg_Line_Length
7244 (Warn_On_Assumed_Low_Bound): New switch
7246 * osint.ads, osint.adb
7247 (Normalize_Directory_Name): Fix bug.
7248 Implement new -gnatl=xxx switch to output listing to file
7249 (Concat): Removed, replaced by real concatenation
7250 Make use of concatenation now allowed in compiler
7251 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
7252 we find the 'lib' or 'bin' directory even when the tool has been
7253 invoked with a relative path.
7254 (Executable_Name): New function taking string parameters.
7256 * osint-c.ads, osint-c.adb:
7257 Implement new -gnatl=xxx switch to output listing to file
7259 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
7262 Implement new -gnatl=xxx switch to output listing to file
7263 Recognize new -gnatL switch
7264 (no longer keep in old warning about old style usage)
7265 Use concatenation to simplify code
7266 Recognize -gnatjnn switch
7267 (Scan_Front_End_Switches): Clean up handling of -gnatW
7268 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
7270 2006-10-31 Robert Dewar <dewar@adacore.com>
7272 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
7273 (Set_Specific_Warning_Off): New procedure
7274 (Warning_Specifically_Suppressed): New function
7275 (Validate_Specific_Warnings): New procedure
7276 (Output_Msg_Text): Complete rewrite to support -gnatjnn
7278 * err_vars.ads: Implement insertion character ~ (insert string)
7280 2006-10-31 Bob Duff <duff@adacore.com>
7281 Ed Schonberg <schonberg@adacore.com>
7283 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
7284 the parent part is a build-in-place function call, generate assignments.
7285 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
7286 are build-in-place function calls.
7287 (Replace_Self_Reference): New subsidiary of
7288 Make_OK_Assignment_Statement, to replace an access attribute that is a
7289 self-reference into an access to the appropriate component of the
7290 target object. Generalizes previous mechanism to handle self-references
7291 nested at any level.
7292 (Is_Self_Referential_Init): Remove, not needed.
7293 (Is_Self_Referential_Init): New predicate to simplify handling of self
7294 referential components in record aggregates.
7295 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
7296 check for presence of entity before checking for self-reference.
7297 (Has_Default_Init_Comps): Return True if a component association is a
7298 self-reference to the enclosing type, which can only come from a
7299 default initialization.
7300 (Make_OK_Assignment_Statement): If the expression is of the form
7301 Typ'Acc, where Acc is an access attribute, the expression comes from a
7302 default initialized self-referential component.
7303 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
7304 that has been derived from several abstract interfaces we must also
7305 initialize the tags of the secondary dispatch tables.
7307 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7308 Thomas Quinot <quinot@adacore.com>
7309 Javier Miranda <miranda@adacore.com>
7310 Robert Dewar <dewar@adacore.com>
7313 (Expand_Access_To_Protected_Op): If the context indicates that an access
7314 to a local operation may be transfered outside of the object, create an
7315 access to the wrapper operation that must be used in an external call.
7316 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
7317 target, pass the Valid attribute applied to a floating-point prefix on
7318 to the back end without expansion.
7319 (Storage_Size): Use the new run-time function Storage_Size to retrieve
7320 the allocated storage when it is specified by a per-object expression.
7321 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
7322 Nothing to do here, the attribute has been rewritten during semantic
7324 (Expand_Attribute_Reference): Handle expansion of the new Priority
7326 (Find_Fat_Info): Handle case of universal real
7327 (Expand_Access_To_Protected_Op): Fix use of access to protected
7328 subprogram from inside the body of a protected entry.
7329 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
7330 'Access and 'Unrestricted_Access, to transform the attribute reference
7332 (Is_Constrained_Aliased_View): New predicate to help determine whether a
7333 subcomponent's enclosing variable is aliased with a constrained subtype.
7334 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
7335 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
7336 an aliased prefix must be known to be constrained in order to use True
7337 for the attribute value, and now it's possible for some aliased views
7338 to be unconstrained.
7340 2006-10-31 Robert Dewar <dewar@adacore.com>
7342 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
7343 (Expand_Entity_Reference): Correct error of not handling subprogram
7344 formals in current_value processing.
7346 2006-10-31 Javier Miranda <miranda@adacore.com>
7347 Robert Dewar <dewar@adacore.com>
7348 Ed Schonberg <schonberg@adacore.com>
7349 Gary Dismukes <dismukes@adacore.com>
7351 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
7352 register in the final list objects containing class-wide interfaces;
7353 otherwise we incorrectly register the tag of the interface in the final
7355 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
7356 generate the wrapper if the parent primitive is abstract. This is
7357 required to report the correct error message.
7358 (Expand_N_Subtype_Indication): Do validity checks on range
7359 (Clean_Task_Names): If an initialization procedure includes a call to
7360 initialize a task (sub)component, indicate that the procedure will use
7361 the secondary stack.
7362 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
7363 compatibility for interfacing with CPP by default.
7364 (Expand_N_Object_Declaration): Only build an Adjust call when the
7365 object's type is a nonlimited controlled type.
7366 * exp_ch3.adb: Add with and use of Exp_Ch6.
7367 (Expand_N_Object_Declaration): Check for object initialization that is a
7368 call to build-in-place function and apply Make_Build_In_Place_Call_In_
7369 Object_Declaration to the call.
7370 (Freeze_Type): When the designated type of an RACW was not frozen at the
7371 point where the RACW was declared, validate the primitive operations
7372 with respect to E.2.2(14) when it finally is frozen.
7373 (Build_Initialization_Call,Expand_Record_Controller): Rename
7374 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
7375 return-by-reference has no meaning in Ada 2005.
7376 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
7377 to register tag of the immediate ancestor interfaces in the
7379 (Init_Secondary_Tags): Moved to the specification to allow the
7380 initialization of extension aggregates with abstract interfaces.
7381 (Build_Master_Renaming): Make public, for use by function declarations
7382 whose return type is an anonymous access type.
7383 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
7384 Insert_List_Before_And_Analyze after the generation of the specs
7385 associated with null procedures.
7386 (Expand_Tagged_Root): Update documentation in its specification.
7387 (Init_Secondary_Tags): Update documentation.
7388 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
7389 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
7390 then generate code to inherit the contents of the dispatch table
7391 directly from the ancestor.
7392 (Expand_Record_Controller): Insert controller component after tags of
7393 implemented interfaces.
7394 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
7395 create null procedure overridings when null procedures are inherited
7397 (Make_Null_Procedure_Specs): New procedure to generate null procedure
7398 declarations for overriding null primitives inherited from interfaces.
7399 (Is_Null_Interface_Procedure): New function in
7400 Make_Null_Procedure_Specs.
7401 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
7402 immediate ancestor of a tagged type is an abstract interface type we
7403 must generate the specification of the predefined primitives associated
7404 with controlled types (because the dispatch table of the ancestor is
7405 null and hence these entries cannot be inherited). This is required to
7406 elaborate well the dispatch table.
7408 2006-10-31 Javier Miranda <miranda@adacore.com>
7409 Ed Schonberg <schonberg@adacore.com>
7410 Bob Duff <duff@adacore.com>
7411 Gary Dismukes <dismukes@adacore.com>
7412 Robert Dewar <dewar@adacore.com>
7414 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
7416 (Expand_N_In): Do validity checks on range
7417 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
7418 (Expand_N_Allocator): For "new T", if the object is constrained by
7419 discriminant defaults, allocate the right amount of memory, rather than
7420 the maximum for type T.
7421 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
7422 when the allocator is initialized by a build-in-place call, since the
7423 allocator is already rewritten as a reference to the function result,
7424 and this prevents an unwanted duplication of the function call.
7425 Add with and use of Exp_Ch6.
7426 (Expand_Allocator_Expresssion): Check for an allocator whose expression
7427 is a call to build-in-place function and apply
7428 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
7429 untagged designated types).
7430 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
7431 optimization if source or target is biased.
7432 (Expand_N_Allocator): Add comments for case of an allocator within a
7433 function that returns an anonymous access type designating tasks.
7434 (Expand_N_Allocator): apply discriminant checks for access
7435 discriminants of anonymous access types (AI-402, AI-416)
7437 2006-10-31 Bob Duff <duff@adacore.com>
7438 Robert Dewar <dewar@adacore.com>
7439 Gary Dismukes <dismukes@adacore.com>
7440 Ed Schonberg <schonberg@adacore.com>
7442 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
7444 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
7445 (Expand_N_Assignment_Statement): Call
7446 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
7447 build-in-place function call. Currently, this can happen only for
7448 assignments that come from aggregates.
7449 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
7450 in order to alleviate the upward compatibility introduced by AI-318.
7451 (Expand_N_Extended_Return_Statement): Add support for handling the
7452 return object as a build-in-place result.
7453 (Expand_Non_Function_Return): Implement simple return statements nested
7454 within an extended return.
7455 (Enable_New_Return_Processing): Turn on the new processing of return
7457 (Expand_Non_Function_Return): For a return within an extended return,
7458 don't raise Program_Error, because Sem_Ch6 now gives a warning.
7459 (Expand_N_Extended_Return_Statement): Implement AI-318
7460 (Expand_Simple_Function_Return): Ditto.
7461 (Expand_N_If_Statement): Handle new -gnatwt warning
7462 (Expand_N_Case_Statement): Handle new -gnatwt warning
7463 (Expand_N_Assignment): Handle assignment to the Priority attribute of
7465 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
7466 validity checking of assignments to elementary record components.
7467 (Expand_N_Return_Statement): return Class Wide types on the secondary
7468 stack independantly of their controlled status since with HIE runtimes,
7469 class wide types are not potentially controlled anymore.
7471 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
7474 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
7475 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
7476 it expects a block, procedure, or task. The return statement will get
7477 turned into a block, and Expand_Cleanup_Actions will happen then.
7479 2006-10-31 Robert Dewar <dewar@adacore.com>
7480 Ed Schonberg <schonberg@adacore.com>
7481 Bob Duff <duff@adacore.com>
7482 Gary Dismukes <dismukes@adacore.com>
7484 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
7486 (Expand_Inlined_Call): Tagged types are by-reference types, and
7487 therefore should be replaced by a renaming declaration in the expanded
7488 body, as is done for limited types.
7489 (Expand_Call): If this is a call to a function with dispatching access
7490 result, propagate tag from context.
7491 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
7493 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
7494 build-in-place when the right-hand side of an assignment is a
7495 build-in-place function call.
7496 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
7497 of the explicit dereference of the allocator to the result subtype of
7498 the build-in-place function. This is needed to satisfy type checking
7499 in cases where the caller's return object is created by an allocator for
7500 a class-wide access type and the type named in the allocator is a
7502 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
7503 conversion of the reference to the declared object to the result subtype
7504 of the build-in-place function. This is needed to satisfy type checking
7505 in cases where the declared object has a class-wide type. Also, in the
7506 class-wide case, change the type of the object entity to the specific
7507 result subtype of the function, to avoid passing a class-wide object
7508 without explicit initialization to the back end.
7509 (Register_Interface_DT_Entry): Moved outside the body of
7510 Freeze_Subprogram because this routine is now public; it is called from
7511 Check_Dispatching_Overriding to handle late overriding of abstract
7512 interface primitives.
7513 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
7514 adding an implicit access actual on a call to a build-in-place function.
7515 (Expand_Actuals): Test for an actual parameter that is a call to a
7516 build-in-place function and apply
7517 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
7518 (Is_Build_In_Place_Function): New function to determine whether an
7519 entity is a function whose calls should be handled as build-in-place.
7520 (Is_Build_In_Place_Function_Call): New function to determine whether an
7521 expression is a function call that should handled as build-in-place.
7522 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
7523 calls to build-in-place functions as the initialization of an allocator.
7524 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
7525 handling calls to build-in-place functions in contexts that do not
7526 involve init of a separate object (for example, actuals of subprogram
7528 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
7529 handling calls to build-in-place functions as the initialization of an
7531 (Detect_Infinite_Recursion): Add explicit parameter Process to
7532 instantiation of Traverse_Body to avoid unreferenced warning.
7533 (Check_Overriding_Inherited_Interfaces): Removed.
7534 (Register_Interface_DT_Entry): Code cleanup.
7535 (Register_Predefined_DT_Entry): Code cleanup.
7536 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
7537 inlined statements if within a transient scope.
7538 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
7539 formal parameters with occurrences of actuals in inlined body, establish
7540 visibility on the proper view of the actual's subtype for the body's
7542 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
7543 compatibility mode and we have an imported CPP subprogram because
7544 for now we assume that imported CPP primitives correspond with
7545 objects whose constructor is in the CPP side (and therefore we
7546 don't need to generate code to register them in the dispatch table).
7547 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
7548 aligned selected component.
7549 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
7550 the actual of an in-mode parameter is a type conversion.
7551 (Expand_Actuals): If the call does not come from source and the actual
7552 is potentially misaligned, let gigi handle it rather than rejecting the
7553 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
7554 Class Wide types as returning by reference independantly of their
7555 controlled status since with HIE runtimes class wide types are not
7556 potentially controlled anymore.
7558 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7560 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
7561 references that are private components of the protected object.
7562 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
7563 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
7564 instantiation to deal with warnings.
7565 (Initialize_Protection): If expression for priority is non-static, use
7566 System_Priority as its expected type, in case the expression has not
7569 2006-10-31 Robert Dewar <dewar@adacore.com>
7571 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
7572 initialization of Homonym_Len.
7573 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
7574 names from fully qualified name. Fixes problem of duplicate
7575 external names differing only in the presence of such a block name.
7577 2006-10-31 Thomas Quinot <quinot@adacore.com>
7578 Pablo Oliveira <oliveira@adacore.com>
7580 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
7581 subprogram Ids, even if they are not yet assigned.
7582 (Build_Subprogram_Id): It is now this function that will take care of
7583 calling Assign_Subprogram_Ids if necessary.
7584 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
7585 should be done only once they are assigned.
7586 (Build_From_Any_Function, case of tagged types): Add missing call to
7588 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
7589 type for an RACW type.
7590 (Add_RACW_Features): When processing an RACW declaration for which the
7591 designated type is already frozen, enforce E.2.2(14) rules immediately.
7592 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
7593 special reordering of controlling formals.
7595 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
7596 associated stub type for an RACW type.
7598 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7600 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
7601 fixed-point operations in an integer context, i.e. as operands of a
7602 conversion to an integer type, indicate that result must be rounded.
7604 2006-10-31 Robert Dewar <dewar@adacore.com>
7606 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
7607 cases, pass the encoding method, since it is now required by the run
7610 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
7611 assumption that Str'First = 1.
7612 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
7613 it on to the Value_Wide_Wide_Character call.
7614 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
7615 properly handles a string of the form quote-encoded_wide_char-quote.
7617 * s-wchcnv.adb: Minor reformatting
7619 2006-10-31 Javier Miranda <miranda@adacore.com>
7621 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
7622 run-time membership test to ensure that the constructed object
7623 implements the target abstract interface.
7625 2006-10-31 Robert Dewar <dewar@adacore.com>
7627 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
7628 Machine_Attribute pragma internally to implement the user pragma.
7629 Add processing for pragma Interface so that it is now completely
7630 equivalent to pragma Import.
7632 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
7633 so that it can be applied to all entities, including record components
7634 and enumeration literals.
7635 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
7636 priority ranges are correct, verify compatibility against task
7637 dispatching and locking policies, and if everything is correct an entry
7638 is added to the table containing priority specific dispatching entries
7639 for this compilation unit.
7640 (Delay_Config_Pragma_Analyze): Delay processing
7641 Priority_Specific_Dispatching pragmas because when processing the
7642 pragma we need to access run-time data, such as the range of
7643 System.Any_Priority.
7644 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
7645 Allow pragma Unreferenced as a context item
7646 Add pragma Preelaborable_Initialization
7647 (Analyze_Pragma, case Interface): Interface is extended so that it is
7648 now syntactically and semantically equivalent to Import.
7649 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
7650 insertion characters.
7651 Add handling for Pragma_Wide_Character_Encoding
7652 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
7653 never supercedes a real restriction, and that a real restriction
7654 always supercedes a warning.
7655 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
7658 2006-10-31 Bob Duff <duff@adacore.com>
7659 Ed Schonberg <schonberg@adacore.com>
7660 Robert Dewar <dewar@adacore.com>
7662 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
7663 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
7664 Is_Inherently_Limited_Type, because return-by-reference has no meaning
7666 (Find_Node_To_Be_Wrapped): Use new method of determining the result
7667 type of the function containing a return statement, because the
7668 Return_Type field was removed. We now use the Return_Applies_To field.
7670 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
7671 (Build_Task_Image_Decl): If procedure is not called from an
7672 initialization procedure, indicate that function that builds task name
7673 uses the sec. stack. Otherwise the enclosing initialization procedure
7674 will carry the indication.
7675 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
7676 N_Object_Declaration instead.
7677 (Kill_Dead_Code): New interface to implement -gnatwt warning for
7678 conditional dead code killed, and change implementation accordingly.
7679 (Insert_Actions): Add N_Return_Object_Declaration case.
7680 Correct comment to mention N_Extension_Aggregate node.
7681 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
7682 attempts to save information for global variables which cannot be
7684 (Get_Current_Value_Condition): Handle conditions the other way round
7685 (constant on left). Also handle right operand of AND and AND THEN
7686 (Set_Current_Value_Condition): Corresponding changes
7687 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
7688 (Get_Current_Value_Condition): Handle simple boolean operands
7689 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
7690 (Get_Current_Value_Condition): If the variable reference is within an
7691 if-statement, does not appear in the list of then_statments, and does
7692 not come from source, treat it as being at unknown location.
7693 (Get_Current_Value_Condition): Enhance to allow while statements to be
7694 processed as well as if statements.
7695 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
7697 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
7698 of loop. This is safe now that we fixed Kill_Current_Values.
7699 (OK_To_Do_Constant_Replacement): Check whether current scope is
7700 Standard, before examining outer scopes.
7702 2006-10-31 Vincent Celier <celier@adacore.com>
7704 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
7705 When True, apply VMS treatment to children of packages A, G, I and S.
7708 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
7710 2006-10-31 Robert Dewar <dewar@adacore.com>
7711 Ed Schonberg <schonberg@adacore.com>
7713 * freeze.adb: Add handling of Last_Assignment field
7714 (Warn_Overlay): Supply missing continuation marks in error msgs
7715 (Freeze_Entity): Add check for Preelaborable_Initialization
7717 * g-comlin.adb: Add Warnings (Off) to prevent new warning
7719 * g-expect.adb: Add Warnings (Off) to prevent new warning
7721 * lib-xref.adb: Add handling of Last_Assignment field
7722 (Generate_Reference): Centralize handling of pragma Obsolescent here
7723 (Generate_Reference): Accept an implicit reference generated for a
7724 default in an instance.
7725 (Generate_Reference): Accept a reference for a node that is not in the
7726 main unit, if it is the generic body corresponding to an subprogram
7729 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
7731 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
7733 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
7735 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
7736 use clauses, to avoid messages on packages used to qualify, and also
7737 to avoid messages from obsolescent units.
7738 (Warn_On_Useless_Assignments): Don't generate messages for imported
7739 and exported variables.
7740 (Warn_On_Useless_Assignments): New procedure
7741 (Output_Obsolescent_Entity_Warnings): New procedure
7742 (Check_Code_Statement): New procedure
7744 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
7745 Change name Is_Ada_2005 to Is_Ada_2005_Only
7746 (Last_Assignment): New field for useless assignment warning
7748 2006-10-31 Olivier Hainque <hainque@adacore.com>
7750 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
7751 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
7753 2006-10-31 Bob Duff <duff@adacore.com>
7754 Robert Dewar <dewar@adacore.com>
7755 Ed Schonberg <schonberg@adacore.com>
7757 * g-awk.adb (Default_Session, Current_Session): Compile this file in
7758 Ada 95 mode, because it violates the new rules for AI-318.
7760 * g-awk.ads: Use overloaded subprograms in every case where we used to
7761 have a default of Current_Session. This makes the code closer to be
7762 correct for both Ada 95 and 2005.
7764 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
7765 code, relying on the fact that the compiler generates a warning
7766 instead of an error in -gnatg mode.
7768 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
7769 E_Return_Statement entity kind.
7770 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
7772 * par.adb (P_Interface_Type_Definition): Addition of one formal to
7773 report an error if the reserved word abstract has been previously found.
7774 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
7776 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
7777 parenthesized range attribute usage
7778 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
7780 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
7781 in the syntax for extended_return_statement. This is not in the latest
7782 RM, but the ARG is expected to issue an AI allowing this.
7783 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
7784 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
7785 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
7786 P_Return_Statement): Parse the new syntax for extended_return_statement.
7788 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
7789 Output_End_Missing): Add error-recovery code for the new
7790 extended_return_statement syntax; that is, the new E_Return entry on
7793 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
7794 limited to nonlimited, because otherwise we violate the new Ada 2005
7795 rules about returning limited types in function Create_AST_Handler in
7798 * sem.adb (Analyze): Add cases for new node kinds
7799 N_Extended_Return_Statement and N_Return_Object_Declaration.
7801 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
7802 type is in the same category as type of context before applying check,
7803 to prevent anomalies in instantiations.
7804 (Resolve_Aggregate): Remove test for limited components in aggregates.
7805 It's unnecessary in Ada 95, because if it has limited components, then
7806 it must be limited. It's wrong in Ada 2005, because limited aggregates
7808 (Resolve_Record_Aggregate): Move check for limited types later, because
7809 OK_For_Limited_Init requires its argument to have been resolved.
7810 (Get_Value): When copying the component default expression for a
7811 defaulted association in an aggregate, use the sloc of the aggregate
7812 and not that of the original expression, to prevent spurious
7813 elaboration errors, when the expression includes function calls.
7814 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
7815 were missing. We also didn't handle qualified expressions. Now also
7816 allow function calls. Use new common routine OK_For_Limited_Init.
7817 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
7818 with space can upper case letter).
7820 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
7821 Has_Static_Discriminants flag
7822 (Record_Type_Declaration): Diagnose an attempt to declare an interface
7823 type with discriminants.
7824 (Process_Range_Expr_In_Decl): Do validity checks on range
7825 (Build_Discriminant_Constraints): Use updated form of
7826 Denotes_Discriminant.
7827 (Process_Subtype): If the subtype is a private subtype whose full view
7828 is a concurrent subtype, introduce an itype reference to prevent scope
7830 (Build_Derived_Record_Type, Collect_Interface_Primitives,
7831 Record_Type_Declaration): The functionality of the subprograms
7832 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
7833 is now performed by a single routine.
7834 (Build_Derived_Record_Type): If the type definition includes an explicit
7835 indication of limitedness, then the type must be marked as limited here
7836 to ensure that any access discriminants will not be treated as having
7837 a local anonymous access type.
7838 (Check_Abstract_Overriding): Issue a detailed error message when an
7839 abstract subprogram was not overridden due to incorrect mode of its
7841 (Analyze_Private_Extension_Declaration): Add support for the analysis of
7842 synchronized private extension declarations. Verify that the ancestor is
7843 a limited or synchronized interface or in the generic case, the ancestor
7844 is a tagged limited type or synchronized interface and all progenitors
7845 are either limited or synchronized interfaces.
7846 Derived_Type_Declaration): Check for presence of private extension when
7847 dealing with synchronized formal derived types.
7848 Process_Full_View): Enchance the check done on the usage of "limited" by
7849 testing whether the private view is synchronized.
7850 Verify that a synchronized private view is completed by a protected or
7852 (OK_For_Limited_Init_In_05): New function.
7853 (Analyze_Object_Declaration): Move check for limited types later,
7854 because OK_For_Limited_Init requires its argument to have been resolved.
7855 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
7856 in order to alleviate the upward compatibility introduced by AI-318.
7857 (Constrain_Corresponding_Record): If the constraint is for a component
7858 subtype, mark the itype as frozen, to avoid out-of-scope references to
7859 discriminants in the back-end.
7860 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
7861 this subprogram against wrong sources.
7862 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
7863 discriminant of limited type completed with a protected type, when the
7864 discriminant is used to constrain a private component of the type, and
7865 expansion is disabled.
7866 (Find_Type_Of_Object): Do not treat a return subtype that is an
7867 anonymous subtype as a local_anonymous_type, because its accessibility
7868 level is the return type of the enclosing function.
7869 (Check_Initialization): In -gnatg mode, turn the error "cannot
7870 initialize entities of limited type" into a warning.
7871 (OK_For_Limited_Init): Return true for generated nodes, since it
7872 sometimes violates the legality rules.
7873 (Make_Incomplete_Declaration): If the type for which an incomplete
7874 declaration is created happens to be the currently visible entity,
7875 preserve the homonym chain when removing it from visibility.
7876 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
7877 inherited subprograms.
7878 (Access_Definition): If this is an access to function that is the return
7879 type of an access_to_function definition, context is a type declaration
7880 and the scope of the anonymous type is the current one.
7881 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
7882 incomplete subtype to the set of private dependents of the original
7884 (Constrain_Discriminated_Type): Emit an error message whenever an
7885 incomplete subtype is being constrained.
7886 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
7887 corresponding subtype of the full view of the original incomplete type.
7888 (Check_Incomplete): Properly detect invalid usage of incomplete types
7891 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
7893 * g-catiio.ads, g-catiio.adb (Value): New function.
7894 Given an input String, try and parse a valid Time value.
7896 2006-10-31 Vincent Celier <celier@adacore.com>
7898 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
7899 Integer_Address arithmetic, as in Set_Valid.
7901 2006-10-31 Arnaud Charlet <charlet@adacore.com>
7902 Robert Dewar <dewar@adacore.com>
7904 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
7905 handling executable extension manually and duplicating code.
7907 * make.adb: Implement new -S switch
7908 (Gnatmake): Use new function Osint.Executable_Name instead
7909 of handling executable extension manually.
7911 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
7912 is specified, the executable name ends with this suffix.
7913 Take advantage of Osint.Executable_Name instead of duplicating code.
7915 * switch-m.adb: Recognize new gnatmake -S switch
7917 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
7919 (Get_Target_Parameters): Set Executable_Extension_On_Target if
7922 * makeusg.adb: Add line for gnatmake -S switch
7924 2006-10-31 Vincent Celier <celier@adacore.com>
7926 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
7927 call it with -static-libgcc, as there are some platforms, such as
7928 Darwin, where one of these two switches is compulsory to link.
7930 2006-10-31 Vincent Celier <celier@adacore.com>
7932 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
7933 instead of ADA_PROJECT_PATH, for the project path.
7934 (Gnatls): When displaying the project path directories, use host dir
7937 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
7938 names in the project path, as absolute paths may correspond to
7939 multi-valued VMS logical names.
7941 2006-10-31 Vincent Celier <celier@adacore.com>
7943 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
7945 (Locate_Regular_File): Ditto
7946 (Change_Dir): Remove, no longer used
7947 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
7948 on Windows. Get it calling Get_Current_Dir.
7949 (OpenVMS): Remove imported boolean, no longer needed.
7950 (Normalize_Pathname)[VMS]: Do not resolve directory names.
7951 (Pid_To_Integer): New function to convert a Process_Id to Integer
7953 2006-10-31 Thomas Quinot <quinot@adacore.com>
7955 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
7956 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
7958 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
7961 2006-10-31 Robert Dewar <dewar@adacore.com>
7963 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
7964 initial letter o as a zero.
7966 2006-10-31 Robert Dewar <dewar@adacore.com>
7968 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
7970 2006-10-31 Robert Dewar <dewar@adacore.com>
7972 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
7974 (Layout_Variant_Record): Retrieve the discriminants from the entity
7975 rather than from the type definition, because in the case of a full
7976 type for a private type we need to take the discriminants from the
7978 (Layout_Component_List): When applying the Max operator to variants with
7979 a nonstatic size, check whether either operand is static and scale that
7980 operand from bits to storage units before applying Max.
7981 (Layout_Type): In VMS, if a C-convention access type has no explicit
7982 size clause (and does not inherit one in the case of a derived type),
7983 then the size is reset to 32 from 64.
7985 2006-10-31 Vincent Celier <celier@adacore.com>
7987 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
7988 its file has already been loaded, according to the unit being loaded,
7989 not to the current value of Multiple_Unit_Index.
7991 2006-10-31 Thomas Quinot <quinot@adacore.com>
7992 Eric Botcazou <ebotcazou@adacore.com>
7993 Arnaud Charlet <charlet@adacore.com>
7995 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
7996 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
7998 (a-except.o): Pass it to the compiler.
7999 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
8000 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
8001 a-calend-mingw.adb version.
8003 * Makefile.rtl: Added s-dsaser.
8004 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
8005 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
8006 Ada.Dispatching.Round_Robin.
8007 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
8009 * Make-lang.in: Remove all references to gt-ada-decl.h.
8010 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
8012 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
8013 Update dependencies.
8015 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
8017 2006-10-31 Vincent Celier <celier@adacore.com>
8019 * mlib-utl.adb (Initialized): Remove, no longer used
8020 (Initialize): Remove, no longer used
8021 (Ar): If Ar_Exec is null, get the location of the archive builder and,
8022 if there is one, the archive indexer. Fail if the archive builder cannot
8024 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
8027 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8029 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
8030 Process_Body_Clauses): If the context of a body includes a use clause
8031 for P.Q then a with_clause for P in the same body is not redundant,
8032 even if the spec also has a with_clause on P.
8033 Add missing continuation mark to error msg
8034 (Build_Limited_Views): A limited view of a type is tagged if its
8035 declaration includes a record extension.
8036 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
8037 node, even if the subunit has errors. This avoids malfunction by
8038 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
8039 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
8040 generation of obsolescent messages for with statements (cannot do
8041 this too early, or we cannot implement avoiding the messages in the
8042 case of obsolescent units withing obsolescent units).
8043 (Install_Siblings): If the with_clause is on a remote descendant of
8044 an ancestor of the current compilation unit, find whether there is
8045 a sibling child unit that is immediately visible.
8046 (Remove_Private_With_Clauses): New procedure, invoked after completing
8047 the analysis of the private part of a nested package, to remove from
8048 visibility the private with_clauses of the enclosing package
8050 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
8051 now centralized in Generate_Reference.
8052 (Install_Limited_Context_Clauses): Remove superfluous error
8053 message associated with unlimited view visible through use
8054 and renamings. In addition, at the point in which the error
8055 is reported, we add the backslash to the text of the error
8056 to ensure that it is reported as a single error message.
8057 Use new // insertion for some continuation messages
8058 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
8059 to create implicit with_clause for parent unit mentioned in original
8060 limited_with_clause.
8061 (Install_Limited_With_Unit): Set entity of parent identifiers if the
8062 unit is a child unit. For ASIS queries.
8063 (Analyze_Subunit): If the subunit appears within a child unit, make all
8064 ancestor child units directly visible again.
8066 2006-10-31 Robert Dewar <dewar@adacore.com>
8068 * par-ch10.adb (P_Context_Clause): Minor error message fix
8070 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8071 Javier Miranda <miranda@adacore.com>
8073 * par-ch12.adb: Grammar update and cleanup.
8074 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
8075 support for synchronized derived type definitions.
8076 Add the new actual Abstract_Present to every call to
8077 P_Interface_Type_Definition.
8078 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
8079 a formal object declaration with an access definition or a subtype mark
8080 with a null exclusion.
8081 (P_Generic_Association): Handle association with box, and others_choice
8082 with box, to support Ada 2005 partially parametrized formal packages.
8084 2006-10-31 Robert Dewar <dewar@adacore.com>
8085 Javier Miranda <miranda@adacore.com>
8087 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
8088 (P_Type_Declaration): Remove barrier against the reserved word "limited"
8089 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
8090 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
8092 (P_Type_Declaration): Add the new actual Abstract_Present to every call
8093 to P_Interface_Type_Definition.
8094 (P_Interface_Type_Definition): Addition of one formal to report an error
8095 if the reserved word abstract has been previously found.
8096 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
8097 object renaming declaration with an access definition or subtype mark
8098 with a possible null exclusion.
8100 * par-ch9.adb: Minor error msg fix
8102 * par-load.adb: Add missing continuation mark to error msg
8104 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
8106 2006-10-31 Vincent Celier <celier@adacore.com>
8108 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
8109 unknown attribute in unknown package or in package that does not need
8111 (Parse_Package_Declaration): Do not issue warning for unknown package in
8114 2006-10-31 Vincent Celier <celier@adacore.com>
8116 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
8117 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
8120 2006-10-31 Vincent Celier <celier@adacore.com>
8122 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
8123 on VMS, change "__" to '.' before checking the name.
8124 (Record_Ada_Source): Always add the source file name in the list of
8125 of sources, even if it is not the first time, as it is for another
8127 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
8128 dot, instead of replacing only the first '_'.
8130 * prj-part.adb (Parse): Convert project file path to canonical form
8132 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
8133 extended, the project id of the project extending it is recorded in its
8134 data, even when it has already been processed as an imported project.
8136 2006-10-31 Robert Dewar <dewar@adacore.com>
8138 * repinfo.adb (List_Entities): Don't list entities from renaming
8141 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8142 Robert Dewar <dewar@adacore.com>
8144 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
8145 only a restriction warning is active for the given restriction. This is
8146 desirable because we do not want to modify code in the case where only
8148 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
8149 causes overriding of real restrictions.
8150 Take advantage of new No_Restrictions constant.
8152 * raise.h: (__gnat_set_globals): Change profile.
8154 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8156 * rtsfind.adb: Remove s-polint from comment as it exists no more.
8159 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
8160 Move all the entities in obsolete package System.PolyORB_Interface to
8161 System.Partition_Interface.
8162 (RE_Storage_Size): New function in System.Tasking.
8163 (RE_Get_Ceiling): New entity.
8164 (RE_Set_Ceiling): New entity.
8165 (RO_PE_Get_Ceiling): New entity.
8166 (RO_RE_Set_Ceiling): New entity.
8167 (Inherit_CPP_DT): New entity
8169 2006-10-31 Robert Dewar <dewar@adacore.com>
8171 * scng.adb (Scan, case of numeric literal): Better msg for identifier
8172 starting with a digit.
8174 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8175 Thomas Quinot <quinot@adacore.com>
8176 Javier Miranda <miranda@adacore.com>
8177 Gary Dismukes <dismukes@adacore.com>
8179 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
8180 properly an attempt to apply Unchecked_Access to a protected operation.
8181 (OK_Self_Reference): New subprogram to check the legality of an access
8182 attribute whose prefix is the type of an enclosing aggregate.
8183 Generalizes previous mechanism to handle attribute references nested
8184 arbitrarily deep within the aggregate.
8185 (Analyze_Access_Attribute): An access attribute whose prefix is a type
8186 can appear in an aggregate if this is a default-initialized aggregate
8187 for a self-referential type.
8188 (Resolve_Attribute, case Access): Ditto.
8189 Add support for new implementation defined attribute Stub_Type.
8190 (Eval_Attribute, case Attribute_Stub_Type): New case.
8191 (Analyze_Attribute, case Attribute_Stub_Type): New case.
8192 (Stream_Attribute_Available): Implement using new subprogram from
8193 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
8194 Has_Specified_Stream_Attribute flag.
8195 Disallow Storage_Size and Storage_Pool for access to subprogram
8196 (Resolve_Attribute, case 'Access et al): Take into account anonymous
8197 access types of return subtypes in extended return statements. Remove
8198 accessibility checks on anonymous access types when Unchecked_Access is
8200 (Analyze_Attribute): Add support for the use of 'Class to convert
8201 a class-wide interface to a tagged type.
8202 Add support for the attribute Priority.
8203 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
8204 whether the designated type is discriminated with a constrained partial
8205 view and require static matching in that case.
8206 Add local variable Des_Btyp. The Designated_Type
8207 of an access to incomplete subtype is either its non-limited view if
8208 coming from a limited with or its etype if regular incomplete subtype.
8210 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
8211 Fix predicate to identify and allow cases of (expander-generated)
8212 references to tag of designated object of a RACW.
8213 (Validate_Static_Object_Name): In Ada 2005, a formal object is
8214 non-static, and therefore cannot appear as a primary in a preelaborable
8216 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
8217 Has_Read_Write_Attributes.
8218 (Has_Read_Write_Attributes): Reimplement in termes of
8219 Has_Stream_Attribute_Definition.
8220 (Missing_Read_Write_Attributes): When checking component types in a
8221 record, unconditionally call Missing_Read_Write_Attributes recursively
8222 (remove guard checking for Is_Record_Type / Is_Access_Type).
8224 2006-10-31 Robert Dewar <dewar@adacore.com>
8226 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
8227 useless assignments here and conditionalize it on absence of exception
8229 (Analyze_Exception_Handlers): Small code reorganization of error
8230 detection code, for new handling of formal packages.
8232 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8233 Hristian Kirtchev <kirtchev@adacore.com>
8235 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
8236 that has been constant-folded, preserve information of original tree,
8238 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
8239 generated private extension declaration if the formal derived type is
8240 synchronized. Carry synchronized present over to the generated private
8242 (Validate_Derived_Type_Instance): Ensure that the actual of a
8243 synchronized formal derived type is a synchronized tagged type.
8244 (Instantiate_Formal_Package): When creating the instantiation used to
8245 validate the actual package of a formal declared without a box, check
8246 whether the formal itself depends on a prior actual.
8247 (Instantiate_Formal_Subprogram): Create new entities for the defining
8248 identifiers of the formals in the renaming declaration, for ASIS use.
8249 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
8250 a renaming declaration or a subtype declaration for an actual in an
8251 instance, capture location information of declaration in generic, for
8253 (Instantiate_Formal_Package): Add comments on needed additional tests.
8254 AI-317 (partial parametrization) is fully implemented.
8255 (Validate_Private_Type_Instance): Add check for actual which
8256 must have preelaborable initialization
8257 Use new // insertion for some continuation messages
8258 (Analyze_Formal_Object_Declaration): Change usage of Expression to
8259 Default_Expression. Add type retrieval when the declaration has an
8260 access definition. Update premature usage of incomplete type check.
8261 (Check_Access_Definition): New subsidiary routine. Check whether the
8262 current compilation version is Ada 05 and the supplied node has an
8264 (Instantiate object): Alphabetize local variables. Handle the creation
8265 of new renaming declarations with respect to the kind of definition
8266 used - either an access definition or a subtype mark. Guard against
8267 unnecessary error message in the context of anonymous access types after
8268 they have been resolved. Add check for required null exclusion in a
8269 formal object declaration.
8270 (Switch_View): A private subtype of a non-private type needs to be
8271 switched (the base type can have been switched without its private
8272 dependents because of the last branch of Check_Private_View.
8273 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
8275 (Instantiate_Type): Emit an error message whenever a class-wide type of
8276 a tagged incomplete type is used as a generic actual.
8277 (Find_Actual_Type): Extend routine to handle a component type in a child
8278 unit that is imported from a formal package in a parent.
8279 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
8280 agree on constrainedness, rather than checking against ultimate ancestor
8281 (Instantiate_Subprogram_Body): Create a cross-reference link to the
8282 generic body, for navigation purposes.
8284 2006-10-31 Robert Dewar <dewar@adacore.com>
8285 Thomas Quinot <quinot@adacore.com>
8287 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
8289 (New_Stream_Subprogram): When processing an attribute definition clause
8290 for a stream-oriented subprogram, record an entity node occurring at
8291 the point of clause to use for checking the visibility of the clause,
8292 as defined by 8.3(23) as amended by AI-195.
8293 (New_Stream_Subprogram): New procedure, factoring behaviour from both
8294 New_Stream_Function and New_Stream_Procedure.
8295 (New_Stream_Function, New_Stream_Procedure): Removed.
8296 (Analyze_Attribute_Definition_Clause, case Address): Check new
8297 Alignment_Check check
8299 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8300 Javier Miranda <miranda@adacore.com>
8301 Robert Dewar <dewar@adacore.com>
8303 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
8304 generate the same errors compiling under -gnatc.
8305 (Try_Object_Operation): If no candidate interpretation succeeds, but
8306 there is at least one primitive operation with the right name, report
8307 error in call rather than on a malformed selected component.
8308 (Analyze_Selected_Component): If the prefix is an incomplete type from
8309 a limited view, and the full view is available, use the full view to
8310 determine whether this is a prefixed call to a primitive operation.
8311 (Operator_Check): Verify that a candidate interpretation is a binary
8312 operation before checking the type of its second formal.
8313 (Analyze_Call): Add additional warnings for function call contexts not
8315 (Analyze_Allocator): Move the check for "initialization not allowed for
8316 limited types" after analyzing the expression. This is necessary,
8317 because OK_For_Limited_Init looks at the structure of the expression.
8318 Before analysis, we don't necessarily know what sort of expression it
8319 is. For example, we don't know whether F(X) is a function call or an
8320 indexed component; the former is legal in Ada 2005; the latter is not.
8321 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
8322 were missing. We also didn't handle qualified expressions. Now also
8323 allow function calls. Use new common routine OK_For_Limited_Init.
8324 (Analyze_Type_Conversion): Do not perform some legality checks in an
8325 instance, because the error message will be redundant or spurious.
8326 (Analyze_Overloaded_Selected_Component): Do not do style check when
8327 setting an entity, since we do not know it is the right entity yet.
8328 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
8329 (Analyze_Overloaded_Selected_Component): Same change
8330 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
8331 since regular incomplete subtypes are transformed into corresponding
8332 subtypes of their full views.
8333 (Complete_Object_Operation): Treat name of transformed subprogram call
8334 as coming from source, for browsing purposes.
8335 (Try_Primitive_Operation): If formal is an access parameter, compare
8336 with base type of object to determine whether it is a primitive
8338 (Operator_Check): If no interpretation of the operator matches, check
8339 whether a use clause on any candidate might make the operation legal.
8340 (Try_Class_Wide_Operation): Check whether the first parameter is an
8341 access type whose designated type is class-wide.
8343 2006-10-31 Robert Dewar <dewar@adacore.com>
8344 Ed Schonberg <schonberg@adacore.com>
8345 Gary Dismukes <dismukes@adacore.com>
8347 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
8348 warn on infinite loops.
8349 Add \\ to some continuation messages
8350 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
8351 (Process_Bounds): If the bounds are integer literals that result from
8352 constant-folding, and they carry a user-defined type, preserve that type
8353 rather than treating this as an integer range.
8354 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
8355 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
8356 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
8357 left hand side of assignment.
8358 (Analyze_Assignment): Add suport to manage assigments to the attribute
8359 priority of a protected object.
8360 (Check_Possible_Current_Value_Condition): Allow fully qualified names
8361 not just identifiers.
8362 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
8363 or AND THEN for possible tracking.
8364 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
8365 case of while loops so we can track values in the loop body.
8367 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8368 Hristian Kirtchev <kirtchev@adacore.com>
8369 Bob Duff <duff@adacore.com>
8371 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
8372 procedure cannot be a protected operation (it is a basic_declaration,
8373 not a subprogram_declaration).
8374 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
8375 Subp. Add logic for entry processing.
8376 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
8377 Determine whether an entry or subprogram of a protected or task type
8378 override an inherited primitive of an implemented interface.
8379 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
8380 Update the actual used in calls to Check_Overriding_Indicator.
8381 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
8382 generate the proper reference to the parent unit, for cross-reference.
8383 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
8385 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8386 (Add_Extra_Formal): Revise procedure to allow passing in associated
8387 entity, scope, and name suffix, and handle setting of the new
8388 Extra_Formals field.
8389 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
8390 pass new parameters. Add support for adding the new extra access formal
8391 for functions whose calls are treated as build-in-place.
8392 (Analyze_A_Return_Statement): Correct casing in error message.
8393 Move Pop_Scope to after Analyze_Function_Return, because an extended
8394 return statement really is a full-fledged scope. Otherwise, visibility
8395 doesn't work right. Correct use of "\" for continuation messages.
8396 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
8397 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
8398 the node doesn't get properly marked as analyzed.
8399 (Analyze_Subprogram_Body): If subprogram is a function that returns
8400 an anonymous access type that denotes a task, build a Master Entity
8402 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
8403 proper usage of null exclusion in a result definition.
8404 (Process_Formals): Code cleanup and new error message.
8405 (Process_Formals): Detect incorrect application of null exclusion to
8407 (Conforming_Types): Handle conformance between [sub]types and itypes
8408 generated for entities that have null exclusions applied to them.
8409 (Maybe_Primitive_Operation): Add an additional type retrieval when the
8410 base type is an access subtype. This case arrises with null exclusions.
8411 (New_Overloaded_Entity): Do not remove the overriden entity from the
8412 homonym chain if it corresponds with an abstract interface primitive.
8413 (Process_Formals): Replace membership test agains Incomplete_Kind with a
8414 call to the synthesized predicate Is_Incomplete_Type.
8415 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
8417 (Analyze_Subprogram_Declaration): Check that abstract interface
8418 primitives are abstract or null.
8419 (Analyze_Subprogram_Specification): Remove previous check for abstract
8420 interfaces because it was not complete.
8421 (Has_Interface_Formals): Removed.
8423 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8424 Javier Miranda <miranda@adacore.com>
8426 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
8427 of Analyze_Package_Body, to create Itype references for anonymous
8428 access types created in the package declaration, whose designated types
8429 may have only a limited view.
8430 (Analyze_Package_Specification): For the private part of a nested
8431 package, install private_with_clauses of enclosing compilation unit if
8432 we are in its visible part.
8433 (Declare_Inherited_Private_Subprograms): Complete barrier
8434 to ensure that the primitive operation has an alias to some parent
8435 primitive. This is now required because, after the changes done for the
8436 implementation of abstract interfaces, the contents of the list of
8437 primitives has entities whose alias attribute references entities of
8438 such list of primitives.
8439 (Analyze_Package_Specification): Simplify code that handles parent units
8440 of instances and formal packages.
8441 (Uninstall_Declarations): Check the convention consistency among
8442 primitive overriding operations of a tagged record type.
8444 2006-10-31 Robert Dewar <dewar@adacore.com>
8445 Hristian Kirtchev <kirtchev@adacore.com>
8446 Javier Miranda <miranda@adacore.com>
8447 Ed Schonberg <schonberg@adacore.com>
8449 * sem_ch8.adb: Minor error msg rewording
8450 (Undefined): When checking for misspellings, invert arguments (to get
8451 expected and found set right)
8452 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
8453 (Analyze_Generic_Renaming): Same fix
8454 (Use_One_Package): Do not take into account the internal entities of
8455 abstract interfaces during the analysis of entities that are marked
8456 as potentially use-visible.
8457 (Find_Type): Handle the case of an attribute reference for
8458 implementation defined attribute Stub_Type (simply let the analysis of
8459 the attribute reference rewrite it).
8460 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
8461 type that appears in a Use_Type clause.
8462 (Analyze_Object_Renaming): Add support for renaming of the Priority
8464 (Find_Type): In Ada 2005, a task type can be used within its own body,
8465 when it appears in an access definition.
8466 (Analyze_Object_Renaming): Remove warning on null_exclusion.
8467 (Analyze_Object_Renaming): Introduce checks for required null exclusion
8468 in a formal object declaration or in a subtype declaration.
8469 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
8470 (Check_Null_Exclusion): New local routine to
8471 Analyze_Subprogram_Renaming. Check whether the formals and return
8472 profile of a renamed subprogram have required null exclusions when
8473 their counterparts of the renaming already impose them.
8474 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
8475 Determine whether an entity is inside a generic scope.
8476 (In_Open_Scope): First pass of documentation update.
8477 (Find_Expanded_Name): Add support for shadow entities associated with
8478 limited withed packages. This is required to handle nested packages.
8479 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
8480 that makes a renaming of a limited withed package illegal.
8482 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8483 Ed Schonberg <schonberg@adacore.com>
8485 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
8486 Check_Overriding_Indicator.
8487 (Analyze_Task_Definition): Ditto.
8488 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
8489 (Check_Overriding_Indicator): To find overridden interface operation,
8490 examine only homonyms that have an explicit subprogram declaration, not
8491 inherited operations created by an unrelated type derivation.
8492 (Check_Overriding_Indicator): When checking for the presence of "null"
8493 in a procedure, ensure that the queried node is a procedure
8495 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
8496 type when the formal is an access to variable.
8497 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
8498 (Analyze_Task_Type): Same addition
8499 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
8500 provide navigation capabilities for entries.
8502 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8503 Ed Schonberg <schonberg@adacore.com>
8504 Javier Miranda <miranda@adacore.com>
8505 Gary Dismukes <dismukes@adacore.com>
8507 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
8508 inherited from an interface ancestor by another interface in the
8509 context of an instance as 'late'.
8510 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
8511 of a call to a function that dispatches on access result.
8512 (Check_Dispatching_Operation): In case of late overriding of a primitive
8513 that covers abstract interface subprograms we register it in all the
8514 secondary dispatch tables associated with abstract interfaces.
8515 (Check_Dispatching_Call): Add check that a dispatching call is not made
8516 to a function with a controlling result of a limited type. This is a
8517 current implementation restriction.
8518 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
8519 (Check_Dispatching_Operation): Do no emit a warning if the controlling
8520 argument is an interface type that is a generic formal.
8521 (Is_Interface_Subprogram): Removed.
8522 (Check_Dispatching_Operation): If the subprogram is not a dispatching
8523 operation, check the formals to handle the case in which it is
8524 associated with an abstract interface type.
8526 2006-10-31 Robert Dewar <dewar@adacore.com>
8527 Ed Schonberg <schonberg@adacore.com>
8529 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
8530 Add new calls to this procedure during traversal
8531 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
8532 another unit if expansion is disabled.
8534 2006-10-31 Robert Dewar <dewar@adacore.com>
8536 * sem_eval.adb (Compile_Time_Compare): Make use of information from
8537 Current_Value in the conditional case, to evaluate additional
8538 comparisons at compile time.
8540 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8541 Hristian Kirtchev <kirtchev@adacore.com>
8542 Javier Miranda <miranda@adacore.com>
8544 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
8545 subprogram type to provide better diagnostics in case of ambiguity.
8546 (Covers): Handle coverage of formal and actual anonymous access types in
8547 the context of generic instantiation.
8548 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
8549 abstract interface types; this is required to handle concurrent types
8550 with discriminants and abstract interface types.
8551 (Covers): Include type coverage of both regular incomplete subtypes and
8552 incomplete subtypes of incomplete type visibles through a limited with
8555 2006-10-31 Robert Dewar <dewar@adacore.com>
8556 Hristian Kirtchev <kirtchev@adacore.com>
8557 Ed Schonberg <schonberg@adacore.com>
8559 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
8560 messages for entities in packages which are not used.
8561 (Collect_Synchronized_Interfaces): New procedure.
8562 (Overrides_Synchronized_Primitive): New function.
8563 (Denotes_Discriminant): Extend predicate to apply to task types.
8564 Add missing continuation marks in error msgs
8565 (Unqualify): New function for removing zero or more levels of
8566 qualification from an expression. There are numerous places where this
8567 ought to be used, but we currently only deal properly with zero or one
8569 (In_Instance); The analysis of the actuals in the instantiation of a
8570 child unit is not within an instantiation, even though the parent
8571 instance is on the scope stack.
8572 (Safe_To_Capture_Value): Exclude the case of variables that are
8574 (Check_Obsolescent): Removed
8575 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
8576 is an aliased view, even when rewritten as a reference to the target
8577 object in an assignment.
8578 (Get_Subprogram_Entity): New function
8579 (Known_To_Be_Assigned): New function
8580 (Type_Access_Level): Compute properly the access level of a return
8581 subtype that is an anonymous access type.
8582 (Explain_Limited_Type): Correct use of "\" for continuation messages.
8583 (Is_Transfer): The new extended_return_statement causes a transfer of
8585 (Has_Preelaborable_Initialization): New function
8586 (Has_Null_Exclusion): New function. Given a node N, determine whether it
8587 has a null exclusion depending on its Nkind.
8588 Change Is_Lvalue to May_Be_Lvalue
8589 (May_Be_Lvalue): Extensive additional code to deal with subprogram
8590 arguments (IN parameters are not Lvalues, IN OUT parameters are).
8591 (Safe_To_Capture_Value): Extend functionality so it can be used for
8592 the current value condition case.
8593 (Has_Compatible_Alignment): New function
8594 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
8595 objects to handle the Ada 2005 case, where aliasedness no longer implies
8596 that the object is constrained. In particular, for dereferenced names,
8597 the designated object must be assumed to be unconstrained.
8598 (Kill_Current_Values): Properly deal with the case where we encounter
8599 a loop in the scope chain.
8600 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
8602 (Compile_Time_Constraint_Error): Improve error message in error case
8604 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
8605 associated with entities of abstract interface primitives.
8606 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
8608 2006-10-31 Robert Dewar <dewar@adacore.com>
8610 * s-osinte-tru64.adb:
8611 Mark Asm statements Volatile to prevent warnings (seems a
8612 reasonable change anyway)
8615 * s-mastop-irix.adb: Add Volatile to Asm statements
8616 Suppresses warning, and seems appropriate in any case
8618 * s-osinte-vms.adb: Add Volatile to Asm statement
8620 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
8622 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
8624 Add call to Check_Code_Statement
8626 2006-10-31 Robert Dewar <dewar@adacore.com>
8627 Ed Schonberg <schonberg@adacore.com>
8628 Bob Duff <duff@adacore.com>
8630 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
8631 Synchronized_Present): Add Formal_Derived_Type_Definition and
8632 Private_Extension_Declaration to the list of assertions.
8633 (Is_Entry_Barrier_Function): New flag
8634 (Has_Self_Reference): New flag on aggregates, to indicate that they
8635 contain a reference to the enclosing type, inserted through a default
8637 (Next_Rep_Item): Move from Node4 to Node5.
8638 (Entity): Add this field for N_Attribute_Definition_Clause.
8639 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
8640 (N_Return_Object_Declaration): Remove this node kind. We now use
8641 N_Object_Declaration instead.
8642 (Actual_Designated_Subtype): Move to a different place to make room in
8643 N_Extended_Return_Statement.
8644 (Procedure_To_Call): Move to a different place to make room in
8645 N_Extended_Return_Statement.
8646 (Return_Type): Removed this field to make room in return statements
8648 (Return_Statement_Entity): New field in return statements, in part to
8649 replace Return_Type, and in part to support the fact that return
8650 statements are now pushed on the scope stack during semantic analysis.
8651 (Return_Object_Declarations): New field to support extended return
8653 (N_Extended_Return_Statement): New node for extended_return_statement
8655 (N_Return_Object_Declaration): New node for part of
8656 extended_return_statement nonterminal. Needed because all the necessary
8657 fields won't fit in N_Extended_Return_Statement.
8658 Generic_associations now carry the Box_Present flag, to indicate a
8659 default for an actual in a partially parametrized formal package.
8661 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
8662 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
8663 and for the new predefined dispatching policies: EDF_Across_Priorities,
8664 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
8665 Introduce new name Stub_Type for implementation defined attribute.
8666 Add pragma Preelaborable_Initialization
8667 Add entry for Priority attribute.
8668 Add Pragma_Wide_Character_Encoding
8669 (Get_Convention_Name): Given a convention id, this function returns the
8670 corresponding name id from the names table.
8672 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8673 Robert Dewar <dewar@adacore.com>
8674 Bob Duff <duff@adacore.com>
8676 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
8677 print null exclusion twice in the case of an access definition,
8678 Implement new -gnatL switch
8679 Remove N_Return_Object_Declaration. We now use
8680 N_Object_Declaration instead. Implement the case for
8681 N_Extended_Return_Statement. Alphabetize the cases.
8682 Add cases for new nodes N_Extended_Return_Statement and
8683 N_Return_Object_Declaration. The code is not yet written.
8684 Update the output for N_Formal_Object_Declaration
8685 and N_Object_Renaming_Declaration.
8686 (Write_Itype): Account for the case of a modular integer subtype whose
8687 base type is private.
8689 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8691 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
8692 Remove elaboration code, now done in the binder.
8694 * s-rident.ads: Make this unit Preelaborate.
8695 (No_Restrictions): New constant used to clean up code and follow
8696 preelaborate constraints.
8699 Add System.Restrictions dependence, referenced directly from the
8700 binder generated file.
8702 2006-10-31 Gary Dismukes <dismukes@adacore.com>
8704 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
8705 True when AAMP extended floating-point is in use (48-bit). Change type
8706 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
8707 the two byte array types on AFloat. Change type of IV_Ilf overlay
8708 variable from Byte8 to ByteLF. Add appropriate initializations of
8709 floating-point overlays for AAMP cases.
8711 2006-10-31 Javier Miranda <miranda@adacore.com>
8713 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
8714 (Get_Ceiling): New subprogram that returns
8715 the ceiling priority of the protected object.
8716 (Set_Ceiling): New subprogram that sets the new ceiling priority of
8717 the protected object.
8719 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
8721 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
8723 2006-10-31 Jose Ruiz <ruiz@adacore.com>
8725 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
8726 requeuing to the same protected object to give higher priority tasks
8727 the opportunity to execute.
8729 2006-10-31 Robert Dewar <dewar@adacore.com>
8731 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
8732 add more precise check for the character sequence that follows '[' to
8733 avoid possible confusion in case if '[' is the last character of a
8735 (Scan_Wide): Always allow brackets encoding
8737 2006-10-31 Olivier Hainque <hainque@adacore.com>
8739 * s-stchop.ads: make this unit preelaborate. This is desirable in
8740 general and made mandatory by the use of this unit by s-taprop which
8741 is itself preelaborate.
8743 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
8744 Td_Events component.
8746 2006-10-31 Vincent Celier <celier@adacore.com>
8748 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
8751 2006-10-31 Vincent Celier <celier@adacore.com>
8753 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
8755 2006-10-31 Vincent Celier <celier@adacore.com>
8757 * makegpr.adb (Check_Compilation_Needed): Take into account path names
8759 (Check_Compilation_Needed): When checking a C or C++ source, do not
8760 resolve symbolic links.
8761 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
8762 When not in verbose mode and Ellipse is True, display "..." for the
8763 first argument with Display set to False.
8764 (Build_Global_Archive): Always set Display True for the first object
8765 file. Call Display_Command with Ellipse set to True.
8767 2006-10-31 Matt Heaney <heaney@adacore.com>
8769 * a-crbtgo.ads: Commented each subprogram
8771 * a-crbtgo.adb: Added reference to book from which algorithms were
8774 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
8775 indicate which child.
8776 (Generic_Conditional_Insert): changed parameter name from "Success" to
8778 (Generic_Unconditional_Insert_With_Hint): improved algorithm
8780 * a-coorse.adb (Replace_Element): changed parameter name in call to
8781 conditional insert operation.
8783 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
8785 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
8788 * a-ciorse.adb (Replace_Element): changed parameter name in call to
8789 conditional insert operation.
8791 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
8794 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
8795 instead of mode inout.
8797 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
8799 (Generic_Read): preserve existing buckets array if possible
8800 (Generic_Write): don't send buckets array length anymore
8802 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
8803 instead of mode inout.
8805 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
8806 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
8808 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
8809 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
8810 (Replace_Element): local operation is now an instantiation
8812 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
8813 check current length.
8814 (Generic_Replace_Element): new operation
8816 2006-10-31 Doug Rupp <rupp@adacore.com>
8818 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
8819 Call TBK$SYMBOLIZE without omitting parameters.
8821 2006-10-31 Vincent Celier <celier@adacore.com>
8823 * symbols-processing-vms-ia64.adb,
8824 symbols-processing-vms-alpha.adb (Process): Do not include symbols
8825 that come from generic instantiations in bodies.
8827 2006-10-31 Pat Rogers <rogers@adacore.com>
8829 * a-rttiev.ads, a-rttiev.adb:
8830 This is a significant redesign primarily for the sake of automatic
8831 timer task termination but also to fix a design flaw.
8832 Therefore we are now using an RTS lock, instead of a protected
8833 object, to provide mutual exclusion to the queue of pending events
8834 and the type Timing_Event is no longer a protected type.
8836 2006-10-31 Robert Dewar <dewar@adacore.com>
8837 Cyrille Comar <comar@adacore.com>
8838 Ben Brosgol <brosgol@adacore.com>
8840 * debug.adb: Update flags documentation
8842 * gnat_ugn.texi: Add documentation for new -gnatwq switch
8843 Clean up documentation for several other warning switches
8844 Clarify how task stack size can be specified with various
8845 versions of Windows.
8846 Add note that -gnatVo includes ranges including loops
8847 Add documentation for -gnatL switch
8848 Add note on elaboration warning for initializing variables
8849 Add documentation for new -gnatwt warning switch
8850 Document new form of pragma Warnings (On|Off, string)
8851 Add comment on use of pragma Warnings to control warnings
8852 Add documentation for -gnatjnn switch
8853 Modify section on interfacing with C for VMS 64-bit.
8854 Add doc for -gnatVe/E
8855 Add documentation of new warning flags -gnatww/-gnatwW
8856 Add warnings about address clause overlays to list of warnings
8857 (Exception Handling Control): Document that the option --RTS must be
8858 used consistently for gcc and gnatbind.
8859 Clarify that inlining is not always possible
8860 Update documentation on pragma Unchecked_Union.
8863 Add documentation for new extended version of pragma Obsolescent
8864 Add documentation for implementation defined attribute 'Stub_Type.
8865 Add note on use of Volatile in asm statements
8866 Add documentation on use of pragma Unreferenced in context clause
8867 Document new form of pragma Warnings (On|Off, pattern)
8868 Document pragma Wide_Character_Encoding
8869 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
8870 enforced if code generation is active.
8871 Add section on pragma Suppress to document GNAT specific check
8873 Clarify difference between No_Dispatching_Calls & No_Dispatch.
8874 Add documentation for pragma Restrictions (No_Elaboration_Code)
8877 Add comments on layout of subprogram local variables in the
8878 presence of nested subprograms.
8882 * elists.ads: Minor reformatting
8883 Node returns Node_Or_Entity_Id (doc change only)
8885 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
8887 * g-arrspl.ads (Create): Update comments.
8889 * sem.ads: Add details on the handling of the scope stack.
8891 * usage.adb: Update documentation.
8893 * validsw.ads, validsw.adb:
8894 Add definition of Validity_Check_Components and implement -gnatVe/E
8896 * vms_data.ads: Add missing VMS qualifiers.
8898 * s-addope.ads: Add documentation on overflow and divide by zero
8900 2006-10-31 Robert Dewar <dewar@adacore.com>
8901 Thomas Quinot <quinot@adacore.com>
8902 Arnaud Charlet <charlet@adacore.com>
8904 * fmap.adb: Put routines in alpha order
8906 * g-boumai.ads: Remove redundant 'in' keywords
8908 * g-cgi.adb: Minor reformatting
8910 * g-cgi.ads: Remove redundant 'in' keywords
8912 * get_targ.adb: Put routines in alpha order
8914 * prj-attr.ads: Minor reformatting
8916 * s-atacco.ads: Minor reformatting
8918 * scn.adb: Put routines in alpha order
8920 * sinput-l.adb: Minor comment fix
8922 * sinput-p.adb: Minor comment fix
8924 * s-maccod.ads: Minor reformatting
8926 * s-memory.adb: Minor reformatting
8928 * s-htable.adb: Fix typo in comment.
8930 * s-secsta.adb: Minor comment update.
8932 * s-soflin.adb: Minor reformatting
8935 Add comment about odd qualification in Storage_Offset declaration
8938 Remove unnecessary 'in' keywords for formal parameters.
8940 * treeprs.adt: Minor reformatting
8942 * urealp.adb: Put routines in alpha order
8944 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
8947 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
8949 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
8951 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
8952 workaround as on other platforms.
8954 * g-eacodu-vms.adb: Remove redundant 'in' keywords
8955 * g-expect-vms.adb: Remove redundant 'in' keywords
8957 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
8958 clear error message if the list-of-files file cannot be opened.
8960 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
8961 equality operator is always visible.
8963 * lang.opt: Woverlength-strings: New option.
8966 Update copyright, since nmake.ads and nmake.adb have changed.
8968 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
8969 (Binder_Output_Time_Stamps_Set): removed.
8970 (Old_Binder_Output_Time_Stamp): idem.
8971 (New_Binder_Output_Time_Stamp): idem.
8972 (Recording_Time_From_Last_Bind): idem.
8973 (Recording_Time_From_Last_Bind): Make constant.
8975 * output.ads, output.adb (Write_Str): Allow LF characters
8976 (Write_Spaces): New procedure
8978 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
8980 * inline.adb: Minor reformatting
8982 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
8984 * s-mastop-vms.adb: Remove redundant 'in' keywords
8986 * s-osprim-vms.adb: Remove redundant 'in' keywords
8988 * s-trafor-default.adb: Remove redundant 'in' keywords
8990 * 9drpc.adb: Remove redundant 'in' keywords
8992 * s-osinte-mingw.ads: Minor reformatting
8994 * s-inmaop-posix.adb: Minor reformatting
8996 * a-direio.ads: Remove quotes from Compile_Time_Warning message
8998 * a-exexda.adb: Minor code reorganization
9000 * a-filico.adb: Minor reformatting
9002 * a-finali.adb: Minor reformatting
9004 * a-nudira.ads: Remove quote from Compile_Time_Warning message
9006 * a-numeri.ads: Minor reformatting
9008 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
9010 * exp_pakd.ads: Fix obsolete comment
9012 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
9013 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
9014 Probably not a bug, but certainly neater and more efficient.
9016 * a-tienio.adb: Minor reformatting
9018 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
9019 Avoid assuming low bound of string is 1.
9021 * gnatbind.adb: Change Bindusg to package and rename procedure as
9022 Display, which now ensures that it only outputs usage information once.
9023 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
9025 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
9028 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
9030 (Match): Add pragma Assert to ensure that Matches'First is zero
9032 * g-regpat.ads (Match): Document that Matches lower bound must be zero
9034 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
9035 documented preconditions (also kills warnings about bad indexes).
9037 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
9039 (Build_Import_Library): Ditto;
9041 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
9043 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
9045 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
9046 lower bound of choice table is 1.
9048 * sem_case.ads (Analyze_Choices): Document that lower bound of
9051 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
9054 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
9055 and add appropriate Assert pragma to suppress warnings.
9057 * atree.h, atree.ads, atree.adb
9058 Change Elist24 to Elist25
9059 Add definitions of Field28 and Node28
9060 (Traverse_Field): Use new syntactic parent table in sinfo.
9062 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
9064 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
9066 * exp_tss.adb: Put routines in alpha order
9068 * fe.h: Remove redundant declarations.
9070 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
9072 * utils.c (builtin_function): Rename to gnat_builtin_function.
9073 Move common code to add_builtin_function.
9074 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
9075 gnat_builtin_function.
9076 * gigi.h (builtin_function): Rename to gnat_builtin_function.
9077 Change the signature.
9079 2006-10-16 Brooks Moses <bmoses@stanford.edu>
9081 * Makefile.in: Add TEXI2PDF definition.
9082 * Make-lang.in: Add "ada.pdf" target.
9084 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
9086 * decl.c, utils.c: Fix comment typos.
9087 * utils.c: Fix a typo.
9089 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
9091 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
9092 on "pure" Ada subprograms if SJLJ exceptions are used.
9093 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
9094 on the declaration node of JMPBUF_SAVE.
9095 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
9096 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
9097 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
9099 2006-08-20 Laurent GUERBY <laurent@guerby.net>
9102 g-socket.adb (Bind_Socket): Call Set_Address.
9104 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
9107 * decl.c (same_discriminant_p): New static function.
9108 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
9109 subtype and we have discriminants, fix up the COMPONENT_REFs
9110 for the discriminants to make them reference the corresponding
9111 fields of the parent subtype after it has been built.
9113 2006-09-15 Roger Sayle <roger@eyesopen.com>
9116 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
9117 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
9119 2006-09-13 Olivier Hainque <hainque@adacore.com>
9122 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
9123 of a SAVE_EXPR, just make the operand addressable/not-readonly and
9124 let the common gimplifier code make and propagate a temporary copy.
9125 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
9126 out/in-out actuals and defer setting the addressable/readonly bits
9129 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
9132 * decl.c (components_to_record): Defer emitting debug info for the
9133 record type associated with the variant until after we are sure to
9136 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
9139 * gigi.h (gnat_internal_attribute_table): Declare.
9140 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
9141 * utils.c (gnat_internal_attribute_table): New global variable.
9142 (builtin_function): Always call decl_attributes on the builtin.
9143 (handle_const_attribute): New static function.
9144 (handle_nothrow_attribute): Likewise.
9146 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9148 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
9150 2006-06-23 Olivier Hainque <hainque@adacore.com>
9152 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
9153 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
9155 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
9156 Eric Botcazou <ebotcazou@adacore.com>
9159 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
9160 check-gnat into check-acats.
9162 2006-06-17 Karl Berry <karl@gnu.org>
9164 * gnat-style.texi (@dircategory): Use "Software development"
9165 instead of "Programming", following the Free Software Directory.
9167 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9170 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
9172 2006-06-06 Laurent GUERBY <laurent@guerby.net>
9175 mlib-utl.adb: Use Program_Name.
9177 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
9179 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
9180 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
9181 trans.c, utils.c: Fix comment typos. Follow spelling
9183 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
9186 2006-05-19 Nicolas Setton <setton@adacore.com>
9188 * misc.c (gnat_dwarf_name): New function.
9189 (LANG_HOOKS_DWARF_NAME): Define to it.
9191 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
9193 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
9194 (ada/misc.o): Likewise.
9195 (ada/utils.o): Likewise.
9197 2006-04-08 Aurelien Jarno <aurel32@debian.org>
9199 * Makefile.in: Add Ada support for GNU/kFreeBSD.
9200 * s-osinte-kfreebsd-gnu.ads: New file.
9202 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
9204 * Make-lang.in: Rename docdir to gcc_docdir.
9206 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
9208 * gigi.h (get_ada_base_type): Delete.
9209 * utils2.c (get_ada_base_type): Likewise.
9210 * trans.c (convert_with_check): Operate in the real base type.
9212 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9214 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
9216 2006-03-02 Richard Sandiford <richard@codesourcery.com>
9218 * utils.c (create_var_decl): Use have_global_bss_p when deciding
9219 whether to make the decl common.
9221 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
9223 * Make-lang.in (Ada): Remove.
9224 (.PHONY): Remove Ada
9226 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9228 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
9229 aggregate, check the interpretations of the other operand to find one
9230 that may be a boolean array.
9232 (Analyze_Selected_Component): Fix flow-of-control typo in case where
9233 the prefix is a private extension.
9235 2006-02-17 Eric Botcazou <botcazou@adacore.com>
9238 * utils2.c (find_common_type): If both input types are BLKmode and
9239 have the same constant size, keep using the first one.
9241 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
9243 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
9245 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
9247 2006-02-17 Jose Ruiz <ruiz@adacore.com>
9249 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
9250 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9251 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
9252 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
9253 Abort_Defer/Undefer pairs to avoid the possibility of a task being
9254 aborted while owning a lock.
9256 2006-02-17 Javier Miranda <miranda@adacore.com>
9257 Robert Dewar <dewar@adacore.com>
9259 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
9260 through an access to class-wide interface we force the displacement of
9261 the pointer to the allocated object to reference the corresponding
9262 secondary dispatch table.
9263 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
9264 if Long_Shifts are supported on the target, even if 64 bit divides
9265 are not supported (configurable run time mode).
9266 (Expand_N_Type_Conversion): Do validity check if validity checks on
9267 operands are enabled.
9268 (Expand_N_Qualified_Expression): Do validity check if validity checks
9269 on operands are enabled.
9271 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9273 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
9274 must be materialized when the renamed expression is an explicit
9277 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9279 * freeze.adb (Statically_Discriminated_Components): Return false if
9280 the bounds of the type of the discriminant are not static expressions.
9282 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
9283 the bounds of the discriminant type are not static.
9285 2006-02-17 Robert Dewar <dewar@adacore.com>
9287 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
9288 then we close To if it is valid.
9290 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
9292 * init.c (facility_resignal_table): new array
9293 (__gnat_default_resignal_p): enhance default predicate to resignal if
9294 VMS condition has one of the predefined facility codes.
9296 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
9298 * Makefile.in: Use VMS64 specialized versions of several units in
9299 Interfaces.C hierarchy to be compatible with HP C default size choices.
9300 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
9302 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9304 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
9305 instantiation, the corresponding entity is the related_instance of the
9306 wrapper package created for the instance.
9308 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9310 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
9311 the current instance is nested within another instance in a child unit.
9313 2006-02-17 Javier Miranda <miranda@adacore.com>
9314 Ed Schonberg <schonberg@adacore.com>
9316 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
9317 type we cannot inherit the primitive operations; we inherit the
9318 Corresponding_Record_Type (which has the list of primitive operations).
9319 (Check_Anonymous_Access_Types): When creating anonymous access types for
9320 access components, use Rewrite in order to preserve the tree structure,
9322 (Analyze_Object_Declaration): For limited types with access
9323 discriminants with defaults initialized by an aggregate, obtain
9324 subtype from aggregate as for other mutable types.
9325 (Derived_Type_Declaration): If the derived type is a limited interface,
9326 set the corresponding flag (Is_Limited_Record is not sufficient).
9328 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9330 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
9331 to inline a function that returns an unconstrained type, the return
9332 expression must be the first variable declared in the body of the
9335 2006-02-17 Javier Miranda <miranda@adacore.com>
9337 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
9338 abstract interface type, the static analysis is not enough to know if
9339 the interface is implemented or not by the source tagged type. Hence
9340 we must pass the work to the expander to generate the required code to
9341 evaluate the conversion at run-time.
9342 (Resolve_Equality_Op): Do not apply previous
9343 transformation if expansion is disasbled, to prevent anomalies when
9344 locating global references in a generic unit.
9346 2006-02-17 Vincent Celier <celier@adacore.com>
9348 * snames.ads, snames.adb: New standard names for new project attributes:
9349 archive_builder, archive_indexer, compiler_pic_option,
9350 config_body_file_name, config_body_file_name_pattern,
9351 config_file_switches, config_file_unique, config_spec_file_name,
9352 config_spec_file_name_pattern, default_builder_switches,
9353 default_global_compiler_switches, default_language,
9354 dependency_file_kind, global_compiler_switches, include_path,
9355 include_path_file, language_kind, linker_executable_option,
9356 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
9357 roots, runtime_project.
9359 2006-02-17 Matthew Heaney <heaney@adacore.com>
9361 * a-convec.ads, a-convec.adb:
9362 (operator "&"): handle potential overflow for large index types
9363 (Insert): removed Contraint_Error when using large index types
9364 (Insert_Space): removed Constraint_Error for large index types
9365 (Length): moved constraint check from Length to Insert
9367 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
9369 Explicit raise statements now include an exception message.
9370 (operator "&"): handle potential overflow for large index types
9371 (Insert): removed Contraint_Error when using large index types
9372 (Insert_Space): removed Constraint_Error for large index types
9373 (Length): moved constraint check from Length to Insert
9375 2006-02-17 Robert Dewar <dewar@adacore.com>
9377 * s-wchcnv.adb: Document handling of [ on output (we do not change
9378 this to ["5B"] and the new comments say why not.
9381 Add note for -gnatVo that this now includes the cases of type
9382 conversions and qualified expressions.
9383 Add comments on handling of brackets encoding for Text_IO
9385 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
9386 Thomas Quinot <quinot@adacore.com>
9387 Robert Dewar <dewar@adacore.com>
9388 Javier Miranda <miranda@adacore.com>
9390 * expander.adb: Fix typo in comment
9392 * exp_pakd.adb: Fix typo
9393 Minor comment reformatting.
9395 * g-dyntab.adb: Minor reformatting
9397 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
9398 aliased subprograms to look for the abstract interface subprogram.
9400 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
9402 * env.c (__gnat_setenv): Use size_t.
9403 (__gnat_unsetenv): Likewise.
9404 (__gnat_clearenv): Likewise.
9406 2006-02-16 Arnaud Charlet <charlet@adacore.com>
9408 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
9410 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9412 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
9413 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
9414 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
9415 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
9416 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
9417 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
9418 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
9419 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
9420 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
9423 2006-02-13 Jose Ruiz <ruiz@adacore.com>
9425 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
9426 protection against race conditions is not needed.
9427 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
9429 (Set_Specific_Handler): Add mutual exclusive access to the specific
9431 (Specific_Handler): Add mutual exclusive access for retrieving the
9434 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
9437 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
9438 Fall_Back_Handler and Specific_Handler.
9440 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
9441 termination handlers.
9442 Set two different owerflow depending on the maximal stack size.
9444 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
9445 protection against race conditions is not needed when executing the
9446 task termination handler.
9448 2006-02-13 Robert Dewar <dewar@adacore.com>
9450 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
9451 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
9452 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
9453 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
9454 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
9455 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
9456 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
9457 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
9458 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
9459 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
9460 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
9461 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
9462 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
9463 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
9464 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
9465 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
9466 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
9467 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
9468 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
9469 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
9470 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
9471 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
9472 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
9473 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
9474 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
9475 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
9476 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
9477 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
9478 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
9479 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
9480 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
9481 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
9482 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
9483 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
9486 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
9488 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
9489 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
9490 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
9491 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
9492 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
9493 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
9494 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
9495 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
9496 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
9498 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9500 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
9501 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
9502 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
9503 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
9504 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
9505 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
9506 replaced by anonymous access type.
9507 (pthread_sigmask): Now take an access sigset_t
9509 * s-osinte-hpux.ads: Ditto.
9510 (pthread_mutex_t, pthread_cond_t): Update definitions to support
9511 properly 32 and 64 bit ABIs.
9513 2006-02-13 Pascal Obry <obry@adacore.com>
9515 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
9516 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
9517 s-taprop-linux.adb, s-taprop-solaris.adb,
9518 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
9519 adjustement is already done when calling this routine.
9521 2006-02-13 Pascal Obry <obry@adacore.com>
9523 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
9524 table to take advantage of the 16 priority levels available on Windows
9525 2000 and XP. On NT4 there are only 7 priority levels, this is properly
9526 supported by this new mapping.
9528 2006-02-13 Nicolas Setton <setton@adacore.com>
9530 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
9531 (get_encoding): New subprogram. Extracts the encodings from an encoded
9534 2006-02-13 Pascal Obry <obry@adacore.com>
9535 Nicolas Roche <roche@adacore.com>
9536 Arnaud Charlet <charlet@adacore.com>
9538 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
9540 (__gnat_try_lock): Add unicode support by using a specific section on
9542 (__gnat_get_current_dir): Idem.
9543 (__gnat_open_read): Idem.
9544 (__gnat_open_rw): Idem.
9545 (__gnat_open_create): Idem.
9546 (__gnat_create_output_file): Idem.
9547 (__gnat_open_append): Idem.
9548 (__gnat_open_new): Idem.
9549 (__gnat_file_time_name): Idem.
9550 (__gnat_set_file_time_name): Idem.
9551 (__gnat_stat): Idem.
9552 (win32_no_block_spawn): Idem.
9553 (__gnat_locate_exec_on_path): Idem.
9554 (__gnat_opendir): New routine.
9555 (__gnat_closedir): Idem.
9556 (__gnat_readdir): Add new parameter length (pointer to int). Update
9557 implementation to use it and add specific Win32 code for Unicode
9559 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
9560 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
9561 (convert_addresses): Do not define this dummy routine on VMS.
9563 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
9564 runtime Unicode support will be activated.
9565 (S2WS): String to Wide-String conversion. This version just copy a
9566 string in non Unicode version.
9567 (WS2S): Wide-String to String conversion. This version just copy a
9568 string in non Unicode version.
9570 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
9571 (Open): Now import __gnat_opendir from adaint.c.
9572 (Read): Change the implementation to support unicode characters. It is
9573 not possible to use strlen() on Windows as this version supports only
9574 standard ASCII characters. So the length of the directory entry is now
9575 returned from the imported __gnat_readdir routine.
9576 Update copyright notice.
9578 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
9579 (opendir): Moved to adaint.c.
9581 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
9582 (Get_Directory): Fix wrong indexing.
9583 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
9584 __gnat_getenv from env.c
9585 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
9588 * env.h, env.c: New file.
9590 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
9591 adaint.c by __gnat_getenv from env.c
9593 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
9594 adaint.c by __gnat_getenv from env.c
9596 * Make-lang.in: Add env.o in the list of C object needed by gnat1
9598 Update dependencies.
9600 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9601 Olivier Hainque <hainque@adacore.com>
9602 Eric Botcazou <ebotcazou@adacore.com>
9604 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
9606 * gigi.h (value_factor_p): Add prototype and description, now public.
9608 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
9609 promotion for field with rep clause if the associated size was proven
9611 Expand comments describing attempts to use a packable type.
9612 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
9613 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
9614 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
9615 necessary since these are not different types and pointers may
9616 actually designate any subtype in this hierarchy.
9617 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
9618 discriminants but put them into record only if not Unchecked_Union;
9619 pass flag to components_to_record showing Unchecked_Union.
9620 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
9621 components before variants; don't set TYPE_UNCHECKED_UNION_P.
9622 (components_to_record): New argument UNCHECKED_UNION.
9623 Remove special case code for Unchecked_Union and instead use main code
9627 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
9628 variable with the expression being built, only its inner field.
9630 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
9631 emit_sequence_entry_statements.
9632 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
9633 (establish_gnat_vms_condition_handler): Move before
9634 Subprogram_Body_to_gnu.
9635 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
9636 for a subprogram if it has a foreign convention or is exported.
9637 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
9638 substituted for a CONST_DECL.
9639 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
9640 Etype to assoc_to_constructor.
9641 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
9642 discriminants of Unchecked_Union.
9643 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
9644 don't need cluttering preprocessor directives.
9645 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
9646 condition handler as current in the compiled function.
9647 (body_with_handlers_p): New function. Tell whether a given sequence of
9648 statements node is attached to a package or subprogram body and involves
9649 exception handlers possibly nested within inner block statements.
9650 (emit_sequence_entry_statements): New function, to emit special
9651 statements on entry of sequences when necessary. Establish GNAT
9652 condition handler in the proper cases for VMS.
9653 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
9654 emit_sequence_entry_statements.
9656 * utils2.c (find_common_type): If both input types are BLKmode and
9657 have a constant size, use the smaller one.
9658 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
9661 * utils.c (value_factor_p): Make public, to allow uses from other gigi
9663 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
9664 (convert, case UNION_TYPE): Remove special treatment for unchecked
9668 (update_pointer_to): Update variants of pointer types to unconstrained
9669 arrays by attaching the list of fields of the main variant.
9671 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9672 Robert Dewar <dewar@adacore.com>
9674 * a-exexpr.adb, a-exexpr-gcc.adb
9675 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
9676 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
9677 Remove code unused for exception propagation for the compiler itself
9678 from a-except.adb and update to still share separate packages.
9680 * a-except.ads, a-except.adb: Ditto.
9681 Add comments that this version is now used only by the compiler and
9682 other basic tools. The full version that includes the Ada 2005 stuff
9683 is in separate files a-except-2005.ads/adb. The reason is that we do
9684 not want to cause bootstrap problems with compilers not recognizing
9686 Add exception reason code PE_Implicit_Return
9687 Add new exception reason code (Null Exception_Id)
9689 * a-except-2005.adb, a-except-2005.ads: New files.
9691 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
9693 * s-wchcon.adb: New file.
9695 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
9696 (traceback.o deps): Likewise.
9697 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
9698 Activate build of GMEM instrumentation library on VMS targets.
9699 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
9700 Use a-except-2005.ads/adb for all run-time library builds unless
9701 specified otherwise.
9702 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
9703 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
9704 Use s-parame.adb on all native platforms.
9705 Use s-parame-vxworks.adb on all vxworks platforms.
9706 Add env.c env.h in LIBGNAT_SRCS
9707 Add env.o in LIBGNAT_OBJS
9708 (GNATMAKE_OBJS): Remove ctrl_c.o object.
9709 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
9710 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
9711 supports VxWorks 6 RTPs.
9712 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
9713 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
9715 * types.h, types.ads (Terminate_Program): New exception
9716 Add comment on modifying multiple versions of a-except.adb when the
9717 table of exception reasons is modified.
9718 Add exception reason code PE_Implicit_Return
9719 Add new exception reason code (Null Exception_Id)
9721 * clean.adb (Initialize): Get the target parameters before checking
9722 if target is OpenVMS. Move the OpenVMS specific code here from package
9723 body elaboration code.
9725 2006-02-13 Thomas Quinot <quinot@adacore.com>
9726 Vincent Celier <celier@adacore.com>
9727 Robert Dewar <dewar@adacore.com>
9729 * ali-util.adb (Get_File_Checksum): Update to account for change in
9730 profile of Initialize_Scanner.
9732 * gprep.adb (Gnatprep): Update to account for change in profile of
9734 (Process_One_File): Same.
9736 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
9737 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
9738 that behaviour using the new Unit information recorded in the source
9739 files table, rather than going through all units every time.
9740 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
9741 (Get_Source_Unit): Same.
9743 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
9744 change in profile of Initialize_Scanner.
9745 (Prepare_To_Preprocess): Same.
9747 * lib.ads: Fix typo in comment (templace -> template).
9749 * prj-part.adb (Parse_Single_Project): Update to account for change in
9750 profile of Initialize_Scanner.
9752 * scn.adb (Initialize_Scanner): Account for change in profile of
9753 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
9754 Also record the association of the given Source_File_Index to the
9755 corresponding Unit_Number_Type.
9757 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
9759 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
9760 Remove Unit formal for generic scanner: this formal
9761 is only relevant to Scn (the scanner instance used to parse Ada source
9762 files), not to other instances. Update comment accordingly.
9763 (Scan): Use new function Snames.Is_Keyword_Name.
9765 * sinfo-cn.adb: Fix typo in comment.
9767 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
9770 * sinput.ads (Source_File_Record): New component Unit, used to capture
9771 the unit identifier (if any) associated to a source file.
9773 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
9774 Unit in Source_File_Record.
9776 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
9777 in profile of Initialize_Scanner.
9779 * scans.adb (Initialize_Ada_Keywords): New procedure
9781 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
9782 Ada keywords in the Namet table, without the need to call
9785 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
9786 (Is_Keyword_Name): New function
9788 * snames.ads: Add subtype Configuration_Pragma_Names
9789 Add pragma Ada_2005 (synonym for Ada_05)
9790 (Is_Keyword_Name): New function
9792 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
9794 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9796 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
9799 * a-stwima.adb (To_Set): Add extra check when N = 0.
9801 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
9803 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9805 * s-parame-mingw.adb, s-parame-linux.adb,
9806 s-parame-solaris.adb: Removed, replaced by s-parame.adb
9808 * s-parame-vxworks.ads: Fix typo.
9810 * s-parame-vxworks.adb: New file.
9812 * s-parame.adb: Version now used by all native platforms.
9813 (Default_Stack_Size): Use 2 megs for default stack size and use
9814 __gl_default_stack_size when available.
9815 (Minimum_Stack_Size): Use 12K.
9817 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
9818 (Create_Task): Refine implementation taking advantage of the XP stack
9819 size support. On XP, we now create the thread using the flag
9820 STACK_SIZE_PARAM_IS_A_RESERVATION.
9822 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
9824 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
9825 XP and 0 on older Windows versions.
9827 * interfac-vms.ads: Removed, no longer used.
9829 2006-02-13 Matthew Heaney <heaney@adacore.com>
9831 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
9832 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
9833 a-cohase.adb: All explicit raise statements now include an exception
9836 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
9837 (Update_Element_Preserving_Key): renamed op to just Update_Element.
9838 Explicit raise statements now include an exception message
9840 * a-cihase.ads, a-cohase.ads: Removed comment.
9842 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
9843 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
9844 a-szbzha.adb, a-szfzha.ads: New files.
9846 2006-02-13 Matthew Heaney <heaney@adacore.com>
9848 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
9851 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
9853 * lang.opt: Wvariadic-macros: New option.
9854 Wold-style-definition: Likewise.
9855 Wmissing-format-attribute: Likewise.
9857 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
9858 -Wold-style-definition and -Wmissing-format-attribute.
9860 2006-02-13 Robert Dewar <dewar@adacore.com>
9862 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
9864 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
9866 2006-02-13 Nicolas Roche <roche@adacore.com>
9868 * a-envvar.adb, a-envvar.ads: New files.
9870 2006-02-13 Douglas Rupp <rupp@adacore.com>
9872 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
9874 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
9876 2006-02-13 Pat Rogers <rogers@adacore.com>
9878 * a-rttiev.adb, a-rttiev.ads: New files.
9880 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
9882 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
9883 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
9885 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
9887 2006-02-13 Robert Dewar <dewar@adacore.com>
9889 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
9890 sem_case.adb: Minor code reorganization (not Present should be No)
9892 2006-02-13 Geert Bosch <bosch@adacore.com>
9893 Gary Dismukes <dismukes@adacore.com>
9895 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
9896 0, since the lower bound of the actual string may be greater than one.
9899 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
9900 layout is requested.
9902 2006-02-13 Vincent Celier <celier@adacore.com>
9904 * back_end.adb (Scan_Compiler_Arguments): Check if
9905 Search_Directory_Present is True and, if it is, add the argument in
9906 the source search directory path.
9908 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
9909 Search_Directory_Present to True.
9911 2006-02-13 Joel Brobecker <brobecke@adacore.com>
9913 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
9914 volatile, to tell the compiler to preserve this variable at any level
9916 (Gen_Versions_Ada): Temporarily work around codegen bug.
9918 2006-02-13 Vincent Celier <celier@adacore.com>
9920 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
9921 gcc to link with option -shared-libgcc.
9922 (Gnatlink): Remove duplicate switches -shared-libgcc
9924 2006-02-13 Robert Dewar <dewar@adacore.com>
9926 * gnatvsn.ads (Current_Year): New constant, used to easily update
9927 copyright on all GNAT tools.
9929 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
9932 2006-02-13 Robert Dewar <dewar@adacore.com>
9934 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
9935 after hyphen (small aesthetic change useful for a range of numbers
9937 Suppress range checks for a couple of assignments which otherwise
9938 cause validity checks with validity checking turned on.
9940 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
9941 Improvement in error message for object.
9942 (Rep_Item_Too_Late): Remove '!' in warning message.
9944 2006-02-13 Robert Dewar <dewar@adacore.com>
9945 Eric Botcazou <ebotcazou@adacore.com>
9947 * err_vars.ads: Suppress range checks for a couple of assignments
9948 which otherwise cause validity checks with validity checking turned on.
9951 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
9952 Make message unconditional if it is a warning.
9953 (Error_Msg_NEL): Always output warning messages.
9954 Suppress range checks for a couple of assignments which otherwise
9955 cause validity checks with validity checking turned on.
9957 * errout.ads (Message Insertion Characters): Document that '!' is
9958 implied by '?' in error messages.
9960 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
9961 (Gnat1drv): Use a goto to end of main subprogram instead of
9962 Exit_Program (E_Success) so that finalization can occur normally.
9964 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
9966 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
9969 2006-02-13 Vincent Celier <celier@adacore.com>
9971 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
9972 Unchecked_Conversion functions.
9973 (Modification_Time): Use direct conversion of OS_Time to Calendar time
9974 when OpenVMS returns False.
9976 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
9977 a-dirval.adb (OpenVMS): New Boolean function
9979 2006-02-13 Ed Schonberg <schonberg@adacore.com>
9980 Thomas Quinot <quinot@adacore.com>
9982 * checks.adb (Build_Discriminant_Checks): If the expression being
9983 checks is an aggregate retrieve the values of its discriminants to
9984 generate the check, rather than creating a temporary and a reference
9986 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
9987 (Install_Null_Excluding_Check): Ditto
9988 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
9989 not for the renamed object, so that the actual itype is attached in the
9992 2006-02-13 Robert Dewar <dewar@adacore.com>
9993 Vincent Celier <celier@adacore.com>
9995 * debug.adb: Eliminate numeric switches for binder/gnatmake
9997 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
9998 switches for the compiler.
9999 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
10000 (Scan_Make_Switches): When failing with an illegal switch, output an
10001 error message with the full switch.
10002 Eliminate numeric switches for binder/gnatmake
10004 * switch.ads, switch.adb (Bad_Switch): New procedure
10006 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
10007 Remove 0-9 as debug flag character possibilities
10008 -d is now controlling the primary stack size when its value is a
10009 positive. Also add checks against invalid values, and support for kb,
10010 mb. Ditto for -D switch.
10012 2006-02-13 Robert Dewar <dewar@adacore.com>
10013 Serguei Rybin <rybin@adacore.com>
10015 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
10016 save/restore routines.
10017 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10018 were not always properly handled previously.
10019 Since we are changing the tree format anyway, also get rid of the
10020 junk obsolete Immediate_Errors flag.
10021 (Tree_Read): Change the way of reading Tree_Version_String - now we
10022 read the version string from the tree even if its length is not the
10023 same as the length of the version string computed from Gnatvsn.
10024 (Search_Directory_Present): New Boolean flag for the compiler.
10025 Define Tree_Version_String as a dynamic string.
10026 (Default_Stack_Size): new variable, used to handle switch -d.
10029 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
10030 only for main unit.
10031 Add pragma Ada_2005 (synonym for Ada_05)
10032 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10033 were not always properly handled previously.
10035 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
10036 explicit Ada_95 to Ada_2005.
10038 2006-02-13 Javier Miranda <miranda@adacore.com>
10039 Robert Dewar <dewar@adacore.com>
10040 Ed Schonberg <schonberg@adacore.com>
10042 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
10043 against errors in the source program: a private types for which the
10044 corresponding full type declaration is missing and pragma CPP_Virtual
10046 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
10047 (Is_Known_Null): New flag
10048 (Has_Pragma_Pure): New flag
10049 (No_Return): Present in all entities, set only for procedures
10050 (Is_Limited_Type): A type whose ancestor is an interface is limited if
10051 explicitly declared limited.
10052 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
10053 entities. Only used for component marked Is_Tag. If present it stores
10054 the Offset_To_Top function used to provide this value in tagged types
10055 whose ancestor has discriminants.
10057 * exp_ch2.adb: Update status of new Is_Known_Null flag
10059 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
10061 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
10062 the categorization sense if Is_Pure was set by pragma Pure_Function.
10064 2006-02-13 Quentin Ochem <ochem@adacore.com>
10065 Olivier Hainque <hainque@adacore.com>
10067 * bindusg.adb: Updated documentation for -d and -D switches.
10069 * raise.h (__gnat_set_globals): added new parameter for
10070 Default_Stack_Size.
10072 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
10073 (__gnat_handle_vms_condition): Adjust context before raise.
10074 (__gnat_install_handler): Restore the global vector setup for GCC
10075 versions before 3.4, as the frame based circtuitry is not available
10077 (__gnat_set_globals): added a parameter default_stack_size
10078 (__gl_default_stack_size): new variable.
10080 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10082 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
10083 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
10084 does not exist in the Ada RM.
10085 (Compatible_Int_Bounds): Determine whether two integer range bounds
10086 are of equal length and have the same start and end values.
10087 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
10088 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
10089 aggregate when it is part of an object declaration.
10090 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
10091 constrains discriminants of its parent, add explicitly the discriminant
10092 constraints of the ancestor by retrieving them from the
10093 stored_constraint of the parent.
10095 2006-02-13 Robert Dewar <dewar@adacore.com>
10097 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
10098 attribute Mechanism_Code is applied to renamed subprogram, modify
10099 prefix to point to base subprogram.
10100 Max/Min attributes now violate Restriction No_Implicit_Conditionals
10102 * sinfo.ads: Document that Mechanism_Code cannot be applied to
10103 renamed subprograms so that the front-end must replace the prefix
10106 2006-02-13 Javier Miranda <miranda@adacore.com>
10107 Gary Dismukes <dismukes@adacore.com>
10109 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
10110 availability of RE_Interface_Tag.
10111 (Build_Initialization_Call): Fix wrong access to the discriminant value.
10112 (Freeze_Record_Type): Do not generate the tables associated with
10113 timed and conditional dispatching calls through synchronized
10114 interfaces if compiling under No_Dispatching_Calls restriction.
10115 When compiling for Ada 2005, for a nonabstract
10116 type with a null extension, call Make_Controlling_Function_Wrappers
10117 and insert the wrapper function declarations and bodies (the latter
10118 being appended as freeze actions).
10119 (Predefined_Primitive_Bodies): Do not generate the bodies of the
10120 predefined primitives associated with timed and conditional
10121 dispatching calls through synchronized interfaces if we are
10122 compiling under No_Dispatching_Calls.
10123 (Build_Init_Procedure): Use RTE_Available to check if a run-time
10124 service is available before generating a call.
10125 (Make_Controlling_Function_Wrappers): New procedure.
10126 (Expand_N_Full_Type_Declaration): Create a class-wide master for
10127 access-to-limited-interfaces because they can be used to reference
10128 tasks that implement such limited interface.
10129 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
10130 procedure spec and body of the Offset_To_Top function that is generated
10131 when the parent of a type with discriminants has secondary dispatch
10133 (Init_Secondary_Tags): Handle the case in which the parent of the type
10134 containing secondary dispatch tables has discriminants to generate the
10135 correct arguments to call Set_Offset_To_Top.
10136 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
10138 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
10139 Add Wide_[Wide_]Expanded_Name.
10140 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
10141 the same functionality of Get_Prim_Op_Address but applied to predefined
10142 primitive operations because the pointers to the predefined primitives
10143 are now saved in a separate table.
10144 (Parent_Size): Modified to get access to the separate table of primitive
10145 operations or the parent type.
10146 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
10147 functionality of Set_Prim_Op_Address but applied to predefined primitive
10149 (Set_Signature): New subprogram used to store the signature of a DT.
10150 (Displace): If the Offset_To_Top value is not static then call the
10151 function generated by the expander to get such value; otherwise use
10152 the value stored in the table of interfaces.
10153 (Offset_To_Top): The type of the actual has been changed to Address to
10154 give the correct support to tagged types with discriminants. In this
10155 case this value is stored just immediately after the tag field.
10156 (Set_Offset_To_Top): Two new formals have been added to indicate if the
10157 offset_to_top value is static and hence pass this value to the run-time
10158 to store it in the table of interfaces, or else if this value is dynamic
10159 and then pass to the run-time the address of a function that is
10160 generated by the expander to provide this value for each object of the
10163 * rtsfind.ads (Default_Prin_Op_Count): Removed.
10164 (Default_Prim_Op_Count): New entity
10165 (Get_Predefined_Prim_Op_Address): New entity
10166 (Set_Predefined_Prim_Op_Address): New entity
10167 (RE_Set_Signature): New entity
10169 2006-02-13 Thomas Quinot <quinot@adacore.com>
10170 Ed Schonberg <schonberg@adacore.com>
10172 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
10173 Make_Adjust_Call done for a newly-allocated object.
10175 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
10176 in a subprogram are wrapped in a cleanup block, indicate that the
10177 subprogram contains an inner block with an exception handler.
10178 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
10179 Adjust call is for a newly-allocated object. In that case we must not
10180 assume that the finalization list chain pointers are correct (since they
10181 come from a bit-for-bit copy of the original object's pointers) so if
10182 the attach level would otherwise be zero (no change), we set it to 4
10183 instead to cause the pointers to be reset to null.
10185 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
10186 reset chain pointers to null.
10188 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10190 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
10191 string, and the context requires a loop for the assignment (e.g.
10192 because the left-hand side is packed), generate a unique name for the
10193 temporary that holds the string, to prevent spurious name clashes.
10195 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10196 Javier Miranda <miranda@adacore.com>
10197 Robert Dewar <dewar@adacore.com>
10198 Gary Dismukes <dismukes@adacore.com>
10200 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
10201 return unconstrained arrays.
10203 (Expand_Call): An indirect call through an access parameter of a
10204 protected operation is not a protected call.
10205 Add circuit to raise CE in Ada 2005 mode following call
10206 to Raise_Exception.
10207 (Register_DT_Entry): Do nothing if
10208 the run-time does not give support to abstract interfaces.
10209 (Freeze_Subprogram): In case of dispatching operations, do not generate
10210 code to register the operation in the dispatch table if the source
10211 is compiled with No_Dispatching_Calls.
10212 (Register_Predefined_DT_Entry): Generate code that calls the new
10213 run-time subprogram Set_Predefined_Prim_Op_Address instead of
10214 Set_Prim_Op_Address.
10216 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
10217 on array assignments if the right-hand side is a function call that has
10218 been inlined. Check is performed on the assignment in the block.
10219 (Process_Bounds): If bounds and range are overloaded, apply preference
10220 rule for root operations to disambiguate, and diagnose true ambiguity.
10221 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
10222 a tag-indeterminate right-hand side even when Expander_Active is True.
10223 Needed to ensure that dispatching calls to T'Input are allowed and
10224 get the tag of the target class-wide object.
10226 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
10227 an inherited primitive operation that already overrides several
10228 abstract interface primitives. For transitivity, the new entity must
10229 also override all the abstract interface primitives covered by the
10230 inherited overriden primitive.
10231 Emit warning if new entity differs from homograph in same scope only in
10232 that one has an access parameter and the other one has a parameter of
10233 a general access type with the same designated type, at the same
10234 position in the signature.
10235 (Make_Inequality_Operator): Use source locations of parameters and
10236 subtype marks from corresponding equality operator when creating the
10237 tree structure for the implicit declaration of "/=". This does not
10238 change anything in behaviour except that the decoration of the
10239 components of the subtree created for "/=" allows ASIS to get the
10240 string images of the corresponding identifiers.
10241 (Analyze_Return_Statement): Remove '!' in warning message.
10242 (Check_Statement_Sequence): Likewise.
10243 (Analyze_Subprogram_Body): For an access parameter whose designated type
10244 is an incomplete type imported through a limited_with clause, use the
10245 type of the corresponding formal in the body.
10246 (Check_Returns): Implicit return in No_Return procedure now raises
10247 Program_Error with a compile time warning, instead of beging illegal.
10248 (Has_Single_Return): Function returning unconstrained type cannot be
10249 inlined if expression in unique return statement is not an identifier.
10250 (Build_Body_To_Inline): It is possible to inline a function call that
10251 returns an unconstrained type if all return statements in the function
10252 return the same local variable. Subsidiary procedure Has_Single_Return
10253 verifies that the body conforms to this restriction.
10255 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
10256 same type, and one of them is of an anonymous access type, convert
10257 the other operand to it, so that this is a valid binary operation for
10259 (Resolve_Type_Conversion): Handle subtypes of protected types and
10260 task types when accessing to the corresponding record type.
10261 (Resolve_Allocator): Add '\' in 2-line warning message.
10262 Remove '!' in warning message.
10263 (Resolve_Call): Add '\' in 2-line warning message.
10264 (Valid_Conversion): Likewise.
10265 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
10266 resulting type may be an access type with an implicit dereference.
10267 Obtain the proper component from the designated type.
10268 (Make_Call_Into_Operator): Handle properly a call to predefined equality
10269 given by an expanded name with prefix Standard, when the operands are
10270 of an anonymous access type.
10271 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
10272 Explicit_Dereference and Resolve_Selected_Component, to verify that the
10273 prefix of the expression is not of an incomplete type. Allows full
10274 diagnoses of all semantic errors.
10275 (Resolve_Actuals): If the actual is an allocator whose directly
10276 designated type is a class-wide interface we build an anonymous
10277 access type to use it as the type of the allocator. Later, when
10278 the subprogram call is expanded, if the interface has a secondary
10279 dispatch table the expander will add a type conversion to force
10280 the displacement of the pointer.
10281 (Resolve_Call): If a function that returns an unconstrained type is
10282 marked Inlined_Always and inlined, the call will be inlined and does
10283 not require the creation of a transient scope.
10284 (Check_Direct_Boolean_Op): Removed
10285 (Resolve_Comparison_Op): Remove call to above
10286 (Resolve_Equality_Op): Remove call to above
10287 (Resolve_Logical_Op): Inline above, since this is only call.
10288 (Valid_Conversion): Handle properly conversions between arrays of
10289 convertible anonymous access types.
10292 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
10293 the literal in an unchecked conversion, because GCC 4.x needs a static
10294 value for a string bound.
10296 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10297 Hristian Kirtchev <kirtchev@adacore.com>
10299 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
10300 components of the corresponding record, take into account component
10301 definitions that are access definitions.
10302 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
10303 procedure is not considered a dispatching call and will be expanded
10306 2006-02-13 Javier Miranda <miranda@adacore.com>
10308 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
10309 controlling argument of the dispatching call is an abstract interface
10310 class-wide type then we use it directly.
10311 Check No_Dispatching_Calls restriction.
10312 (Default_Prim_Op_Position): Remove the code that looks for the last
10313 entity in the list of aliased subprograms. This code was wrong in
10315 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
10316 when the source is compiled with the No_Dispatching_Calls restriction.
10317 (Init_Predefined_Interface_Primitives): No need to inherit primitives
10318 if we are compiling with restriction No_Dispatching_Calls.
10319 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
10320 subprograms if we are compiling under No_Dispatching_Calls restriction.
10321 (Make_DT): Generate a dispatch table with a single dummy entry if
10322 we are compiling with the No_Dispatching_Calls restriction. In
10323 addition, in this case we don't generate code that calls to the
10324 following run-time subprograms: Set_Type_Kind, Inherit_DT.
10325 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
10326 of this subprogram if compiling with the No_Dispatching_Calls
10328 (Expand_Type_Conversion): Instead of using the actual parameter,
10329 the argument passed as parameter to the conversion function was
10330 erroneously referenced by the expander.
10331 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
10332 Set_Predefined_Primitive_Op_Address and Set_Signature.
10333 (Expand_Dispatching_Call): Generate call to
10334 Get_Predefined_Prim_Op_Address for predefined primitives.
10335 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
10336 predefined primitives.
10337 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
10338 primitives we reserve one dummy entry to ensure that the tag does not
10339 point to some memory that is associated with some other object. In
10340 addition, remove all the old code that generated the assignments
10341 associated with the signature of the dispatch table and replace them
10342 by a call to the new subprogram Set_Signature.
10343 (Set_All_DT_Position): Change the algorithm because now we have a
10344 separate dispatch table associated with predefined primitive operations.
10345 (Expand_Interface_Conversion): In case of non-static offset_to_top
10346 add explicit dereference to get access to the object after the call
10347 to displace the pointer to the object.
10348 (Expand_Interface_Thunk): Modify the generation of the actual used
10349 in the calls to the run-time function Offset_To_Top to fulfil its
10351 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
10353 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10355 * exp_dist.adb (Copy_Specification): For access parameters, copy
10356 Null_Exclusion flag, which will have been set for stream subprograms
10359 2006-02-13 Pascal Obry <obry@adacore.com>
10361 * expect.c (__gnat_expect_portable_execvp): New implementation. The
10362 previous implementation was using the C runtime spawnve routine but
10363 the corresponding wait was using directly the Win32 API. This was
10364 causing some times a lock when waiting for an event using
10365 WaitForSingleObject in __gnat_waitpid. This new implementation uses
10366 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
10367 API fixes this problem.
10369 2006-02-13 Robert Dewar <dewar@adacore.com>
10371 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
10374 2006-02-13 Thomas Quinot <quinot@adacore.com>
10376 * exp_pakd.ads: Fix typos in comments.
10378 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
10379 array reference that is an explicit dereference, mark the converted
10380 (packed) array reference as analyzed to prevent a forthcoming
10381 reanalysis from resetting its type to the original (non-packed) array
10384 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10385 Javier Miranda <miranda@adacore.com>
10386 Eric Botcazou <ebotcazou@adacore.com>
10388 * exp_util.ads, exp_util.adb (Find_Prim_Op,
10389 Is_Predefined_Primitive_Operation): When
10390 searching for the predefined equality operator, verify that operands
10391 have the same type.
10392 (Is_Predefined_Dispatching_Operation): Remove the code that looks
10393 for the last entity in the list of aliased subprograms. This code
10394 was wrong in case of renamings.
10395 (Set_Renamed_Subprogram): New procedure
10396 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
10397 Exp_Type constant computed when entering this subprogram.
10398 (Known_Null): New function
10399 (OK_To_Do_Constant_Replacement): New function
10400 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
10401 (Side_Effect_Free): An attribute reference 'Input is not free of
10402 side effect, unlike other attributes that are functions. (from code
10404 (Remove_Side_Effects): Expressions that involve packed arrays or records
10405 are copied at the point of reference, and therefore must be marked as
10406 renamings of objects.
10407 (Is_Predefined_Dispatching_Operation): Return false if the operation is
10408 not a dispatching operation.
10411 (Remove_Side_Effects): Lift enclosing type conversion nodes for
10412 elementary types in all cases.
10414 2006-02-13 Javier Miranda <miranda@adacore.com>
10416 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
10417 task types when accessing to the corresponding record type.
10418 Remove '!' in warning message.
10420 2006-02-13 Olivier Hainque <hainque@adacore.com>
10422 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
10423 to avoid useless and space inefficient overalignments on targets where
10424 Max_Alignment is larger than 16.
10426 2006-02-13 Pascal Obry <obry@adacore.com>
10428 * g-catiio.adb (Sec_Number): New type used to compute the number of
10429 seconds since 1-1-1970.
10430 (Image) [Natural]: The parameter was an Integer, as we can't deal with
10431 negative numbers (years, months...) it is better to have a Natural here.
10433 (Image) [Number]: Change parameter from Long_Integer to Number.
10434 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
10435 overflow for dates past year 2038.
10437 2006-02-13 Matthew Heaney <heaney@adacore.com>
10439 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
10442 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10444 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
10446 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
10447 finalization can occur normally.
10449 2006-02-13 Vincent Celier <celier@adacore.com>
10451 * gnatcmd.adb (Rules_Switches): New table
10452 (Add_To_Rules_Switches): New procedure
10453 (GNATCmd): For command CHECK, put all options following "-rules" in the
10454 Rules_Switches table. Append these -rules switches after the -cargs
10457 2006-02-13 Robert Dewar <dewar@adacore.com>
10459 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
10460 These two cases were generating incorrect output, and if this unit
10461 was built with checks on, generated a discriminant mismatch constraint
10464 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10465 Robert Dewar <dewar@adacore.com>
10467 * lib-xref.adb (Get_Type_Reference): For a private type whose full
10468 view is an array type, indicate the component type as well, for
10469 navigation purposes.
10470 (Generate_Reference): Don't consider array ref on LHS to be a case
10471 of violating pragma Unreferenced.
10472 Do not give Ada 2005 warning except on real reference.
10474 2006-02-13 Vincent Celier <celier@adacore.com>
10476 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
10477 main source, add switch -mdebug-main=_ada_ so that the executable can
10478 be debugged by the standard VMS debugger.
10479 (Gnatmake): Set No_Main_Subprogram to True when there is no main
10480 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
10481 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
10482 of the last source, as the binding and linking phases are never
10484 Set all executable obsolete when rebuilding a library.
10486 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
10489 2006-02-13 Javier Miranda <miranda@adacore.com>
10492 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
10493 code to improve the error message reported when the program has
10494 declarations of abstract interface types and it is not compiled with
10495 the -gnat05 switch.
10496 (P_Access_Definition): Reorganize the code to improve the error
10497 message reported when the new Ada 2005 syntax for anonymous
10498 access types is used and the program is not compiled with the
10501 2006-02-13 Robert Dewar <dewar@adacore.com>
10503 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
10504 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
10507 2006-02-13 Javier Miranda <miranda@adacore.com>
10509 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
10510 against source containing syntax errors.
10512 2006-02-13 Vincent Celier <celier@adacore.com>
10514 * prj.adb (Reset): Initialize the first element of table Namings with
10515 the standard naming data.
10517 2006-02-13 Vincent Celier <celier@adacore.com>
10519 * prj.ads (Error_Warning): New enumeration type
10521 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
10522 unknown, use the location of the project to report the error.
10523 (When_No_Sources): New global variable
10524 (Report_No_Ada_Sources): New procedure
10525 (Check): New parameter When_No_Sources. Set value of global variable
10527 (Find_Sources): Call Report_No_Ada_Sources when appropriate
10528 (Get_Sources_From_File): Ditto
10529 (Warn_If_Not_Sources): Better warning messages indicating the unit name
10532 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
10533 Call Prj.Proc.Process with parameter When_No_Sources.
10535 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
10536 Call Recursive_Check with parameter When_No_Sources.
10537 (Recursive_Check): New parameter When_No_Sources. Call itself and
10538 Prj.Nmsc.Check with parameter When_No_Sources.
10539 (Process): New parameter When_No_Sources. Call Check with parameter
10541 (Copy_Package_Declarations): New procedure to copy renamed parameters
10542 and setting the location of the declared attributes to the location
10543 of the renamed package.
10544 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
10547 2006-02-13 Vincent Celier <celier@adacore.com>
10549 * prj-makr.adb (Make): Preserve the comments from the original project
10551 When removing nodes (attributes Source_Dirs, Source_Files,
10552 Source_List_File and package Naming), save the comments and attach the
10553 saved comments to the newly created nodes.
10554 Do not add a with clause for the naming package if one already exists.
10556 2006-02-13 Javier Miranda <miranda@adacore.com>
10557 Gary Dismukes <dismukes@adacore.com>
10558 Robert Dewar <dewar@adacore.com>
10560 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
10562 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
10563 aliased entities to look for the overriden abstract interface
10565 (Is_Interface_Subprogram): Complete documentation.
10566 (Check_Dispatching_Operation): Do not generate code to register the
10567 operation in the dispatch table if the source is compiled with
10568 restriction No_Dispatching_Calls.
10569 (Override_Dispatching_Operation): Check for illegal attempt to override
10570 No_Return procedure with procedure that is not No_Return
10571 (Check_Dispatching_Call): Suppress the check for an abstract operation
10572 when the original node of an actual is a tag-indeterminate attribute
10573 call, since the attribute, which must be 'Input, can never be abstract.
10574 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
10575 call to the Input attribute (even when rewritten).
10576 (Propagate_Tag): Augment comment to indicate the possibility of a call
10577 to an Input attribute.
10579 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
10580 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
10582 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
10583 No_Wide_Characters is no longer partition-wide
10584 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
10587 2006-02-13 Douglas Rupp <rupp@adacore.com>
10589 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
10591 2006-02-13 Javier Miranda <miranda@adacore.com>
10593 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
10594 handles default-initialized components to keep separate the management
10595 of this feature but also avoid the unrequired resolution and
10596 expansion of components that do not have partially initialized
10598 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
10599 (Check_Bounds): Likewise.
10600 (Check_Length): Likewise.
10602 2006-02-13 Javier Miranda <miranda@adacore.com>
10603 Ed Schonberg <schonberg@adacore.com>
10605 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
10606 abstract interface type call analyze_and_resolve to expand the type
10607 conversion into the corresponding displacement of the
10608 reference to the base of the object.
10609 (Eval_Attribute, case Width): For systems where IEEE extended precision
10610 is supported, the maximum exponent occupies 4 decimal digits.
10611 (Accessibility_Message): Add '\' in 2-line warning message.
10612 (Resolve_Attribute): Likewise.
10613 (case Attribute_Access): Significantly revise checks
10614 for illegal access-to-subprogram Access attributes to properly enforce
10615 the rules of 3.10.2(32/2).
10616 Diagnose use of current instance with an illegal attribute.
10618 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
10620 (Enclosing_Generic_Unit): New function to return a node's innermost
10621 enclosing generic declaration node.
10622 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
10623 (Type_Access_Level): The accessibility level of anonymous acccess types
10624 associated with discriminants is that of the current instance of the
10625 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
10626 (Compile_Time_Constraint_Error): Handle case of conditional expression.
10627 (Kill_Current_Values_For_Entity): New function
10628 (Enter_Name): Change formal type to Entity_Id
10630 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
10631 Ed Schonberg <schonberg@adacore.com>
10632 Gary Dismukes <dismukes@adacore.com>
10634 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
10635 Analyze_Compilation_Unit.
10636 Detect and warn on redundant with clauses detected in a package spec
10637 and/or body when -gnatwr is used.
10638 (Analyze_Context): Analyze config pragmas before other items
10639 (Install_Context_Items): Don't analyze config pragmas here
10640 (Install_Limited_Withed_Unit): Set limited entity of package in
10641 with_clause so that cross-reference information or warning messages on
10642 unused packages can be properly generated
10643 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
10644 has Error_Posted set. Prevent infinite loops in illegal programs.
10645 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
10646 to the point of the error test requiring the current unit to be private.
10647 This ensures that private with clauses are not exempted from the basic
10648 checking for being a descendant of the same library unit parent as a
10649 withed private descendant unit.
10650 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
10651 handle private with clauses properly, as well as to account for cases
10652 where the withed unit is a public descendant of a private ancestor
10653 (in which case the current unit must be a descendant of the private
10654 ancestor's parent). The spec comments were updated accordingly. Also,
10655 the old error message in this subprogram was replaced with error
10656 messages that mirror the errors tested and reported by
10657 Check_Private_Child_Unit.
10658 Parameter and variable names improved for readability.
10659 (Install_Limited_Context_Clauses): Remove test for a withed unit being
10660 private as the precondition for calling
10661 Check_Private_Limited_Withed_Unit since that subprogram has been
10662 revised to test public units as well as private units.
10664 2006-02-13 Thomas Quinot <quinot@adacore.com>
10665 Robert Dewar <dewar@adacore.com>
10666 Ed Schonberg <schonberg@adacore.com>
10667 Javier Miranda <miranda@adacore.com>
10669 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
10670 that Scope_Stack.First = 1.
10671 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10672 were not always properly handled previously.
10673 (Formal_Entity): Complete rewrite, to handle properly some complex case
10674 with multiple levels of parametrization by formal packages.
10675 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
10676 to the corresponding derived type declaration for proper semantics.
10678 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
10679 (Check_Component): Enforce restriction on components of
10680 unchecked_unions: a component in a variant cannot contain tasks or
10682 (Unchecked_Union): Allow nested variants and multiple discriminants, to
10684 Add pragma Ada_2005 (synonym for Ada_05)
10685 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10686 were not always properly handled previously.
10687 Document that pragma Propagate_Exceptions has no effect
10688 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
10689 (Set_Convention_From_Pragma): Check that if a convention is
10690 specified for a dispatching operation, then it must be
10691 consistent with the existing convention for the operation.
10692 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
10693 longer required to specify an vtable-ptr component in the record. For
10694 compatibility reasons we leave the support for the previous definition.
10695 (Analyze_Pragma, case No_Return): Allow multiple arguments
10697 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
10698 non-overrideen inherited operation with a controlling result as
10699 illegal only its implicit declaration comes from the derived type
10700 declaration of its result's type.
10701 (Check_Possible_Deferred_Completion): Relocate the object definition
10702 node of the subtype indication of a deferred constant completion rather
10703 than directly analyzing it. The analysis of the generated subtype will
10704 correctly decorate the GNAT tree.
10705 (Record_Type_Declaration): Check whether this is a declaration for a
10706 limited derived record before analyzing components.
10707 (Analyze_Component_Declaration): Diagnose record types not explicitly
10708 declared limited when a component has a limited type.
10709 (Build_Derived_Record_Type): Code reorganization to check if some of
10710 the inherited subprograms of a tagged type cover interface primitives.
10711 This check was missing in case of a full-type associated with a private
10713 (Constant_Redeclaration): Check that the subtypes of the partial and the
10714 full view of a constrained deferred constant statically match.
10715 (Mentions_T): A reference to the current type in an anonymous access
10716 component declaration must be an entity name.
10717 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
10718 class_wide type to refer to full type, not to the incomplete one.
10719 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
10720 available. Required to give support to the certified run-time.
10721 (Analyze_Component_Declaration): In case of anonymous access components
10722 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
10723 (Process_Discriminants): For an access discriminant, use the
10724 discriminant specification as the associated_node_for_itype, to
10725 simplify accessibility checks.
10727 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10728 Javier Miranda <miranda@adacore.com>
10730 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
10731 abstract interpretations on an operator, remove interpretations that
10732 yield Address or a type derived from it, if one of the operands is an
10734 (Try_Object_Operation.Try_Primitive_Operation,
10735 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
10736 location when creating the new reference to a primitive or class-wide
10737 operation as a part of rewriting a subprogram call.
10738 (Try_Primitive_Operations): If context requires a function, collect all
10739 interpretations after the first match, because there may be primitive
10740 operations of the same type with the same profile and different return
10741 types. From code reading.
10742 (Try_Primitive_Operation): Use the node kind to choose the proper
10743 operation when a function and a procedure have the same parameter
10745 (Complete_Object_Operation): If formal is an access parameter and prefix
10746 is an object, rewrite as an Access reference, to match signature of
10747 primitive operation.
10748 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
10749 by an expanded name with prefix Standard, when the operands are of an
10750 anonymous access type.
10751 (Remove_Abstract_Operations): If the operation is abstract because it is
10752 inherited by a user-defined type derived from Address, remove it as
10753 well from the set of candidate interpretations of an overloaded node.
10754 (Analyze_Membership_Op): Membership test not applicable to cpp-class
10757 2006-02-13 Bob Duff <duff@adacore.com>
10759 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
10760 redundant use clauses.
10761 In particular, if the scope of two use clauses overlaps, but one is not
10762 entirely included in the other, we should not warn. This can happen
10763 with nested packages.
10764 (Analyze_Subprogram_Renaming): Protect the compiler against previously
10765 reported errors. The bug was reported when the compiler was built
10766 with assertions enabled.
10767 (Find_Type): If the node is a 'Class reference and the prefix is a
10768 synchronized type without a corresponding record, return the type
10771 2006-02-13 Javier Miranda <miranda@adacore.com>
10773 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
10774 if this is the full-declaration associated with a private declaration
10775 that implement interfaces, then the private type declaration must be
10777 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
10778 as aliased. The use of the 'access attribute is not available for such
10779 object (for this purpose the object should be explicitly marked as
10780 aliased, but being an anonymous type this is not possible).
10782 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10783 Robert Dewar <dewar@adacore.com>
10785 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
10786 compilation unit is an elaboration scope.
10787 (Add_Task_Proc): Add '\' in 2-line warning message.
10788 (Activate_All_Desirable): Deal with case of unit with'ed by parent
10790 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10791 Javier Miranda <miranda@adacore.com>
10793 * sem_type.adb (Write_Overloads): Improve display of candidate
10795 (Add_One_Interp): Do not add to the list of interpretations aliased
10796 entities corresponding with an abstract interface type that is an
10797 immediate ancestor of a tagged type; otherwise we have a dummy
10798 conflict between this entity and the aliased entity.
10799 (Disambiguate): The predefined equality on universal_access is not
10800 usable if there is a user-defined equality with the proper signature,
10801 declared in the same declarative part as the designated type.
10802 (Find_Unique_Type): The universal_access equality operator defined under
10803 AI-230 does not cover pool specific access types.
10804 (Covers): If one of the types is a generic actual subtype, check whether
10805 it matches the partial view of the other type.
10807 2006-02-13 Thomas Quinot <quinot@adacore.com>
10809 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
10810 line. This is necessary to allow In_Extended_Main_Unit to provide
10811 correct results for itypes while writing out expanded source.
10812 (Close_File): No need to update the source_index_table here since it's
10813 now done for each line.
10815 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10816 Robert Dewar <dewar@adacore.com>
10818 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
10819 preserve the source unit where the itype is declared, and prevent a
10821 (Note_Implicit_Run_Time_Call): New procedure
10822 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
10825 * sprint.ads: Document use of $ for implicit run time routine call
10827 2006-02-13 Quentin Ochem <ochem@adacore.com>
10829 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
10832 2006-02-13 Bob Duff <duff@adacore.com>
10834 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
10835 Scan_Unsigned, so we do not scan leading blanks and sign twice.
10836 Integer'Value("- 5") and Integer'Value("-+5") now correctly
10837 raise Constraint_Error.
10839 * s-vallli.adb (Scan_Long_Long_Integer): Call
10840 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
10841 do not scan leading blanks and sign twice.
10842 Integer'Value("- 5") and Integer'Value("-+5") now correctly
10843 raise Constraint_Error.
10845 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
10846 Scan_Long_Long_Unsigned): Split out most of the processing from
10847 Scan_Long_Long_Unsigned out into
10848 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
10849 This prevents scanning leading blanks and sign twice.
10850 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
10853 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
10854 out most of the processing from Scan_Unsigned out into
10855 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
10856 This prevents scanning leading blanks and sign twice.
10858 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
10859 use with Modular'Value attribute.
10860 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
10863 2006-02-13 Robert Dewar <dewar@adacore.com>
10865 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
10867 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
10869 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
10870 (PPC VxWorks): Likewise.
10871 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
10872 (forced_callee): Make non-inlinable and non-pure.
10873 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
10875 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10876 Ben Brosgol <brosgol@adacore.com>
10877 Robert Dewar <dewar@adacore.com>
10879 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
10881 Document that gnatbind -M option is for cross environments only.
10882 Added description of using gnatmem to trace gnat rtl allocs and deallocs
10883 Add note on use of $ to label implicit run time calls
10884 Add documentation for -gnatyI (check mode IN)
10885 Updated chapter on compatibility with HP Ada
10886 VMS-oriented edits.
10887 Ran spell and corrected errors
10888 Add documentation for gnatbind -d and rework documentation of -D
10890 Add subprogram/data elimination section.
10891 Minor editing of annex A.
10892 Add section for gnatcheck.
10893 Add documentation for restriction No_Dispatching_Calls
10894 Add documentation for pragma Ada_2005
10895 Remove mention of obsolete pragma Propagate_Exceptions
10896 Document that pragma Unreferenced can appear after DO in ACCEPT
10897 Clarify Pure_Function for library level units
10898 Mention Max/Min in connection with No_Implicit_Conditionals
10899 No_Wide_Characters restriction is no longer partition-wide
10900 Add a nice example for Universal_Literal_String attribute
10901 Document that pragma No_Return can take multiple arguments
10903 * ug_words: Added entry for gnatcheck
10905 * g-ctrl_c.ads (Install_Handler): Enhance comments
10907 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
10909 * g-trasym.ads: Add documentation on how to do off line symbolic
10910 traceback computation.
10912 * s-fatgen.adb: Add comments for Unaligned_Valid
10914 * stand.ads: Fix typo in comment
10916 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10918 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
10920 2006-02-06 Roger Sayle <roger@eyesopen.com>
10922 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
10924 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10927 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
10928 implementation that calls __main.
10930 2006-01-25 Peter O'Gorman <peter@pogma.com>
10933 * Makefile.in (GCC_LINK): Remove quotes.
10934 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
10937 (powerpc-darwin): Pass -shared-libgcc when building shared library.
10939 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10942 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
10944 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10946 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
10948 2005-12-12 Arnaud Charlet <charlet@adacore.com>
10950 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
10953 2005-12-12 Arnaud Charlet <charlet@adacore.com>
10955 * Make-lang.in: Update dependencies
10957 2005-12-12 Arnaud Charlet <charlet@adacore.com>
10959 * Make-lang.in: Add rule for ada/exp_sel.o
10961 2005-12-12 Arnaud Charlet <charlet@adacore.com>
10963 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
10965 2005-12-09 Arnaud Charlet <charlet@adacore.com>
10967 * gnatvsn.ads (Library_Version): Bump to version 4.2
10968 (ASIS_Version_Number): Bumped.
10970 2005-12-09 Doug Rupp <rupp@adacore.com>
10972 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
10973 Ada bind file prefix on VMS from b$ to b__.
10974 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
10977 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
10978 Targparm.OpenVMS_On_Target.
10979 (Object_Suffix): Initialize with target object suffix.
10980 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
10982 * butil.adb: Change some Hostparm.OpenVMS checks to
10983 Targparm.OpenVMS_On_Target.
10985 * clean.adb: Change some Hostparm.OpenVMS checks to
10986 Targparm.OpenVMS_On_Target.
10987 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
10988 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
10989 Ada bind file prefix on VMS from b$ to b__.
10991 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
10992 --GCC so that Get_Target_Parameters can find system.ads.
10993 (Gnatlink): Call Get_Target_Parameters in mainline.
10994 Initialize standard packages for Targparm.
10995 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
10996 (Process_Args): Also Check for object files with target object
10998 (Make_Binder_File_Names): Create with target object extension.
10999 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
11002 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
11003 Targparm.OpenVMS_On_Target.
11004 ({declaration},Build_Library,Check_Library): Change Ada bind file
11005 prefix on VMS from b$ to b__.
11007 * osint-b.adb: Change some Hostparm.OpenVMS checks to
11008 Targparm.OpenVMS_On_Target.
11009 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
11012 * targext.c: New file.
11014 * Makefile.in: add support for vxworks653 builds
11015 (../../vxaddr2line): gnatlink with targext.o.
11016 (TOOLS_LIBS): Move targext.o to precede libgnat.
11017 (init.o, initialize.o): Minor clean up in dependencies.
11018 (GNATLINK_OBJS): Add targparm.o, snames.o
11019 Add rules fo building targext.o and linking it explicitly with all
11021 Also add targext.o to gnatlib.
11023 * Make-lang.in: Add rules for building targext.o and linking it in
11024 with gnat1 and gnatbind.
11025 Add entry for exp_sel.o.
11027 * osint.adb Change some Hostparm.OpenVMS checks to
11028 Targparm.OpenVMS_On_Target.
11029 (Object_File_Name): Use target object suffix.
11031 * osint.ads (Object_Suffix): Remove, no longer used.
11032 (Target_Object_Suffix): Initialize with target object suffix.
11034 * rident.ads: Add special exception to license.
11036 * targparm.adb (Get_Target_Parameters): Set the value of
11037 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
11039 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
11041 * targparm.ads: Add special exception to license.
11043 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
11045 (Copy_File): Make sure from file is closed if error on to file
11046 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
11048 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
11049 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
11051 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
11052 target object suffix.
11054 2005-12-09 Jose Ruiz <ruiz@adacore.com>
11055 Quentin Ochem <ochem@adacore.com>
11056 Florian Villoing <villoing@adacore.com>
11058 * a-taster.ads, a-taster.adb: New files.
11060 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
11061 link to the version that does nothing. This way the task termination
11062 routine is not executed twice for the environment task when finishing
11063 because of an unhandled exception.
11065 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
11066 handler because of an unhandled exception.
11068 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
11069 System.Tasking.Utilities instead of that in System.Tasking.Stages.
11071 * s-finimp.adb (initialization code): Modify the soft link for the
11072 finalization of the global list instead of Adafinal.
11074 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
11075 non-tasking version of the soft link for task termination. We do
11076 nothing since if we are using the non-tasking version it
11077 means that the task termination functionality is not used.
11078 (Null_Finalize_Global_List): Add this null version for the procedure
11079 in charge of finalizing the global list for controlled objects.
11080 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
11081 instead for handling run-time termination in a more flexible way.
11082 (Adafinal_NT): This new procedure will take care of finalizing the
11083 global list for controlled objects if needed, but no tasking
11086 * s-tarest.adb (Task_Lock): Do not try to lock again the
11087 Global_Task_Lock if we already own it. Otherwise, we get blocked in
11088 some run-time operations.
11089 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
11090 until all nested locks have been released.
11091 (Task_Wrapper): Call the fall-back task termination handler. It
11092 applies to all tasks but the environment task.
11093 (Finalize_Global_Tasks): Add the call for the task termination
11094 procedure for the environment task.
11095 (Task_Wrapper): suppress warnings around declaration of
11096 Secondary_Stack_Address.
11098 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
11099 moved to the Common_ATCB record.
11100 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
11101 Common_ATCB record.
11102 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
11103 Common_ATCB record.
11105 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
11106 Fall_Back_Handler, and Specific_Handler.
11108 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
11109 defined in Ada.Task_Termination, to avoid circular dependencies.
11110 (Termination_Handler): Redefine this type here, alredy defined in
11111 Ada.Task_Termination, for avoiding circular dependencies.
11112 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
11113 for storing task termination handlers. In addition,
11114 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
11115 Common_ATCB because it is used by both the regular and the restricted
11117 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
11118 Common_ATCB because it is used by both the regular and the restricted
11120 (Common_ATCB): Added a dynamic task analyzer field.
11122 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
11123 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
11124 (Task_Wrapper): Call the task termination handler. It applies to all
11125 tasks but the environment task.
11126 (Finalize_Global_Tasks): Call the task termination procedure for the
11127 environment task. The call to Finalize_Global_List is now performed
11128 using the soft links mechanism.
11129 (Task_Wrapper): added dynamic stack analysis.
11131 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
11132 potentially blocking operations has been moved from
11133 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
11134 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
11135 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
11136 this run-time check.
11138 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
11139 of task termination procedure.
11140 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
11141 link for the task termination procedure.
11143 * bindusg.adb: (Bindusg): Added documentation for -u option.
11145 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
11146 (Get_Main_C): Add handling of dynamic stack analysis.
11147 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
11149 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
11150 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
11151 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
11153 * opt.ads: Added flags used by dynamic stack measurement.
11154 (Max_Line_Length): Remove (not used anymore)
11156 * s-io.ads, s-io.adb (Standard_Error): new subprogram
11157 (Standart_Output): new subprogram
11158 (Set_Output): new subprogram
11159 (Put): now uses the value of Current_Out to know if the output has to be
11160 send to stderr or stdout.
11162 * s-stausa.ads: Complete implementation.
11164 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
11166 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
11167 list of Ada 05 files.
11168 (GNAT Library Units): Add AltiVec files.
11170 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
11171 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
11172 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
11174 2005-12-09 Nicolas Setton <setton@adacore.com>
11176 * adaint.c (__gnat_locate_regular_file): Return immediately if
11177 file_name is empty.
11179 2005-12-09 Javier Miranda <miranda@adacore.com>
11180 Hristian Kirtchev <kirtchev@adacore.com>
11182 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
11183 to the specification because the frontend generates code that uses this
11185 (Set_Interface_Table): Add missing assertion.
11186 Update documentation describing the run-time structure.
11187 (Displace): New subprogram that displaces the pointer to the object
11188 to reference one of its secondary dispatch tables.
11189 (IW_Membership): Modified to use the new table of interfaces.
11190 (Inherit_TSD): Modified to use the new table of interfaces.
11191 (Register_Interface_Tag): Use the additional formal to fill the
11192 contents of the new table of interfaces.
11193 (Set_Interface_Table): New subprogram that stores in the TSD the
11194 pointer to the table of interfaces.
11195 (Set_Offset_To_Top): Use the additional formal to save copy of
11196 the offset value in the table of interfaces.
11197 Update structure of GNAT Primary and Secondary dispatch table diagram.
11198 Add comment section on GNAT dispatch table prologue.
11199 (Offset_To_Signature): Update the constant value of the Signature field.
11200 (Dispatch_Table): Update comment on hidden fields in the prologue.
11201 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
11202 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
11203 the type of formal parameter T to Tag, introduce additional assertions.
11204 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
11206 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
11208 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
11209 in all the calls to Expand_Interface_Thunk. Instead of referencing the
11210 record component containing the tag of the secondary dispatch table we
11211 have to use the Offset_To_Top run-time function to get this information;
11212 otherwise if the pointer to the base of the object has been displace
11213 we get a wrong value if we use the 'position attribute.
11215 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
11216 all the calls to Expand_Interface_Thunk.
11217 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
11218 interfaces; hence the call to Set_Interface_Table was clearly wrong.
11219 (Collect_All_Interfaces): Modify the internal subprogram Collect to
11220 ensure that the interfaces implemented by the ancestors are placed
11221 at the header of the generated list.
11222 (Expand_Interface_Conversion): Handle the case in which the displacement
11223 associated with the interface conversion is not statically known. In
11224 this case we generate a call to the new run-time subprogram Displace.
11225 (Make_DT): Generate and fill the new table of interfaces.
11226 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
11227 Get_Tagged_Kind and Set_Tagged_Kind.
11228 (Tagged_Kind): New function that determines the tagged kind of a type
11229 with respect to limitedness and concurrency and returns a reference to
11231 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
11232 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
11233 primary dispatch table for a type.
11234 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
11235 secondary dispatch table respectively of a tagged type.
11237 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
11238 (Expand_Interface_Conversion): New subprogram to indicate if the
11239 displacement of the type conversion is statically known.
11240 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
11242 * rtsfind.ads (RE_Offset_To_Top): New entity
11243 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
11244 accessible to users.
11245 (Re_Displace): New entity
11246 (RE_Interface_Data): New entity
11247 (RE_Set_Interface_Data): New_Entity
11248 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
11249 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
11250 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
11251 RE_TK_Tagged, RE_TK_Task.
11253 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
11254 Init_Secondary_Tags_Internal to allow its use with interface types and
11255 also to generate the code for the new additional actual required
11256 by Set_Offset_To_Top.
11257 (Build_Init_Statements): In case of components associated with abstract
11258 interface types there is no need to generate a call to its IP.
11259 (Freeze_Record_Type): Generate Select Specific Data tables only for
11261 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
11262 the bodies and specifications of the predefined primitive operations
11263 dealing with dispatching selects and abort, 'Callable, 'Terminated only
11264 for concurrent types.
11266 * exp_sel.ads, exp_sel.adb: New files.
11268 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
11269 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
11270 properly protected objects and attach handler in the case of the
11271 restricted profile.
11272 Move embeded package Select_Expansion_Utilities into a separate external
11274 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
11275 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
11276 (Build_K, Build_S_Assignment): New subprograms, part of the select
11277 expansion utilities.
11278 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
11279 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
11280 where the trigger is a dispatching procedure of a limited tagged type.
11282 2005-12-09 Olivier Hainque <hainque@adacore.com>
11284 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
11285 pointer initialization values. Make a SAVE_EXPR instead. Add comments
11286 about the use and expansion of SAVE_EXPRs in the various possible
11287 renaming handling cases.
11288 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
11289 abusing DECL_FCONTEXT.
11291 2005-12-09 Matthew Heaney <heaney@adacore.com>
11293 * a-convec.adb (Merge): Added assertions to check whether vector params
11296 * a-coinve.adb (Merge): Added assertions to check whether vector params
11299 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
11301 (Cursor'Read): raises PE
11303 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
11304 to its default value.
11306 * a-cihama.adb: Manually check whether cursor's key and elem are
11309 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
11310 (Merge): Assert that target and source lists are in order
11311 (Swap): Declare non-const temporaries, to pass to Splice
11313 * a-cdlili.ads: (Splice): Changed param name and param mode
11315 * a-cdlili.adb: (Splice): Changed param name and param mode
11316 (Merge): Assert that target and source lists are in order
11317 (Swap): Declare non-const temporaries, to pass to Splice
11319 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
11320 (Write): declare Stream param as not null
11322 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
11323 an exception message.
11325 2005-12-09 Thomas Quinot <quinot@adacore.com>
11326 Robert Dewar <dewar@adacore.com>
11328 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
11329 which is the absolute maximum length we can support.
11331 * frontend.adb: For the processing of configuration pragma files,
11332 remove references to Opt.Max_Line_Length, which is not checked anymore.
11334 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
11337 * scn.adb, scng.adb:
11338 Always check line length against the absolute supported maximum,
11339 Hostparm.Max_Line_Length.
11341 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
11342 value for the maximum line length is Max_Line_Length (not
11343 Column_Number'Last).
11344 Minor error msg update
11345 (Set_Style_Check_Options): New interface returning error msg
11346 Minor code reorganization (processing for 'M' was out of alpha order)
11348 * switch-c.adb: New interface for Set_Style_Check_Options
11350 * stylesw.ads (Set_Style_Check_Options): New interface returning error
11353 2005-12-09 Javier Miranda <miranda@adacore.com>
11355 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
11356 with IP subprogram were only supported if there were limited types.
11358 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
11359 records with IP subprogram were only supported if there were limited
11362 2005-12-09 Olivier Hainque <hainque@adacore.com>
11363 Eric Botcazou <ebotcazou@adacore.com>
11365 * trans.c (tree_transform, emit_check): Adjust calls to
11366 build_call_raise, passing the now expected GNAT_NODE argument.
11368 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
11369 source line information than what the current global locus indicates
11372 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
11373 field has overflowed.
11374 (build_call_raise): Add a GNAT_NODE argument to convey better source
11375 line information than what the current global locus indicates when
11377 (build_component_ref): Adjust call to build_call_raise.
11379 2005-12-09 Pascal Obry <obry@adacore.com>
11381 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
11382 the iterator is quitting iteration on parent directory.
11384 2005-12-09 Javier Miranda <miranda@adacore.com>
11386 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
11387 and the assignment to a class-wide object, before the assignment we
11388 generate a run-time check to ensure that the tag of the Target is
11389 covered by the tag of the source.
11391 2005-12-09 Robert Dewar <dewar@adacore.com>
11393 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
11394 parameter in call to Image_Wide_Character.
11396 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
11397 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
11398 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
11399 annoying FFFE/FFFF inconsistency.
11401 2005-12-09 Robert Dewar <dewar@adacore.com>
11402 Javier Miranda <miranda@adacore.com>
11403 Ed Schonberg <schonberg@adacore.com>
11405 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
11406 of type conversion.
11407 (Find_Interface): New subprogram that given a tagged type and one of its
11408 component associated with the secondary table of an abstract interface
11409 type, return the entity associated with such abstract interface type.
11410 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
11411 base type to create anonymous subtype, because entity may be a locally
11412 declared subtype or generic actual.
11413 (Find_Interface): New subprogram that given a tagged type and one of its
11414 component associated with the secondary table of an abstract interface
11415 type, return the entity associated with such abstract interface type.
11417 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
11418 conversion cannot be handled at compile time. In this case we pass this
11419 information to the expander to generate the appropriate code.
11421 2005-12-09 Robert Dewar <dewar@adacore.com>
11422 Ed Schonberg <schonberg@adacore.com>
11423 Gary Dismukes <dismukes@adacore.com>
11424 Javier Miranda <miranda@adacore.com>
11425 Hristian Kirtchev <kirtchev@adacore.com>
11427 * einfo.adb (Itype_Printed): New flag
11428 (Is_Limited_Type): Derived types do not inherit limitedness from
11429 interface progenitors.
11430 (Is_Return_By_Reference_Type): Predicate does not apply to limited
11433 * einfo.ads (Itype_Printed): New flag
11434 Move Is_Wrapper_Package to proper section
11435 Add missing Inline for Is_Volatile
11437 * output.ads, output.adb (Write_Erase_Char): New procedure
11438 (Save/Restore_Output_Buffer): New procedures
11439 (Save/Restore_Output_Buffer): New procedures
11441 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
11442 Add missing support for anonymous access type
11443 (Write_Id): Insert calls to Write_Itype
11444 (Write_Itype): New procedure to output itypes
11446 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
11447 use of "limited" in declaration.
11449 * sinfo.ads, sinfo.adb:
11450 Formal derived types can carry an explicit "limited" indication.
11452 * sem_ch3.adb: Add with and use of Targparm.
11453 (Create_Component): If Frontend_Layout_On_Target is True and the
11454 copied component does not have a known static Esize, then reset
11455 the size and positional fields of the new component.
11456 (Analyze_Component_Declaration): A limited component is
11457 legal within a protected type that implements an interface.
11458 (Collect_Interfaces): Do not add to the list the interfaces that
11459 are implemented by the ancestors.
11460 (Derived_Type_Declaration): If the parent of the full-view is an
11461 interface perform a transformation of the tree to ensure that it has
11462 the same parent than the partial-view. This simplifies the job of the
11463 expander in order to generate the correct object layout, and it is
11464 needed because the list of interfaces of the full-view can be given in
11466 (Process_Full_View): The parent of the full-view does not need to be
11467 a descendant of the parent of the partial view if both parents are
11469 (Analyze_Private_Extension_Declaration): If declaration has an explicit
11470 "limited" the parent must be a limited type.
11471 (Build_Derived_Record_Type): A derived type that is explicitly limited
11472 must have limited ancestor and progenitors.
11473 (Build_Derived_Type): Ditto.
11474 (Process_Full_View): Verify that explicit uses of "limited" in partial
11475 and full declarations are consistent.
11476 (Find_Ancestor_Interface): Remove function.
11477 (Collect_Implemented_Interfaces): New procedure used to gather all
11478 implemented interfaces by a type.
11479 (Contain_Interface): New function used to check whether an interface is
11481 (Find_Hidden_Interface): New function used to determine whether two
11482 lists of interfaces constitute a set equality. If not, the first
11483 differing interface is returned.
11484 (Process_Full_View): Improve the check for the "no hidden interface"
11485 rule as defined by AI-396.
11487 2005-12-09 Robert Dewar <dewar@adacore.com>
11489 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
11490 types, not on record subtypes.
11491 (Freeze_Entity): Code cleanup. Add barrier to the loop
11492 that generates the references for primitive operations. This allows to
11493 remove an unnecessary exception handler.
11494 Code reformatting and comment clean ups.
11496 2005-12-09 Vincent Celier <celier@adacore.com>
11498 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
11499 If GNAT CHECK is called with a project file, but with no
11500 source on the command line, call gnatcheck with all the compilable
11501 sources of the project.
11502 Take into account the new command Check, for gnatcheck. Treat as for
11503 other ASIS tools: take into account project, specific package Check and
11505 For ASIS tools, add the switches in package Compiler for
11506 the invocation of the compiler.
11508 * prj-attr.adb: Add package Check and its attributes
11510 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
11512 * vms_conv.adb (Initialize): Change Params of command Check to
11514 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
11515 Add data for new command Check
11517 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
11519 Add qualifiers for Check command options
11520 (Command_Type): New command Check
11522 2005-12-09 Thomas Quinot <quinot@adacore.com>
11524 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
11525 command line switch overruns the output buffer.
11527 2005-12-09 Robert Dewar <dewar@adacore.com>
11529 * sem_prag.adb: Processing for new pragma Complete_Representation
11530 (Analyze_Pragma, case Debug): Implement two argument form.
11532 * par-prag.adb: Entry for new pragma Complete_Representation
11533 (Prag, case Debug): Recognize two argument form of pragma Debug
11534 New interface for Set_Style_Check_Options.
11536 * sem_ch13.adb: Implement new pragma Complete_Representation.
11538 * snames.adb, snames.ads, snames.h: Entry for new pragma
11539 Complete_Representation.
11541 2005-12-09 Gary Dismukes <dismukes@adacore.com>
11543 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
11544 available user-specified stream attributes on limited parameters to
11545 also test the type directly rather than only its underlying type (for
11546 Ada 95) and, in the case of Ada 2005, to check that the user-specified
11547 attributes are visible at the point of the subprogram declaration.
11548 For Ada 2005, the error message is modified to indicate that the
11549 type's stream attributes must be visible (again, only for -gnat05).
11551 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11553 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
11554 anonymous access types.
11556 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
11557 matching of anonymous access types and anonymous access to subprogram
11558 types. 'R'M 4.9.1 (2/2).
11560 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11562 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
11563 rule prematurely when operands are universal, remaining ambiguities
11564 will be removed during resolution.
11567 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
11568 that are Ada 2005 functions.
11569 (Has_Abstract_Interpretation): Subsidiary to
11570 Remove_Conversions, to remove ambiguities caused by abstract operations
11571 on numeric types when operands are universal.
11573 2005-12-09 Robert Dewar <dewar@adacore.com>
11575 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
11576 for case where spec is categorized.
11578 2005-12-09 Javier Miranda <miranda@adacore.com>
11580 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
11581 types use the corresponding record type. This was not needed before
11582 the implementation of Ada 2005 synchronized types because
11583 concurrent types were never tagged types in Ada 95.
11585 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11587 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
11588 first subtype of the type of the expression to verify that it is a
11591 2005-12-09 Robert Dewar <dewar@adacore.com>
11593 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
11596 2005-12-09 Quentin Ochem <ochem@adacore.com>
11597 Robert Dewar <dewar@adacore.com>
11598 Ed Falis <falis@adacore.com>
11599 Florian Villoing <villoing@adacore.com>
11600 Thomas Quinot <quinot@adacore.com>
11601 Arnaud Charlet <charlet@adacore.com>
11603 * gnat_ugn.texi: Created section "Stack Related Tools"
11604 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
11605 "Stack Related Tools"
11606 Added subsection "Static Stack Usage Analysis"
11607 Added subsection "Dynamic Stack Usage Analysis"
11608 Include documentation of itypes in sprint listing (-gnatG)
11609 Documented gnatbind -D switch (default sec stack size for fixed sec
11611 Added Interrupt_State and Persistent_BSS to list of configuration
11613 Add missing doc for maximum value of nnn in -gnatyMnnn
11615 * gnat_rm.texi: Document the AltiVec binding.
11616 Add documentation for pragma Complete_Representation
11617 Shortened an overly long line (> 79 chars)
11618 Clarify documentation of unchecked conversion in implementation
11620 Document two argument form of pragma Debug
11622 * types.ads (Column_Number): Update documentation.
11624 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
11625 library level Finalize_Storage_Only objects (these are not attached to
11626 any finalization list).
11628 * system-mingw.ads: (Underlying_Priorities): Update comment.
11630 2005-12-09 Robert Dewar <dewar@adacore.com>
11632 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
11633 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
11634 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
11635 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
11636 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
11637 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
11638 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
11639 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
11642 2005-12-09 Robert Dewar <dewar@adacore.com>
11644 * s-vaflop-vms-alpha.adb: (Ne_F): New function
11645 (Ne_G): New function
11647 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
11648 for tag assignment.
11649 (Rewrite_Comparison): Handle case where operation is not a comparison
11650 and ignore, and also handle type conversion case.
11652 2005-12-09 Thomas Quinot <quinot@adacore.com>
11654 * exp_aggr.ads: Fix typo in comment.
11655 ???-mark Convert_Aggr_In_Assignment as needing documentation.
11657 2005-12-09 Gary Dismukes <dismukes@adacore.com>
11659 * layout.adb: Replace various uses of byte by storage unit throughout.
11660 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
11661 static size, convert to storage units before returning, to conform to
11664 2005-12-09 Matthew Gingell <gingell@adacore.com>
11666 * g-exctra.ads: Fix typo in comment.
11668 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11670 * utils.c: Minor reformatting.
11672 2005-12-09 Robert Dewar <dewar@adacore.com>
11675 Further comment fixes to make the status of the default file clear
11677 * s-bitops.adb: Clarify comment for Bits_Array
11679 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
11681 * Make-lang.in (ada.install-normal): Remove.
11683 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
11685 * Make-lang.in: Remove all dependencies on s-gtype.
11687 2005-12-05 Richard Guenther <rguenther@suse.de>
11689 * utils.c (convert): Use fold_convert where appropriate.
11691 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
11693 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
11696 2005-12-02 Richard Guenther <rguenther@suse.de>
11698 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
11700 2005-12-01 Roger Sayle <roger@eyesopen.com>
11702 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
11705 2005-11-23 Laurent GUERBY <laurent@guerby.net>
11707 * mlib-prj.adb (Build_Library): Initialize Delete.
11709 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
11711 * socket.c: Add extern int h_errno for rtems since networking header
11712 files are not available at this point in a tool bootstrap. Newlib
11713 only has basic C library header files.
11715 2005-11-19 Richard Guenther <rguenther@suse.de>
11716 Roger Sayle <roger@eyesopen.com>
11719 * misc.c (internal_error_function): Don't use vsprintf to format
11720 the error message text, instead use pp_format_text and the new
11721 pretty printer APIs. This allows handling of %qs, %w, etc.
11723 2005-11-18 Laurent GUERBY <laurent@guerby.net>
11726 * Makefile.in: Use s-auxdec-empty for RTEMS.
11728 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11731 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
11732 a temporary if taking the address of something that is neither
11733 reference, declaration, or constant, since the gimplifier
11734 can't handle that case.
11736 2005-11-17 Laurent GUERBY <laurent@guerby.net>
11739 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
11741 2005-11-16 Richard Guenther <rguenther@suse.de>
11743 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
11745 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
11748 * raise-gcc.c: Add missing stdarg.h include.
11750 2005-11-16 Richard Guenther <rguenther@suse.de>
11752 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
11753 (ada/misc.o): Likewise.
11755 2005-11-14 Thomas Quinot <quinot@adacore.com>
11757 * g-soccon.ads: Minor reformatting. Update comments.
11759 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
11760 gain visibility on the declaration of struct timeval.
11762 * g-soccon-freebsd.ads,
11763 g-soccon-darwin.ads,
11764 g-soccon-tru64.ads,
11768 g-soccon-solaris.ads,
11770 g-soccon-mingw.ads,
11771 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
11773 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
11774 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
11775 g-soccon-linux-x86.ads: New files.
11777 * g-socthi-mingw.adb:
11778 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
11780 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
11781 (time_t, suseconds_t): New types constructed to match the tv_sec
11782 and tv_usec fields of C struct timeval.
11783 (Timeval): Construct structure in terms of the new types.
11784 (Host_Errno): New function (imported from socket.c), returns last hosts
11787 * g-socthi-vxworks.adb: Add error handling circuitry.
11789 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
11790 components of struct timeval.
11791 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
11792 (Check_Selector): In error conditions, clear internal socket sets to
11793 avoid a memory leak.
11794 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
11795 Send_Timeout, Receive_Timeout.
11797 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
11798 the tv_sec and tv_usec fields of C struct timeval.
11799 (Timeval): Construct structure in terms of the new types.
11800 (Host_Errno): New function (imported from socket.c), returns last hosts
11803 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
11804 hosts database last error code.
11806 * gen-soccon.c: Complete value expansion should not be performed on
11807 TARGET, as it has the form of a math expression, and some components
11808 may be platform-defined macros.
11809 For VxWorks, generate the OK and ERROR values.
11810 New constants giving the sizes of the components of C struct timeval.
11812 2005-11-14 Robert Dewar <dewar@adacore.com>
11813 Ed Schonberg <schonberg@adacore.com>
11816 * types.ads: Include All_Checks in Suppress_Array
11818 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
11819 not(a=b), since we no longer do this rewriting, and hence it is not
11821 (Elaboration_Checks_Suppressed): Add special casing to
11822 deal with different cases of static and dynamic elaboration checks (all
11823 checks does not count in the first case, but does in the second).
11824 (Expr_Known_Valid): Do not assume that the result of any arbitrary
11825 function call is valid, since this is not the case.
11826 (Ensure_Valid): Do not apply validity check to a real literal
11827 in a universal or fixed context
11829 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
11830 elementary types using the operator in standard. It is cleaner not to
11831 modify the programmers intent, especially in the case of floating-point.
11832 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
11833 it did not matter because we always rewrote a/=b to not(a=b).
11834 (Expand_Allocator_Expression): For an allocator expression whose nominal
11835 subtype is an unconstrained packed type, convert the expression to its
11836 actual constrained subtype.
11837 Implement warning for <= or >= where < or > not possible
11838 Fix to Vax_Float tests (too early in many routines, causing premature
11839 Vax_Float expansions.
11841 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
11842 to be used with packages and generic packages as well as with
11844 (Suppress): Set All_Checks, but not Elaboration_Check, for case
11845 of pragma Suppress (All_Checks)
11846 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
11847 a string literal for precise control over warnings.
11848 Avoid raise of pragma in case of unrecognized pragma and just return
11851 * sem_prag.ads: Minor reformatting
11853 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
11854 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
11855 Switch. Do not handle any exception.
11856 Include -gnatwx as part of -gnatg (warn on redundant parens)
11857 Allow optional = after -gnatm
11858 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
11859 longer sets Elaboration_Checks.
11860 Code to set warning mode moved to Sem_Warn
11861 so that it can be shared by pragma processing.
11863 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
11866 * s-taprop-solaris.adb:
11867 Change some <= to =, to avoid new warning
11869 * a-exexda.adb, prj-proc.adb:
11870 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
11871 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
11873 2005-11-14 Robert Dewar <dewar@adacore.com>
11875 * exp_vfpt.adb: Handle /= case
11876 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
11877 so that we do not get duplicate scaling for fixed point conversions.
11879 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
11881 2005-11-14 Matthew Gingell <gingell@adacore.com>
11883 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
11884 Increase default priority on Lynx from 15 to 17, and meet the Ada
11885 requirement that Default_Priority be ((Priority'First +
11886 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
11888 2005-11-14 Vincent Celier <celier@adacore.com>
11890 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
11891 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11892 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
11893 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
11894 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
11895 mlib-tgt-lynxos.adb (DLL_Prefix): New function
11897 2005-11-14 Doug Rupp <rupp@adacore.com>
11899 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
11902 2005-11-14 Arnaud Charlet <charlet@adacore.com>
11904 * s-traces-default.adb, s-trafor-default.ads,
11905 s-tratas-default.adb: Fix compilation errors.
11907 2005-11-14 Jose Ruiz <ruiz@adacore.com>
11909 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
11910 raising the exception so the memory used is freed.
11912 2005-11-14 Arnaud Charlet <charlet@adacore.com>
11914 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
11915 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
11916 (convert_address): Update comments and list of platforms using this.
11918 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
11921 2005-11-14 Pascal Obry <obry@adacore.com>
11922 Vincent Celier <celier@adacore.com>
11924 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
11927 * memroot.adb: Remove redundant with/use clause on
11928 System.Storage_Elements.
11930 2005-11-14 Arnaud Charlet <charlet@adacore.com>
11932 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
11933 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
11934 related code to a-exexpr.adb
11935 (Save_Occurrence_And_Private): Move GCC EH related code to
11937 (Raise_Current_Excep): Add new variable Id with pragma
11938 volatile, to ensure that the variable lives on stack.
11940 * a-exexpr-gcc.adb, raise-gcc.c: New file.
11942 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
11944 Move GCC EH related code to a-exexpr-gcc.adb
11946 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
11948 Split the Linux version of g-soccon into separate variants for 32 and 64
11950 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
11951 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
11952 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
11953 of host variable $(RANLIB_FLAGS).
11954 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
11955 Code clean up: remove unused/obsolete targets.
11956 (EH_MECHANISM): New variable introduced to differenciate between the
11957 two EH mechanisms statically.
11958 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
11959 (LIBGNAT_OBJS): Add raise-gcc.o
11960 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
11961 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
11962 supports VxWorks 6 RTPs.
11963 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
11964 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
11966 * raise.c: Move all GCC EH-related routines to raise-gcc.c
11968 2005-11-14 Jose Ruiz <ruiz@adacore.com>
11970 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
11971 deferral level, when abort is not allowed, to a later stage (the
11973 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
11974 it will not get changed by the generated code. It was previously done
11977 2005-11-14 Thomas Quinot <quinot@adacore.com>
11978 Olivier Hainque <hainque@adacore.com>
11979 Eric Botcazou <ebotcazou@adacore.com>
11982 Factor common code to build a storage type for an unconstrained object
11983 from a fat or thin pointer type and a constrained object type.
11984 (annotate_value): Handle BIT_AND_EXPR.
11985 (annotate_rep): Don't restrict the back annotation of inherited
11986 components to the type_annotate_only case.
11987 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
11988 we are not defining the type.
11989 <E_Record_Type>: Likewise.
11990 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
11991 to get advantage of the new maybe_stabilize_reference interface, to
11992 ensure that what we reference is indeed stabilized instead of relying
11993 on assumptions on what the stabilizer does.
11994 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
11995 type imported through a limited_with clause, use its non-limited view.
11996 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
11998 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
11999 of #if sections + explicit comparisons of convention identifiers.
12000 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
12001 before early-returning for certain types when code generation is
12003 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
12004 nullification of gnu_expr we do for objects with address clause and
12005 that we are not defining.
12006 (elaborate_expression_1): Do not create constants when creating
12007 variables needed by the debug info: the dwarf2 writer considers that
12008 CONST_DECLs is used only to represent enumeration constants, and emits
12010 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
12011 object with an address clause into an indirect reference, drop the
12012 initializing expression.
12014 (STACK_CHECK_BUILTIN): Delete.
12015 (STACK_CHECK_PROBE_INTERVAL): Likewise.
12016 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
12017 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
12018 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
12019 corresponding to the renamed object as ignored for debugging purposes.
12021 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
12022 related): For a prefix that is a dereference of a fat or thin pointer,
12023 if there is an actual subtype provided by the front-end, use that
12024 subtype to build an actual type with bounds template.
12025 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
12026 is provided by the front-end, use that subtype to compute the size of
12027 the deallocated object.
12028 (gnat_to_gnu): When adding a statement into an elaboration procedure,
12029 check for a potential violation of a No_Elaboration_Code restriction.
12030 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
12031 with extra arguments to control whether to recurse through non-values
12032 and to let the caller know if the stabilization has succeeded.
12033 (gnat_stabilize_reference): Now a simple wrapper around
12034 maybe_stabilize, for common uses without restriction on lvalues and
12035 without need to check for the success indication.
12036 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
12037 pass false instead of 0 as the FORCE argument which is a bool.
12038 (Identifier_to_gnu): Remove checks ensuring that an renamed object
12039 attached to a renaming pointer has been properly stabilized, as no such
12040 object is attached otherwise.
12041 (call_to_gnu): Invoke create_var_decl to create the temporary when the
12042 function uses the "target pointer" return mechanism.
12043 Reinstate conversion of the actual to the type of the formal
12044 parameter before any other specific treatment based on the passing
12045 mechanism. This turns out to be necessary in order for PLACEHOLDER
12046 substitution to work properly when the latter type is unconstrained.
12048 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
12050 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
12051 with extra arguments to control whether to recurse through non-values
12052 and to let the caller know if the stabilization has succeeded.
12054 * utils2.c (gnat_build_constructor): Only sort the fields for possible
12055 static output of record constructor if all the components are constant.
12056 (gnat_build_constructor): For a record type, sort the list of field
12057 initializers in increasing bit position order.
12058 Factor common code to build a storage type for an unconstrained object
12059 from a fat or thin pointer type and a constrained object type.
12060 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
12061 types variants, and process special cases of VIEW_CONVERT expressions
12062 as their NOP_EXPR counterpart to ensure we get to the
12063 CORRESPONDING_VARs associated with CONST_DECls.
12064 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
12065 on the right-hand side.
12067 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
12069 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
12070 are converting back to its original type.
12071 (convert) <JM input>: Fallthrough regular conversion code instead of
12072 extracting the object if converting to a type variant.
12073 (create_var_decl): When a variable has an initializer requiring code
12074 generation and we are at the top level, check for a potential violation
12075 of a No_Elaboration_Code restriction.
12076 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
12077 SIZE and SIZE_UNIT which we need for later back-annotations.
12078 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
12079 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
12080 is an unchecked union.
12081 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
12082 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
12083 main variant, just replace the VIEW_CONVERT_EXPR.
12084 <UNION_TYPE>: Revert 2005-03-02 change.
12086 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
12088 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
12090 2005-11-14 Matthew Heaney <heaney@adacore.com>
12092 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
12093 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
12094 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
12095 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
12096 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
12097 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
12098 Compiles against the spec for ordered maps described in sections
12099 A.18.6 of the most recent (August 2005) AI-302 draft.
12101 2005-11-14 Olivier Hainque <hainque@adacore.com>
12103 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
12104 to ensure bias adjustments take place when need be and to prevent
12105 occurrences of intermediate overflows.
12107 2005-11-14 Matthew Gingell <gingell@adacore.com>
12108 Olivier Hainque <hainque@adacore.com>
12110 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
12113 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
12114 tracebacks on ia64 HP-UX and provide explanatory comment.
12115 Enable backtraces on ia64 GNU/Linux.
12116 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
12117 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
12119 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
12120 Javier Miranda <miranda@adacore.com>
12122 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
12123 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
12124 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
12125 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
12127 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
12128 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
12131 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
12132 subprogram that generates the external name associated with a
12133 secondary dispatch table.
12134 (Get_Secondary_DT_External_Name): New subprogram that generates the
12135 external name associated with a secondary dispatch table.
12137 2005-11-14 Emmanuel Briot <briot@adacore.com>
12139 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
12140 line in the ALI file to include both an instantiation reference, and a
12143 2005-11-14 Vincent Celier <celier@adacore.com>
12145 * clean.adb (Check_Project): Look for Ada code in extending project,
12146 even if Ada is not specified as a language.
12147 Use new function DLL_Prefix for DLL_Name
12148 (Clean_Interface_Copy_Directory): New procedure
12149 (Clean_Library_Directory): New procedure
12150 (Clean_Directory): Remove procedure, no longer used
12151 (Clean_Project): Do not delete any file in an externally built project
12153 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
12154 directory of an extending project, even when there are no Ada source
12156 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
12157 (Set_Ada_Paths.Add.Recursive_Add): Ditto
12159 * mlib-prj.adb (Check_Library): For all library projects, get the
12160 library file timestamp.
12161 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
12162 (Build_Library): Use new function DLL_Prefix for the DLL_Name
12163 (Clean): Remove procedure, no longer used
12164 (Ultimate_Extension_Of): New function
12165 (Build_Library): When cleaning the library directory, only remove an
12166 existing library file and any ALI file of a source of the project.
12167 When cleaning the interface copy directory, remove any source that
12168 could be a source of the project.
12170 * prj.ads, prj.adb (Project_Empty): Add values of new components
12171 Library_TS and All_Imported_Projects.
12172 (Project_Empty): Add values for new components of Project_Data:
12173 Library_ALI_Dir and Display_Library_ALI_Dir
12175 * prj-attr.adb: New project level attribute name Library_ALI_Dir
12177 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
12178 attribute Library_ALI_Dir.
12179 (Check_Library_Attributes): The library directory cannot be the same as
12180 any source directory of the project tree.
12181 (Check_Stand_Alone_Library): The interface copy directory cannot be
12182 the same as any source directory of the project tree.
12184 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
12185 all temporary files.
12187 2005-11-14 Robert Dewar <dewar@adacore.com>
12188 Ed Schonberg <schonberg@adacore.com>
12190 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12191 (Check_Elab_Call): A call within a protected body is never an
12192 elaboration call, and does not require checking.
12193 (Same_Elaboration_Scope): Take into account protected types for both
12195 (Activate_Elaborate_All_Desirable): New procedure
12197 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
12200 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
12201 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
12203 * lib-writ.ads, lib-writ.adb:
12204 Implement new AD/ED for Elaborate_All/Elaborate desirable
12205 Use new Elaborate_All_Desirable flag in N_With_Clause node
12207 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
12208 N_Free_Statement nodes.
12209 Define new class N_Subprogram_Instantiation
12210 Add Elaborate_Desirable flag to N_With_Clause node
12211 Add N_Delay_Statement (covering two kinds of delay)
12213 * debug.adb: Introduce d.f flag for compiler
12214 Add -da switch for binder
12216 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12217 Cyrille Comar <comar@adacore.com>
12219 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
12220 for task component, in the case of a limited aggregate. The enclosed
12221 object declaration will create it earlier. Otherwise, in the case of a
12222 nested aggregate, the object may appear in the wrong scope.
12223 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
12224 (Gen_Assign): If the component being assigned is an array type and the
12225 expression is itself an aggregate, wrap the assignment in a block to
12226 force finalization actions on the temporary created for each row of the
12228 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
12229 structures are initialized after all discriminants are set so that
12230 they can be accessed even when their offset is dynamic.
12232 2005-11-14 Robert Dewar <dewar@adacore.com>
12233 Hristian Kirtchev <kirtchev@adacore.com>
12235 * sem_attr.adb: Implement Machine_Rounding attribute
12236 (Analyze_Access_Attribute): The access attribute may appear within an
12237 aggregate that has been expanded into a loop.
12238 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
12239 'Terminated whenever the prefix is of a task interface class-wide type.
12240 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
12241 the prefix is of a task interface class-wide type.
12243 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
12246 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
12247 Remove pragma Inline for [Unaligned_]Valid.
12248 Add comments that Valid routines do not work for Vax_Float
12250 * exp_attr.adb: Implement Machine_Rounding attribute
12252 * snames.h: Add entry for Machine_Rounding attribute
12254 2005-11-14 Javier Miranda <miranda@adacore.com>
12255 Robert Dewar <dewar@adacore.com>
12256 Hristian Kirtchev <kirtchev@adacore.com>
12258 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
12259 and related): For a prefix that is an explicit dereference of an
12260 access to unconstrained packed array type, annotate the dereference
12261 with an actual subtype so GIGI can make a correct size computation.
12262 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
12263 'Unrestricted_Access, if the designated type is an interface we
12264 add a type conversion to force the displacement of the pointer
12265 to the secondary dispatch table.
12266 Use Universal_Real instead of Long_Long_Float when we need a high
12267 precision float type for the generated code (prevents gratuitous
12268 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
12269 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
12270 'Terminated for task interface class-wide objects. Generate a call to
12271 the predefined dispatching routine used to retrieve the _task_id from
12272 a task corresponding record.
12273 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
12275 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12276 (Check_Dispatching_Operation): Protect the frontend againts
12277 previously detected errors.
12279 * Makefile.rtl: Add new instantiations of system.fat_gen
12281 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
12282 Change name of instantiated package for better consistency
12283 with newly added system.fat_gen instantiations.
12285 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
12286 s-fvagfl.ads: New files.
12288 2005-11-14 Cyrille Comar <comar@adacore.com>
12289 Thomas Quinot <quinot@adacore.com>
12291 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
12292 assignment of a value of a tagged type that has been rewritten to a
12293 block statement, it is known by construction that no checks are
12294 necessary for the statements within the block: analyze it with checks
12296 (Expand_N_If_Statement): When killing a dead then-branch in an
12297 if-statement that has elsif_parts, recompute the Current_Value node
12298 for any entity whose value is known from the condition of the first
12300 (Expand_N_Return_Statement): When returning a mutable record, convert
12301 the return value into its actual subtype in order to help the backend
12302 to return the actual size instead of the maximum. This is another
12303 aftermath of not returning mutable records on the sec-stack anymore.
12305 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
12306 handling of error msg for suspicious reverse range iteration.
12307 (Check_Possible_Current_Value_Condition): Move declaration from body to
12308 spec, to allow this subprogram to be called from exp_ch5.
12310 2005-11-14 Thomas Quinot <quinot@adacore.com>
12312 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
12313 generate a set of nested array aggregates instead of a single flat
12314 aggregate for multi-dimensional arrays.
12316 2005-11-14 Pascal Obry <obry@adacore.com>
12318 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
12319 by spawnve is a process handle, no need to convert. Add a parameter
12320 close to control wether the process handle must be closed.
12321 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
12322 a process handle, not need to convert.
12323 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
12325 * g-expect.adb: (Kill): Document the new close parameter.
12326 (Close): Do not release the process handle in the kill there as
12327 waitpid() is using it.
12328 (Send_Signal): Release the process handle.
12330 2005-11-14 Robert Dewar <dewar@adacore.com>
12332 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
12333 need a high precision float type for the generated code (prevents
12334 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
12337 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
12338 need a high precision float type for the generated code (prevents
12339 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
12341 (Expand_Width_Attribute): In configurable run-time, the attribute is not
12342 allowed on non-static enumeration subtypes. Force a load error to emit
12343 the correct diagnostic.
12345 2005-11-14 Thomas Quinot <quinot@adacore.com>
12346 Robert Dewar <dewar@adacore.com>
12347 Ed Schonberg <schonberg@adacore.com>
12349 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
12350 subtype to compute the size of the designated object at run-time,
12351 create such a subtype and store it in the Actual_Designated_Subtype
12352 attribute of the N_Free_Statement.
12353 Generate itype for classwide designated object in both cases of
12354 user-specified storage pool: specific and class-wide, not only in the
12356 Raise CE when trying to set a not null access type object to null.
12357 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
12358 an explicit loop, because freeze nodes make its position variable.
12360 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
12363 2005-11-14 Javier Miranda <miranda@adacore.com>
12365 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
12366 Build_Stream_Procedure): Add the null-excluding attribute to the first
12368 This has no semantic meaning under Ada95 mode but it is a
12369 requirement under Ada05 mode.
12371 * par-ch3.adb (P_Access_Definition): Addition of warning message if
12372 the null exclusion is used under Ada95 mode
12373 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
12374 (P_Access_Definition): Remove assertion that forbids the use of
12375 the null-exclusion feature in Ada95.
12377 2005-11-14 Robert Dewar <dewar@adacore.com>
12379 * impunit.adb: Exclude container helper units not intended for use by
12382 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12384 * freeze.adb (Freeze_Entity): For an access formal that is an access
12385 to subprogram, freeze the anonymous subprogram type at the same time,
12386 to prevent later freezing in the wrong scope, such as the enclosing
12388 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
12389 subprogram whenever available.
12391 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12394 * gnatvsn.ads (Library_Version): Bump to 4.1
12396 2005-11-14 Robert Dewar <dewar@adacore.com>
12398 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
12399 Storage_Offset to avoid wrap around causing invalid results.
12401 2005-11-14 Pascal Obry <obry@adacore.com>
12403 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
12405 (Scan_Bind_Arg): Fail with an error message if -M option is used
12406 on a native compiler.
12408 2005-11-14 Robert Dewar <dewar@adacore.com>
12409 Vincent Celier <celier@adacore.com>
12411 * gprep.adb: Implement -C switch to scan comments
12413 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
12415 * scans.ads: Comment updates (including new use of Tok_Comment in
12418 * opt.ads: Add documentation for flags that are used by gprmake,
12419 currently and in the next version of gprmake.
12420 (Verbosity_Level): New variable
12421 Add Replace_In_Comments switch
12423 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
12425 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
12427 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12429 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
12430 message, friendlier.
12432 2005-11-14 Robert Dewar <dewar@adacore.com>
12434 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
12436 2005-11-14 Doug Rupp <rupp@adacore.com>
12438 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
12440 2005-11-14 Robert Dewar <dewar@adacore.com>
12442 * interfac.ads: Change declarations of IEEE float types so that we no
12443 longer need a separate version of this package for VMS.
12445 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12447 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
12448 internal entity created for the declaration of a child subprogram body
12449 with no spec as coming from source, to generate proper cross-reference
12452 2005-11-14 Vincent Celier <celier@adacore.com>
12454 * make.adb (Compile_Sources): Change verbose message to minimum
12455 verbosity level High for "is in an Ada library", "is a read-only
12456 library" and "is an internal library",
12457 (Create_Binder_Mapping_File): Path name of ALI file for library project
12458 must include the library directory, not the object directory.
12459 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
12460 for new switches -vl, -vm and -vh.
12461 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
12462 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
12463 (Compile_Sources): Do not attempt to compile if an ALI file is missing
12464 in a project that is externally built.
12465 (Compute_All_Imported_Projects): New procedure
12466 (Gnatmake): Check if importing libraries should be regenerated because
12467 at least an imported library is more recent.
12468 (Initialize): For each project compute the list of the projects it
12469 imports directly or indirectly.
12470 (Add_Library_Search_Dir): New procedure, used in place of
12471 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
12472 put in the search paths.
12473 (Add_Source_Search_Dir): New procedure, used in place of
12474 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
12475 put in the search paths.
12476 (Mark_Directory): Resolve the absolute path the directory before marking
12479 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
12480 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
12481 Switch. Do not handle any exception.
12482 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
12483 so that the switch is recognized as valid.
12484 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
12486 2005-11-14 GNAT Script <nobody@adacore.com>
12488 * Make-lang.in: Makefile automatically updated
12490 2005-11-14 Pascal Obry <obry@adacore.com>
12492 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
12494 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
12495 In both cases the last argument was dropped.
12497 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
12499 * namet.h: (Column_Numbe): New type.
12500 (Get_Column_Number): Define to sinput__get_column_number.
12501 (Instantiation): Define to sinput__instantiation.
12502 (Get_Column_Number): Declare.
12503 (Instantiation): Likewise.
12505 2005-11-14 Robert Dewar <dewar@adacore.com>
12507 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
12508 syntax, which could cause compiler hangs.
12510 2005-11-14 Vincent Celier <celier@adacore.com>
12512 * prj-ext.adb: Take into account new environment variable
12513 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
12515 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
12516 normalize its path name, making it absolute and resolving symbolic
12517 links, and replace the original if resolved path is different.
12519 2005-11-14 Vincent Celier <celier@adacore.com>
12521 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
12522 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
12524 2005-11-14 Emmanuel Briot <briot@adacore.com>
12526 * prj-pp.adb (Print): Do not output the with statement if the
12527 associated name is empty, which happens for virtual extending projects.
12528 (Print): Preserve the "extends all" attribute when printing the project.
12530 * prj-tree.ads (String_Value_Of): Add comment about returned value for
12531 a virtual extending project.
12533 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12535 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
12536 rhs of an assignment even if the type is unconstrained, when the
12537 context is non-expanding.
12538 In an inlined body, if the context type is private,
12539 resolve with its full view, which must be a composite type.
12541 2005-11-14 Robert Dewar <dewar@adacore.com>
12542 Ed Schonberg <schonberg@adacore.com>
12544 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12545 Do not give obsolescent warning on with of subprogram (since we
12547 (Analyze_With_Clause): Add test for obsolescent package
12548 (Install_Context_Clauses): If the unit is the body of a child unit, do
12549 not install twice the private declarations of the parents, to prevent
12550 circular lists of Use_Clauses in a parent.
12551 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
12552 compiling body of child unit.
12553 Use new class N_Subprogram_Instantiation
12554 (Expand_With_Clause): If this is a private with_clause for a child unit,
12555 appearing in the context of a package declaration, then the implicit
12556 with_clauses generated for parent units are private as well.
12557 (License_Check): Do not generate message if with'ed unit is internal
12559 2005-11-14 Gary Dismukes <dismukes@adacore.com>
12560 Ed Schonberg <schonberg@adacore.com>
12561 Thomas Quinot <quinot@adacore.com>
12563 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
12564 names are internal, because they will not have a corresponding partner
12565 in the actual package.
12566 (Analyze_Formal_Package): Move the setting of the formal package spec's
12567 Generic_Parent field so that it occurs prior to analyzing the package,
12568 to allow proper operation of Install_Parent_Private_Declarations.
12569 (Analyze_Package_Instantiation): Set the instantiated package entity's
12570 Package_Instantiation field.
12571 (Get_Package_Instantiation_Node): Move declaration to package spec.
12572 Retrieve the N_Package_Instantiation node when the Package_Instantiation
12574 (Check_Generic_Child_Unit): Within an inlined call, the only possible
12575 instantiation is Unchecked_Conversion, for which no parents are needed.
12576 (Inline_Instance_Body): Deinstall and record the use_clauses for all
12577 parent scopes of a scope being removed prior to inlining an instance
12579 (Analyze_Package_Instantiation): Do not perform front-end inlining when
12580 the current context is itself an instance within a non-instance child
12581 unit, to prevent scope stack errors.
12582 (Save_References): If the node is an aggregate that is an actual in a
12583 call, rewrite as a qualified expression to preserve some type
12584 information, to resolve possible ambiguities in the instance.
12585 (Instance_Parent_Unit): New global variable to record the ultimate
12586 parent unit associated with a generic child unit instance (associated
12587 with the existing Parent_Unit_Visible flag).
12588 (type Instance_Env): New component Instance_Parent_Unit for stacking
12589 parents recorded in the global Instance_Parent_Unit.
12590 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
12592 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
12593 it's not a top-level unit, and only do this if Instance_Parent_Unit is
12594 not already set. Replace test of Is_Child_Unit with test of parent's
12595 scope against package Standard. Add comments and a ??? comment.
12596 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
12597 on a child instance parent to test that the parent equals
12598 Instance_Parent rather than simply checking that the unit is not a
12600 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
12601 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
12602 a formal interface are ancestors of the corresponding actual.
12603 (Validate_Formal_Interface_Type): Additional legality checks.
12604 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
12605 interface types with ancestors.
12606 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
12607 to diagnose attempts to use generic within its own declaration.
12609 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12610 Javier Miranda <miranda@adacore.com>
12612 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
12614 (Build_Private_Derived_Type): The entity of the created full view of the
12615 derived type does not come from source. If after installing the private
12616 declarations of the parent scope the parent is still private, use its
12617 full view to construct the full declaration of the derived type.
12618 (Build_Derived_Record_Type): Relax the condition that controls the
12619 execution of the check that verifies that the partial view and
12620 the full view agree in the set of implemented interfaces. In
12621 addition, this test now only takes into account the progenitors.
12622 (Derive_Interface_Subprograms): No need to derive subprograms
12623 of ancestors that are interfaces.
12624 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
12626 Change name Is_Package to Is_Package_Or_Generic_Package
12627 (Complete_Subprograms_Derivation): Handle the case in which the full
12628 view is a transitive derivation of the ancestor of the partial view.
12629 (Process_Full_View): Rename local subprogram Find_Interface_In_
12630 Descendant to Find_Ancestor_Interface to leave the code more clear.
12631 Remove wrong code that avoids the generation of an error message
12632 when the immediate ancestor of the partial view is an interface.
12633 In addition some minor reorganization of the code has been done to
12634 leave it more clear.
12635 (Analyze_Type_Declaration): If type has previous incomplete tagged
12636 partial view, inherit properly its primitive operations.
12637 (Collect_Interfaces): Make public, for analysis of formal
12639 (Analyze_Interface_Declaration): New procedure for use for regular and
12640 formal interface declarations.
12641 (Build_Derived_Record_Type): Add support for private types to the code
12642 that checks if a tagged type implements abstract interfaces.
12643 (Check_Aliased_Component_Type): The test applies in the spec of an
12645 (Access_Type_Declaration): Clean up declaration of malformed type
12646 declared as an access to its own classwide type, to prevent cascaded
12648 (Collect_Interfaces): For private extensions and for derived task types
12649 and derived protected types, the parent may be an interface that must
12650 be included in the interface list.
12651 (Access_Definition): If the designated type is an interface that may
12652 contain tasks, create Master_Id for it before analyzing the expression
12653 of the declaration, which may be an allocator.
12654 (Record_Type_Declaration): Set properly the interface kind, for use
12655 in allocators, the creation of master id's for task interfaces, etc.
12657 2005-11-14 Javier Miranda <miranda@adacore.com>
12658 Ed Schonberg <schonberg@adacore.com>
12660 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
12661 omitted in case of stream attribute subprograms.
12662 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
12663 appear immediately after a subprogram body, when there is no previous
12664 subprogram declaration.
12665 Change name Is_Package to Is_Package_Or_Generic_Package
12666 (Process_Formals): A non null qualifier on a non null named access
12667 type is not an error, and is a warning only if Redundant_Constructs
12670 2005-11-14 Gary Dismukes <dismukes@adacore.com>
12671 Ed Schonberg <schonberg@adacore.com>
12673 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
12674 nested within Analyze_Package_Specification to install the private
12675 declarations and use clauses within each of the parent units of a
12676 package instance of a generic child package.
12677 (Analyze_Package_Specification): When entering a private part of a
12678 package associated with a generic instance or formal package, the
12679 private declarations of the parent must be installed (by calling new
12680 procedure Install_Parent_Private_Declarations).
12681 Change name Is_Package to Is_Package_Or_Generic_Package
12682 (Preserve_Full_Attributes): For a synchronized type, the corresponding
12683 record is absent in a generic context, which does not indicate a
12686 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12688 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
12689 not try to rewrite a renamed stream attribute, because the operations
12690 on the type may not have been generated.
12691 Handle properly a renaming_as_body generated for a stream operation
12692 whose default is abstract because the object type itself is abstract.
12693 (Find_Type): If the type is incomplete and appears as the prefix of a
12694 'Class reference, it is tagged, and its list of primitive operations
12695 must be initialized properly.
12696 (Chain_Use_Clauses): When chaining the use clauses that appear in the
12697 private declaration of a parent unit, prior to compiling the private
12698 part of a child unit, find on the scope stack the proper parent entity
12699 on which to link the use clause.
12700 (Note_Redundant_Use): Emit a warning when a redundant use clause is
12702 (Analyze_Object_Renaming): An attribute reference is not a legal object
12703 if it is not a function call.
12705 2005-11-14 Robert Dewar <dewar@adacore.com>
12706 Ed Schonberg <schonberg@adacore.com>
12708 * sem_eval.adb: Implement d.f flag
12709 (Subtype_Statically_Match): A generic actual type has unknown
12710 discriminants when the corresponding actual has a similar partial view.
12711 If the routine is called to validate the signature of an inherited
12712 operation in a child instance, the generic actual matches the full view,
12714 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
12715 Ed Schonberg <schonberg@adacore.com>
12716 Robert Dewar <dewar@adacore.com>
12717 Thomas Quinot <quinot@adacore.com>
12719 * sem_res.adb (Resolve_Call): Provide a better error message whenever
12720 a procedure call is used as a select statement trigger and is not an
12721 entry renaming or a primitive of a limited interface.
12722 (Valid_Conversion): If the operand has a single interpretation do not
12723 remove address operations.
12724 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
12725 statement to inhibit warning.
12726 (Resolve_Unary_Op): Do not produce a warning when
12727 processing an expression of the form -(A mod B)
12728 Use Universal_Real instead of Long_Long_Float when we need a high
12729 precision float type for the generated code (prevents gratuitous
12730 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
12731 (Resolve_Concatenation_Arg): Improve error message when argument is an
12732 ambiguous call to a function that returns an array.
12733 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
12734 there is an implicit operator in the given scope if we are within an
12735 instance: legality check has been performed on the generic.
12736 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
12737 after resolving operand, to avoid false warnings on overloaded calls.
12739 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12740 Javier Miranda <miranda@adacore.com>
12743 * sem_type.adb (Covers): In an inlined body, a composite type matches
12744 a private type whose full view is a composite type.
12745 (Interface_Present_In_Ancestor): Protect the frontend against
12746 previously detected errors to ensure that its compilation
12747 with assertions enabled gives the same output that its
12748 compilation without assertions.
12749 (Interface_Present_In_Ancestor): Add support for private types.
12750 Change name In_Actual to In_Generic_Actual (clean up)
12751 (Disambiguate): New predicate In_Actual, to recognize expressions that
12752 appear in the renaming declaration generated for generic actuals, and
12753 which must be resolved in the outer context.
12755 2005-11-14 Robert Dewar <dewar@adacore.com>
12756 Thomas Quinot <quinot@adacore.com>
12757 Hristian Kirtchev <kirtchev@adacore.com>
12758 Ed Schonberg <schonberg@adacore.com>
12760 * sem_util.ads, sem_util.adb: Change name Is_Package to
12761 Is_Package_Or_Generic_Package.
12762 (Check_Obsolescent): New procedure.
12763 (Set_Is_Public): Remove obsolete junk test.
12764 (Set_Public_Status): Do not set Is_Public on an object whose declaration
12765 occurs within a handled_sequence_of_statemets.
12766 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
12767 for a parameterless procedure.
12768 (Enter_Name): Recognize renaming declarations created for private
12769 component of a protected type within protected operations, so that
12770 the source name of the component can be used in the debugger.
12772 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12773 Robert Dewar <dewar@adacore.com>
12775 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
12776 of a generic subprogram are not visible outside the body.
12777 (Set_Warning_Switch): New procedure (code to set warning mode moved
12778 here from Switch.C so that it can be shared by pragma processing.
12779 (Check_References): Special case warning for non-modified non-imported
12781 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
12782 form with a string literal argument
12784 2005-11-14 Javier Miranda <miranda@adacore.com>
12786 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
12788 (Write): Addition of "not null" to the anonymous access.
12789 (Read): Addition of "not null" to the anonymous access.
12790 (Write): Addition of "not null" to the anonymous access.
12792 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
12793 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
12794 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
12795 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
12796 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
12797 "not null" to the anonymous access.
12799 2005-11-14 Robert Dewar <dewar@adacore.com>
12801 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
12804 2005-11-14 Vincent Celier <celier@adacore.com>
12806 * switch.adb (Bad_Switch): New procedure
12807 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
12808 message when in error.
12810 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
12811 Too_Many_Output_Files): Remove declarations, no longer used.
12812 (Scan_Nat): New parameter Switch
12814 (Bad_Switch): New procedure
12816 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
12817 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
12818 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
12819 to Osint.Fail. Do not handle any exception.
12821 2005-11-14 Vincent Celier <celier@adacore.com>
12823 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
12824 designates a non existent directory.
12826 2005-11-14 Robert Dewar <dewar@adacore.com>
12828 * xgnatugn.adb: Replace invalid membership test by 'Valid
12830 2005-11-14 Vincent Celier <celier@adacore.com>
12832 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
12833 there is no object directory.
12835 2005-11-14 Robert Dewar <dewar@adacore.com>
12837 * usage.adb: Minor adjustment to output format, use nn instead of nnn
12838 (so that -gnateInnn does not run into next column)
12840 2005-11-14 Ed Falis <falis@adacore.com>
12842 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
12845 2005-11-14 Cyrille Comar <comar@adacore.com>
12847 * s-chepoo.ads: Add comments on Dereference.
12848 Remove unnecessary inherited abstract primitives.
12851 2005-11-14 Robert Dewar <dewar@adacore.com>
12853 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
12854 node parameter, not needed, since it is available as Declaration_Node.
12856 2005-11-14 Geert Bosch <bosch@adacore.com>
12858 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
12859 grammatically correct.
12861 2005-11-14 Vincent Celier <celier@adacore.com>
12863 * s-fileio.ads: Correct spelling error in comment
12865 2005-11-14 Cyrille Comar <comar@adacore.com>
12866 Robert Dewar <dewar@adacore.com>
12867 Vincent Celier <celier@adacore.com>
12868 Ben Brosgol <brosgol@adacore.com>
12869 Jose Ruiz <ruiz@adacore.com>
12870 Pascal Obry <obry@adacore.com>
12873 Document that -fstack-check is needed for strict compliance with the
12874 Ada 95 Reference Manual.
12875 Correct reference to VAX systems to meet HP guidelines
12876 Add documentation for new gnatmake switches -vl, -vm and -vh
12877 Replace DEC Ada by HP Ada
12878 Replace DIGITAL by HP
12879 Remove empty section on tools in compatibility section
12880 Clarify the Windows convention semantics.
12881 Document the Win32 calling convention.
12882 The Stdcall, Win32 and DLL convention are synonyms.
12883 Add a note in -gnatR description about zero size record components
12884 Note on new >= and <= warnings for -gnatwc
12885 Document that equal sign after -gnatm is optional.
12886 Note that strip is working fine on DLL built with a Library
12887 Project. The restriction apply only to DLL built with gnatdll.
12888 Update section about the way to debug a DLL.
12889 Update information about the DLL convention.
12890 Document -C switch for gnatprep
12891 Document new attribute Library_ALI_Dir
12892 Update elaboration doc to include implicit Elaborate pragmas now
12893 generated for subprogram instantiations.
12894 Document limitation on executable names that include spaces for --GCC,
12895 --GNATBIND, and --GNATLINK switches.
12896 Document that -w causes -gnatws to be added at start of gcc switches
12898 * gnat_rm.texi: Document that -mieee is needed for generating infinite
12899 and NaN values in case of overflow on machines that are not fully
12900 compliant with the IEEE floating-point standard.
12901 Create a section describing the set of compiler options needed for
12902 strict compliance with the Ada 95 Reference Manual.
12903 Add documentation for pragma Obsolescent applied to a package
12904 Clarify potential issues of mixed language programs related to the
12905 I/O buffering enabling in the elaboration of the GNAT runtime.
12906 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
12907 This documentation only patch adds extra documentsion for pragma
12908 Restrictions (No_Elaboration_Code), explaining why it is not possible
12909 to document this restriction in terms of allowed source constructs.
12910 Document string literal form of pragma Warnings
12911 Document new attribute Library_ALI_Dir
12912 Add documentation on stable attributes in project files that was missing
12914 * gnat-style.texi: Indicate that paragraphs within a single comment
12915 should be separated by empty comment lines
12917 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
12920 * bindusg.adb: Minor cleanup, put -m before -M for consistency
12922 2005-11-14 Robert Dewar <dewar@adacore.com>
12924 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
12925 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
12926 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
12927 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
12928 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
12929 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
12930 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
12931 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
12932 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
12933 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
12934 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
12935 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
12936 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
12937 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12938 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
12939 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
12940 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
12941 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
12942 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
12943 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
12944 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
12945 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
12946 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
12947 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
12948 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
12949 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
12950 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
12951 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
12952 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
12953 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
12954 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
12955 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
12956 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
12957 system-interix.ads, system-solaris-sparc.ads,
12958 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
12959 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
12960 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
12961 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
12962 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
12963 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
12964 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
12965 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
12966 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
12967 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
12968 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
12969 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
12970 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
12971 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
12972 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
12973 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
12974 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
12975 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
12976 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
12977 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
12978 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
12979 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
12980 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
12981 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
12982 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
12983 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
12984 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
12985 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
12986 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
12987 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
12988 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
12989 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
12990 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
12991 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
12992 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
12993 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
12994 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12995 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
12996 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
12997 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
12998 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
12999 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
13000 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
13001 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
13002 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
13003 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
13004 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
13005 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
13006 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
13007 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
13008 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
13009 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
13010 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
13011 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
13012 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
13013 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
13014 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
13015 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
13016 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
13017 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
13018 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
13019 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
13020 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
13021 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
13022 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
13023 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
13024 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
13025 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
13026 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
13027 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
13028 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
13029 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
13030 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
13031 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
13032 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
13033 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
13034 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
13035 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
13036 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
13037 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
13038 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
13039 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
13040 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
13041 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
13042 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
13043 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
13044 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
13045 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
13046 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
13047 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
13048 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
13049 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
13050 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
13051 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
13052 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
13053 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
13054 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
13055 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
13056 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
13057 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
13058 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
13059 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
13060 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
13061 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
13062 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
13063 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
13064 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
13065 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
13066 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
13067 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
13068 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
13069 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
13070 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
13071 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
13072 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
13073 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
13074 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
13075 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
13076 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
13077 a-numaux-darwin.ads, a-numaux-darwin.adb,
13078 a-swuwha.ads, a-stunha.ads: Minor reformatting
13080 2005-11-14 Robert Dewar <dewar@adacore.com>
13083 * osint-m.adb: Add pragma Elaborate_All for Osint
13085 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
13088 * trans.c (call_to_gnu): Restore statement lost in translation.
13090 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
13092 * init.c: Use the Linux-specific section for the IA-64/Linux target.
13093 (__gnat_adjust_context_for_raise): Add conditional code so that the
13094 IA-64 is also supported.
13096 2005-11-03 James E Wilson <wilson@specifix.com>
13099 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
13100 TREE_OVERFLOW check.
13102 2005-09-21 Olivier Hainque <hainque@adacore.com>
13105 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
13106 as we create them to store a size in bits.
13108 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
13116 * utils2.c (build_return_expr): New helper function.
13117 * gigi.h (build_return_expr): Declare it.
13118 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
13119 of manually building the RETURN_EXPR tree.
13120 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
13121 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
13122 build_binary_op for the "target pointer" case. Use build_return_expr
13123 instead of manually building the RETURN_EXPR tree.
13125 2005-09-16 Laurent GUERBY <laurent@guerby.net>
13128 * s-tpinop.ads: Make this unit Preelaborate.
13130 2005-09-16 Andreas Jaeger <aj@suse.de>
13132 * socket.c: Add string.h for memcpy.
13134 2005-09-05 Arnaud Charlet <charlet@adacore.com>
13136 * dec-io.ads, dec-io.adb: Removed, no longer used.
13138 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13140 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
13142 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
13143 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
13144 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
13145 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
13146 dependent units are Preelaborate.
13147 (Initialize): Call Interrupt_Managemeent.Initialize and
13148 OS_Primitives.Initialize to ensure proper initialization of this unit.
13149 Remove use of System.Soft_Links
13150 Make this unit Preelaborate.
13152 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
13153 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
13154 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
13155 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
13156 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
13157 s-tratas.ads, s-tasinf.ads: Minor reformatting.
13158 Add pragma Preelaborate, since these packages are suitable for this
13162 * s-traent-vms.ads, s-intman-dummy.adb,
13163 s-taprop-dummy.adb: Make this unit Preelaborate.
13165 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
13166 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
13167 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
13168 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
13169 s-intman-solaris.adb, s-intman-irix-athread.adb,
13170 s-intman-irix.adb: Mark this unit Preelaborate.
13171 (Initialize): New procedure.
13174 * s-taspri-linux.ads: Removed.
13176 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
13177 as done by other implementations (e.g. posix).
13179 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
13180 responsible for deferring abort.
13181 Mark this unit Preelaborate.
13183 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
13184 proper initialization of the tasking run-time.
13186 * s-tasdeb.ads: Mark this unit Preelaborate.
13187 (Known_Tasks): Add explicit default value to avoid elaboration code.
13189 * s-inmaop-vms.adb (Elaboration code): Add call to
13190 Interrupt_Management.Initialize since the elaboration code depends on
13191 proper initialization of this package.
13193 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
13194 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
13195 s-osprim-posix.adb: Make this unit Preelaborate.
13197 * a-calend.adb: Add call to OS_Primitives.Initialize
13199 * a-elchha.adb: Update use of Except.Id.Full_Name.
13200 Minor reformatting.
13201 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
13203 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
13204 Move with clauses outside Warnings Off now that dependent units are
13206 Use raise xxx with "..."; Ada 2005 form.
13208 * a-taside.ads, a-taside.adb:
13209 Remove some dependencies, to make it easier to make this unit truly
13211 Rewrite some code to be conformant with Preelaborate rules.
13213 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
13214 marked Preelaborate in the future.
13216 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
13217 these units Preelaborate.
13219 * s-exctab.adb: Update use of Except.Id.Full_Name.
13221 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
13222 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
13223 Set_Exc_Stack_Addr): Removed, no longer used.
13224 Remove reference to *Machine_State_Addr*, no longer needed.
13226 * s-stalib.ads: Mark this unit as Preelaborate[_05].
13227 (Exception_Data): Full_Name is now a System.Address so that this unit
13228 can be made Preelaborate.
13229 Clean up/simplify code thanks to Full_Name being a System.Address.
13230 Remove obsolete pragma Suppress (All_Checks), no longer needed.
13232 * s-taskin.ads, s-taskin.adb:
13233 Move with clauses outside Warnings Off now that dependent units are
13235 Make this unit Preelaborate.
13236 (Initialize): New proceduure, replace elaboration code and makes the
13237 set up of the tasking run-time cleaner.
13238 (Detect_Blocking): Now a function instead of a deferred boolean, to
13239 obey Preelaborate rules.
13241 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
13242 soft links, no longer used.
13244 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
13245 packages are suitable for this categorization.
13247 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
13248 since we compile run-time sources in Ada 2005 mode.
13249 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
13250 avoid having s-taprop*.adb depend on s-soflin and to avoid code
13252 Remove reference to *Machine_State_Addr*, no longer needed.
13254 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13256 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
13257 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
13258 Remove reference to System.Exceptions.
13260 * s-mastop-x86.adb: Removed, no longer used.
13262 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
13264 * a-excach.adb: Minor reformatting.
13266 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
13267 instead fix new warnings that were hidden by this change.
13268 (AAA, ZZZ): Removed, replaced by...
13269 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
13270 are used instead of constants, to help make Ada.Exception truly
13272 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
13273 Raise_Storage_Error): File is now a System.Address, to simplify code.
13274 (Elab code): Removed, no longer used.
13275 (Null_Occurrence): Remove Warnings Off and make this construct
13277 Remove code related to front-end zero cost exception handling, since
13278 it is no longer used.
13279 Remove -gnatL/-gnatZ switches.
13281 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
13282 Update use of Except.Msg.
13284 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
13285 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
13286 to front-end zero cost exception handling, since it is no longer used.
13287 Remove -gnatL/-gnatZ switches.
13289 * lib-writ.ads: Minor reformatting
13292 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
13294 * Make-lang.in: Remove references to s-except.ads
13296 * s-except.ads: Removed, no longer used.
13298 * s-mastop.ads, s-mastop.adb:
13299 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
13300 Remove reference to System.Exceptions.
13302 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
13303 switch-b.adb: Remove code related to front-end zero cost exception
13304 handling, since it is no longer used.
13305 Remove -gnatL/-gnatZ switches.
13307 2005-09-01 Robert Dewar <dewar@adacore.com>
13308 Gary Dismukes <dismukes@adacore.com>
13309 Javier Miranda <miranda@adacore.com>
13311 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
13312 type by valid test and generate warning.
13313 (Tagged_Membership): Generate call to the run-time
13314 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
13315 Change formal name Subtype_Mark to Result_Definition in several calls to
13316 Make_Function_Specification.
13317 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
13318 check for proper accessibility of the operand of a class-wide allocator.
13319 The check can be left out if checks are suppressed or if the expression
13320 has a specific tagged type whose level is known to be safe.
13322 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
13323 generates the run-time check associated with null-excluding entities.
13324 (Expand_N_Return_Statement): Add tests to determine if the accessibility
13325 check on the level of the return expression of a class-wide function
13326 can be elided. The check usually isn't needed if the expression has a
13327 specific type (unless it's a conversion or a formal parameter). Also
13328 add a test for whether accessibility checks are suppressed. Augment
13329 the comments to describe the conditions for performing the check.
13331 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
13332 Javier Miranda <miranda@adacore.com>
13333 Gary Dismukes <dismukes@adacore.com>
13334 Ed Schonberg <schonberg@adacore.com>
13336 * a-tags.adb (IW_Membership): Give support to
13337 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
13338 subprogram has been extended to look for the tag in the ancestors tag
13340 Update the structure of the GNAT Dispatch Table to reflect the
13341 additional two tables used in dispatching selects.
13342 Introduce appropriate array types and record components in
13343 Type_Specific_Data to reflect the two tables.
13344 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
13345 the TSD of a tag, indexed by position.
13346 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
13347 operation kind in the TSD of a tag, indexed by position.
13349 * a-tags.ads: Introduce an enumeration type to capture different
13350 primitive operation kinds. Define a constant reflecting the number of
13351 predefined primitive operations.
13352 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
13353 of an entry wrapper.
13354 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
13355 callable entity of a primitive operation.
13357 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
13358 primitive operations used in dispatching selects for limited
13359 interfaces, limited tagged, task and protected types what implement a
13361 (Freeze_Type): Generate the bodies of the primitive operations used in
13362 dispatching selects for limited tagged, task and protected types that
13363 implement a limited interface. Generate statements to populate the two
13364 auxiliary tables used for dispatching in select statements.
13365 (Freeze_Record_Type): Add call to initialize the dispatch table entries
13366 associated with predefined interface primitive operations.
13367 (Build_Dcheck_Function): Change Set_Subtype_Mark to
13368 Set_Result_Definition.
13369 (Build_Variant_Record_Equality): Change Subtype_Mark to
13371 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
13372 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
13373 (Build_Assignment): Simplify the code that adds the run-time-check.
13374 (Expand_N_Object_Declaration): Code cleanup.
13376 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
13377 entries when there is a protected type that implements a limited
13380 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
13381 common routines used in expansion of dispatching selects.
13382 (Add_Private_Declarations): Select the appropriate protection type when
13383 there is a protected type that implements a limited interface.
13384 (Build_Parameter_Block): Generate a wrapped parameter block.
13385 (Build_Protected_Subprogram_Body): Select the appropriate type for
13386 locking entries when there is a protected type that implements a
13388 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
13389 classified as entry wrappers.
13390 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
13391 asynchronous selects.
13392 (Expand_N_Conditional_Entry_Call): Add support for expansion of
13393 dispatching conditional selects.
13394 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
13395 protection when there is a protected type that implements limited
13397 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
13399 (Extract_Dispatching_Call): Extract the entity of the name of a
13400 dispatching call, the object parameter, actual parameters and
13401 corresponding formals.
13402 (Make_Initialize_Protection): Correct logic of protection initialization
13403 when there is a protected type that implements a limited interface.
13404 (Parameter_Block_Pack): Populate a wrapped parameter block with the
13405 values of actual parameters.
13406 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
13407 block and assign them to the original actual parameters.
13409 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
13410 (Build_Protected_Sub_Specification): Change the type and name of the
13411 last formal to account for the increased variety of protection modes.
13413 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
13414 entities. Used to save the value of the Is_Hidden attribute when the
13415 limited-view is installed.
13416 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
13417 the attribute of procedures classified as entry wrappers.
13418 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
13419 entity of a primitive wrapper.
13420 (Write_Entity_Flags): Output the name and value of the
13421 Is_Primitive_Wrapper attribute.
13422 (Write_Field27_Name): Output the name and entity of the field Wrapped_
13424 (Underlying_Type): If we have an incomplete entity that comes from
13425 the limited view then we return the Underlying_Type of its non-limited
13426 view if it is already available.
13427 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
13428 including operators.
13429 (Write_Field26_Name): Add entry for Overridden_Operation
13430 (Overridden_Operation): New attribute of functions and procedures.
13432 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
13433 predefined position in the dispatch table for the primitive operations
13434 used in dispatching selects.
13435 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
13436 predefined primitive operations and replace it with
13437 Default_Prim_Op_Count.
13438 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
13439 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
13440 the names of the generated primitive operations used in dispatching
13442 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
13443 case of abstract interface types. They will be inherit by the objects
13444 implementing the interface.
13445 (Make_DT): There is no need to inherit the dispatch table of the
13446 ancestor interface for the elaboration of abstract interface types.
13447 The dispatch table will be inherited by the object implementing the
13449 (Copy_Secondary_DTs): Add documentation.
13450 (Validate_Position): Improve this static check in case of
13451 aliased subprograms because aliased subprograms must have
13453 (Init_Predefined_Interface_Primitives): New subprogram that initializes
13454 the entries associated with predefined primitives of all the secondary
13456 (Build_Anonymous_Access_Type): Removed.
13457 (Expand_Interface_Actuals): With the previous cleanup there is no need
13458 to build an anonymous access type. This allows further cleanup in the
13459 code generated by the expander.
13460 (Expand_Interface_Conversion): If the actual is an access type then
13461 build an internal function to handle the displacement. If the actual
13462 is null this function returns null because no displacement is
13463 required; otherwise performs a type conversion that will be
13464 expanded in the code that returns the value of the displaced actual.
13465 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
13466 conversions that have no effect in the generated code because no
13467 displacement is required. Code cleanup; use local variables to
13468 avoid repeated calls to the subprogram directly_designated_type().
13470 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
13471 Classify the primitive operations used in dispatching selects as
13473 (Implements_Limited_Interface): Determine whether some type either
13474 directly implements a limited interface or extends a type that
13475 implements a limited interface.
13476 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
13477 (Expand_Subtype_From_Expr): Do not build actual subtype if the
13478 expression is limited.
13479 (Find_Interface_Tag): Add code to handle class-wide types and
13480 entities from the limited-view.
13482 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
13483 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
13484 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
13485 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
13488 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
13489 of procedure name or prefix that appears as a trigger in a triggering
13492 * uintp.ads: Introduce constants Uint_11 and Uint_13.
13494 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13496 * s-tataat.adb, a-tasatt.adb:
13497 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
13499 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
13500 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
13501 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
13504 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13505 Jose Ruiz <ruiz@adacore.com>
13507 * s-taprop-vxworks.adb:
13508 Move with clauses outside Warnings Off now that dependent units are
13510 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
13511 initialization of this unit.
13512 (Specific): Add new procedures Initialize and Delete so that this
13513 package can be used for VxWorks 5.x and 6.x
13514 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
13515 differences between VxWorks 5.x and 6.x
13516 Minor reformatting.
13517 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
13519 Use only Preelaborate-compatible constructs.
13521 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
13522 Primitives.Operations.
13523 (Delete, Initialize): New procedures.
13525 * s-osinte-vxworks.adb: Body used to handle differences between
13526 VxWorks 5.x and 6.x
13527 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
13529 * s-osinte-vxworks.ads: Minor reformatting.
13530 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
13531 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
13533 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
13534 between Vxworks 5 and 6.
13535 (taskLock, taskUnlock): Removeed, no longer used.
13537 * adaint.c: The wait.h header is not located in the sys directory on
13538 VxWorks when using RTPs.
13539 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
13541 (__gnat_dup): dup is available on Vxworks when using RTPs.
13542 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
13544 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
13546 * expect.c: The wait.h header is not located in the sys directory on
13547 VxWorks when using RTPs.
13549 2005-09-01 Thomas Quinot <quinot@adacore.com>
13551 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
13553 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
13555 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
13556 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
13557 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
13558 g-soccon-freebsd.ads: Add new constants:
13560 SO_RCVTIMEO/SO_SNDTIMEO
13564 Move all target-specific file inclusions and macro definitions to
13565 gsocket.h, in order to ensure that any C code in socket.c will see a
13566 set of constants that is consistent with the contents of g-soccon.ads.
13568 * gsocket.h: Code imported from gen-soccon.c:
13569 Move all target-specific file inclusions and macro definitions to
13570 gsocket.h, in order to ensure that any C code in socket.c will see a set
13571 of constants that is consistent with the contents of g-soccon.ads.
13572 This change also makes gen-soccon self-contained (removing dependencies
13573 upon GCC internal headers).
13575 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
13577 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
13579 * socket.c: Minor reformatting.
13581 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13582 Thomas Quinot <quinot@adacore.com>
13584 * fname-sf.adb, mlib-tgt.ads,
13585 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
13586 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
13587 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
13588 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
13589 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
13590 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
13591 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
13592 makegpr.adb: Remove redundant use_clauses.
13594 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13596 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
13597 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
13598 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
13599 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
13600 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
13601 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
13602 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
13603 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
13604 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
13605 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
13606 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
13607 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
13608 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
13609 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
13610 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
13611 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13612 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
13613 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
13614 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
13615 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
13616 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
13617 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
13618 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
13619 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
13620 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
13621 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
13622 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
13623 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
13624 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
13625 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
13626 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
13627 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
13628 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
13629 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
13630 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
13631 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
13632 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
13633 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
13634 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
13635 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
13636 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
13637 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
13638 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
13639 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
13640 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
13641 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
13642 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
13643 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
13644 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
13645 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
13646 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
13647 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
13648 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
13649 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
13650 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
13651 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
13652 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
13653 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
13654 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
13655 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
13656 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
13657 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
13658 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
13659 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
13660 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
13661 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
13662 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
13663 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
13664 and always use the no parameter form for consistency.
13666 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
13668 2005-09-01 Robert Dewar <dewar@adacore.com>
13670 * binde.adb: Minor reformatting
13671 (Find_Elab_Order): Output warning if -p used with static elab order
13673 2005-09-01 Robert Dewar <dewar@adacore.com>
13675 * checks.adb (Check_Needed): New procedure, deals with removing checks
13676 based on analysis of short-circuited forms. Also generates warnings for
13677 improper use of non-short-circuited forms.
13680 2005-09-01 Robert Dewar <dewar@adacore.com>
13682 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
13685 2005-09-01 Robert Dewar <dewar@adacore.com>
13687 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
13689 Implement new insertion char < (conditional warning)
13690 * errutil.adb, erroutc.adb: Implement new insertion char <
13691 (conditional warning).
13692 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
13693 (Error_Msg_Warn): New variable for < insertion char.
13694 * prj-nmsc.adb: Implement new errout insertion char < (conditional
13696 (Check_For_Source): Change value of Source_Id only after the current
13697 source has been dealt with.
13699 2005-09-01 Robert Dewar <dewar@adacore.com>
13700 Doug Rupp <rupp@adacore.com>
13702 * exp_attr.adb: Handle vax fpt for 'Valid attribute
13703 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
13704 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
13705 (Valid_D, Valid_F, Valid_G): New functions
13707 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13708 Hristian Kirtchev <kirtchev@adacore.com>
13709 Javier Miranda <miranda@adacore.com>
13711 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
13712 from object notation, the original node is unanalyzed and carries no
13713 semantic information, so that accessiblity checks must be performed on
13714 the type of the actual itself.
13715 (Expand_N_Subprogram_Declaration): Change last actual parameter for
13716 compatibility with Build_Protected_Sub_Specification.
13717 (Check_Overriding_Inherited_Interfaces): Add suport to handle
13718 overloaded primitives.
13719 (Register_Interface_DT_Entry): Use the new name of the formal
13720 the the calls to Expand_Interface_Thunk
13722 * exp_dbug.ads: Augment comments on encoding of protected types to
13723 include the generation of dispatching subprograms when the type
13724 implements at least one interface.
13726 * lib.ads: Extend information in Load_Stack to include whether a given
13727 load comes from a Limited_With_Clause.
13729 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
13730 whether a potential circularity is harmless, because it includes units
13731 loaded through a limited_with clause. Extends previous treatment which
13732 did not handle properly arbitrary combinations of limited and
13733 non-limited clauses.
13735 2005-09-01 Nicolas Setton <setton@adacore.com>
13737 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
13738 to be encoded as typ___XBLU_lowerbound__upperbound instead of
13739 typ___XB_lowerbound__upperbound.
13741 2005-09-01 Thomas Quinot <quinot@adacore.com>
13743 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
13744 dummy access formal for RACW/RAS TypeCode TSS.
13745 (Build_TypeCode_Call): Do not generate dummy null access actual for
13746 calls to the TypeCode TSS.
13748 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13750 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
13751 fully qualified name, to distinguish instances with the same local name.
13753 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
13756 2005-09-01 Robert Dewar <dewar@adacore.com>
13758 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
13761 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
13763 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
13764 (Free): New deallocation procedure for filter elements
13765 (Close): Deallocate any existing filter for the concerned connection
13767 2005-09-01 Laurent Pautet <pautet@adacore.com>
13769 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
13770 position set is provided, we compute one in order to reduce the maximum
13771 length of the keys. This computation first selects a character
13772 position between 1 and the minimum length of the keys in order to
13773 avoid reducing one of the keys to an empty string.
13774 (Initialize, Compute): When the ratio V to K is too low, the algorithm
13775 does not converge. The initialization procedure now comes with a
13776 maximum number of iterations such that when exceeded, an exception is
13777 raised in Compute. The user can initialize this ratio to another value
13779 Reformating and updated headers.
13781 2005-09-01 Javier Miranda <miranda@adacore.com>
13783 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
13784 that given an entity T creates and returns an Itype that duplicates the
13785 contents of T. The returned Itype has the null-exclusion
13786 attribute set to True, and its Etype attribute references T
13787 to keep the association between the two entities.
13788 Update copyright notice
13790 * sem_aggr.adb (Check_Can_Never_Be_Null,
13791 Aggregate_Constraint_Checks, Resolve_Aggregate,
13792 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
13794 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
13796 2005-09-01 Gary Dismukes <dismukes@adacore.com>
13797 Robert Dewar <dewar@adacore.com>
13798 Hristian Kirtchev <kirtchev@adacore.com>
13800 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
13803 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
13805 Call Set_Result_Definition instead of Set_Subtype_Mark.
13806 (P_Subprogram_Specification): Add parsing of anonymous access result
13807 plus null exclusions. Call Set_Result_Definition instead of
13810 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
13811 (P_Access_Type_Definition): Add parsing for an anonymous access result
13812 subtype, plus parsing for null exclusions. Call Set_Result_Definition
13813 instead of Set_Subtype_Mark.
13815 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
13816 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
13817 (Result_Definition): New function for N_Function_Specifications.
13818 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
13819 N_Function_Specification.
13820 (Set_Null_Exclusion_Present): Allow this flag for
13821 N_Function_Specification.
13822 (Set_Result_Definition): New procedure for N_Function_Specifications.
13823 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
13824 and N_Function_Specification.
13826 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
13827 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
13828 Add support for LIMITED NEW for Ada 2005 AI-419
13829 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
13830 syntax for anonymous access results.
13831 Replace Subtype_Mark field by Result_Definition in
13832 N_Function_Specification and N_Access_Definition specs.
13833 Add Null_Exclusion_Present to spec of N_Function_Specification.
13834 (Result_Definition): New function for N_Function_Specification and
13835 N_Access_Function_Definition.
13836 (Set_Result_Definition): New procedure for N_Function_Specification and
13837 N_Access_Function_Definition.
13839 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
13840 Result_Definition for cases of N_Access_Function_Definition and
13841 N_Function_Specification.
13842 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
13844 2005-09-01 Vincent Celier <celier@adacore.com>
13846 * lib-writ.adb: Update Copyright notice
13847 (Write_With_Lines): On platforms where file names are case-insensitive,
13848 record the file names in lower case.
13849 (Write_ALI): For D lines, on platforms where file names are
13850 case-insensitive, record the file names in lower case.
13852 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13853 Emmanuel Briot <briot@adacore.com>
13855 * lib-xref.adb (Output_Overridden_Op): Display information on
13856 overridden operation.
13858 * lib-xref.ads: Add documentation on overridden operations.
13860 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
13863 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
13864 overriding entity information.
13866 2005-09-01 Vincent Celier <celier@adacore.com>
13868 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
13869 including those that are inherited.
13871 2005-09-01 Robert Dewar <dewar@adacore.com>
13873 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
13875 * par-prag.adb: Implement new pragma Debug_Policy
13877 * sem_prag.adb Implement new pragma Debug_Policy
13878 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
13879 Component_Size attribute specification. Give warning for ignored pragma
13882 * snames.h, snames.ads, snames.adb: Introduce entries in
13883 Preset_Names for Name_Disp_Asynchronous_Select,
13884 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
13885 Name_Disp_Timed_Select.
13886 New pragma Debug_Policy
13888 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
13890 Switch -gnata also sets Debug_Pragmas_Enabled
13892 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
13893 handle an explicit -gnata when compiling predefined files.
13895 2005-09-01 Vincent Celier <celier@adacore.com>
13897 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
13898 directories of projects that have no Ada sources.
13900 2005-09-01 Robert Dewar <dewar@adacore.com>
13902 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
13903 (makes a difference for wide characters)
13905 * widechar.adb, widechar.ads:
13906 Add Wide_Char_Byte_Count feature to count chars vs bytes
13908 2005-09-01 Thomas Quinot <quinot@adacore.com>
13909 Ed Schonberg <schonberg@adacore.com>
13910 Robert Dewar <dewar@adacore.com>
13912 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
13913 'Address attribute reference with an overloaded prefix, use the
13914 location of the prefix (not the location of the attribute reference) as
13915 the error location.
13916 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
13917 a function renaming thereof, is a valid prefix for 'Size (where it is
13918 intepreted as a function call).
13919 (Statically_Denotes_Entity): New predicate to determine whether the
13920 prefix of an array attribute can be considered static.
13923 (Eval_Attr): Fix failure to evaluate Component_Size for
13924 unconstrained arrays (resulted in wrong value in packed case, since
13925 back end cannot handle this case)
13927 2005-09-01 Robert Dewar <dewar@adacore.com>
13929 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
13930 error msgs for most common cases.
13931 Use new errout insertion char < (conditional warning)
13933 2005-09-01 Javier Miranda <miranda@adacore.com>
13934 Ed Schonberg <schonberg@adacore.com>
13936 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
13937 become local to the whole package.
13938 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
13939 the package was already analyzed the new algorithm "replaces" the
13940 real entities by the shadow ones. This is required to ensure that
13941 the order of these entities in the homonym chains does not change;
13942 otherwise we can have undefined references at linking time because
13943 in case of conflicts the external name of the entities will have
13944 a suffix that depends on the order of the entities in the chain.
13945 (Remove_Limited_With_Clause): Complementary code that completes the
13946 new algorithm and replaces the shadow entities by the real ones.
13947 (Install_Limited_Withed_Unit): When unchaining entities before the
13948 installation of the shadow entities, only regular entities of the
13949 public part must be taken into account. This is required to
13950 keep this routine in synch with the work done by Remove_Limited_
13952 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
13953 even if unit is analyzed, because the analysis of the unit is
13954 idempotent in any case, and the limited view of the unit may have to
13955 be installed for proper visibility.
13956 (Expand_Limited_With_Clause): Even if the unit in the implicit
13957 with_clause has been analyzed already, a limited view of the package
13958 must be built for the current context, if it does not exist yet.
13960 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13961 Javier Miranda <miranda@adacore.com>
13962 Gary Dismukes <dismukes@adacore.com>
13964 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
13965 defining entity for the instance body, make a new defining identifier
13966 rather than copying the entity of the spec, to prevent accidental
13967 sharing of the entity list.
13968 (Check_Private_View): When exchanging views of private types, build the
13969 list of exchanged views as a stack, to ensure that on exit the exchanges
13970 are undone in the proper order.
13971 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
13972 Restore the compilation environment in case of instantiation_error.
13973 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
13974 for an anonymous access result.
13975 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
13976 (Formal_Entity): Handle properly the case of a formal package that
13977 denotes a generic package renaming.
13979 2005-09-01 Thomas Quinot <quinot@adacore.com>
13981 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
13982 clause if the array aggregate is surrounded by parentheses.
13984 2005-09-01 Cyrille Comar <comar@adacore.com>
13985 Gary Dismukes <dismukes@adacore.com>
13986 Ed Schonberg <schonberg@adacore.com>
13987 Javier Miranda <miranda@adacore.com>
13989 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
13991 to check if a type is Constrained in cases related to code generation
13992 (rather than semantic checking) since otherwise we do not generate
13993 similar code for mutable private types depending if their
13994 discriminants are visible or not.
13995 (Check_Abstract_Overriding): Do not complain about failure to override
13996 the primitive operations used in dispatching selects since they will
13997 always be overriden at the freeze point of the type.
13998 (Access_Definition): Separate out handling for resetting the scope
13999 of an anonymous access function result type. Retrieve the scope
14000 of the associated function rather than using Current_Scope, which
14001 does not have a consistent value (depends on whether we're in the
14002 middle of analyzing formal parameters). Add ??? comment about
14003 finding a cleaner way to handle the special cases of scope setting.
14004 (Process_Incomplete_Dependents): A protected operation is never a
14005 dispatching operation (only its wrapper may be).
14006 (Build_Derived_Record_Type): In case of tagged private types that
14007 implement interfaces add derivation of predefined primitive
14009 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
14010 by two parameters that are used in case of derivation from abstract
14011 interface types: No_Predefined_Prims is used to avoid the derivation
14012 of predefined primitives from the interface, and Predefined
14013 Prims_Only is used to complete the derivation predefined primitives
14014 in case of private tagged types implementing interfaces.
14015 Fix typo in comments
14016 (Find_Interface_In_Descendant): Protect the frontend against
14017 wrong code with large circularity chains.
14018 (Is_Private_Overriding): Add support for entities overriding interface
14019 subprograms. The test failed because Entities associated with overriden
14020 interface subprograms are always marked as hidden (and used to build
14021 the secondary dispatch table); in this case the overriden entity is
14022 available through the field abstract_interface_alias (cf. override_
14023 dispatching_operation)
14024 (Access_Definition): Set the scope of the type to Current_Scope for the
14025 case of a function with an anonymous access result type.
14026 (Access_Subprogram_Declaration): Handle creation of the type entity for
14027 an access-to-function type with an anonymous access result.
14028 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
14029 in handling for N_Access_Function_Definition.
14030 (Analyze_Subtype_Declaration): Modify the text of error message.
14031 (Derived_Type_Declaration): Modify the text of error message.
14032 (Process_Subtype): Modify the text of error message plus cleanup
14033 of one redundant error message.
14034 (Analyze_Component_Declaration): Code cleanup.
14035 (Analyze_Object_Declaration): Code cleanup.
14036 (Analyze_Subtype_Declaration): Propagate the null-exclusion
14037 attribute in case of access types. Code cleanup.
14038 (Array_Type_Declaration): Code cleanup.
14039 (Process_Discriminants): Create the new null-excluding itype
14040 if required. Code cleanup.
14041 (Process_Subtype): Create the new null-excluding itype if
14042 required. Code cleanup.
14043 (Build_Derived_Record_Type): Code cleanup to avoid calling
14044 twice the subprogram derive_subprograms in case of private
14045 types that implement interfaces. In this particular case the
14046 subprogram Complete_Subprograms_Derivation already does the
14047 job associated with the second call.
14049 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
14050 conversion to the full view when generating an operation for a
14051 discriminant whose type may currently be private.
14053 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14054 Javier Miranda <miranda@adacore.com>
14056 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
14057 V (Obj.F), the rewriting does not involve the indexed component, but
14058 only the selected component itself.
14059 Do not apply the transformation if the analyzed node is an actual of a
14060 call to another subprogram.
14061 (Complete_Object_Operation): Retain the entity of the
14062 dispatching operation in the selector of the rewritten node. The
14063 entity will be used in the expansion of dispatching selects.
14064 (Analyze_One_Call): Improve location of the error message associated
14066 (Analyze_Selected_Component): No need to resolve prefix when it is a
14067 function call, resolution is done when parent node is resolved, as
14069 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
14070 when attempting to resolve a call transformed from its object notation.
14071 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
14072 of the argument list for each interpretation of the operation.
14073 (Try_Object_Operation): The designated type of an access parameter may
14074 be an incomplete type obtained through a limited_with clause, in which
14075 case the primitive operations of the type are retrieved from its full
14077 (Analyze_Call): If this is an indirect call, and the return type of the
14078 access_to_subprogram is incomplete, use its full view if available.
14080 2005-09-01 Javier Miranda <miranda@adacore.com>
14081 Gary Dismukes <dismukes@adacore.com>
14083 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
14084 access types the null-exclusion and access-to-constant attributes must
14086 (Analyze_Return_Statement): When the result type is an anonymous access
14087 type, apply a conversion of the return expression to the access type
14088 to ensure that appropriate accessibility checks are performed.
14089 (Analyze_Return_Type): For the case of an anonymous access result type,
14090 generate the Itype and set Is_Local_Anonymous_Access on the type.
14091 Add ??? placeholder for check to disallow returning a limited object
14092 in Ada 2005 unless it's an aggregate or a result of a function call.
14093 Change calls from Subtype_Mark to Result_Definition.
14094 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
14095 Result_Definition in call to Make_Function_Specification.
14096 (Build_Body_To_Inline): Change Set_Subtype_Mark to
14097 Set_Result_Definition.
14098 (Make_Inequality_Operator): Change formal Subtype_Mark to
14099 Result_Definition in call to Make_Function_Specification.
14100 (Process_Formals): Create the new null-excluding itype if required.
14101 (New_Overloaded_Entity): For an entity overriding an interface primitive
14102 check if the entity also covers other abstract subprograms in the same
14103 scope. This is required to handle the general case, that is, overriding
14104 other interface primitives and overriding abstract subprograms inherited
14105 from some abstract ancestor type.
14106 (New_Overloaded_Entity): For an overriding entity that comes from
14107 source, note the operation that it overrides.
14108 (Check_Conformance, Type_Conformant): Addition of one new formal
14109 to skip controlling formals in the analysis. This is used to
14110 handle overloading of abstract interfaces.
14111 (Base_Types_Match): Add missing case for types imported from
14112 limited-with clauses
14113 (New_Overloaded_Entity): Add barrier to protect the use of
14114 the "alias" attribute.
14116 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14118 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
14119 verify that the procedure and the entry are mode conformant.
14120 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
14121 as a different operator, which is often a cut-and-paste error.
14123 2005-09-01 Javier Miranda <miranda@adacore.com>
14124 Ed Schonberg <schonberg@adacore.com>
14126 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
14127 used in controlling parameters exclude null because it is necessary to
14128 read the tag to dispatch, and null has no tag.
14129 (Override_Dispatching_Operation): If the previous operation is inherited
14130 from an interface, it becomes hidden and does not participate in later
14133 2005-09-01 Javier Miranda <miranda@adacore.com>
14134 Ed Schonberg <schonberg@adacore.com>
14135 Gary Dismukes <dismukes@adacore.com>
14137 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
14138 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
14139 the expander will generate the corresponding run-time check to evaluate
14141 (Resolve_Call): Check for legal type of procedure name or prefix that
14142 appears as a trigger in a triggering alternative.
14143 (Valid_Conversion): If expression is ambiguous and the context involves
14144 an extension of System, remove System.Address interpretations.
14145 (Resolve_Qualified_Expression): Reject the case of a specific-type
14146 qualification applied to a class-wide argument. Enhance comment
14147 to explain checking of Original_Node.
14148 (Resolve_Type_Conversion): The location of the error message was not
14149 general enough to handle the general case and hence it has been removed.
14150 In addition, this patch improves the text of the message.
14151 (Resolve_Type_Conversion): Add missing support for access to interface
14153 (Resolve_Type_Conversion): If the target is a class-wide interface type,
14154 do not expand if the expression is the actual in a call, because proper
14155 expansion will take place when the call itself is expanded.
14156 (Resolve_Allocator): If the context is an unchecked conversion, the
14157 allocator inherits its storage pool, if any, from the target type of
14160 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14161 Javier Miranda <miranda@adacore.com>
14163 * sem_type.adb (Add_One_Interp): If a candidate operation is an
14164 inherited interface operation that has an implementation, use the
14165 implementation to avoid spurious ambiguities.
14166 (Interface_Present_In_Ancestor): In case of concurrent types we can't
14167 use the Corresponding_Record_Typ attribute to look for the interface
14168 because it is set by the expander (and hence it is not always
14169 available). For this reason we traverse the list of interfaces
14170 (available in the parent of the concurrent type).
14171 (Interface_Present_In_Ancestor): Handle entities from the limited view
14173 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14175 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
14176 from the list of required components.
14177 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
14178 primitive procedure of a limited interface with a controlling first
14180 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
14182 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
14183 capture if it is generated in the second operand of a short-circuit
14185 Do not capture values for variables with address clauses.
14186 (Is_Object_Reference): Treat a function call as an object reference only
14187 if its type is not Standard_Void_Type.
14189 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14191 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
14192 to a variable that is statically known to be constant.
14194 2005-09-01 Geert Bosch <bosch@adacore.com>
14195 Robert Dewar <dewar@adacore.com>
14197 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
14198 (VAXGF_Safe_First): Idem.
14200 2005-09-01 Robert Dewar <dewar@adacore.com>
14201 Arnaud Charlet <charlet@adacore.com>
14203 * g-dirope.ads: Minor reformatting
14204 Document that bounds of result of Base_Name match the input index
14206 Add documentation on environment variable syntax for Expand_Path
14208 * gnat_ugn.texi: Update documentation to include mention of -m switches
14209 Document new treatment of wide characters in max line length
14211 Remove -gnatL/-gnatZ switches, no longer used.
14212 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
14215 * gnat_rm.texi: Add doc for two argument form of pragma
14216 Float_Representation.
14217 Add documentation for pragma No_Strict_Aliasing
14218 Add note that explicit component clause overrides pragma Pack.
14219 Add documentation of pragma Debug_Policy
14221 2005-09-01 Matthew Heaney <heaney@adacore.com>
14223 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
14224 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
14225 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
14226 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
14227 draft (Draft 13, August 2005) of Ada Amendment 1.
14229 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14231 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
14232 Note that the platform-specific version of g-soccon.ads for VMS is now
14233 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
14234 really is a package spec).
14235 Replace s-taspri-linux.ads by s-taspri-posix.ads
14236 Remove references to s-mastop-x86.adb
14238 * system-vxworks-xscale.ads: Removed, no longer used.
14239 * s-vxwork-xscale.ads: Removed, no longer used.
14241 2005-09-01 Robert Dewar <dewar@adacore.com>
14243 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
14244 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
14245 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
14246 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
14247 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
14248 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
14249 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
14250 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
14251 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
14252 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
14253 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
14254 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
14255 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
14256 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
14257 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
14258 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
14259 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
14260 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
14261 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
14262 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
14263 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
14265 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14269 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
14271 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14272 Doug Rupp <rupp@adacore.com>
14274 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
14276 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
14277 this code in the GNAT run-time.
14279 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
14282 * init.c (__gnat_error_handler [many]): Mark "msg" as const
14283 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
14285 (__gnat_inside_elab_final_code): Moved here from
14286 Standard_Library and only defined for the compiler.
14287 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
14288 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
14289 using RTPs because directly vectored Interrupt routines are not
14290 supported on this configuration.
14291 (getpid): Do not redefine this function on VxWorks when using RTPs
14292 because this primitive is well supported by the RTP libraries.
14293 (copy_msg): Correct the code that checks for buffer overflow.
14294 Discovered during code reading.
14296 2005-08-29 Olivier Hainque <hainque@adacore.com>
14298 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
14299 a library level mutable variable with an initializer, tell
14300 build_allocator to ignore the initializer's size. It may not be large
14301 enough for all the values that might be assigned to the variable later
14304 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14305 Eric Botcazou <ebotcazou@adacore.com>
14307 * trans.c: Protect < in error msg with quote
14308 Replace GCC_ZCX by Back_End_Exceptions.
14309 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
14310 has been sufficiently aligned in the record.
14312 2005-08-15 James E. Wilson <wilson@specifix.com>
14314 * system-linux-alpha.ads: Change ia64 to alpha.
14316 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
14318 * decl.c, utils.c: Fix comment typos.
14320 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
14322 * decl.c, init.c, initialize.c: Fix comment typos.
14324 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
14326 Make CONSTRUCTOR use VEC to store initializers.
14327 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
14329 * trans.c (extract_values): Likewise.
14330 * utils.c (convert, remove_conversions): Likewise.
14331 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
14332 gnat_build_constructor): Likewise.
14334 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
14336 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
14338 (compare_field_bitpos): Likewise.
14340 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
14342 * utils.c (create_var_decl): Only set DECL_COMMON on
14343 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
14344 VAR_OR_FUNCTION_DECL_P.
14346 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
14348 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
14351 2005-07-07 Pascal Obry <obry@adacore.com>
14353 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
14354 returned type on Windows.
14356 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
14359 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
14360 exception in this case.
14361 Simplify the code as "Image (Image'Range)" = "Image".
14363 2005-07-07 Vincent Celier <celier@adacore.com>
14365 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
14366 the destructor/constructor attributes for <lib>final/<lib>init.
14368 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
14370 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
14372 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
14373 type if the parameter is not passed by copy but reference by default.
14375 2005-07-07 Javier Miranda <miranda@adacore.com>
14377 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
14378 Reimplementation of the support for abstract interface types in order
14379 to leave the code more clear and easy to maintain.
14381 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
14382 abstract interface types in order to leave the code clearer and easier
14385 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
14386 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
14387 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
14388 appropriate entry of the secondary dispatch table.
14389 (Make_DT): Add code to inherit the secondary dispatch tables of
14392 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
14393 implementing both functionalities by means of a common routine, each
14394 routine has its own code.
14396 2005-07-07 Javier Miranda <miranda@adacore.com>
14398 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
14400 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
14403 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
14406 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
14407 use of tag incomplete types.
14409 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
14410 give support to tagged incomplete types.
14412 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
14413 expression is a discriminant reference and its type is private, as can
14414 happen within a stream operation for a mutable record, use the full
14415 view of the type to resolve the case alternatives.
14416 (Analyze_Assignment): Check wrong dereference of incomplete types.
14418 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
14421 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
14424 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
14425 N_Incomplete_Type_Declaration nodes.
14427 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
14428 Tag_Present to give support to tagged incomplete types:
14430 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
14433 2005-07-07 Olivier Hainque <hainque@adacore.com>
14436 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
14437 definitions for the Unwind wrappers in the compiler case.
14439 2005-07-07 Ed Schonberg <schonberg@adacore.com>
14440 Javier Miranda <miranda@adacore.com>
14442 * par-load.adb (Load): If a child unit is loaded through a limited_with
14443 clause, each parent must be loaded as a limited unit as well.
14445 * sem_ch10.adb (Previous_Withed_Unit): Better name for
14446 Check_Withed_Unit. Return true if there is a previous with_clause for
14447 this unit, whether limited or not.
14448 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
14450 (Is_Visible_Through_Renamings): New local subprogram of install_limited
14451 _withed_unit that checks if some package installed through normal with
14452 clauses has a renaming declaration of package whose limited-view is
14453 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
14454 of the current Draft document for Ada 2005.
14455 (Analyze_Context): Complete the list of compilation units that
14456 are allowed to contain limited-with clauses. It also contains
14457 checks that were previously done by Install_Limited_Context_Clauses.
14458 This makes the code more clear and easy to maintain.
14459 (Expand_Limited_With_Clause) It is now a local subprogram of
14460 Install_Limited_Context_Clauses, and contains the code that adds
14461 the implicit limited-with clauses for parents of child units.
14462 This functionality was prevously done by Analyze_Context.
14464 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
14467 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
14468 been erroneously named in a limited-with clause of its own context.
14469 In this case the error has been previously notified by Analyze_Context.
14471 2005-07-07 Ed Schonberg <schonberg@adacore.com>
14473 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
14474 generic package that contains local declarations with the same name.
14475 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
14477 2005-07-07 Bernard Banner <banner@adacore.com>
14479 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
14480 ia64 platform only on platforms that you the GCC unwind library
14481 rather than the system unwind library.
14483 2005-07-07 Thomas Quinot <quinot@adacore.com>
14485 * expect.c: Minor reformatting
14487 2005-07-07 Sergey Rybin <rybin@adacore.com>
14489 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
14492 * gnat_ugn.texi: Add description for new gnatpp option
14495 2005-07-04 Thomas Quinot <quinot@adacore.com>
14497 * g-expect-vms.adb, g-expect.ads, g-expect.adb
14498 (Get_Command_Output): New subprogram to launch a process and get its
14499 standard output as a string.
14501 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
14502 Olivier Hainque <hainque@adacore.com>
14504 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
14505 fetch a code-range descriptor associated with the machine state. On
14506 failure set the machine state's PC to 0; on success, pass the
14507 descriptor to exc_virtual_unwind.
14509 * init.c (Tru64 section): New function __gnat_set_code_loc.
14511 2005-07-04 Vincent Celier <celier@adacore.com>
14513 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
14514 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
14515 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
14516 Remove all auto-initialization code, as this is now done through the
14517 constructor mechanism.
14519 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
14520 __gnat_sals_init_using_constructors): New functions.
14522 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
14523 Linker_Constructor and Linker_Destructor when switch -a is used.
14525 * bindusg.adb: Add line for new switch -a
14527 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
14528 (Gnatbind): When switch -a is used, check if it is allowed
14530 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
14532 2005-07-04 Joel Brobecker <brobecker@adacore.com>
14534 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
14535 This prevents us from hitting a limitation during the debug info
14536 generation when using stabs.
14537 (Prims_Ptr): Likewise.
14539 2005-07-04 Gary Dismukes <dismukes@adacore.com>
14540 Ed Schonberg <schonberg@adacore.com>
14541 Javier Miranda <miranda@adacore.com>
14543 * checks.adb (Null_Exclusion_Static_Checks): In the case of
14544 N_Object_Declaration, only perform the checks if the Object_Definition
14545 is not an Access_Definition.
14547 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
14548 where the parent of an the access definition is an N_Object_Declaration
14549 when determining the Associated_Node_For_Itype and scope of an
14550 anonymous access-to-subprogram type.
14552 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
14553 Corresponding_Spec on the body created for a null procedure. Add ???
14554 comment. Remove New_Copy_Tree call on body argument to
14555 Set_Body_To_Inline.
14557 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
14558 discriminants, use the type of the actual as well, because the
14559 discriminants may be read by the called subprogram.
14561 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
14562 access type we do not need to handle non-limited views.
14563 (Build_Derived_Record_Type): Additional check to check that in case of
14564 private types, interfaces are only allowed in private extensions.
14566 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
14568 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
14569 <Pragma_Linker_Destructor>: Likewise.
14571 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
14572 Pragma_Linker_Destructor.
14574 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
14575 ATTR_LINK_DESTRUCTOR.
14576 (static_ctors, static_dtors): New variables.
14578 * misc.c (gnat_expand_body): Output current function as constructor
14579 and destructor if requested.
14581 * par-prag.adb: Add processing for pragma Linker_Constructor and
14584 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
14585 extracted from Check_Interrupt_Or_Attach_Handler.
14586 (Check_Interrupt_Or_Attach_Handler): Invoke it.
14587 Implement pragma Linker_Constructor and Linker_Destructor with the
14588 help of Find_Unique_Parameterless_Procedure.
14589 Replace Name_Alias with Name_Target for pragma Linker_Alias.
14591 * snames.h, snames.ads, snames.adb:
14592 Add Name_Linker_Constructor and Name_Linker_Destructor.
14593 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
14594 * snames.adb: Remove Name_Alias.
14596 * trans.c: Include cgraph.h.
14597 (build_global_cdtor): New function.
14598 (Compilation_Unit_to_gnu): Build global constructor and destructor if
14600 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
14602 (addressable_p) <COMPONENT_REF>: Unconditionally test
14603 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
14605 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
14606 variable if it is external.
14608 (static_ctors, static_dtors): New global variables.
14609 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
14610 <ATTR_LINK_DESTRUCTOR>: Likewise.
14611 (end_subprog_body): Chain function as constructor and destructor
14614 * exp_util.adb (Force_Evaluation): Unconditionally invoke
14615 Remove_Side_Effects with Variable_Ref set to true.
14616 (Remove_Side_Effects): Handle scalar types first. Use a renaming
14617 for non-scalar types even if Variable_Ref is true and for class-wide
14620 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14622 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
14623 to prevent spurious warnings.
14625 2005-07-04 Thomas Quinot <quinot@adacore.com>
14627 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
14628 Itypes. Itypes are really unexpected there.
14629 (Build_TypeCode_Function): Generalise special processing for Itypes to
14630 handle the case of numeric implicit base types as well as enumerated
14633 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14635 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
14636 controlled, indicate the expected type of the dereference that is
14637 created for the call to Deep_Finalize, to prevent spurious errors when
14638 the designated type is private and completed with a derivation from
14639 another private type.
14641 2005-07-04 Vincent Celier <celier@adacore.com>
14643 * make.adb (Change_To_Object_Directory): When unable to change the
14644 current dir to the object directory, output the full path of the
14647 2005-07-04 Matthew Gingell <gingell@adacore.com>
14649 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
14651 * indepsw-linux.adb: Replace by...
14653 * indepsw-gnu.adb: ...this new file
14655 2005-07-04 Vincent Celier <celier@adacore.com>
14657 * mlib-prj.adb (Auto_Initialize): New constant String
14658 (SALs_Use_Constructors): New Boolean function
14659 (Build_Library): Call gnatbind with Auto_Initialize switch when
14660 SALs_Use_Constructors returns True.
14662 * mlib-tgt.ads: Minor reformatting
14664 * mlib-utl.ads: Minor reformatting
14666 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
14668 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14670 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
14671 single protected declarations can have an interface list.
14672 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
14673 with seriously malformed entry declarations, and lead to compilation
14674 abandoned messages.
14676 2005-07-04 Javier Miranda <miranda@adacore.com>
14678 * par-load.adb: Load the context items in two rounds.
14680 2005-07-04 Robert Dewar <dewar@adacore.com>
14682 * scng.adb: Do not consider Mod used as an attribute to be a keyword
14684 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14685 Javier Miranda <miranda@adacore.com>
14687 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
14688 type extension needs a limited view.
14689 Remove previous restriction on private types available through the
14690 limited-view (only tagged private types were previously allowed).
14691 (Install_Withed_Unit): In the code that implements the
14692 legality rule given in AI-377, exclude a child unit with the name
14693 Standard, because it is a homonym of the Standard environment package.
14695 2005-07-04 Thomas Quinot <quinot@adacore.com>
14697 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
14698 overloaded function call, carry interpretations from the original tree
14701 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14703 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
14704 types check whether some designated type is a limited view, and use
14705 the non-limited view if available.
14707 2005-07-04 Gary Dismukes <dismukes@adacore.com>
14709 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
14710 constraint of full view of a private view T1 if present, when T2 is a
14711 discriminated full view.
14713 2005-07-04 Thomas Quinot <quinot@adacore.com>
14715 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
14716 actual that is a view conversion of a bit packed array reference.
14718 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14720 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
14721 present before checking whether an interface type covers a synchronized
14724 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14726 * sem_util.adb (Is_Object_Reference): An indexed or selected component
14727 whose prefix is an implicit dereference is an object reference. Removes
14728 spurious errors when compiling with -gnatc.
14730 2005-07-04 Robert Dewar <dewar@adacore.com>
14733 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
14735 2005-07-04 Matthew Gingell <gingell@adacore.com>
14737 * tracebak.c: Enable tracebacks on ia64 platforms
14739 2005-07-04 Vincent Celier <celier@adacore.com>
14741 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
14742 the GNAT BIND command, as gnatbind accepts multiples ALI files with
14743 the -L or -n switches.
14745 2005-07-04 Vincent Celier <celier@adacore.com>
14747 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
14748 correctly computed and the main project data is not modified while
14750 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
14751 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
14752 c++linker as this does not work on some platforms.
14754 2005-07-04 Matthew Heaney <heaney@adacore.com>
14756 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
14758 * a-coinve.adb: Perform constraint checks explicitly.
14760 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14761 Thomas Quinot <quinot@adacore.com>
14763 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
14764 new target gen-soccon.
14766 2005-07-04 Robert Dewar <dewar@adacore.com>
14768 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
14770 2005-07-04 Thomas Quinot <quinot@adacore.com>
14772 * g-socket.ads (Check_Selector): Minor rewording of comment.
14774 2005-07-04 Vincent Celier <celier@adacore.com>
14776 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
14778 2005-07-04 Thomas Quinot <quinot@adacore.com>
14780 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
14782 2005-07-04 Sergey Rybin <rybin@adacore.com>
14784 * gnat_ugn.texi: Add description of --eol gnatpp option
14786 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
14787 Thomas Quinot <quinot@adacore.com>
14789 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
14790 if the user wants all calls of a subprogram to be flagged,
14791 independently of whether they are made from within the same unit or
14793 Mention restriction for pragma Linker_Alias on some platforms.
14794 Document pragma Linker_Constructor and Linker_Destructor.
14795 Rewrite documentation of Weak_External, Linker_Section and
14796 Linker_Alias pragmas.
14798 2005-07-04 Arnaud Charlet <charlet@adacore.com>
14800 * s-stausa.ads, s-stausa.adb: New files.
14802 2005-06-30 Kelley Cook
14804 * all files: Update FSF address in copyright headers.
14805 * gen-soccon.co (main): Output new FSF address in generated files.
14807 2005-06-28 Paul Brook <paul@codesourcery.com>
14809 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
14811 2005-06-14 Olivier Hainque <hainque@adacore.com>
14812 Eric Botcazou <ebotcazou@adacore.com>
14814 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
14815 exc_unwind, now that we are generating proper .debug_frame output for
14818 * tracebak.c: Remove the mips-irix section, as we are now using the
14819 s-mastop based unwinder again.
14820 Under SPARC/Solaris, take into account the stack bias to compute the
14821 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
14824 2005-06-14 Doug Rupp <rupp@adacore.com>
14826 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
14828 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
14830 2005-06-14 Pascal Obry <obry@adacore.com>
14832 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
14833 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
14834 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
14837 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
14838 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
14839 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
14840 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
14841 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
14842 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
14843 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
14844 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
14845 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
14846 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
14847 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
14848 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
14849 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
14850 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
14851 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
14852 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
14853 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
14854 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
14855 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
14856 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
14857 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
14858 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
14859 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
14860 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
14861 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
14862 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
14863 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
14864 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
14865 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
14866 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
14867 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
14868 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
14869 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
14870 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
14871 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
14872 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
14873 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
14874 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
14875 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
14876 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
14877 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
14878 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
14879 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
14880 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
14881 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
14882 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
14883 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
14884 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
14885 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
14886 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
14887 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
14888 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
14889 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
14890 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
14891 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
14892 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
14893 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
14894 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
14895 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
14896 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
14897 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
14898 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
14899 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
14900 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
14901 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
14902 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
14903 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
14904 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
14905 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
14906 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
14907 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
14908 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
14909 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
14910 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
14911 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
14912 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
14913 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
14914 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
14915 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
14916 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
14917 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
14918 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
14919 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
14920 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
14921 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
14922 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
14923 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
14924 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
14925 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
14926 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
14927 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
14928 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
14929 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
14930 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
14931 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
14932 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
14933 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
14934 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
14935 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
14936 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
14937 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
14938 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
14939 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
14940 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
14941 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
14942 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
14943 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
14944 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
14945 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
14946 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
14947 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
14948 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
14949 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
14950 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
14951 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
14952 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
14953 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
14954 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
14955 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
14956 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
14957 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
14958 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
14959 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
14960 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
14961 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
14962 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
14963 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
14964 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
14965 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
14966 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
14967 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
14968 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
14969 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
14971 2005-06-14 Jose Ruiz <ruiz@adacore.com>
14972 Arnaud Charlet <charlet@adacore.com>
14974 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
14975 longer protected objects. They have been replaced by lower-level
14976 suspension objects made up by a mutex and a condition variable (or
14977 their equivalent given a particular OS) plus some internal data to
14978 reflect the state of the suspension object.
14979 (Initialize, Finalize): Add this initialization procedure for
14980 Suspension_Object, which is a controlled type.
14981 (Finalize): Add the finalization procedure for Suspension_Object,
14982 which is a controlled type.
14984 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
14985 Ada.Synchronous_Task_Control because there is no longer a need for a
14986 VxWorks specific version of this package. Target dependencies
14987 has been moved to System.Task_Primitives.Operations.
14989 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
14991 (InitializeCriticalSection, EnterCriticalSection,
14992 LeaveCriticalSection, DeleteCriticalSection): Replace the type
14993 pCriticalSection by an anonymous access type so that we avoid problems
14994 of accessibility to local objects.
14996 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
14997 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
14998 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
14999 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
15000 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
15001 set the environment task mask here.
15002 (Current_State): Add this function that returns the state of the
15004 (Set_False): Add this procedure that sets the state of the suspension
15006 (Set_True): Add this procedure that sets the state of the suspension
15007 object to True, releasing the task that was suspended, if any.
15008 (Suspend_Until_True): Add this procedure that blocks the calling task
15009 until the state of the object is True. Program_Error is raised if
15010 another task is already waiting on that suspension object.
15011 (Initialize): Add this procedure for initializing the suspension
15012 object. It initializes the mutex and the condition variable which are
15013 used for synchronization and queuing, and it sets the internal state
15015 (Finalize): Add this procedure for finalizing the suspension object,
15016 destroying the mutex and the condition variable.
15018 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
15019 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
15020 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
15021 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
15022 which provides a low-level abstraction (using operating system
15023 primitives) for Ada.Synchronous_Task_Control.
15024 This object is made up by a mutex (for ensuring mutual exclusion), a
15025 condition variable (for queuing threads until the condition is
15026 signaled), a Boolean (State) indicating whether the object is open,
15027 and a Boolean (Waiting) reflecting whether there is a task already
15028 suspended on this object.
15030 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
15031 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
15032 s-intman-vms.ads, s-intman-mingw.adb,
15033 (Initialize_Interrupts): Removed, no longer used.
15035 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
15036 (Setup_Interrupt_Mask): New procedure.
15038 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
15040 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
15042 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
15043 this is no longer done in the body of s-taprop
15044 (Server_Task): Explicitely test for Pending_Action in case
15045 System.Parameters.No_Abort is True.
15047 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
15048 is no longer done in the body of s-taprop
15050 2005-06-14 Robert Dewar <dewar@adacore.com>
15052 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
15053 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
15054 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
15055 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
15056 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
15057 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
15058 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
15059 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
15060 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
15061 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
15062 system-linux-hppa.ads, system-vms_64.ads,
15063 system-vxworks-alpha.ads: Minor comment update for
15064 AI-362 (unit is Pure).
15066 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
15067 Add pragma Pure_05 for AI-362
15068 Make remaining conversion functions obsolescent in Ada 95
15070 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
15071 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
15072 Add entries for a-wichun and a-zchuni
15073 Add a-widcha a-zchara for AI-395
15074 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
15076 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
15077 Add entries for a-wichun.o and a-zchuni.o
15078 Entries for a-widcha.o and a-zchara.o
15079 Add entry for a-chacon.o
15081 * a-ztenau.adb: Add with of Ada.Characters.Conversions
15083 * a-chacon.ads, a-chacon.adb: New files.
15085 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
15086 categorization violations.
15088 * a-strmap.ads: Add pragma Pure_05 for AI-362
15089 * a-strmap.ads: Add note on implicit categorization for AI-362
15091 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
15093 * par-prag.adb: Dummy entry for pragma Persistent_BSS
15094 Set Ada_Version_Explicit, for implementation of AI-362
15095 Add processing for pragma Pure_05 and Preelaborate_05
15096 Add entry for Assertion_Policy pragma
15098 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
15099 when needed for proper processing of categorization stuff
15102 For several cases, make errors in preealborate units warnings,
15103 instead of errors, if GNAT_Mode is set. For AI-362.
15105 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
15106 preelaborate unit is now warning if in GNAT mode
15108 * s-stoele.ads: Document AI-362 for pragma preelaborate
15110 2005-06-14 Doug Rupp <rupp@adacore.com>
15112 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
15113 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
15114 Default_Exception_Msg_Max_Length: new parameter.
15116 * a-except.ads: (Exception_Msg_Max_Length): Set to
15117 System.Parameters.Default_Exception_Msg_Max_Length
15118 Add pragma Preelaborate_05 for AI-362
15119 Add warnings off to allow categorization violations for AI-362
15121 2005-06-14 Vincent Celier <celier@adacore.com>
15123 * gnatsym.adb: Adapt to modification of package Symbols: procedure
15124 Process is now in package Processing.
15126 * symbols.ads, symbols.adb:
15127 (Processing): New package, containing procedure Process
15129 * symbols-vms-alpha.adb:
15130 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
15132 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
15133 symbols-processing-vms-ia64.adb: New files.
15135 2005-06-14 Pascal Obry <obry@adacore.com>
15137 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
15138 implementation. This new version generates the proper DllMain routine
15139 to initialize the SAL. The DllMain is generated in Ada and compiled
15140 before being added as option to the library build command.
15142 2005-06-14 Doug Rupp <rupp@adacore.com>
15143 Pascal Obry <obry@adacore.com>
15145 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
15146 call to decc$translate_vms.
15147 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
15148 need to remove those quotes before catenating the filename.
15149 (__gnat_locate_exec_on_path): improvements to the Win32 section:
15150 * avoid allocating the memory twice for better efficiency;
15151 * allocate 32K buffer for environment expansion as suggested by MSDN;
15152 * prepend ".;" to the path so that current directory is searched too.
15154 2005-06-14 Robert Dewar <dewar@adacore.com>
15156 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
15157 instead of raising CE (AI-241)
15158 Add warnings off to allow categorization violations for AI-362
15160 2005-06-14 Robert Dewar <dewar@adacore.com>
15162 * ali-util.adb, gnatbind.adb: Remove references to
15163 Force_RM_Elaboration_Order.
15165 * switch-b.adb: Remove recognition of -f switch
15167 2005-06-14 Pascal Obry <obry@adacore.com>
15169 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
15170 implementation which is slightly more efficient.
15172 2005-06-14 Gary Dismukes <dismukes@adacore.com>
15173 Javier Miranda <miranda@adacore.com>
15174 Ed Schonberg <schonberg@adacore.com>
15175 Hristian Kirtchev <kirtchev@adacore.com>
15177 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
15178 allocator's designated type is a class-wide type, and compiling for
15179 Ada 2005, emit a run-time check that the accessibility level of the
15180 type given in the allocator's expression is not deeper than the level
15181 of the allocator's access type.
15183 (Tagged_Membership): Modified to gives support to abstract interface
15186 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
15188 (Descendant_Tag): New predefined function
15189 (Is_Descendant_At_Same_Level): New predefined function
15190 (Get_Access_Level): New private function
15191 (Set_Access_Level): New private procedure
15192 (IW_Membership): New function. Given the tag of an object and the tag
15193 associated with an interface, evaluate if the object implements the
15195 (Register_Interface_Tag): New procedure used to initialize the table of
15196 interfaces used by the IW_Membership function.
15197 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
15198 of the dispatch table.
15199 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
15200 table of interfaces of the parent.
15201 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
15202 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
15203 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
15204 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
15205 Ada 2005 semantics for the new predefined function.
15207 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
15208 call to Descendant_Tag rather than Internal_Tag.
15209 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
15210 the accessibility level of the attribute's Item parameter is not deeper
15211 than the level of the attribute's prefix type. Tag_Error is raised if
15212 the check fails. The check is only emitted for Ada_05.
15213 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
15214 requested stream attribute, use it.
15215 (Expand_N_Attribute_Reference): If the designated type is an interface
15216 then rewrite the referenced object as a conversion to force the
15217 displacement of the pointer to the secondary dispatch table.
15218 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
15219 is a dereference of an object with a constrained partial view.
15221 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
15222 type is a class-wide type, emit a run-time check that the accessibility
15223 level of the returned object is not deeper than the level of the
15224 function's master (only when compiling for Ada 2005).
15226 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
15227 Action_Nb_Arg): Add entries for new Get_Access_Level and
15228 Set_Access_Level routines in these tables.
15229 (Make_DT): Generate a call to set the accessibility level of the
15230 tagged type in its TSD.
15231 (Make_DT): Code cleanup. The functionality of generating all the
15232 secondary dispatch tables has been moved to freeze_record_type.
15233 (Make_Abstract_Interface_DT): Minor code cleanup.
15234 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
15235 this subprogram implements a new algorithm that provides the
15236 same functionality and it is more clear in case of primitives
15237 associated with abstract interfaces.
15238 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
15239 clean up, the functionality of this subprogram is now provided
15240 by Set_All_DT_Position.
15241 (Write_DT): New subprogram: a debugging procedure designed to be called
15242 within gdb to display the dispatch tables associated with a tagged
15244 (Collect_All_Interfaces): New subprogram that collects the whole list
15245 of interfaces that are directly or indirectly implemented by a tagged
15247 (Default_Prim_Op_Position): New subprogram that returns the fixed
15248 position in the dispatch table of the default primitive operations.
15249 (Expand_Interface_Actuals): New subprogram to generate code that
15250 displaces all the actuals corresponding to class-wide interfaces to
15251 reference the interface tag of the actual object.
15252 (Expand_Interface_Conversion): New subprogram. Reference the base of
15253 the object to give access to the interface tag associated with the
15254 secondary dispatch table.
15255 (Expand_Interface_Thunk): New subprogram that generates the code of the
15256 thunk. This is required for compatibility with the C+ ABI.
15257 (Make_Abstract_Interface_DT): New subprogram that generate the
15258 declarations for the secondary dispatch tables associated with an
15259 abstract interface.
15260 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
15261 attribute for each primitive operation covering interface subprograms
15262 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
15263 These subprograms were upgraded to give support to abstract interfaces
15265 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
15266 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
15267 RE_Set_Access_Level.
15268 (RE_Unit_Table): Add entries for new Ada.Tags operations.
15269 Add support to call the followig new run-time subprograms:
15270 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
15272 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
15273 match its full declaration when both have an access definition with
15274 statically matching designated subtypes.
15275 (Analyze_Component_Declaration): Delete commented out code that was
15276 incorrectly setting the scope of an anonymous access component's type.
15277 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
15278 an access discriminant when the containing type is nonlimited.
15279 (Make_Incomplete_Type_Declaration): Create an incomplete type
15280 declaration for a record type that includes self-referential access
15282 (Check_Anonymous_Access_Types): Before full analysis of a record type
15283 declaration, create anonymous access types for each self-referential
15285 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
15286 an access component in this context is a Local_Anonymous_Access, for
15287 proper accessibility checks.
15288 (Access_Definition): Set properly the scope of the anonymous access type
15289 created for a stand-alone access object.
15290 (Find_Type_Of_Object): An object declaration may be given with an access
15292 (Complete_Subprograms_Derivation): New subprogram used to complete
15293 type derivation of private tagged types implementing interfaces.
15294 In this case some interface primitives may have been overriden
15295 with the partial-view and, instead of re-calculating them, they
15296 are included in the list of primitive operations of the full-view.
15297 (Build_Derived_Record_Type): Modified to give support to private
15298 types implemening interfaces.
15299 (Access_Definition): Reject ALL on anonymous access types.
15300 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
15301 type derivation to occur at a deeper accessibility level than the
15303 For the case of derivation within a generic body however, disallow the
15304 derivation if the derived type has an ancestor that is a formal type
15305 declared in the formal part of an enclosing generic.
15306 (Analyze_Object_Declaration): For protected objects, remove the check
15307 that they cannot contain interrupt handlers if not declared at library
15309 (Add_Interface_Tag_Components): New subprogram to add the tag components
15310 corresponding to all the abstract interface types implemented by a
15311 record type or a derived record type.
15312 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
15313 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
15314 Process_Full_View, Record_Type_Declaration): Modified to give
15315 support to abstract interface types
15316 (Collect_Interfaces): New subprogram that collects the list of
15317 interfaces that are not already implemented by the ancestors
15318 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
15319 when partial view has no discriminants and full view has defaults.
15320 (Constrain_Access): Reject a constraint on a general access type
15321 if the discriminants of the designated type have defaults.
15322 (Access_Subprogram_Declaration): Associate the Itype node with the inner
15323 full-type declaration or subprogram spec. This is required to handle
15324 nested anonymous declarations.
15325 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
15326 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
15327 Process_Full_View, Record_Type_Declaration): Modified to give
15328 support to abstract interface types
15329 (Derive_Subprograms): Addition of a new formal to indicate if
15330 we are in the case of an abstact-interface derivation
15331 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
15332 to the specification because it is requied to analyze all the
15333 identifiers found in a list of interfaces
15335 * debug.adb: Complete documentation of flag "-gnatdZ"
15337 * exp_ch3.adb: Implement config version of persistent_bss pragma
15338 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
15339 testing for TSS presence to properly enforce visibility rules.
15340 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
15341 Make_Abstract_Interfaces_DT to generate the secondary tables
15342 associated with abstract interfaces.
15343 (Build_Init_Procedure): Modified to initialize all the tags
15345 (Component_Needs_Simple_Initialization): Similar to other tags,
15346 interface tags do not need initialization.
15347 (Freeze_Record_Type): Modified to give support to abstract interface
15349 (Expand_N_Object_Declaration): Do not generate an initialization for
15350 a scalar temporary marked as internal.
15352 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
15353 in-out parameter that is a component in an initialization procedure,
15354 whose constraint might depend on discriminants, and that may be
15355 misaligned because of packing or representation clauses.
15356 (Is_Legal_Copy): New predicate to determine whether a possibly
15357 misaligned in-out actual can actually be passed by copy/return. This
15358 is an error in case the type is by_reference, and a warning if this is
15359 the consequence of a DEC import pragma on the subprogram.
15360 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
15362 (Expand_Inlined_Call): Mark temporary generated for the return value as
15363 internal, so that no useless scalar normalization is generated for it.
15364 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
15365 null procedure can always be inlined.
15366 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
15367 procedure, generate an explicit empty body for it.
15369 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
15370 Given a type implementing an interface, returns the corresponding
15371 access_disp_table value.
15372 (Find_Interface_Tag): New subprogram. Given a type implementing an
15373 interface, returns the record component containing the tag of the
15375 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
15376 previous ones that return the corresponding tag and access_disp_table
15378 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
15379 is a predefined primitive operation.
15380 (Expand_Subtype_From_Expr): If the expression is a selected component
15381 within an initialization procedure, compute its actual subtype, because
15382 the component may depend on the discriminants of the enclosing record.
15384 * i-cpp.ads, i-cpp.adb:
15385 This package has been left available for compatibility with previous
15386 versions of the frontend. As part of the new layout this is now a
15387 dummy package that uses declarations available at a-tags.ads
15389 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
15390 "constant access" and "aliased [constant] access" when not compiling
15392 Suppress Ada 2005 keyword warning if -gnatwY used
15393 (P_Identifier_Declarations): Add support for object declarations with
15394 access definitions.
15395 (Private_Extension_Declaration): Complete the documentation
15396 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
15397 attribute in case of private extension declaration
15398 (P_Type_Declaration): Mark as "abstract" the type declarations
15399 corresponding with protected, synchronized and task interfaces
15400 (P_Declarative_Items): "not" and "overriding" are overriding indicators
15401 for a subprogram or instance declaration.
15403 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
15404 instantiation that is a dispatching operation has controlling access
15405 parameters that are null excluding.
15406 Save and restore Ada_Version_Explicit, for implementation of AI-362
15407 (Validate_Derived_Type_Instance): Add check for abstract interface
15409 (Analyze_Formal_Package): Establish Instantiation source for the copy of
15410 the generic that is created to represent the formal package.
15411 (Analyze_Package_Instantiation): Instantiate body immediately if the
15412 package is a predefined unit that contains inlined subprograms, and
15413 we are compiling for a Configurable_Run_Time.
15414 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
15415 If the program has a null default, generate an empty body for it.
15417 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
15418 error message condition, null procedures are correctly detected now.
15419 (New_Overloaded_Entity): Bypass trivial overriding indicator check
15420 for subprograms in the context of protected types. Instead, the
15421 indicator is examined in Sem_Ch9 while analysing the subprogram
15423 (Check_Overriding_Indicator): Check consistency of overriding indicator
15424 on subprogram stubs as well.
15425 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
15427 (Analize_Subprogram_Specification): When analyzing a subprogram in which
15428 the type of the first formal is a concurrent type, replace this type
15429 by the corresponding record type.
15430 (Analyze_Subprogram_Body): Undo the previous work.
15431 (Analyze_Procedure_Call): If the call has the form Object.Op, the
15432 analysis of the prefix ends up analyzing the call itself, after which
15434 (Has_Interface_Formals): New subprogram subsidiary to analyze
15435 subprogram_specification that returns true if some non
15436 class-wide interface subprogram is found
15437 (New_Overloaded_Entity): Modified to give support to abstract
15439 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
15440 access to subprograms must be recursive.
15441 (Is_Unchecked_Conversion): Improve the test that recognizes
15442 instantiations of Unchecked_Conversion, and allows them in bodies that
15443 are to be inlined by the front-end. When the body comes from an
15444 instantiation, a reference to Unchecked_Conversion will be an
15445 Expanded_Name, even though the body has not been analyzed yet.
15446 Replace Is_Overriding and Not_Overriding in subprogram_indication with
15447 Must_Override and Must_Not_Override, to better express intent of AI.
15448 (Analyze_Subprogram_Body): If an overriding indicator is given, check
15449 that it is consistent with the overrinding status of the subprogram
15451 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
15453 If the subprogram is a null procedure, indicate that it does not need
15456 * sem_disp.adb (Check_Controlling_Type): Give support to entities
15457 available through limited-with clauses.
15458 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
15459 allowed as the last primitive of a tagged type if it has no previous
15461 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
15462 to give support to abstract interface types
15464 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
15465 in the case where the target type is an anonymous access type of an
15466 object or component (that is, when Is_Local_Anonymous_Access is true).
15467 Prevent the special checks for conversions of access discriminants in
15468 the case where the discriminant belongs to a nonlimited type, since
15469 such discriminants have their accessibility level defined in the same
15470 way as a normal component of an anonymous access type.
15471 (Resolve_Allocator): When an allocator's designated type is a class-wide
15472 type, check that the accessibility level of type given in the
15473 allocator's expression or subtype indication is not statically deeper
15474 than the level of the allocator's access type.
15475 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
15476 name in a discriminant constraint of a record component.
15477 (Resolve_Explicit_Dereference): Do not check whether the type is
15478 incomplete when the dereference is a use of an access discriminant in
15479 an initialization procedure.
15480 (Resolve_Type_Conversion): Handle conversions to abstract interface
15482 (Valid_Tagged_Conversion): The conversion of a tagged type to an
15483 abstract interface type is always valid.
15484 (Valid_Conversion): Modified to give support to abstract interface types
15485 (Resolve_Actuals): Enable full error reporting on view conversions
15486 between unrelated by_reference array types.
15487 The rule for view conversions of arrays with aliased components is
15488 weakened in Ada 2005.
15489 Call to obsolescent subprogram is now considered to be a violation of
15490 pragma Restrictions (No_Obsolescent_Features).
15491 (Check_Direct_Boolean_Operator): If the boolean operation has been
15492 constant-folded, there is nothing to check.
15493 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
15494 check on possible violation of restriction No_Direct_Boolean_Operators
15495 until after expansion of operands, to prevent spurious errors when
15496 operation is constant-folded.
15498 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
15499 Has_Compatible_Type): Modified to give support to abstract interface
15501 (Interface_Present_In_Ancestor): New function to theck if some ancestor
15502 of a given type implements a given interface
15504 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
15505 prefix is a parameterless function that returns an access_to_procedure.
15506 (Transform_Object_Operation): Handle properly function calls of the
15507 form Obj.Op (X), which prior to analysis appear as indexed components.
15508 (Analyze_One_Call): Complete the error notification to help new Ada
15510 (Analyze_Allocator): For an allocator without an initial value, where
15511 the designated type has a constrained partial view, a discriminant
15512 constraint is illegal.
15514 2005-06-14 Robert Dewar <dewar@adacore.com>
15516 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
15517 do with treatment of Set_Col when positioned at end of line character.
15519 2005-06-14 Robert Dewar <dewar@adacore.com>
15521 * atree.adb: (Elist*): Protect against uninitialized field
15523 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15525 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
15526 for an attribute reference that returns an access type.
15527 (Apply_Discriminant_Check): No need for check if (designated) type has
15528 constrained partial view.
15530 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
15531 both bound checks, rather than a conjunction.
15532 (Insert_Valid_Check): If the expression is an actual that is an indexed
15533 component of a bit-packed array, force expansion of the packed element
15534 reference, because it is specifically inhibited elsewhere.
15536 2005-06-14 Vincent Celier <celier@adacore.com>
15538 * clean.adb (Clean_Project): Correctly delete executable specified as
15539 absolute path names.
15541 * make.adb (Gnatmake): Allow relative executable path names with
15542 directory information even when project files are used.
15543 (Change_To_Object_Directory): Fail gracefully when unable to change
15544 current working directory to object directory of a project.
15545 (Gnatmake): Remove exception handler that could no longer be exercized
15546 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
15547 may be deallocated by Normalize_Arguments.
15548 (Collect_Arguments): Eliminate empty arguments
15550 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
15551 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
15552 (Check_Project): Return False when Project is No_Project. Return True
15553 when All_Projects is True.
15554 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
15555 All_Projects to True.
15558 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15559 Javier Miranda <miranda@adacore.com>
15560 Thomas Quinot <quinot@adacore.com>
15561 Robert Dewar <dewar@adacore.com>
15562 Hristian Kirtchev <kirtchev@adacore.com>
15563 Gary Dismukes <dismukes@adacore.com>
15565 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
15566 anonymous access types, to indicate that the accessibility level of
15567 the type is determined by that of the enclosing declaration.
15568 (Has_Persistent_BSS): New flag
15569 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
15570 of this attribute with functions.
15571 (Is_Primitive_Wrapper): Remove the barrier.
15572 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
15573 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
15575 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
15576 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
15578 (Is_Pure_Unit_Access_Type): New flag
15579 (Abstract_Interfaces): Complete the assertion to cover all usages.
15580 (Set_Is_Interface): Complete the assertion to cover all usages.
15581 (Is_Primitive_Wrapper): New attribute.
15582 (Is_Obsolescent): Now applies to all entities (though it is only set
15583 for subprograms currently)
15584 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
15585 which solves various problems concerning access subtypes.
15586 (Has_Persistent_BSS): New flag
15587 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
15588 Remove these subprograms because this attribute is currently
15591 Has_Specified_Stream_Input (Flag190)
15592 Has_Specified_Stream_Output (Flag191)
15593 Has_Specified_Stream_Read (Flag192)
15594 Has_Specified_Stream_Write (Flag193)
15595 Present in all type and subtype entities. Set for a given view if the
15596 corresponding stream-oriented attribute has been defined by an
15597 attribute definition clause. When such a clause occurs, a TSS is set
15598 on the underlying full view; the flags are used to track visibility of
15599 the attribute definition clause for partial or incomplete views.
15600 (Is_Pure_Unit_Access_Type): New flag
15601 Clarify use of Is_Internal.
15602 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
15603 internally generated to wrap the invocation of tasks and protected
15604 types that implement interfaces.
15605 (Implementation_Base_Type): Documentation correction
15606 (Is_Obsolescent): Now applies to all entities (though it is only set
15607 for subprograms currently)
15608 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
15609 which solves various problems concerning access subtypes.
15611 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
15612 for examined parameters. Identify unequal parameter list lengths as
15613 non-conformant parameters.
15614 (Overriding_Possible): Do not check for "All" qualifier in declaration
15615 of controlling access parameter, following prescription of AI-404.
15616 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
15617 that build the procedure body that wraps an entry invocation
15618 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
15619 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
15620 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
15621 give support to abstract interface types
15623 * freeze.adb (Freeze_Entity): Issue error message if
15624 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
15625 type has no storage pool (Ada 2005) AI-366.
15626 Also modified to give support to abstract interface types
15627 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
15628 Inline_Always pragma.
15630 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
15631 now begin an entry declaration.
15632 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
15633 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
15634 a subprogram declaration preceded by an overriding indicator.
15635 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
15636 declarations or subprogram declarations preceded by reserved words
15637 "not" or "overriding".
15638 (P_Entry_Declaration): Update comment. Parse and check overriding
15639 indicator, set semantic flags of entry declarations.
15640 (P_Task): New error message in case of private applied
15641 to a task type declaration.
15642 (P_Protected): New error message in case of private applied
15643 to a task type declaration.
15645 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
15646 in which the full view of a type implementing an interface is a
15648 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
15649 Declare_Inherited_Private_Subprograms): If an explicit operation
15650 overrides an operation that is inherited in the private part, mark the
15651 explicit one as overriding, to enable overriding indicator checks.
15652 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
15653 full view to partial view, to simplify handling in back-end.
15655 * sprint.adb: Print interface lists where needed: derived types,
15656 protected types, task types.
15657 output "is null" for null procedures. Part of implementation of
15659 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
15660 relaxation of rules for access types in pure, shared passive partitions.
15662 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
15663 first read discriminants into temporary objects, performing checks on
15664 the read values, then possibly performing discriminant checks on the
15665 actual (if it is constrained), and only finally reading the components
15666 into a constrained temporary object.
15667 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
15668 case of reading discriminants of a mutable record type to recognize
15669 the new form of the code generated by
15670 Build_Mutable_Record_Read_Procedure.
15672 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
15673 of a simple call to Make_TSS_Name.
15674 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
15675 buffer, in order for Is_TSS to work correctly on local TSS names.
15677 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
15678 Is_Local_Anonymous_Access to check legaliy of attributes in the
15679 context of access components and stand-alone access objects.
15680 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
15681 treated as available for a limited private type if there is an
15682 attribute_definition_clause that applies to its full view, but not in
15683 other cases where the attribute is available for the full view
15684 (specifically, the sole fact that the full view is non-limited does not
15685 make the attribute available for the partial view).
15686 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
15687 non-overloaded intrinsic subprogram.
15688 (Check_Stream_Attribute): Reject an attribute reference for an
15689 unavailable stream attribute even if the prefix is not a limited type
15690 (case of a 'Input attribute reference for an abstract, non-classwide
15692 (Stream_Attribute_Available): New function to determine whether a stream
15693 attribute is available at a place.
15694 (Check_Attribute): Use Stream_Attribute_Available instead of just
15695 testing for TSS presence on the implementation base type.
15696 (Analyze_Attribute): Modified to give support to task interfaces.
15697 (Analyze_Access_Attribute): Add error check for use of an Access (or
15698 Unrestricted_Access) attribute with a subprogram marked as
15700 (Analyze_Attribute, case Attribute_Address): Add error check for use of
15701 an Address attribute with a subprogram marked as Inline_Always.
15702 Update Eval_Attribute to handle new value of Width from AI-395
15704 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
15705 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
15706 Factor common code across the stream-oriented attribute circcuits into
15707 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
15708 processing is functionally identical to the previous duplicated one,
15709 except that an expression that denotes an abstract subprogram will now
15710 be rejected, as mandated by AI-195 item 5.
15712 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
15713 Is_Local_Anonymous_Access to apply accessibility checks to access
15714 components and stand-alone access objects.
15715 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
15717 (Is_Potentially_Persistent_Type): New function
15718 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
15719 a heap-object whose type has a constrained partial view, the object is
15720 unconstrained and the component may depend on a discriminant, making its
15723 * sinfo.ads, sinfo.adb
15724 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
15725 (Must_Override): Flag applicable to N_Entry_Declaration.
15726 Indicate that interface_list can appear in single task and single
15727 protected declarations.
15728 Replace Is_Overriding and Not_Overriding with Must_Override and
15729 Must_Not_Override, to better express intent of AI.
15730 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
15731 of an overriding indicator in a subprogram or instance.
15732 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
15733 Add the overriding indicator [[not] overriding] construct to the
15734 following grammar productions:
15736 GENERIC_INSTANTIATION
15737 SUBPROGRAM_SPECIFICATION
15739 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
15740 can start with an overriding indicator.
15742 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
15743 flags accordingly on subrogram specifications or instances.
15746 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
15747 overriding_indicator, if present, is consistent with status of spec.
15748 Improve error message for null-excluding checks on controlling access
15750 (Check_In_Previous_With_Clause): Protect the frontend against
15751 previously reported critical errors in the context clauses.
15752 Save and restore Ada_Version_Explicit, for implementation of AI-362
15753 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
15754 operation verify that controlling formals of the renamed entity that
15755 are access parameters are explicitly non-null.
15756 (Find_Expanded_Name): Improve error message when prefix is an illegal
15757 reference to a private child unit.
15759 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
15760 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
15761 Rewrite to correspond to new wide character names in AI-395
15763 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
15764 default procedures.
15766 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15767 Robert Dewar <dewar@adacore.com>
15769 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
15770 code, not on the bodies of predefined operations, to cut down on
15773 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15775 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
15776 be expanded in place. The size computation does not require a
15777 subtraction, which would raise an exception on a compiler built with
15778 assertions when the upper bound is Integer'first.
15779 (Flatten): For an array of composite components, take into account the
15780 size of the components to determine whether it is safe to expand the
15781 array into a purely positional representation.
15783 2005-06-14 Thomas Quinot <quinot@adacore.com>
15785 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
15786 denoting a formal parameter into account.
15788 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15790 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
15791 the entry_call alternative of a conditional entry call, wrap the
15792 conditional entry call itself.
15794 2005-06-14 Nicolas Setton <setton@adacore.com>
15795 Ed Schonberg <schonberg@adacore.com>
15797 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
15798 the "simple_choice" member in a variant record, in accordance with the
15799 description in the package spec: the information output for a constant
15800 should be "S number", not "SS number".
15801 (Get_Encoded_Name): Return at once if not generating code. Avoids name
15802 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
15804 2005-06-14 Thomas Quinot <quinot@adacore.com>
15806 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
15807 RACW without any primitives, do not generate the if statement for
15808 dispatching by name in the PolyORB/DSA case, as it would be malformed
15809 (it would have an Elsif_Parts list that is not No_List, but with a
15812 2005-06-14 Robert Dewar <dewar@adacore.com>
15814 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
15816 2005-06-14 Jose Ruiz <ruiz@adacore.com>
15818 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
15819 can determine whether pragma Suppress_Exception_Locations is in effect.
15821 * utils2.c (build_call_raise): Do not pass the file name to the
15822 exception handler if pragma Suppress_Exception_Locations is in effect.
15823 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
15825 2005-06-14 Emmanuel Briot <briot@adacore.com>
15827 * g-debpoo.adb (Deallocate, Dereference): Improve output.
15829 2005-06-14 Nicolas Roche <roche@adacore.com>
15831 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
15833 (Next_Level): Fix minor bug in handling of ../dir case
15834 (Read): Add dir separator to Directory name so that "" is understood as
15837 2005-06-14 Pascal Obry <obry@adacore.com>
15839 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
15840 releasing the items.
15842 2005-06-14 Vincent Celier <celier@adacore.com>
15843 Cyrille Comar <comar@adacore.com>
15845 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
15846 with output file descriptor and with output file name.
15847 (Dup, Dup2): Now global procedures as they are used by two subprograms
15848 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
15850 2005-06-14 Thomas Quinot <quinot@adacore.com>
15853 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
15855 (Create_Selector): Bind listening socket used to create the signalling
15856 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
15857 Set listen backlog to 1 to ensure that we detect socket theft by a
15858 failure of our own connect(2) call.
15859 (Check_Selector): Improve documentation of the selector mechanism.
15860 (Broadcast_Inet_Addr): New constant.
15862 2005-06-14 Gary Dismukes <dismukes@adacore.com>
15864 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
15865 type which turns out to be an incomplete and incorrect fix.
15866 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
15867 of the type is declared in a record (for determination of insertion
15869 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
15870 a private type and ensure that the primary entity is used for the type
15871 of the newly created function's V formal by taking the Etype of the
15874 2005-06-14 Javier Miranda <miranda@adacore.com>
15875 Jose Ruiz <ruiz@adacore.com>
15876 Robert Dewar <dewar@adacore.com>
15877 Ed Schonberg <schonberg@adacore.com>
15879 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
15880 that indicates if we are parsing a compilation unit found in a
15881 limited-with clause.
15882 It is use to avoid the circularity check.
15884 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
15885 we are parsing a compilation unit found in a limited-with clause. This
15886 is use to avoid the circularity check.
15888 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
15889 unit as a consequence of parsing a limited-with clause. This is used
15890 to avoid the circularity check.
15892 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
15893 (Analyze_Context): Limited-with clauses are now allowed
15894 in more compilation units.
15895 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
15896 againts previously reported critical errors in context clauses
15897 (Install_Limited_Withed_Unit): Code cleanup plus static detection
15898 of two further errors: renamed subprograms and renamed packages
15899 are not allowed in limited with clauses.
15900 (Install_Siblings): Do not install private_with_clauses on the package
15901 declaration for a non-private child unit.
15902 (Re_Install_Parents): When a parent of the subunit is reinstalled,
15903 reset visibility of child units properly.
15904 (Install_Withed_Unit): When a child unit appears in a with_clause of its
15905 parent, it is immediately visible.
15907 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15908 Emmanuel Briot <briot@adacore.com>
15910 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
15911 declared within an inlined body as referenced, to prevent spurious
15913 (Output_One_Ref): If an entity renames an array component, indicate in
15914 the ALI file that this aliases (renames) the array. Capture as well
15915 function renamings that rename predefined operations.
15916 Add information about generic parent for package and subprogram
15918 (Get_Type_Reference): For a subtype that is the renaming of an actual in
15919 an instantiation, use the first_subtype to ensure that we don't generate
15920 cross-reference information for internal types.
15921 For objects and parameters of a generic private type, retain the '*'
15922 indicator to distinguish such an entity from its type.
15924 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
15925 to store information about instantiated entities.
15927 * ali.adb (Scan_ALI): Add support for parsing the reference to the
15930 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
15931 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
15934 2005-06-10 Doug Rupp <rupp@adacore.com>
15935 Arnaud Charlet <charlet@adacore.com>
15936 Olivier Hainque <hainque@adacore.com>
15937 Jose Ruiz <ruiz@adacore.com>
15939 * Make-lang.in: Add initialize.o when needed.
15940 Remove obsolete references to RT_FLAGS.
15941 Add missing dependencies for sdefault.o
15943 * initialize.c: New file.
15945 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
15946 [VMS] cond_signal_table: Fix problem in declaration.
15947 [VMS] __gnat_error_handler: rewrite.
15948 Move all __gnat_initialize() routines to initialize.c
15949 Specialize the former "hpux" section to "hppa hpux", as this is what the
15950 section really is here for and we now have other hpux ports that need
15951 different contents.
15952 (__gnat_adjust_context_for_raise) i386-linux: First version of this
15953 function for this target. Adjust PC by one in the machine context. This
15954 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
15955 it is more reliable to do that in the signal handler itself.
15956 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
15957 flags, so that the handler is passed the context structure to adjust
15958 prior to the raise.
15959 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
15960 SA_SIGINFO sigaction should look like. Call
15961 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
15962 Machine_State_Operations stuff.
15963 Add conditional code so that the x86_64 is also supported.
15965 2005-06-14 Pascal Obry <obry@adacore.com>
15967 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
15970 2005-06-14 Robert Dewar <dewar@adacore.com>
15972 * opt.ads, opt.adb: New flags for persistent_bss mode
15973 Add Ada_Version_Explicit, for implementation of AI-362
15974 Add Assertions_Enabled_Config and associated handling
15975 Needed since setting can be changed with Assertion_Policy pragma
15976 Add new flag Warn_On_Ada_2005_Compatibility
15978 * switch-c.adb: Recognize -gnatwy/Y
15979 Set Ada_Version_Explicit, for implementation of AI-362
15980 The -gnatg switch now includes -gnatyu
15982 * usage.adb: Add -gnatwy/Y
15983 Remove wrong asterisk on -gnatwX line
15984 Add line for -gnatyu switch
15986 2005-06-14 Vincent Celier <celier@adacore.com>
15988 * osint.adb (Add_Default_Search_Dirs): Put source and object
15989 directories of project files before directories coming from
15990 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
15992 2005-06-14 Robert Dewar <dewar@adacore.com>
15995 * par-ch2.adb (Scan_Pragma_Argument): New procedure
15996 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
15998 2005-06-14 Vincent Celier <celier@adacore.com>
16000 * prep.adb (Preprocess): Ignore error when scanning the first token of
16003 2005-06-14 Vincent Celier <celier@adacore.com>
16005 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
16006 (Check_Stand_Alone_Library): If the specified reference symbol file does
16007 not exist, only issue a warning when the symbol policy is not
16008 Controlled. And, when symbol policy is Compliant, set the symbol
16009 policy to Autonomous.
16011 2005-06-14 Vincent Celier <celier@adacore.com>
16013 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
16014 when the project file in a with clause is not the last one, that is the
16015 project file name is followed by a comma.
16016 * prj-pp.adb: (First_With_In_List): New Boolean global variable
16017 (Print): Issue list of project files separated by commas in with clauses
16018 according to the values returned by Is_Not_Last_In_List.
16019 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
16020 (Set_Is_Not_Last_In_List): New procedure
16022 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
16024 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
16026 2005-06-14 Robert Dewar <dewar@adacore.com>
16028 * scng.adb: Add call to new Check_EOF routine
16029 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
16030 Add some comments regarding wide character handling
16032 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
16034 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
16036 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
16037 characters are now considered graphic characters and hence yield false
16040 * nmake.adt: Modify header so that xnmake does not generate output
16041 files with multiple blank lines.
16043 * treeprs.adt: Remove a blank line so that output from xtreeprs does
16044 not have an extra blank line
16046 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16048 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
16049 expression when the component type is an anonymous access type to
16050 ensure that appropriate accessibility checks are done.
16052 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
16053 expression of an assignment when the target object is of an anonymous
16054 access type. This ensures that required accessibility checks are done.
16055 (One_Bound): Move the check for type Universal_Integer to
16057 (Process_Bounds): Check whether the type of the preanalyzed range is
16058 Universal_Integer, and in that case set Typ to Integer_Type prior
16059 to setting the type of the original range and the calls to One_Bound.
16061 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16063 * sem_case.adb (Expand_Others_Choice): Improve warning.
16065 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16067 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
16068 constraint of full view if present, when other type is discriminated.
16069 (Eval_Relational_Op): Recognize tests of pointer values against Null,
16070 when the pointer is known to be non-null, and emit appropriate warning.
16072 2005-06-14 Robert Dewar <dewar@adacore.com>
16073 Ed Schonberg <schonberg@adacore.com>
16076 * sem_prag.adb: Implement pragma Persistent_BSS
16077 Remove obsolete pragma Persistent_Data, Persistent_Object
16078 Set Ada_Version_Explicit, for implementation of AI-362
16079 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
16080 Add processing for pragma Pure_05 and Preelaborate_05
16081 Add processing for Assertion_Policy pragma
16082 Add pragma identifiers for Assert
16083 (Analyze_Pragma, case Assert): Check number of arguments
16084 (Process_Inline): Additional guard against an illegal program, where the
16085 argument of the pragma is undefined, and warnings on redundant
16086 constructs are enabled.
16087 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
16088 Ada_05 to this pragma, specifying that the pragma is only active in
16090 (Check_Arg_Order): New procedure
16091 Add appropriate calls to this procedure throughout
16092 Also throughout, check entity name before doing any other checks
16094 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
16095 Remove obsolete pragma Persistent_Data, Persistent_Object
16096 Add entries for pragma Pure_05 and Preelaborate_05
16097 Add entries for Assertion_Policy pragma and associated names
16098 Add some names for pragma argument processing
16100 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
16102 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16104 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
16105 appears within a negation (either from source or as a rewriting of
16106 inequality) adjust text of warning accordingly.
16108 2005-06-14 Thomas Quinot <quinot@adacore.com>
16110 * s-strxdr.adb: Follow AI95-00132
16112 2005-06-14 Arnaud Charlet <charlet@adacore.com>
16114 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
16116 2005-06-14 Arnaud Charlet <charlet@adacore.com>
16117 Jose Ruiz <ruiz@adacore.com>
16119 * s-tposen.adb, s-tpobop.adb
16120 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
16122 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
16123 there is no violation of the Max_Entry_Queue_Length restriction (if it
16124 has been set); Program_Error is raised otherwise.
16125 (Requeue_Call): Before requeuing the task on the target entry queue we
16126 check that there is no violation of the Max_Entry_Queue_Length
16127 restriction (if it has been set); Program_Error is raised otherwise.
16129 2005-06-14 Robert Dewar <dewar@adacore.com>
16131 * styleg.adb: Fix several remaining problems in -gnatyu switch
16132 Blank line count not reset at start
16133 Scanning outside source buffer in some cases
16134 Confusing message for blanks at end of file
16135 Non-empty blank lines not recognized
16137 * nmake.adt: Modify header so that xnmake does not generate output
16138 files with multiple blank lines.
16140 * treeprs.adt: Remove a blank line so that output from xtreeprs does
16141 not have an extra blank line
16143 2005-06-14 Sergey Rybin <rybin@adacore.com>
16145 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
16147 2005-06-14 Doug Rupp <rupp@adacore.com>
16148 Vincent Celier <celier@adacore.com>
16150 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
16153 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
16154 Remove "Library" command.
16155 Change keyword for style check -gnatyd from NOCRLF to
16157 Remove useless second style check keyword NONE
16158 Remove help documentation for inexistent style check keyword
16160 Add help documentation for style check keywords DOS_LINE_ENDINGS,
16161 UNNECESSARY_BLANK_LINES and XTRA_PARENS
16162 Add UNNECESSARY_BLANK_LINES for -gnatyu
16163 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
16165 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
16167 2005-06-14 Vincent Celier <celier@adacore.com>
16169 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
16170 gprmake was invoked with -d.
16171 (Compile_Sources): If -d was used, output the "completed ..." message
16172 for each compilation.
16173 (Scan_Arg): Recognize new switch -d
16174 When -c and at least one main is specified, set
16175 Unique_Compile to True to guarantee that no other sources will be
16178 2005-06-14 Matthew Heaney <heaney@adacore.com>
16180 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
16181 * a-swuwha.ads, a-swuwha.adb: New files
16183 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
16184 * a-szuzha.ads, a-szuzha.adb: New files.
16186 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
16187 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
16188 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
16189 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
16190 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
16191 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
16192 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
16193 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
16194 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
16195 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
16198 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
16199 Olivier Hainque <hainque@adacore.com>
16200 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16201 Pascal Obry <obry@adacore.com>
16203 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
16205 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
16206 making a temporary around a procedure call because of non-addressable
16208 (process_freeze_entity): If entity is a private type, capture size
16209 information that may have been computed for the full view.
16210 (tree_transform, case N_Allocator): If have initializing expression,
16211 check type for Has_Constrained_Partial_View and pass that to
16213 (tree_transform, case N_Return_Statement): Pass extra arg to
16216 * decl.c (annotate_value): Remove early return if -gnatR is not
16218 (gnat_to_gnu_field): Don't make a packable type for a component clause
16219 if the position is byte aligned, the field is aliased, and the clause
16220 size isn't a multiple of the packable alignment. It serves no useful
16221 purpose packing-wise and would be rejected later on.
16222 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
16225 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
16226 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
16228 (create_concat_name): Idem.
16230 2005-06-10 Robert Dewar <dewar@adacore.com>
16231 Eric Botcazou <ebotcazou@adacore.com>
16232 Ben Brosgol <brosgol@adacore.com>
16233 Cyrille Comar <comar@adacore.com>
16234 Sergey Rybin <rybin@adacore.com>
16235 Pascal Obry <obry@adacore.com>
16237 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
16238 Document second argument (Ada_05) of pragma Obsolescent
16239 Add note that call to subprogram marked with pragma Obsolescent
16240 is now considered to be a violation of program Restrictions
16241 (No_Obsolescent_Features).
16242 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
16243 that only machine-dependent attributes are supported.
16246 Commented out menu lines and empty section for gnatclean examples
16248 Fix some over long lines
16249 Clarify and enhance documentation of ADA_PROJECT_PATH.
16250 Rework section 2.11.2(3) about linking with a non-GNU compiler.
16251 Mention new switch -fcallgraph-info.
16252 Mention new switch -fstack-usage.
16253 For gnatpp, replace '-notab' with '-N' and add this option to Index
16254 Corrected VMS example.
16255 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
16257 Add documentation for -gnatyu switch (unnecessary blank lines)
16258 Document new switch -U for GNAT PRETTY and GNAT METRIC
16259 Add note about Stdcall being handled as C convention on non Windows OS.
16260 Remove some junk typo in description of gnatbind -S switch
16261 Remove reference to Extensions_Allowed pragma
16262 Document the new order of the directories to be searched (source and
16263 object directories of project files before directories in ADA_*_PATH
16264 environment variables.
16266 * g-trasym.ads: Document that IRIX is supported
16268 2005-06-10 Arnaud Charlet <charlet@adacore.com>
16270 * Makefile.in: Add initialize.o when needed.
16271 Adapt to new VMS package body Symbols and subunits
16272 No specialized version of a-sytaco is needed for VxWorks.
16274 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
16275 * a-zchara.ads, a-widcha.ads: New files.
16277 * system-hpux-ia64.ads: New file.
16279 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
16280 is imported from the VxWorks kernel.
16282 2005-06-14 Robert Dewar <dewar@adacore.com>
16284 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
16285 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
16286 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
16287 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
16288 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
16289 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
16290 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
16291 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
16292 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
16293 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
16294 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
16295 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
16297 2005-06-14 Thomas Quinot <quinot@adacore.com>
16299 * xeinfo.adb: Fix typo in comment
16301 2005-06-14 Javier Miranda <miranda@adacore.com>
16303 * repinfo.ads: Fix typo in comment
16305 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16307 * s-finimp.adb (Parent_Tag): Delete this imported function (function
16308 Parent_Tag is now in the visible part of Ada.Tags).
16309 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
16310 using imported function.
16312 2005-06-14 Bernard Banner <banner@adacore.com>
16314 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
16315 also apply for handling support for VxSim 653.
16317 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
16319 * xsnames.adb: Add automatic generation of snames.h.
16321 2005-06-14 Thomas Quinot <quinot@adacore.com>
16323 * gen-soccon.c: Add IP_MULTICAST_IF constant
16324 Minor reformatting and adjustments to prevent warnings.
16326 2005-06-14 Pascal Obry <obry@adacore.com>
16328 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
16330 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
16332 * trans.c (gnat_gimplify_expr): Call
16333 recompute_tree_invarant_for_addr_expr when we change
16334 the operand of the ADDR_EXPR.
16336 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16338 * misc.c: Don't include errors.h.
16340 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16342 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
16344 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
16346 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
16348 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
16350 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
16353 * Makefile.in: Make TGT_LIB behave correctly.
16355 2005-04-23 DJ Delorie <dj@redhat.com>
16357 * misc.c: Adjust warning() callers.
16359 2005-04-16 Laurent GUERBY <laurent@guerby.net>
16362 * a-nudira.adb (Value): Check for valid string.
16363 * a-nuflra.adb (Value): Likewise.
16365 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
16367 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
16369 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
16371 * adaint.c, init.c, tracebak.c: Fix comment typos.
16372 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
16374 2005-04-07 Laurent GUERBY <laurent@guerby.net>
16375 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16377 * Makefile.in: Add make ifeq define for hppa linux tasking support.
16378 * system-hpux.ads: Define Signed_Zeros to be True.
16379 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
16381 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
16383 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
16384 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
16387 2005-03-30 Tom Tromey <tromey@redhat.com>
16389 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
16391 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
16393 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
16395 2005-03-29 Robert Dewar <dewar@adacore.com>
16397 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
16398 fixed-point expression has value that is not a multiple of the Small
16401 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
16403 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
16406 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
16408 2005-03-29 Vincent Celier <celier@adacore.com>
16410 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
16411 (Build_Dynamic_Library.Version_String): Return the empty string when
16412 Lib_Version is empty or when the symbol policy is not Autonomous.
16414 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
16415 a symbol is not in the reference symbol file, increase the Major ID
16416 and set the Minor ID to 0.
16417 Use gsmatch=lequal instead of gsmatch=equal
16419 2005-03-29 Doug Rupp <rupp@adacore.com>
16421 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
16422 name and translate.
16424 2005-03-29 Javier Miranda <miranda@adacore.com>
16426 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
16427 (Inherit_DT): The first formal has been redefined as a Tag.
16428 This allows us the removal of the subprogram Get_TSD.
16429 (TSD): Replace the call to Get_TSD by the actual code.
16431 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
16432 (Make_DT): Upgrade the call to Inherit_TSD according to the
16433 new interface: the first formal is now a Tag.
16435 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
16436 redefined as a Tag.
16437 This change allows us to remove the subprogram Get_TSD.
16438 (CPP_Get_TSD): Subprogram removed.
16439 (TSD): Replace the call to CPP_Get_TSD by the actual code.
16441 * rtsfind.ads: Remove support to call the run-time
16444 2005-03-29 Robert Dewar <dewar@adacore.com>
16446 * errutil.adb, errout.adb:
16447 Minor comment updates on Line_Terminator references
16449 * par-ch10.adb: Add ??? comment about line terminator
16451 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
16452 (check dos line terminator).
16453 (Check_Line_Max_Length): New procedure, split off from the existing
16454 Check_Line_Terminator routine. Separating this out allows -gnatyf to
16455 be properly recognized.
16457 * styleg.adb: Add ??? comment for line terminator reference
16459 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
16460 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
16462 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
16463 (check dos line terminator).
16464 (Check_Line_Max_Length): New procedure, split off from the existing
16465 Check_Line_Terminator routine. Separating this out allows -gnatyf to
16466 be properly recognized.
16468 * stylesw.ads, stylesw.adb:
16469 Add handling for new -gnatyd switch (check dos line terminator)
16471 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
16472 Recognize -gnatwb/-gnatwB switches
16473 Include Warn_On_Bad_Fixed_Value for -gnatg
16476 Add line for new -gnatyd switch (check dos line terminator)
16478 * usage.adb: Add lines for -gnatwb/-gnatwB
16480 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
16482 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
16484 * gnat_ugn.texi: Fix overlong lines
16485 Document new -gnatyd switch
16486 Document new -gnatwb/-gnatwB switches
16488 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16490 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
16491 order to retrieve the component list of the type, before examining
16492 individual components.
16494 * sem_type.adb (Covers): Types are compatible if one is the base type
16495 of the other, even though their base types might differ when private
16496 views are involved.
16498 2005-03-29 Thomas Quinot <quinot@adacore.com>
16500 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
16501 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
16502 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
16503 analyzed if expansion is disabled (which could otherwise cause spurious
16504 error messages if expansion has been disabled due to previous
16505 (unrelated) errors).
16507 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
16508 is disabled, the entity denoted by the argument is the access type
16509 itself, not an underlying record type, so there is no need to go back
16510 to the Corresponding_Remote_Type.
16512 2005-03-29 Gary Dismukes <dismukes@adacore.com>
16513 Robert Dewar <dewar@adacore.com>
16515 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
16516 expand a call to an instance of
16517 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
16518 Constructor actual of the instance. A class-wide membership
16519 check is also generated, to ensure that the tag passed to the instance
16520 denotes a type in the class.
16521 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
16522 of Name_Generic_Dispatching_Constructor.
16524 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
16525 05 unit for AI-260-02).
16527 * a-tgdico.ads: New file.
16529 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
16530 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
16532 * snames.ads, snames.adb (Preset_Names): Add entry for
16533 Generic_Dispatching_Constructor.
16536 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
16537 character type cases.
16538 (Analyze_Subprogram_Renaming): Add special handling for
16539 the case of renaming of stream attributes when the renaming denotes a
16540 generic formal subprogram association for an abstract formal subprogram.
16541 Check that the attribute is a primitive stream attribute (and not
16542 a class-wide stream attribute) and then rewrite the attribute name
16543 as the name of the appropriate compiler-generated stream primitive.
16545 2005-03-29 Robert Dewar <dewar@adacore.com>
16547 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
16549 (Is_Possibly_Unaligned_Object): Correct typo that
16550 resulted in inaccurate result for unaligned scalars within records.
16552 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16554 * freeze.adb (Freeze_Record_Type): If the type of the component is an
16555 itype whose parent is controlled and not yet frozen, do not create a
16556 freeze node for the itype if expansion is disabled.
16558 2005-03-29 Vincent Celier <celier@adacore.com>
16560 * make.adb (Gnatmake): Don't fail if the main project file is declared
16561 as having no Ada sources. Do not display message "no sources to
16562 compile" in quiet output.
16564 2005-03-29 Doug Rupp <rupp@adacore.com>
16566 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
16569 2005-03-29 Robert Dewar <dewar@adacore.com>
16571 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
16574 2005-03-29 Robert Dewar <dewar@adacore.com>
16576 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
16577 missing TYPE Improve the error message generated when compiling a
16578 limited interface in Ada83 or Ada95 mode.
16580 2005-03-29 Robert Dewar <dewar@adacore.com>
16582 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
16583 rather than proceed ahead using a junk attribute name.
16585 2005-03-29 Vincent Celier <celier@adacore.com>
16587 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
16589 * prj-part.adb (Parse_Single_Project): Set the location of a project
16590 on its defining identifier, rather than on the reserved word "project".
16592 * prj-proc.adb (Expression): Adapt to the fact that default of external
16593 references may be string expressions, not always literal strings.
16594 (Recursive_Process): Set Display_Name equal to Name
16595 when Location is No_Location, that is when there is no actual file.
16596 Get the Display_Name of the project from the source, when it is not a
16598 (Process): Use the Display_Name in error messages
16600 * prj-strt.adb (External_Reference): Allow default to be string
16601 expressions, not only literal strings.
16603 2005-03-29 Vincent Celier <celier@adacore.com>
16605 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
16606 file and the reference symbol file to be the same file.
16608 2005-03-29 Thomas Quinot <quinot@adacore.com>
16610 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
16611 forbid conversion of a local access-to-subprogram type to a remote one.
16613 * sem_util.adb (Wrong_Type): For a record type that is the expanded
16614 equivalent type for a remote access-to-subprogram type, go back to the
16615 original RAS entity when displaying an error message, so the casing is
16616 the original source casing.
16618 2005-03-29 Robert Dewar <dewar@adacore.com>
16620 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
16623 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16625 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
16626 subtype if code is being pre-analyzed, to prevent un-expanded
16627 references to protected formals, among others.
16628 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
16629 interpretation that can be a call, include the result of the call as a
16630 possible interpretation of the dereference.
16632 * sem_ch5.adb (Process_Bounds): Determine type of range by
16633 pre-analyzing a copy of the original range, and then analyze the range
16634 with the expected type.
16636 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
16637 with an overloaded prefix where not all interpretations yield an
16638 access to subprogram, do not rewrite node as a call.
16639 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
16640 the node as a call once the context identifies the interpretation of
16641 the prefix whose call yields the context type.
16642 (Valid_Conversion): For the case of a conversion between
16643 local access-to-subprogram types, check subtype conformance using
16644 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
16645 detailed error message.
16647 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16649 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
16650 indicator, indicate that the formal can never be null.
16651 (Process_Formals): If a formal has a non_null indicator, insert the
16652 resulting subtype immediately before the enclosing subprogram decl,
16653 and not at the beginning of the corresponding declarative part, to
16654 prevent access before elaboration (Ada2005).
16656 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16659 * utils.c (finish_record_type): Use variable_size when setting sizes.
16661 2005-03-29 Robert Dewar <dewar@adacore.com>
16663 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
16664 guarantee Unix style line terminators for the output files, even when
16665 running on windows.
16667 2005-03-29 Robert Dewar <dewar@adacore.com>
16669 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
16670 buffer if an exception is raised.
16672 2005-03-29 Ed Falis <falis@adacore.com>
16674 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
16677 2005-03-29 Robert Dewar <dewar@adacore.com>
16679 * sem_util.ads: Minor reformatting
16680 * gnat_rm.texi: Minor editing.
16682 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
16684 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
16685 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
16687 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
16689 * adaint.c (__gnat_portable_spawn): Adjust cast.
16691 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
16693 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
16695 2005-03-17 Pascal Obry <obry@adacore.com>
16697 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
16700 * expect.c (__gnat_waitpid): Moved here from adaint.c.
16701 Reimplement under Win32 using Win32 API.
16703 (__gnat_kill) [Win32]: Properly close the process handle before leaving
16706 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
16708 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
16709 (DECL_RENAMED_OBJECT): New accessor macro.
16710 (SET_DECL_RENAMED_OBJECT): New setter macro.
16712 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
16713 object in all cases. Attach the renamed object to the VAR_DECL.
16714 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
16715 field is not prescribed.
16717 * misc.c (gnat_handle_option): Handle -gnatO separately.
16718 (gnat_print_decl) <VAR_DECL>: New case.
16719 Print the DECL_RENAMED_OBJECT node.
16721 * lang.opt: Declare separate -gnatO option.
16723 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
16724 pointer, replace it with the renamed object.
16725 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
16726 pointer type if the source is not a fat pointer type whose underlying
16727 array has the same non-zero alias set as that of the destination array.
16729 2005-03-17 Javier Miranda <miranda@adacore.com>
16731 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
16732 (Get_Inheritance_Depth): Removed.
16733 (Set_Inheritance_Depth): Removed.
16735 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
16736 subprogram Get_Expanded_Name because it is not referenced by the
16739 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
16740 (CPP_Get_Inheritance_Depth): Removed.
16741 (CPP_Set_Inheritance_Depth): Removed.
16743 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
16745 2005-03-17 Robert Dewar <dewar@adacore.com>
16747 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
16748 3, since we now expect GCC 3 to do all the work.
16750 2005-03-17 Javier Miranda <miranda@adacore.com>
16752 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
16753 of one barrier to avoid wrong usage of this attribute.
16755 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
16756 First_Private_Entity.
16758 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
16759 the subprogram against wrong usage.
16760 Adapt the code to traverse the entities in the
16761 scope of a record_type because in addition to its usage regarding
16762 packages, this subprogram is also called by Expand_N_Freeze_Entity
16763 to install the visible declarations of the enclosing scope of a
16764 record_type_with_private to establish the proper visibility before
16765 freezing the entity and related subprograms.
16767 2005-03-17 Ed Schonberg <schonberg@adacore.com>
16769 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
16772 2005-03-17 Thomas Quinot <quinot@adacore.com>
16774 * exp_ch3.adb (Check_Attr): New subprogram.
16775 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
16776 into a new Check_Attr subprogram, in order to provide a more
16777 explanatory error message (including the name of the missing attribute).
16778 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
16779 subprogram determines whether a default implementation exists for a
16780 given stream attribute.
16781 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
16782 Determine whether to generate a default implementation for each stream
16783 attribute separately, as this depends on the specific attribute.
16785 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
16786 limited extension where a stream attribute is missing for a limited
16787 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
16788 generate a bogus reference to the missing attribute to prevent
16789 cascaded errors. Instead, generate a null statement.
16791 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
16792 available for a limited type if it has been specified for an ancestor
16795 2005-03-17 Ed Schonberg <schonberg@adacore.com>
16797 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
16798 entity is an operator.
16800 2005-03-17 Thomas Quinot <quinot@adacore.com>
16802 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
16803 spec, to make this predicate available to other units.
16805 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
16808 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
16809 when no distribution runtime library is available.
16811 * sem_res.adb, sem_dist.adb: Disable expansion of remote
16812 access-to-subprogram types when no distribution runtime library is
16814 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
16815 predicate available to other units.
16817 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
16818 spec, to make this predicate available to other units.
16820 2005-03-17 Vincent Celier <celier@adacore.com>
16822 * make.adb (Insert_Project_Sources): Make sure the Q is always
16825 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
16826 the default for the tree, not the global default naming.
16828 * prj-proc.adb (Recursive_Process): No need to put the default naming
16829 in the project data, it's already there.
16831 2005-03-17 Doug Rupp <rupp@adacore.com>
16833 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
16835 * 5xcrtl.ads: Renamed to...
16836 * s-crtl-vms64.ads: ...this new file
16838 2005-03-17 Robert Dewar <dewar@adacore.com>
16841 * namet.adb (Copy_One_Character): Set proper wide character encoding
16842 for upper half character if we have upper half encoding.
16844 2005-03-17 Robert Dewar <dewar@adacore.com>
16846 * par.adb (Par): Improved msg for attempt to recompile predefined unit
16848 2005-03-17 Thomas Quinot <quinot@adacore.com>
16850 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
16851 tagged limited type, the TSS is a newly built renaming declaration:
16852 insert it using Set_TSS, not Copy_TSS.
16854 2005-03-17 Javier Miranda <miranda@adacore.com>
16856 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
16857 Try_Object_Operation): Analyze the object that is accessible
16858 through the prefix of the subprogram call before we apply
16859 the transformation of the object-operation notation.
16861 2005-03-17 Jose Ruiz <ruiz@adacore.com>
16863 * s-taprob.adb (Initialize_Protection): Initialize the protected
16864 object's owner to Null_Task.
16865 (Lock): If pragma Detect_Blocking is in effect and the caller of this
16866 procedure is already the protected object's owner then Program_Error
16867 is raised. In addition the protected object's owner is updated.
16868 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
16869 of this procedure is already the protected object's owner then
16870 Program_Error is raised.
16871 In addition the protected object's owner is updated.
16872 (Unlock): Remove the ownership of the protected object.
16874 * s-taprob.ads (Protection): Add the field Owner, used to store the
16875 protected object's owner.
16876 This component is needed for detecting one type of potentially blocking
16877 operations (external calls on a protected subprogram with the same
16878 target object as that of the protected action). Document the rest of
16881 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
16882 Initialize the protected object's owner to Null_Task.
16883 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
16884 caller of this procedure is already the protected object's owner then
16885 Program_Error is raised.
16886 Do not raise Program_Error when this procedure is called from a
16888 (Unlock_Entries): Remove the ownership of the protected object.
16889 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
16890 of this procedure is already the protected object's owner then
16891 Program_Error is raised.
16892 Do not raise Program_Error when this procedure is called from
16893 a protected action.
16895 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
16896 used to store the protected object's owner.
16898 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
16899 effect and this procedure (a potentially blocking operation) is called
16900 from whithin a protected action, Program_Error is raised.
16901 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
16902 and this procedure (a potentially blocking operation) is called from
16903 whithin a protected action, Program_Error is raised.
16905 2005-03-17 Vincent Celier <celier@adacore.com>
16906 Nicolas Setton <setton@adacore.com>
16908 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
16909 switch, not supported by the linker on Darwin. Add '_' before
16910 <library>init, as this character is added unconditionally by the
16912 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
16913 correct one ".dylib". This fixes detection of the archive files when
16914 building library projects.
16916 2005-03-17 Vincent Celier <celier@adacore.com>
16918 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
16919 -gnat83, -gnat95 and -gnat05.
16921 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
16923 * gnat_ugn.texi: Document gnatmem restriction
16925 2005-03-17 Thomas Quinot <quinot@adacore.com>
16927 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
16930 2005-03-17 Robert Dewar <dewar@adacore.com>
16932 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
16933 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
16934 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
16936 * casing.adb: Comment improvements
16938 2005-03-17 Pascal Obry <obry@adacore.com>
16940 * g-expect.adb: Minor reformatting.
16942 2005-03-15 Zack Weinberg <zack@codesourcery.com>
16944 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
16945 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
16948 2005-03-15 Vincent Celier <celier@adacore.com>
16950 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
16951 Add new parameter In_Tree to specify the project tree: needed
16952 by the project manager. Adapt to changes in project manager
16953 using new parameter In_Tree.
16955 2005-03-15 Jakub Jelinek <jakub@redhat.com>
16957 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
16958 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
16959 ada/bldtools to avoid make -jN failures.
16961 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
16963 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
16964 to NULL_TREE on entry.
16966 2005-03-15 Robert Dewar <dewar@adacore.com>
16968 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
16969 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
16970 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16971 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
16972 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
16973 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
16974 system-interix.ads, system-solaris-sparc.ads,
16975 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
16976 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
16977 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16978 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
16979 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
16980 Compiler_System_Version to be False.
16982 * opt.ads: Add new flag Opt.Address_Is_Private
16984 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
16985 Add new parameter Compiler_System_Version to avoid checking for
16986 completeness of parameters when compiler is compiling itself.
16987 Allows old versions of GNAT to be compiled with new compiler.
16989 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
16991 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
16992 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
16994 (Stack_Base_Available): New flag.
16995 (Get_Page_Size): New overloaded functions imported from C.
16996 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
16997 PROT_ON, PROT_OFF): New constants.
16998 (mprotect): New function imported from C.
16999 (pthread_teb_t): New record type.
17001 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
17002 (Create_Task): Account for the Yellow Zone and the guard page.
17004 2005-03-15 Vincent Celier <celier@adacore.com>
17006 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
17007 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
17008 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
17009 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
17010 Library_File_Name_For): Add new parameter In_Tree
17011 to specify the project tree: needed by the project manager.
17012 Adapt to changes in project manager using new parameter In_Tree.
17013 Remove local imports, use functions in System.CRTL.
17015 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
17016 to use the project manager.
17018 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
17019 In_Tree to designate the project tree. Adapt to changes in the project
17020 manager, using In_Tree.
17022 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
17023 Copy_Interface_Sources): Add new parameter In_Tree to specify the
17024 project tree: needed by the project manager.
17025 (Build_Library): Check that Arg'Length >= 6 before checking if it
17026 contains "--RTS=...".
17028 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
17029 Library_File_Name_For): Add new parameter In_Tree to specify the
17030 project tree: needed by the project manager.
17032 * prj.ads, prj.adb: Major modifications to allow several project trees
17033 in memory at the same time.
17034 Change tables to dynamic tables and hash tables to dynamic hash
17035 tables. Move tables and hash tables from Prj.Com (in the visible part)
17036 and Prj.Env (in the private part). Move some constants from the visible
17037 part to the private part. Make other constants deferred.
17038 (Project_Empty): Make it a variable, not a function
17039 (Empty_Project): Add parameter Tree. Returns the data with the default
17040 naming data of the project tree Tree.
17041 (Initialize): After updating Std_Naming_Data, copy its value to the
17042 component Naming of Project Empty.
17043 (Register_Default_Naming_Scheme): Use and update the default naming
17044 component of the project tree, instead of the global variable
17046 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
17047 Tree is not defaulted, return the default naming data of the Tree.
17048 (Initial_Buffer_Size): Constant moved from private part
17049 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
17050 variables initialized in procedure Initialize.
17051 (Add_To_Buffer): Add two in out parameters to replace global variables
17052 Buffer and Buffer_Last.
17053 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
17055 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
17057 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
17058 for the project tree.
17059 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
17060 constant at the beginning of the package spec, so that they cane be used
17061 in subprograms before their full declarations.
17062 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
17063 (Empty_Project): Add parameter of type Project_Node_Ref
17064 (Private_Project_Tree_Data): Add component Default_Naming of type
17066 (Buffer, Buffer_Last): remove global variables
17067 (Add_To_Buffer): Add two in out parameters to replace global variables
17068 Buffer and Buffer_Last.
17069 (Current_Packages_To_Check): Remove global variable
17070 (Empty_Name): Move to private part
17071 (No-Symbols): Make it a constant
17072 (Private_Project_Tree_Data): New type for the private part of the
17074 (Project_Tree_Data): New type for the data of a project tree
17075 (Project_Tree_Ref): New type to designate a project tree
17076 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
17077 for the project tree.
17079 * prj-attr.ads: Add with Table; needed, as package Prj no longer
17080 imports package Table.
17082 * prj-com.adb: Remove empty, no longer needed body
17084 * prj-com.ads: Move most of the content of this package to package Prj.
17086 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
17087 designate the project node tree and Packages_To_Check to replace
17088 global variable Current_Packages_To_Check.
17089 Add new parameters In_Tree and Packages_To_Check to local subprograms,
17090 when needed. Adapt to changes in project manager with project node tree
17093 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
17094 project tree to most subprograms. Move tables and hash tables to
17095 private part of package Prj.
17096 Adapt to changes in project manager using project tree In_Tree.
17098 * prj-makr.adb (Tree): New constant to designate the project node tree
17099 Adapt to change in project manager using project node tree Tree
17101 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
17102 display the Library_Src_Dir and the Library_Dir.
17103 Add new parameter In_Tree to designate the project node tree to most
17104 subprograms. Adapt to changes in the project manager, using project tree
17106 (Check_Naming_Scheme): Do not alter the casing on platforms where
17107 the casing of file names is not significant.
17108 (Check): Add new parameter In_Tree to designate the
17110 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
17111 designate the project tree.
17112 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
17114 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
17115 to replace those that were in the private part of package Prj.
17116 Add new parameter In__Tree to designate the project node tree to most
17117 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
17118 (Post_Parse_Context_Clause): When specifying the project node of a with
17119 clause, indicate that it is a limited with only if there is "limited"
17120 in the with clause, not necessarily when In_Limited is True.
17121 (Parse): Add new parameter In_Tree to designate the project node tree
17123 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
17124 designate the project node tree. Adapt to change in Prj.Tree with
17125 project node tree In_Tree.
17127 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
17128 tree In_Tree in the call to function Empty_Process to give its initial
17129 value to the project data Processed_Data.
17130 Add new parameters In_Tree to designate the project tree and
17131 From_Project_Node_Tree to designate the project node tree to several
17132 subprograms. Adapt to change in project manager with project tree
17133 In_Tree and project node tree From_Project_Node_Tree.
17135 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
17136 to replace those that were in the private part of package Prj.
17137 Add new parameter In_Tree to designate the project node tree to most
17138 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
17140 * prj-tree.ads, prj-tree.adb: Add new parameter of type
17141 Project_Node_Tree_Ref to most subprograms.
17142 Use this new parameter to store project nodes in the designated project
17144 (Project_Node_Tree_Ref): New type to designate a project node tree
17145 (Tree_Private_Part): Change table to dynamic table and hash tables to
17146 dynamic hash tables.
17148 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
17149 the project tree to most subprograms. Adapt to changes in project
17150 manager using project tree In_Tree.
17152 * makegpr.adb (Project_Tree): New constant needed to use project
17155 2005-03-15 Olivier Hainque <hainque@adacore.com>
17157 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
17158 for sigactions with SA_SIGINFO set. Call
17159 __gnat_adjust_context_for_raise before raising, to perform the
17160 potentially required adjustments to the machine context for the GCC
17163 * raise.h (__gnat_adjust_context_for_raise): New prototype.
17165 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
17166 Adjust PC by one in the provided machine context.
17167 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
17168 so that the handler is passed the context structure to adjust prior to
17170 (__gnat_error_handler) HPUX: Adjust the signature to match what an
17171 SA_SIGINFO sigaction should look like. Call
17172 __gnat_adjust_context_for_raise before actually raising.
17173 (__gnat_adjust_context_for_raise): Default noop to help PC
17174 adjustments before raise from signal handlers.
17175 (__gnat_error_handler): Indirectly call a predicate function to
17176 determine if a condition should be resignaled or not.
17177 (__gnat_set_resignal_predicate): User interface to modify the predicate.
17178 (__gnat_default_resignal_p): Default GNAT predicate.
17180 2005-03-15 Doug Rupp <rupp@adacore.com>
17182 * adaint.c: Prefix #include of VMS system header files with vms/
17183 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
17184 Do not define a dummy function "convert_addresses" under Darwin,
17187 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
17190 2005-03-15 Nicolas Setton <setton@adacore.com>
17192 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
17195 2005-03-15 Robert Dewar <dewar@adacore.com>
17197 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
17200 * a-retide.ads: Minor comment changes
17202 2005-03-15 Robert Dewar <dewar@adacore.com>
17204 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
17205 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
17206 Realloc_For_Chunk to private part of package.
17207 New subprograms for AI-301
17209 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
17210 Get_Line procedure.
17211 Avoid unnecessary use of Get/Set_Wide_String
17213 2005-03-15 Robert Dewar <dewar@adacore.com>
17216 * a-stunau.ads, a-stunau.adb:
17217 Change interface to allow efficient (and correct) implementation
17218 The previous changes to allow extra space in unbounded strings had
17219 left this interface a bit broken.
17221 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
17223 * g-spipat.ads, g-spipat.adb: New interface for Get_String
17224 Minor reformatting (function specs)
17226 * g-spitbo.adb: New interface for Get_String
17228 * g-spitbo.ads: Minor reformatting
17230 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
17232 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
17234 2005-03-15 Javier Miranda <miranda@adacore.com>
17235 Robert Dewar <dewar@adacore.com>
17236 Thomas Quinot <quinot@adacore.com>
17237 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17239 * atree.ads, atree.adb: Add support for Elist24 field
17241 * atree.h: Fix wrong definition of Field27
17242 Add support for Elist16 field
17243 Add support for Elist24 field
17245 * einfo.ads, einfo.adb (Abstract_Interfaces,
17246 Set_Abstract_Interfaces): New subprograms.
17247 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
17249 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
17250 entities rather than a single node.
17251 (Is_Interface, Set_Is_Interface): New subprogram
17252 (First_Tag_Component): New syntesized attribute
17253 (Next_Tag_Component): New synthesized attribute
17254 (Write_Entity_Flags): Upgraded to write Is_Interface
17255 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
17256 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
17257 (Task_Body_Procedure): New subprogram to read this attribute.
17258 (Set_Task_Body_Procedure): New subprogram to set this attribute.
17259 (Has_Controlled_Component): Now applies to all entities.
17260 This is only a documentation change, since it always worked to apply
17261 this to other than composite types (yielding false), but now this is
17263 Update documentation on Must_Be_Byte_Aligned for new spec
17265 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
17266 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
17267 uses of the Access_Disp_Table attribute to reference the first dispatch
17268 table associated with a tagged type. As
17269 part of the implementation of abstract interface types,
17270 Access_Disp_Table has been redefined to contain a list of dispatch
17271 tables (rather than a single dispatch table).
17272 Similarly, upgrade all the references to Tag_Component by the
17273 new attribute First_Tag_Component.
17274 (Find_Inherited_TSS): Moved to exp_tss.
17275 Clean up test in Expand_N_Object_Declaration for cases
17276 where we need to do a separate assignment of the initial value.
17277 (Expand_N_Object_Declaration): If the expression in the
17278 declaration of a tagged type is an aggregate, no need to generate an
17279 additional tag assignment.
17280 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
17282 Bit packed array ops are only called if operands are known to be
17284 (Component_Equality): When returning an N_Raise_Program_Error statement,
17285 ensure that its Etype is set to Empty to avoid confusing GIGI (which
17286 expects that only expressions have a bona fide type).
17287 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
17288 determine the amount of data to be copied.
17290 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
17291 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
17292 INTERFACE_TYPE_DEFINITION ::=
17293 [limited | task | protected | synchronized] interface
17294 [AND interface_list]
17296 * par-ch3.adb (P_Type_Declaration): Modified to give support to
17298 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
17300 (P_Interface_Type_Definition): New subprogram that parses the new
17301 syntax rule of Ada 2005 interfaces
17302 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
17303 messages by the correct RENAMES (quotes removed).
17305 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
17306 attribute First_Tag_Component.
17308 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
17309 (Interface_List, Set_Interface_List): New subprograms.
17310 (Interface_Present, Set_Interface_Present): New subprograms.
17311 (Limited_Present, Set_Limited_Present): Available also in derived
17312 type definition nodes.
17313 (Protected_Present, Set_Protected_Present): Available also in
17314 record type definition and
17315 derived type definition nodes.
17316 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
17317 (Task_Present, Set_Task_Present): New subprogram.
17318 (Task_Body_Procedure): Removed.
17319 (Set_Task_Body_Procedure): Removed.
17320 These subprogram have been removed because the attribute
17321 Task_Body_Procedure has been moved to the corresponding task type
17322 or task subtype entity to leave a field free to store the list
17323 of interfaces implemented by a task (for AI-345)
17324 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
17325 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
17326 expression flag Do_Range_Check
17327 (Exception_Junk): Change to Flag7 to accomodate above change
17328 (Box_Present, Default_Name, Specification, Set_Box_Present,
17329 Set_Default_Name, Set_Specification): Expand the expression
17330 "X in N_Formal_Subprogram_Declaration" into the corresponding
17331 two comparisons. Required to use the csinfo tool.
17333 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
17334 "with string" given.
17336 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
17339 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
17342 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
17343 attribute Task_Body_Procedure rather than the old semantic field that
17344 was available in the task_type_declaration node.
17346 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
17347 interface type definitions.
17348 (P_Formal_Derived_Type_Definition): Modified to handle the list of
17351 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
17352 task type declaration.
17353 (P_Protected): Modified to handle the list of interfaces in a
17354 protected type declaration.
17356 2005-03-15 Doug Rupp <rupp@adacore.com>
17357 Vincent Celier <celier@adacore.com>
17359 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
17360 (Gen_Output_File_C): Likewise.
17361 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
17363 2005-03-15 Thomas Quinot <quinot@adacore.com>
17365 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
17366 is an N_Raise_Constraint_Error node, create a new copy of it without
17367 going through a call to Duplicate_Subexpr.
17369 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
17370 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17371 Nicolas Setton <setton@adacore.com>
17372 Ed Schonberg <schonberg@adacore.com>
17378 * decl.c (gnat_to_gnu_field): Reject aliased components with a
17379 representation clause that prescribes a size not equal to the rounded
17380 size of their types.
17381 (gnat_to_gnu_entity, case E_Component): Always look at
17382 Original_Record_Component if Present and not the entity.
17383 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
17384 of tagged extension types by not making field for components that are
17386 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
17387 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
17388 expression to the type of the object when the object is constant.
17389 Reverse defer_debug_incomplete_list before traversing it, so that trees
17390 are processed in the order at which they were added to the list. This
17391 order is important when using the stabs debug format.
17392 If we are deferring the output of debug information, also defer this
17393 output for a function return type.
17394 When adding fields to a record, prevent emitting debug information
17395 for incomplete records, emit the information only when the record is
17397 (components_to_record): New parameter defer_debug.
17398 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
17399 (gnat_to_gnu_field_decl): New function.
17400 (substitution_list, annotate_rep): Call it.
17401 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
17402 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
17403 No longer update discriminants to not be a COMPONENT_REF.
17404 (copy_alias_set): Strip padding from input type; also handle
17405 unconstrained arrays properly.
17407 * gigi.h (write_record_type_debug_info): New function.
17408 Convert to use ANSI-style prototypes. Remove unused
17409 declarations for emit_stack_check, elab_all_gnat and
17410 set_second_error_entity.
17411 (gnat_to_gnu_field_decl): New decl.
17413 * utils.c (write_record_type_debug_info): New function.
17414 (finish_record_type): Delegate generation of debug information to
17415 write_record_type_debug_info.
17416 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
17417 (update_pointer_to): Fix pasto.
17418 (convert) <UNION_TYPE>: Accept slight type variations when
17419 converting to an unchecked union type.
17421 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
17422 replace the N_Freeze_Entity with a null statement.
17424 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
17425 within a constrained subcomponent of an enclosing record, place the
17426 freeze nodes in the scope stack entry for the enclosing record.
17427 (Undelay_Type): New Subprogram.
17428 (Set_Small_Size): Pass T, the type to modify; all callers changed.
17429 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
17430 within records; allow them to have freeze nodes if their base types
17433 * exp_util.adb (Remove_Side_Effects): Properly test for
17434 Expansion_Delayed and handle case when it's inside an
17435 N_Qualified_Expression.
17437 * sem_ch3.adb (Derived_Type_Declaration): New predicate
17438 Comes_From_Generic, to recognize accurately that the parent type in a
17439 derived type declaration can be traced back to a formal type, because
17440 it is one or is derived from one, or because its completion is derived
17442 (Constrain_Component_Type): If component comes from source and has no
17443 explicit constraint, no need to constrain in in a subtype of the
17445 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
17446 Minor change to propagate Is_Ada_2005 flag
17448 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
17449 Expansion_Delayed is False.
17450 (assoc_to_constructor): Ignore fields that have a
17451 Corresponding_Discriminant.
17452 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
17453 function returns "by target", dereference the target pointer using the
17454 type of the actual return value.
17455 <all>: Be prepared for a null gnu_result.
17456 (processed_inline_subprograms): Check flag_really_no_inline
17457 instead of flag_no_inline.
17458 (set_second_error_entity): Remove unused function.
17459 (gnat_to_gnu, case N_Selected_Component): Call
17460 gnat_to_gnu_field_decl.
17461 (assoc_to_constructor): Likewise.
17463 2005-03-15 Robert Dewar <dewar@adacore.com>
17464 Ed Schonberg <schonberg@adacore.com>
17465 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17467 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
17468 Must_Be_Byte_Aligned for cases where we do not need to use a
17469 System.Pack_nn unit.
17471 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
17473 Needed now that we do some processing for IN parameters as well. This
17474 may well fix some unrelated errors.
17475 (Expand_Call): Handle case of unaligned objects (in particular those
17476 that come from packed arrays).
17477 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
17478 renamed entity is an inherited operation, re-expand the call using the
17479 original operation, which is the one to call.
17480 Detect attempt to inline parameterless recursive subprogram.
17481 (Represented_As_Scalar): Fix to work properly with private types
17482 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
17483 accurate estimate. Yields True in far fewer cases than before,
17484 improving the quality of code that depends on this test.
17486 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
17487 over both visible and private declarations to remove them from tree,
17488 and mark subprograms declared in package as eliminated, to prevent
17489 spurious use in subsequent compilation of generic units in the context.
17491 * exp_util.ads: Minor cleanup in variable names
17493 * sem_eval.ads, sem_eval.adb: Minor reformatting
17494 (Compile_Time_Known_Bounds): New function
17496 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17498 * exp_ch7.adb (Convert_View): Use base types of underlying types when
17499 determining whether an unchecked conversion is needed for the argument
17500 of an initialization call.
17502 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17504 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
17505 that appears in the instantiation rather than the internal subtype
17506 generated in the wrapper package, to avoid anomalies in gigi when the
17507 target is derived from a private type whose full view is an access type.
17509 2005-03-15 Robert Dewar <dewar@adacore.com>
17511 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
17513 Add documentation to replace the use of this flag
17514 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
17517 2005-03-15 Thomas Quinot <quinot@adacore.com>
17519 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
17520 here from exp_attr so it can be shared between exp_attr and exp_dist.
17521 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
17522 all TSS names, not a subset thereof, and the previous name introduced
17523 an unnecessarily confusion that a distinction might exist between
17524 "OK" TSS names and some "not OK" TSS names.
17526 2005-03-15 Doug Rupp <rupp@adacore.com>
17528 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
17531 2005-03-15 Pascal Obry <obry@adacore.com>
17532 Eric Botcazou <ebotcazou@adacore.com>
17536 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
17537 when IN_RTS. This is to work around a bootstrap path problem.
17539 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
17540 table and pass it to __gnat_install_SEH_handler().
17541 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
17543 * lang.opt: Fix specification of -fRTS=.
17545 2005-03-15 Doug Rupp <rupp@adacore.com>
17546 Bernard Banner <banner@adacore.com>
17547 Vincent Celier <celier@adacore.com>
17548 Arnaud Charlet <charlet@adacore.com>
17551 This change works fine when gnatlib is built from the gcc directory,
17552 but does not work when using the libada Makefile, since GCC_FOR_TARGET
17553 is not passed to ada/Makefile.in, so more work is needed by a
17554 Makefile/configure expert.
17556 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
17557 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
17558 Setup gnatlink switch -M for x86_64 linux, as it is already setup
17560 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
17561 Run ranlib on libgccprefix.a
17562 Define PREFIX_OBJS for Darwin, to build libgccprefix.
17563 (ADA_INCLUDE_SRCS): Split Ada packages.
17565 2005-03-15 Robert Dewar <dewar@adacore.com>
17567 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
17569 * impunit.adb: Add GNAT.UTF_32
17571 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
17573 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
17574 now uses GNAT.UTF_32).
17576 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
17577 capabilities for categorizing characters using Unicode categories
17579 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17581 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
17582 instantiation that has been rewritten as a package body, retrieve spec
17583 to generate proper name for implicit_with_clause.
17584 (Install_Parents): Recognize a parent that is an instantiation but has
17585 been rewritten as a package declaration during analysis.
17587 2005-03-15 Javier Miranda <miranda@adacore.com>
17588 Ed Schonberg <schonberg@adacore.com>
17590 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
17591 parameter reported some error we immediately return. This improves the
17592 behaviour of the frontend in case of errors.
17593 (Install_Parent, Remove_Parent): Introduce new flag
17594 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
17595 ancestor of a generic child unit, when the child is being instantiated.
17596 (Inline_Instance_Body): If we are compiling the private
17597 part or the body of a child unit, restore the proper visibility of the
17598 parents after compiling the instance body.
17600 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17601 Javier Miranda <miranda@adacore.com>
17604 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
17605 of a private type, in which case it is underlying_type that denotes
17606 the proper task. Also modified to use the new entity attribute
17607 that is directly available in the task type and task subtype entities
17608 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
17609 arrays when other dimensions than the first are constrained by
17610 discriminants of an enclosing record.
17611 (Insert_Explicit_Dereference): If the prefix is an indexed component or
17612 a combination of indexed and selected components, find ultimate entity
17613 and generate the appropriate reference for it, to suppress spurious
17615 (Note_Possible_Modification): If an entity name has no entity, return.
17616 (Is_Variable): A function call never denotes a variable.
17617 (Requires_Transient_Scope): For record types, recurse only on
17618 components, not on internal subtypes that may have been generated for
17619 constrained components.
17621 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17623 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
17624 Eliminated as candidates for resolution. Both efficient, and avoids
17625 anomalies with operators declared in deleted code.
17626 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
17627 expansion is disabled (as when compiling a generic) to prevent spurious
17628 warnings on prefixes of selected components.
17630 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17632 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
17633 attached to a list before checking whether it appears in the private
17634 declarations of the current package.
17635 (Make_Inequality_Operator): Insert declaration in proper declarative
17636 list rather than just setting the Parent field, so that
17637 Is_Private_Declaration can handle it properly.
17639 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17641 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
17642 a renaming a body, check that the renamed subprogram in not intrinsic.
17643 (Find_Direct_Name): If several use_visible entities hide
17644 each other, and the context is a predefined file compiled through
17645 rtsfind, keep only the entity that comes from a predefined file.
17647 2005-03-15 Geert Bosch <bosch@adacore.com>
17649 * s-fatgen.adb (Valid): Extend special exceptions to account for long
17650 long float padding to also cover AMD64 and IA64.
17652 2005-03-15 Gary Dismukes <dismukes@adacore.com>
17654 * s-imgwch.adb: Add with and use of Interfaces.
17655 (Img_Wide_Character): Change type of Val to Unsigned_16.
17656 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
17658 2005-03-15 Matthew Gingell <gingell@adacore.com>
17660 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
17662 2005-03-15 Robert Dewar <dewar@adacore.com>
17664 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
17666 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
17668 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
17670 2005-03-15 Robert Dewar <dewar@adacore.com>
17672 * s-bitops.adb, s-bitops.ads,
17673 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
17674 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
17675 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
17676 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
17677 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
17678 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
17679 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
17680 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
17683 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
17685 * utils2.c (build_binary_op): Fix typo.
17687 2005-03-15 Doug Rupp <rupp@adacore.com>
17689 * s-crtl.ads (popen,pclose): New imports.
17691 2005-03-15 Cyrille Comar <comar@adacore.com>
17693 * comperr.adb (Compiler_Abort): remove references to obsolete
17694 procedures in the bug boxes for various GNAT builds.
17696 2005-03-15 Vincent Celier <celier@adacore.com>
17698 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
17700 2005-03-15 Geert Bosch <bosch@adacore.com>
17701 Arnaud Charlet <charlet@adacore.com>
17702 Robert Dewar <dewar@adacore.com>
17703 Cyrille Comar <comar@adacore.com>
17704 Sergey Rybin <rybin@adacore.com>
17706 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
17707 too specific and long-winded to be appropriate for the GNAT User's
17709 Warn about use of GCC switches not documented in the GNAT User's Guide,
17710 as these may cause generated code to not conform to Ada semantics.
17711 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
17712 Add documentation for -gnat95 and -gnat05 switches
17713 Remove paragraph documenting obsolete way to refer to third party
17715 Add a few references to Ada_05 that were missing.
17716 Update documentation on -gnatZ/-gnatL.
17717 Document limitation when using -m64 under Solaris.
17718 Change the "Name Casing" subsection of the pretty-printer section
17719 according to the changes in the dictionary processing.
17721 * gnat_rm.texi: Document the Ada_05 pragma.
17722 Section on record representation clauses describes the new more
17723 relaxed rules about placement of large packed bit array components.
17724 Add documentation of GNAT.UTF_32
17726 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
17728 * misc.c (gnat_post_options): Turn off structural
17731 2005-03-08 Laurent Guerby <laurent@guerby.net>
17733 * system-linux-sparc.ads: Fix typo in previous commit.
17735 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
17736 Laurent Guerby <laurent@guerby.net>
17739 * system-linux-sparc.ads: New.
17740 * Makefile.in: Add sparc linux entry.
17742 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
17744 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
17745 parameters as unused.
17747 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
17748 Partial merge from libada-gnattools-branch:
17750 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
17751 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
17752 into code in gnattools/Makefile.in. Remove direct dependencies on
17753 stamp-tools by tools clauses.
17754 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
17755 * config-lang.in: Add gnattools to $lang_dirs.
17757 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
17760 * utils.c (gnat_type_for_mode): Return null instead of ICE because
17761 we asked for an unknown mode.
17763 2005-02-12 Richard Henderson <rth@redhat.com>
17765 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
17766 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
17768 2005-02-10 Andreas Jaeger <aj@suse.de>
17770 * init.c (__gnat_initialize): Mark parameter as unused.
17772 2005-02-09 Doug Rupp <rupp@adacore.com>
17774 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
17775 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
17777 2005-02-09 Doug Rupp <rupp@adacore.com>
17779 * gnatchop.adb (dup, dup2),
17780 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
17782 * gnatlbr.adb (mkdir),
17783 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
17785 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
17787 2005-02-09 Doug Rupp <rupp@adacore.com>
17789 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
17791 2005-02-09 Robert Dewar <dewar@adacore.com>
17792 Thomas Quinot <quinot@adacore.com>
17793 Javier Miranda <miranda@adacore.com>
17794 Pascal Obry <obry@adacore.com>
17795 Ed Schonberg <schonberg@adacore.com>
17796 Doug Rupp <rupp@adacore.com>
17797 Gary Dismukes <dismukes@adacore.com>
17798 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17800 * g-zstspl.ads: New file.
17802 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
17804 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
17806 Add definition of Wide_Wide_Space for AI-285
17808 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
17809 interface (to support Ada 95 and Ada 2005 units).
17810 Add Unbounded_IO files
17811 Add entries for Wide_Wide packages for AI-285
17812 Add list of containers packages to Ada 2005 unit list
17814 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
17815 support new Unbounded_IO package cleanly.
17817 * g-utf_32.ads, g-utf_32.adb: New files.
17819 * Makefile.rtl: Add entry for g-utf_32
17820 Add new files for Unbounded_IO
17821 Adjust make file for new AI-285 wide wide packages
17822 Add AI-302 containers to the run time.
17824 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
17825 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
17826 subprograms for AI-301.
17828 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
17830 * a-stunau.ads: Minor comment correction
17832 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
17834 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
17835 (Check_RPC): Update to match changes in expanded code.
17836 Clean up unused entity.
17838 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
17839 was not taken into account.
17840 This includes proper initialization with Normalize_Scalars.
17841 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
17842 normalize scalars cases (particularly the latter) to do a better job
17843 of finding invalid representations.
17845 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
17847 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
17850 * exp_dist.adb: Add support for wide wide character type
17851 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
17852 private part, generate stub bodies at the end of the private part,
17853 not the visible part.
17854 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
17856 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
17857 generic wrapper to execute final processing after completing the
17858 expansion of the RPC receiver for an RACW.
17860 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
17861 packages and attributes.
17862 (Preset_Names): Addition of the new reserved words of Ada 2005,
17863 that is interface, overriding and synchronized.
17864 (Get_Pragma_Id): Give support to the use of the new reserved word
17865 "interface" as a pragma name.
17866 (Is_Pragma_Name): Give support to the use of the new reserved word
17867 "interface" as a pragma name.
17868 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
17869 attribute implementation.
17871 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
17872 checks to entities that are output parameters of Asm operations.
17873 Handle the Stream_Size attribute.
17874 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
17876 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
17878 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
17879 for second parameter being 0.0.
17880 Add support for wide wide character type.
17881 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
17883 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
17884 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
17885 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
17886 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
17887 for wide wide character cases.
17889 * cstand.adb: Create entities for Wide_Wide_Character and
17892 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
17893 accordance with AI-258.
17894 Add new declarations for 16/32 bit C character types (Part of AI285)
17896 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
17897 (Obsolescent_Warning): New field
17898 (Rep_Clause): New local subprogram used to share code. Returns the rep
17899 clause for which the name is given in parameter.
17900 (Has_Stream_Size_Clause): New routine.
17901 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
17902 (Address_Clause): Implementation is now using Rep_Clause.
17903 (Alignment_Clause): Idem.
17904 (Size_Clause): Idem.
17906 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
17907 entity in non-Ada 2005 mode and generate warning.
17909 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
17910 (Prag): Code cleanup. Remove old gnat pragma "overriding"
17912 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
17913 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
17914 on the named unit if the pragma is not in the current compilation unit,
17915 so that elaboration calls in the current unit can set up an elaboration
17916 dependency on the named unit, as needed.
17917 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
17918 subprogram as well as for subprograms declared within a package.
17919 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
17922 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
17923 to z) to avoid some instances of duplication for Wide_Wide packages.
17925 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
17928 * scn.adb: Char_Literal_Value field is now a Uint
17930 * scng.adb: Significant rewrite to handle new Ada 2005 features
17931 allowing wide and wide wide characters in program text, e.g. for
17932 identifiers, as described in AI-285.
17933 (Set_Reserved): New procedure, makes setting up keywords cleaner.
17934 (Initialize_Scanner): Register the new reserved words of Ada 2005.
17935 (Scan): Give support to the new reserved words.
17937 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
17938 warning notifying that interface, overriding, and synchronized are
17939 new reserved words.
17940 (P_Pragma): Allow the use of the new reserved word "interface" as
17943 * gnatls.adb, gnatbind.adb,
17944 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
17945 identifiers named "interface" to "SAL_Interface".
17947 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
17948 (Structured Exception handling).
17949 (Gen_Main_C): Idem.
17952 (Gen_Main_Ada): Set the default exit code if specified.
17953 (Gen_Main_C): Likewise.
17955 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
17956 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
17958 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
17961 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
17962 has a collision with the new Ada 2005 "interface" reserved word.
17964 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
17965 generate a warning notifying that interface, overriding, and
17966 synchronized are new reserved words.
17968 * scans.ads (Token_Type): Addition of the tokens corresponding to the
17969 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
17970 and Tok_Synchronized.
17972 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
17973 "dispatching" rather than "primitive" operations, since dispatching
17974 calls are now allowed to abstract formal subprograms (which are not
17976 Char_Literal_Value field is now a Uint
17977 (Resolve_Slice): If the prefix is an access to an unconstrained array,
17978 compute the actual subtype of the designated object to impose the proper
17980 (Resolve_Selected_Component): Do not insert an access check if the
17981 prefix is an access type: such a node is expanded into an explicit
17982 dereference, on which the access check is performed anyway. Removes
17983 expensive duplicate checks.
17984 (Resolve_Call): Use new flag Is_Obsolescent and field
17985 Obsolescent_Warning so that pragma Obsolescent works on library
17987 Add support for wide wide character type
17988 (Resolve_Allocator): Replace the error message on wrong null-exclusion
17989 value by a warning message.
17990 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
17991 as fixed-point, and one of the operands is non-static and universal, it
17992 can only be an illegal exponentiation operation, in which case there is
17993 no real value to retrieve.
17995 * exp_strm.adb: Add support for wide wide character type
17996 (Build_Elementary_Input_Call): Compute the size of the stream element by
17997 querying the rep chain to find the Stream_Attribute attribute value.
17998 (Build_Elementary_Write_Call): Ditto.
18000 * sem_aggr.adb: Char_Literal_Value field is now a Uint
18001 Add support for wide wide character type
18002 Replace the error messages on wrong null-exclusion value by warnings
18003 as described in Ada 2005.
18004 (Resolve_Extension_Aggregate): Document the fact that the error
18005 message on class-wide expressions in extensions aggregates.
18007 * sem_case.adb: Add support for wide wide character type
18009 * sem_ch13.adb: Add support for wide wide character type
18010 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
18012 * sem_ch3.adb: Add support for wide wide character type
18013 (Process_Subtype): If constraint is illegal for the type, set Ekind of
18014 now-useless Itype, to prevent cascaded errors on a compiler built
18017 * sem_ch8.adb: Add with and use of Sem_Disp.
18018 (Analyze_Subprogram_Renaming): Replace unclean uses of
18019 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
18020 of Corresponding_Spec to Empty).
18021 (Attribute_Renaming): Replace use of Corresponding_Spec with
18022 Corresponding_ Formal_Spec and simplify condition.
18023 (Use_One_Package): Check that scope of homonym of identifier is defined,
18024 before checking whether it is a wrapper package.
18025 Add support for wide wide character type
18027 * sem_eval.adb: Add support for wide wide character type.
18028 (Eval_Arithmetic_Op): Check for compile time known signed integer
18029 overflow in the non-static case.
18030 (Subtypes_Statically_Match): A formal scalar type and its base type do
18031 not statically match.
18033 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
18034 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
18036 (Unit_Declaration_Node): Ditto.
18037 (Is_Variable_Prefix): For the case of an indexed component whose prefix
18038 has a packed array type, the prefix has been rewritten into a type
18039 conversion. Determine variable-ness from the converted expression.
18040 Handle wide wide character cases.
18042 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
18044 * stringt.ads, stringt.adb: Handle full UTF-32 range.
18045 Remove ["0A"] from comment, since it can look like a line terminator.
18046 Currently we don't permit this, but this is under discussion by the
18047 ARG, and it is easy enough to use a different example.
18049 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
18050 handling UTF-32 encoding for wide wide character.
18051 Implement new brackets coding ["hhhhhhhh"]
18052 Add UTF-8 encodings for full UTF-32 range
18054 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
18056 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
18057 bit range Add full UTF-32 support.
18058 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
18059 notify that constraint error will be raised at run-time
18060 because a null value is assigned to a null-excluding object.
18061 Remove some obsolete declarations and make Char_Code
18064 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
18065 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
18066 Rcheck subprograms.
18068 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
18069 wrong null-exclusion value by a warning message.
18070 (Enable_Range_Check): Do range check if the prefix is an
18071 explicit dereference whose designated object is an unconstrained array.
18072 Current algorithm for removing duplicate checks is over-eager in this
18075 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
18076 null-exclusion value by a warning message
18078 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
18079 completely. Add support for Uint2 field
18081 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
18082 exp_prag.adb: Char_Literal_Value field is now a Uint.
18084 * exp_util.adb (Insert_Actions): Replace
18085 N_Formal_Subprogram_Declaration by
18086 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
18087 Char_Literal_Value field is now a Uint.
18089 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
18090 defined for subprogram renaming declarations. When set, the field
18091 indicates the defining entity of a corresponding formal subprogram
18092 when the renaming corresponds to a formal subprogram association in an
18094 (Set_Corresponding_Formal_Spec): New procedure to return
18095 Corresponding_Formal_Spec field.
18096 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
18097 (which is now a subtype).
18098 Char_Literal_Value field is now a Uint
18100 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
18101 pointer to the base of the dispatch table.
18102 Minor changes to comments.
18103 (Controlling_Type): New function for determining the tagged type
18104 associated with a tagged primitive subprogram.
18105 (Expand_Dispatching_Call): Add support for a controlling actual that is
18106 directly a value of type Ada.Tag rather than a tagged object.
18108 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
18109 describing the new layout.
18110 (Dispatch_Table): The expander computes the actual array size, allocates
18111 the Dispatch_Table record accordingly, and generates code that displaces
18112 the base of the record after the Typeinfo_Ptr component. The access to
18113 these components is done by means of local functions.
18114 (Offset_To_Top): New function.
18115 (Typeinfo_Ptr): New function.
18116 (Get_TSD): Modified to access the new position of the TSD.
18117 (Set_TSD): Modified to save the TSD in its new position.
18119 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
18120 case of formal abstract subprograms. Add check and message for -gnat05.
18123 * sem_ch12.adb: Add with and use for Sem_Disp.
18124 (Analyze_Associations): Minor change from "=" to "in" for use of
18125 N_Formal_Subtype_Declaration (which is now a subtype).
18126 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
18127 N_Formal_Subtype_Declaration (which is now a subtype).
18128 (Analyze_Formal_Subprogram): Add handling for
18129 N_Formal_Abstract_Subprogram, marking the formal as abstract and
18130 dispatching, setting the controlling status of the formal parameters
18131 and result, and issuing an error if there is no controlling type for
18132 the formal subprogram.
18133 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
18134 which is an unclean use of that field, we set the new field
18135 Corresponding_Formal_Spec to make the formal subprogram available to
18136 processing in Analyze_Subprogram_Declaration.
18137 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
18138 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
18139 Constrained, so that it is is does not statically match its anonymous
18142 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
18143 abstract formal subprograms in error check for functions returning
18144 abstract types. Set scope of new designator for
18145 a parameterless subprogram, so that it is available when checking the
18146 body for nested subprograms, before full analysis of said body.
18147 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
18148 subprogram only if inner one comes from source.
18149 (Analyze_Function_Call): If the call is given in object notation, the
18150 analysis of the name rewrites the node and analyzes it with the proper
18151 argument list. After analyzing the name, if the call has been rewritten
18152 and the result type is set, no further analysis is needed.
18153 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
18154 mark in function specification, in a context where the formals are
18155 visible and hide outer homographs.
18157 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
18158 as the tagged type for the cases of abstract formal subprograms and
18159 renamings of those. Clean up spec comments.
18160 (Check_Dispatching_Context): Add error message to indicate "abstract
18161 procedure", covering the case of a call to a formal abstract procedure
18162 that has statically tagged operands.
18163 (Check_Dispatching_Call): Check for the case of an actual given by
18164 a tag-indeterminate function call whose type is an ancestor of the
18165 containing call's associated tagged type. This situation can occur
18166 for inherited primitives with function defaults. In this case we
18167 use the tagged type's tag directly as the controlling argument for
18169 (Expand_Call): Name change on call to Expand_Dispatch_Call.
18171 * sprint.adb (Sprint_Node_Actual): Split
18172 N_Formal_Subprogram_Declaration into two alternatives for the new
18173 cases N_Formal_Abstract_Subprogram_Declaration and
18174 N_Formal_Concrete_Subprogram_Declaration.
18175 Char_Literal_Value field is now a Uint.
18177 * trans.c: Get rid of junk Uint2 reference.
18178 Char_Literal_Value field is now a Uint.
18179 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
18180 (gigi): Correct third arg to gimplify_body.
18182 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
18183 (TYPE_LANG_FLAG_0): Check for record or union.
18185 * treepr.adb: Char_Literal_Value field is now a Uint
18187 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
18190 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
18191 Add full UTF-32 support
18192 Char_Code is now 32 bits
18194 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
18195 wide character UTF_32 line terminators.
18196 Initialize Main_Source_File to avoid error when no main
18199 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
18200 (Main_Source_File) when no main source has been loaded, to avoid
18203 2005-02-09 Robert Dewar <dewar@adacore.com>
18205 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
18206 Fix name of Set routine
18208 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
18211 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
18212 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
18215 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
18216 forms of Get_Line subprograms for AI-301.
18218 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
18219 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
18220 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
18221 a-stwima.ads: Minor reformatting.
18223 2005-02-09 Doug Rupp <rupp@adacore.com>
18224 Thomas Quinot <quinot@adacore.com>
18226 * adaint.c, adaint.h
18227 [VMS] (to_ptr32): New function.
18228 (MAYBE_TO_PTR32): New macro.
18229 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
18231 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
18232 [VMS] (#define fork()): Remove since unneccessary.
18233 (__gnat_set_close_on_exec): New routine to support
18234 GNAT.OS_Lib.Set_Close_On_Exec.
18236 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
18237 the parent side as close-on-exec so that they are not inherited by the
18240 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
18241 set or clear the FD_CLOEXEC flag on a file descriptor.
18243 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
18244 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18248 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
18249 on the field if Pragma Component_Alignment (Storage_Unit).
18250 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
18251 side-effects as if it were a constant; also make SAVE_EXPR to protect
18253 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
18255 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
18256 (components_to_record): Test it.
18257 Fix improper usage of REFERENCE_CLASS_P.
18259 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
18262 * utils2.c: Minor reformatting.
18264 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
18265 handle other cases like RECORD_TYPE.
18267 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
18269 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18271 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
18272 component of an array of arrays in an assignment context, and the
18273 aggregate has component associations that require sliding on
18274 assignment, force reanalysis of the aggregate to generate a temporary
18275 before the assignment.
18276 (Must_Slide): Make global to the package, for use in Gen_Assign.
18278 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18280 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
18281 unchecked union with no inferable discriminants, return a
18282 Raise_Program_Error node, rather than inserting it at the point the
18284 (Expand_Record_Equality, Component_Equality): Handle properly the case
18285 where some subcomponent is an unchecked union whose generated equality
18286 code raises program error.
18288 2005-02-09 Doug Rupp <rupp@adacore.com>
18290 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
18291 [VMS] (#define exit hack): Remove.
18293 2005-02-09 Pascal Obry <obry@adacore.com>
18294 Arnaud Charlet <charlet@adacore.com>
18296 * init.c (__gnat_initialize): Add a new parameter eh which contains the
18297 address of the exception registration. The Win32 version of this
18298 routine calls __gnat_install_SEH_handler() to initialize the SEH
18299 (Structured Exception Handling) handler.
18300 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
18301 SEH (Structured Exception Handling) now.
18302 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
18303 (__gnat_initialize for ppc-vxworks): Adjust comments and the
18304 preprocessor condition protecting the call to the extra eh setup
18305 subprogram, which is only available for the ppc target.
18306 (__gnat_clear_exception_count): replaced reference to
18307 variable taskIdCurrent by call to taskIdSelf(), cleaner.
18309 * seh_init.c: New file.
18311 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
18312 (GNATBIND_OBJS): Idem.
18314 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
18315 routine takes a new parameter (a pointer to the exception registration
18316 for the SEH (Structured Exception Handling) support.
18318 * raise.h: (__gnat_install_SEH_handler): New prototype.
18319 Update copyright notice.
18321 * s-tassta.adb (Task_Wrapper): Declare the exception registration
18322 record and initialize it by calling __gnat_install_SEH_handler.
18324 2005-02-09 Vincent Celier <celier@adacore.com>
18326 * make.adb (Gnatmake): Do not fail when the main project has no object
18329 2005-02-09 Doug Rupp <rupp@adacore.com>
18331 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
18332 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
18333 [VMS]: Add translations for g-enblsp.adb.
18335 * s-asthan-vms.adb: Removed.
18336 * s-asthan-vms-alpha.adb: Added.
18338 2005-02-09 Pascal Obry <obry@adacore.com>
18340 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
18341 (LIBGNAT_OBJS): Add seh_init.o.
18343 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18346 * Makefile.in: Link all gnat tools with -static-libgcc, since
18347 -shared-libgcc is now used by default on some systems (e.g. linux with
18349 Remove references to Makefile.prolog/generic, no longer used.
18351 2005-02-09 Vincent Celier <celier@adacore.com>
18353 * prj-makr.adb (Process_Directory): Put file name in canonical case
18354 before matching against the patterns.
18355 If gnatname has been invoked as <prefix>-gnatname
18356 then invoke the compiler as <prefix>-gcc, not just "gcc".
18358 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18360 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
18361 with expansion disabled. The actual subtype is needed among other
18362 places when the selected component appears in the context of a loop
18363 bound, and denotes a packed array.
18364 (Operator_Check): Always use the first subtype in the
18365 error message, to avoid the appearance of internal base types.
18366 (Transform_Object_Operation): Copy each actual in full
18367 to the parameter associations of the constructed call, rather than
18368 using the shallow copy mechanism of New_Copy_List. This ensures that
18369 the chaining of named associations is done properly.
18370 (Complete_Object_Operation): Rewrite node, rather than
18371 replacing it, so that we can trace back to the original selected
18374 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
18375 and calls that use object notation, if the called function is not
18376 declared in a withed unit, place the elaboration constraint on the
18377 unit in the context that makes the function accessible.
18378 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
18379 imposes an elaboration constraint between two packages.
18381 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18383 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
18384 views of a private type after handling its private dependents, to
18385 maintain proper stack discipline between entry and exit from the
18388 2005-02-09 Cyrille Comar <comar@adacore.com>
18390 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
18391 Minor reformatting.
18393 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18395 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
18396 fields for foreign threads.
18398 2005-02-09 Doug Rupp <rupp@adacore.com>
18400 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
18401 recursion warnings when compiled with -gnatdm.
18403 2005-02-09 Robert Dewar <dewar@adacore.com>
18405 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
18406 Slight fix to documentation of -gnaty with no parameters
18408 * xr_tabls.ads: Add ??? comment for missing overall comment
18410 * xsinfo.adb: Make default file name be sinfo.h, since this is what
18411 we now use by default.
18413 * xsnames.adb: Adjust end of file test to look for five space followed
18414 by '#' instead of six spaces. The format of xsnames.adb was modified
18415 in the last update.
18417 * a-numeri.ads: Add reference to AI-388 for greek letter pi
18420 * clean.adb: Minor reformatting.
18422 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
18423 gnatname.adb: Minor reformatting
18424 Add 2005 to copyright output when utility is run
18426 * csets.adb: Eliminate obsolete comment
18428 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
18431 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
18433 2005-02-09 Sergey Rybin <rybin@adacore.com>
18435 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
18436 the difference between compact and incompact layout and add the record
18437 representation clause to the example illustrating different layouts.
18438 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
18439 component clauses").
18441 2005-02-09 Florian Villoing <villoing@adacore.com>
18443 * gnat_ugn.texi: Fix typos.
18444 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
18446 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
18447 in the generated documentation.
18449 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18451 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
18453 Update linker wrapper when linking with non GNU C++.
18455 2005-02-09 Pascal Obry <obry@adacore.com>
18458 Document the procedure to debug the DllMain routine on Windows.
18459 Add note about -funwind-tables and mixed Ada and C/C++ programming in
18461 Document new BIND qualifer /RETURN_CODES=VMS.
18463 2005-02-09 Ben Brosgol <brosgol@adacore.com>
18465 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
18466 Edited gnatmetric chapter
18468 2005-02-09 Robert Dewar <dewar@adacore.com>
18471 Changes to document new wide wide character support
18473 Update documentation on Normalize_Scalars and Initialize_Scalars
18475 2005-02-09 Pascal Obry <obry@adacore.com>
18477 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
18479 2005-02-09 Jose Ruiz <ruiz@adacore.com>
18481 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
18482 from the VxWorks kernel) that is needed for getting the active
18483 priority of the different tasks.
18485 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
18486 Use a pragma Elaborate_Body in the spec file instead.
18487 Noticed by code reading.
18489 2005-02-09 Thomas Quinot <quinot@adacore.com>
18491 * exp_util.ads: Minor correction in comment.
18493 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18495 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
18496 since this procedure is now too complex to be worth inlining.
18498 2005-02-09 Richard Henderson <rth@redhat.com>
18500 * utils.c (gnat_define_builtin): Remove.
18501 (gnat_install_builtins): Use build_common_builtin_nodes.
18503 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18505 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
18506 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
18507 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
18508 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
18509 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
18510 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
18511 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
18512 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
18513 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
18514 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
18515 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
18516 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
18517 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
18518 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
18519 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
18520 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
18521 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
18522 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
18523 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
18524 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
18525 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
18526 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
18527 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
18528 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
18529 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
18530 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
18531 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
18532 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
18533 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
18534 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
18535 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
18536 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
18537 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
18538 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
18541 2005-01-27 Laurent GUERBY <laurent@guerby.net>
18543 * Makefile.in: Fix a-intnam.ads from previous commit,
18544 add 2005 to copyright.
18545 * a-intman-rtems.ads: Renamed to...
18546 * a-intnam-rtems.ads:
18548 2005-01-27 Laurent GUERBY <laurent@guerby.net>
18550 * Makefile.in: Rename GNAT RTEMS specific files.
18551 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
18552 5rosinte.ads, 5rparame.adb: Replaced by files below.
18553 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
18554 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
18556 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
18557 Laurent GUERBY <laurent@guerby.net>
18560 * 5rosinte.ads: Add No_Key constant.
18561 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
18562 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
18564 2005-01-26 Laurent GUERBY <laurent@guerby.net>
18567 * i-cobol.adb (Valid_Numeric): Handle zero length case.
18569 2005-01-20 Richard Henderson <rth@redhat.com>
18571 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
18572 a-intnam-linux.ads and system-linux-alpha.ads.
18573 * a-intnam-linux-alpha.ads: Remove file.
18574 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
18575 * system-linux-alpha.ads: New file.
18577 2005-01-18 Jakub Jelinek <jakub@redhat.com>
18580 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
18581 set to the new string.
18583 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
18585 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
18588 2005-01-18 Richard Henderson <rth@redhat.com>
18590 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
18591 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
18593 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
18595 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
18597 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
18598 (GCC_ZCX_Support): Likewise.
18600 2005-01-11 Bastian Blank <waldi@debian.org>
18602 * system-linux-s390.ads: Define Preallocated_Stacks.
18603 * system-linux-s390x.ads: Likewise.
18605 2005-01-04 Arnaud Charlet <charlet@adacore.com>
18607 * gnat_ugn.texi: Fix texi errors with null variables.
18609 2005-01-03 Thomas Quinot <quinot@adacore.com>
18611 * gen-soccon.c: New utility program to generate g-soccon.ads
18614 * socket.c, gsocket.h: Split inclusion of system header files into a
18615 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
18617 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
18618 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
18619 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
18620 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
18621 should not be edited by hand anymore, but should be regenerated using
18624 2005-01-03 Robert Dewar <dewar@adacore.com>
18625 Ed Schonberg <schonberg@adacore.com>
18626 Vincent Celier <celier@adacore.com>
18628 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
18629 on/off, since this is an obsolescent feature, for which we now generate
18632 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
18633 warning mode is set and obsolescent usage of this attribute occurs.
18634 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
18635 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
18636 predates, and partly motivates, the adoption of the AI.
18637 Implement new Ada 2005 attribute Mod
18639 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
18642 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
18644 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
18645 pragma restrictions.
18646 New entry for Ada 2005 attribute Mod.
18649 Add recognition of new pragma Restrictions No_Dependence
18650 Recognize restriction No_Obsolescent_Features at parse time
18652 * bcheck.adb: Add circuitry for checking for consistency of
18653 No_Dependence restrictions.
18655 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
18658 * restrict.ads, restrict.adb: Add subprograms to deal with
18659 No_Dependence restrictions.
18661 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
18664 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
18665 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
18667 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
18668 dummy parameter to scng instantiation.
18669 Needed for new restriction No_Obsolescent_Features
18671 * scn.adb: (Obsolescent_Check): New procedure
18672 Needed for new restriction No_Obsolescent_Features
18674 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
18675 specified by AI-285, needed for implementation of AI-388 (adding greek
18676 pi to Ada.Numerics).
18677 Add new generic formal to scng, needed for new restriction
18678 No_Obsolescent_Features.
18680 * s-rident.ads: Add new restriction No_Obsolescent_Features.
18682 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
18683 restrictions lines.
18684 (Scan_ALI): When finding an unexpected character on an R line, raise
18685 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
18686 Ignore_Errors is True, default restrictions are set and scanning of the
18687 ALI file continues with the next line. Also, when Bad_R_Line is raised
18688 and Ignore_Errors is True, skip to the end of le line.
18690 * sem_ch10.adb: Check that explicit with's do not violate
18691 No_Dependence restrictions.
18692 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
18693 illegal context clauses containing child units of instance.
18695 * sem_prag.adb: Processing and checking for new No_Dependence
18697 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
18698 analyze and check the External argument.
18700 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
18702 2005-01-03 Robert Dewar <dewar@adacore.com>
18704 * atree.adb: Add a fifth component to entities
18705 This allows us to add 32 flags and four new fields
18707 * atree.ads: Add a fifth component to entities
18708 This allows us to add 32 flags and four new fields
18710 * einfo.ads, einfo.adb: Document new fields and new flags now available
18711 Add routines for printing new fields
18713 * treepr.adb: Call routines to print out additional fields if present
18715 2005-01-03 Arnaud Charlet <charlet@adacore.com>
18717 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
18718 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
18720 * Makefile.in: Add support to build shared Ada libraries on solaris x86
18721 Remove gpr2make, replaced by gprmake.
18722 Remove references to gnatmem and libaddr2line.
18723 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
18724 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
18725 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
18726 a-numaux-darwin.ads and a-numaux-darwin.adb
18727 Enable mlib-tgt-lynxos.adb on lynxos.
18729 * Make-lang.in: Remove rules for gpr2make.
18730 When generating sdefault.adb, do not call Relocate_Path
18731 on S3 for function Target_Name, as it is not a path.
18732 Remove references to gnatmem and libaddr2line.
18734 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
18737 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
18739 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
18740 address is incompatible with its base type alignment constraints when
18741 this can be decided statically.
18743 2005-01-03 Olivier Hainque <hainque@adacore.com>
18745 * decl.c (compatible_signatures_p): New function. The intended purpose
18746 is to check if two function signatures for a call-site and a callee are
18747 compatible enough for the call to be valid. The underlying purpose is
18748 to check if a call to a mapped builtin is using the right interface.
18749 The current code actually does not check antyhing - this a placeholder
18750 for future refinements.
18751 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
18752 builtin calls for convention Intrinsic.
18754 * gigi.h (builtin_decl_for): Declare (new function).
18756 * utils.c (gnat_install_builtins): Install the target specific builtins.
18757 (builtin_decl_for): New function, provide a dummy body for now.
18759 2005-01-03 Geert Bosch <bosch@adacore.com>
18761 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
18762 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
18763 (Pred): Implement in terms of Succ.
18765 * trans.c (convert_with_check): Reimplement conversion of float to
18768 2005-01-03 Ed Schonberg <schonberg@adacore.com>
18769 Vincent Celier <celier@adacore.com>
18771 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
18772 bounds can be negative, and must be declared Int, not Nat.
18774 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
18775 array is checked after using the index in the array.
18777 * makegpr.adb (Add_Switches): Check if there is a package for the
18778 processor. If there is no package, do not look for switches.
18780 2005-01-03 Ed Schonberg <schonberg@adacore.com>
18782 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
18783 generation of predefined stream operations (specs and bodies) should
18784 proceed. Under various restrictions these subprograms must not be
18787 2005-01-03 Thomas Quinot <quinot@adacore.com>
18790 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
18791 amount of PCS-specific code in RACW stubs generation.
18792 (Copy_Specification): Set Etype on copied formal parameter entities, as
18793 this information is needed for PolyORB stubs generation.
18794 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
18795 variable Dynamic_Async.
18796 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
18797 (Build_RPC_Receiver_Specification): Make generic again, as recent
18798 changes have allowed RPC receivers to have the same profile for both
18799 variants of the PCS.
18800 Reorganise RPC receiver generation to reduce differences between the
18801 structure of GARLIC and PolyORB RPC receivers.
18802 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
18804 Simplify elaboration code for RCI packages.
18806 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
18807 generation to reduce differences between the structure of GARLIC and
18808 PolyORB RPC receivers.
18810 * s-stratt.adb: Fix typo in comment.
18812 2005-01-03 Thomas Quinot <quinot@adacore.com>
18814 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
18815 copied from Make_Init_Call).
18817 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
18818 reads and assignments on a temporary variable declared with appropriate
18821 2005-01-03 Robert Dewar <dewar@adacore.com>
18823 * i-c.adb (To_C): Raise CE if string is null and Append_Null
18825 2005-01-03 Robert Dewar <dewar@adacore.com>
18827 * i-cstrin.adb (Update): Do not append a null in form called with a
18828 String. This avoids unintended behavior.
18830 2005-01-03 Arnaud Charlet <charlet@adacore.com>
18833 * init.c: Fix warnings on Free BSD section.
18835 2005-01-03 Arnaud Charlet <charlet@adacore.com>
18838 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
18841 2005-01-03 Vincent Celier <celier@adacore.com>
18843 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
18844 libraries when Unique_Compile is True (-u switch).
18847 2005-01-03 Robert Dewar <dewar@adacore.com>
18849 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
18850 upper case letter or underscore after W, as allowed by spec.
18852 2005-01-03 Arnaud Charlet <charlet@adacore.com>
18854 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
18855 darwin port by using proper type definitions from header files.
18856 Use SIGTERM instead of SIGABRT for SIGADAABORT.
18858 2005-01-03 Robert Dewar <dewar@adacore.com>
18860 * par.adb: Enhance error message handling for configuration file
18863 2005-01-03 Robert Dewar <dewar@adacore.com>
18865 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
18866 removed during the previous update (test properly for case of dividing
18867 largest negative number by -1, which generates overflow).
18869 2005-01-03 Ed Schonberg <schonberg@adacore.com>
18870 Sergey Rybin <rybin@adacore.com>
18872 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
18873 to use as the defining identifier for a formal package.
18874 (Remove_Parent): If the instance takes place within (an instance of)
18875 a sibling, preserve private declarations of common parent.
18877 2005-01-03 Ed Schonberg <schonberg@adacore.com>
18879 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
18880 to determine whether one of the operands is a fixed-point type for
18881 which a user-defined multiplication or division operation might be
18884 * sem_res.adb (Valid_Conversion): The legality rules for conversions
18885 of access types are symmetric in Ada 2005: either designated type can
18888 2005-01-03 Vincent Celier <celier@adacore.com>
18890 * s-fileio.adb (Temp_File_Record): Change length of string component
18891 Name from L_tmpnam + 1 to max_path_len + 1.
18893 2005-01-03 Arnaud Charlet <charlet@adacore.com>
18895 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
18896 Self_Id.Deferral_Level = 0.
18897 (Do_Pending_Action): Move this function to the spec.
18899 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
18900 Do_Pending_Action explicitely when needed, in case we're using
18901 No_Abort restrictions.
18903 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
18904 deferral level since it will not get changed by the generated code.
18905 Keeping a default value of 1 would prevent some operations (e.g.
18906 select or delay) to proceed successfully.
18908 2005-01-03 Ben Brosgol <brosgol@adacore.com>
18909 Robert Dewar <dewar@adacore.com>
18910 Cyrille Comar <comar@adacore.com>
18912 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
18913 porting guide chapter (vms version).
18914 Revised doc title (removed "for native platforms") and subtitle.
18915 Add discussion on warning flag for obsolescent features. First we
18916 note that it applies to obsolete GNAT features, which was previously
18917 omitted. Second we contrast the behavior with that of the new
18918 Ada 2005 AI-368 restriction No_Obsolescent_Features.
18919 Preliminary rewriting of GNAT & libraries chapter in order to take
18920 into account default project locations & new project manager
18923 2005-01-03 Robert Dewar <dewar@adacore.com>
18925 * cstand.adb (Create_Operators): Clean up format and documentation of
18926 unary and binary operator result tables. No change in code, just
18927 reformatting and addition of comments.
18929 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
18930 sem_ch2.adb: Minor reformatting
18932 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
18933 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
18934 comments for Tree_Read and Tree_Write.
18936 2005-01-03 Pascal Obry <obry@adacore.com>
18938 * exp_attr.ads: Minor reformatting.
18940 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
18942 * comperr.adb (Compiler_Abort): Add specialized message for GAP
18945 2005-01-03 Ed Schonberg <schonberg@adacore.com>
18947 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
18948 whether the ancestor type is private, as may be the case with nested
18951 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
18954 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
18956 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
18958 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
18959 * utils2.c (build_unary_op): Likewise.
18961 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18963 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
18965 2004-12-19 Richard Henderson <rth@redhat.com>
18967 * trans.c (gigi): Update gimplify_body call.
18969 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
18971 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
18973 2004-12-07 Ed Falis <falis@adacore.com>
18975 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
18976 current task being suspended.
18978 * init.c (__gnat_clear_exception): added to reset VxWorks exception
18980 (__gnat_map_signal): removed test for current task being suspended.
18982 2004-12-07 Gary Dismukes <dismukes@adacore.com>
18984 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
18985 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
18986 targets (such as AAMP).
18988 2004-12-07 Ed Schonberg <schonberg@adacore.com>
18990 * atree.adb (Visit_Itype): Create a new name for the generated itype,
18991 because the back-end may otherwise treat it as a redefinition of the
18994 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
18996 * back_end.adb (Scan_Back_End_Switches): Accept --param.
18998 * lang-specs.h: Accept --param.
19000 2004-12-07 Vincent Celier <celier@adacore.com>
19002 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
19003 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
19004 Current_Body_Suffix => Ada_Body_Suffix).
19005 Take into account Externally_Built attribute.
19007 * clean.adb (In_Extension_Chain): Always return False when one of the
19008 parameter is No_Project.
19009 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
19010 Ada_Language_Index).
19011 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
19012 Process_Languages for procedure Parse).
19014 * gnatcmd.adb (Carg_Switches): New table.
19015 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
19016 Adapt to name changes in package Prj (Current_Spec_Suffix =>
19017 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
19019 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
19020 Header_Num and function Hash are now declared in package Prj,
19023 * prj.adb (Suffix_Of): New function.
19024 (Set (Suffix)): New procedure.
19025 (Hash): One function moved from Prj.Com
19026 (Is_Present, Language_Processing_Data_Of): New functions
19027 (Set): Two new procedures
19028 (Add_Language_Name, Display_Language_Name): New procedures
19030 * prj.ads: (Suffix_Of): New function
19031 (Set (Suffix)): New procedure
19032 Add several types and tables for multi-language support.
19033 (Header_Num): Type moved from Prj.Com
19034 (Hash): Two functions moved from Prj.Com
19035 (Is_Present, Language_Processing_Data_Of): New functions
19036 (Set): Two new procedures
19037 (Add_Language_Name, Display_Language_Name): New procedures
19038 (Naming): Component name changes:
19039 Current_Spec_Suffix => Ada_Spec_Suffix,
19040 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
19041 Impl_Suffixes, Supp_Suffixes.
19042 (Project_Data): New components: Externally_Built, Supp_Languages,
19043 First_Language_Processing, Supp_Language_Processing, Default_Linker,
19044 Default_Linker_Path.
19046 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
19047 new package Language_Processing with its attributes (Compiler_Driver,
19048 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
19049 Binder_Driver, Default_Linker).
19051 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
19052 (Header_Num): Type moved to package Prj
19054 * prj-env.adb: Adapt to name changes in package Prj
19055 (Current_Spec_Suffix => Ada_Spec_Suffix,
19056 Current_Body_Suffix => Ada_Body_Suffix).
19058 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
19059 default to the project path, except the "-" is one of the directories
19060 in env var ADA_PROJECT_PATH.
19061 (Current_Project_Path): Global variable, replacing Project_Path
19062 that was in the body of Prj.Part.
19063 (Project_Path): New function
19064 (Set_Project_Path): New procedure
19065 Initialize Current_Project_Path during elaboration of the package
19066 Remove dependency on Prj.Com, no longer needed
19068 * prj-ext.ads (Project_Path): New function
19069 (Set_Project_Path): New procedure
19071 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
19072 suffix is defined for language <lang>.
19073 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
19074 accessing directly the components of Naming.
19075 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
19076 Reorganise of this package.
19077 Break procedure Check in several procedures.
19079 * prj-nmsc.ads: Replace all procedures (Ada_Check,
19080 Other_Languages_Check and Language_Independent_Check) with a single
19083 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
19084 Process_Languages, no longer needed.
19086 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
19087 Current_Project_Path.
19088 Remove elaboration code, moved to the body of Prj.Ext
19089 Use new function Prj.Ext.Project_Path instead of old variable
19091 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
19092 When comparing with project paths on the stack, first put the resolved
19093 path in canonical case.
19094 (Parse_Single_Project): Set the path name of the project file in the
19095 tree to the normalized path.
19097 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
19098 parameter Process_Languages, no longer needed.
19099 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
19100 Other_Languages_Check.
19102 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
19103 to store the resolved canonical path of the project file.
19104 Remove dependency to Prj.Com, no longer needed
19106 * prj-util.adb: Adapt to name changes in package Prj
19107 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
19110 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
19111 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
19112 Externally_Built, Include_Option, Language_Processing.
19114 * makegpr.adb: Numerous changes due to changes in packages
19117 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
19118 default to the project path, except whe "-" is one of the directories
19119 in env var ADA_PROJECT_PATH.
19120 (Gnatls): In verbose mode, add the new section "Project Search Path:"
19122 2004-12-07 Robert Dewar <dewar@adacore.com>
19124 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
19126 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
19129 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
19130 flag. No longer needed now that we handle this in gnat1drv.adb.
19132 * repinfo.ads: Minor reformatting
19134 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19135 Olivier Hainque <hainque@adacore.com>
19136 Eric Botcazou <ebotcazou@adacore.com>
19138 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
19139 TYPE_SIZE_UNIT of result type if SIZE is not specified.
19140 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
19141 of a bitfield, which we know is useless and causes trouble because of
19142 alignment implications.
19144 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
19146 (process_attributes): Clear DECL_COMMON again when a section attribute
19148 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
19149 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
19150 (create_field_decl): Special case ADDRESSABLE negative to mean
19151 "no bitfield creation", to be used by make_aligning_type. Don't
19152 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
19153 fields claimed addressable still have to be bitfields. Use
19154 value_factor_p instead of a raw binop construction to check for the
19155 position's alignment.
19157 2004-12-07 Geert Bosch <bosch@adacore.com>
19159 * eval_fat.adb: Revert previous change.
19161 2004-12-07 Thomas Quinot <quinot@adacore.com>
19162 Ed Schonberg <schonberg@adacore.com>
19164 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
19165 with an implicit dereference as its prefix, use
19166 Insert_Explicit_Dereference instead of merely rewriting the prefix into
19167 an explicit dereference. This ensures that a reference to the original
19168 prefix is generated, if appropriate.
19170 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
19171 dereference is rewritten to an explicit one, generate a reference to
19172 the entity denoted by its prefix using the original prefix node, so
19173 the dereference can be properly recorded as a read of the denoted
19174 access value, if appropriate.
19176 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
19177 emitting 'assigned but never read' warning on a variable on the basis
19178 that it has an access type.
19179 (Check_References): Emit unreferenced warning when the scope is a
19182 2004-12-07 Robert Dewar <dewar@adacore.com>
19183 Ed Schonberg <schonberg@adacore.com>
19185 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
19188 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
19189 leaving call unchanged.
19190 This deals with the case where the pragma Import specified
19191 an external name, to be handled by the back end.
19193 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
19194 subprogram which is Imported with convention Intrinsic if an
19195 External_Name argument is specified.
19196 (Process_Import_Or_Interface): Properly diagnose link name argument.
19197 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
19198 with Sem_Ch6.Cannot_Inline.
19199 (Process_Inline): Provide separate warning for inapplicable inline
19201 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
19202 treatment is uniform on different targets.
19204 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19206 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
19207 construct is rewritten, preserve end label to permit source navigation.
19209 2004-12-07 Thomas Quinot <quinot@adacore.com>
19211 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
19212 Specific_Build_Stub_Target): New subprograms.
19213 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
19214 the PCS implementation used, using the above PCS-customized subprograms.
19215 Minor reformatting.
19216 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
19217 for generation of DSA code targeted to the PolyORB PCS.
19218 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
19219 implementation of the partition communication subsystem in ancillary
19221 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
19222 PolyORB_Support.Build_Stub_Type): New subrograms containing the
19223 PCS-specific part of Add_Stub_Type.
19224 (Insert_Partition_Check): Use runtime library function to perform
19227 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
19228 (RE_Same_Partition): New entity, from s-parint.
19230 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
19232 2004-12-07 Gary Dismukes <dismukes@adacore.com>
19234 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
19235 Output the copyright message on a separate line from the version
19238 2004-12-07 Joel Brobecker <brobecker@adacore.com>
19240 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
19241 compile-time warning.
19243 2004-12-07 Robert Dewar <dewar@adacore.com>
19245 * g-regpat.adb: (Match): Change a misuse of or to or else
19247 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19250 (Generate_Reference): Handle properly a reference to an entry formal,
19251 when an accept statement has a pragma Unreferenced for it.
19253 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
19254 and the Has_Pragma_Unreferenced flag for each formal before analyzing
19255 the body, to ensure that warnings are properly emitted for each accept
19256 statement of a given task entry.
19258 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
19260 * Makefile.in: Add support for foreign threads on VMS.
19262 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19264 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
19266 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
19268 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
19270 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
19272 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
19274 2004-12-07 Robert Dewar <dewar@adacore.com>
19276 * nlists.adb (Prepend_Debug): Remove parameters and nest within
19278 (Remove_Next_Debug): Same fix
19280 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
19281 maintain back pointers now, though we did not used to, and comments
19283 (Prepend): Remove pragma Inline.
19284 (Remove_Next): Same cleanup
19286 2004-12-07 Thomas Quinot <quinot@adacore.com>
19288 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
19289 used to record an implicit dereference as a read operation on its
19290 prefix when operating under -gnatc. Necessary to avoid spurious
19291 'variable assigned but never read' warnings in that mode.
19292 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
19293 is a non-overloaded implicit dereference, call the above subprogram to
19294 ensure proper recording of references.
19296 2004-12-07 Gary Dismukes <dismukes@adacore.com>
19298 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
19299 to be resolved later as part of Analyze_Iteration_Scheme's call to
19302 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19304 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
19305 prefix is not a scalar type, place error message on prefix, not on
19308 2004-12-07 Bernard Banner <banner@adacore.com>
19310 * vxaddr2line.adb: Add support for x86 vxworks
19312 2004-12-07 Thomas Quinot <quinot@adacore.com>
19314 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
19315 documentation of the behaviour of these functions when passed an IP
19316 address that has no record in the system hosts database and no reverse
19319 * cstand.adb, a-tags.ads: Fix typos in comment.
19321 2004-12-07 Robert Dewar <dewar@adacore.com>
19323 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
19324 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
19325 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
19326 s-poosiz.ads: Minor reformatting
19328 * make.adb: Minor reformatting
19329 Add some ??? comments asking for more comments
19331 * s-poosiz.adb: Minor reformatting
19332 Add comments on alignment requirement
19334 * sinfo.ads: Remove obsolete comment and fix typo.
19336 2004-12-07 Vincent Celier <celier@adacore.com>
19337 Sergey Rybin <rybin@adacore.com>
19339 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
19340 Files" with the new tool and package names.
19341 Reformatting to suppress most of the warnings for line too long
19342 Document the new section "Project Search Path:" in the output of
19344 Add gnatmetric section
19346 2004-12-07 Vincent Celier <celier@adacore.com>
19348 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
19349 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
19350 and -eit to -ept. Added qualifier
19351 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
19353 2004-11-27 Andreas Schwab <schwab@suse.de>
19355 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
19357 2004-11-25 Arnaud Charlet <charlet@adacore.com>
19359 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
19360 internal implementation unit GNAT.Sockets.Thin,
19361 as their usage for sockets is non-portable (using the read and write
19362 functions from the system runtime library is fine on UNIX but won't
19363 work under Windows).
19365 * mingw32.h: Update copyright notice.
19367 2004-11-25 Arnaud Charlet <charlet@adacore.com>
19369 * ada-tree.h: Minor reformatting of previous change to avoid lines
19370 longer than 79 characters.
19372 2004-11-25 Olivier Hainque <hainque@adacore.com>
19374 * tb-gcc.c: GCC infrastructure based implementation of
19377 2004-11-24 Steven Bosscher <stevenb@suse.de>
19379 * misc.c (gnat_post_options): Don't clear
19380 flag_inline_functions.
19382 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
19385 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
19388 2004-11-21 Andreas Jaeger <aj@suse.de>
19390 * stylesw.adb: Change Style_Check_Subprogram_Order to
19391 Style_Check_Order_Subprograms.
19393 2004-11-18 Arnaud Charlet <charlet@adacore.com>
19395 * adaint.h, adaint.c
19396 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
19398 Add also a cast to kill another warning.
19399 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
19400 parameter with the priority class of the parent process instead of
19401 always using the NORMAL_PRIORITY_CLASS.
19402 (__gnat_dup): New function.
19403 (__gnat_dup2): New function.
19404 (__gnat_is_symbolic_link): Enable the effective body of this
19405 function when __APPLE__ is defined.
19407 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
19410 2004-11-18 Olivier Hainque <hainque@adacore.com>
19412 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
19413 address of which may be used to represent "others" and "all others"
19414 choices in exception tables, instead of the current harcoded
19415 (void *)0 and (void *)1.
19416 (Setup_Exception): Do nothing in the GNAT SJLJ case.
19418 * gigi.h (others_decl, all_others_decl): New decls representing the
19419 new Others_Value and All_Others_Value objects.
19420 (struct attrib): Rename "arg" component as "args", since GCC expects a
19421 list of arguments in there.
19423 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
19424 corresponding objects exported by a-exexpr, instead of hardcoded dummy
19427 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
19428 others_decl and all_others_decl instead of hardcoded dummy addresses
19429 to represent "others" and "all others" choices, which is cleaner and
19430 more flexible with respect to the possible eh pointer encoding policies.
19432 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
19433 (process_attributes): Account for the naming change of the "args"
19434 attribute list entry component.
19436 * decl.c (build_attr_list): Rename into prepend_attributes to allow
19437 cumulating attributes for different entities into a single list.
19438 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
19439 attributes for the current entity and propagate first subtype
19440 attributes to other subtypes.
19441 <E_Procedure>: Attribute arguments are attr->args and not
19442 attr->arg any more.
19443 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
19444 argument provided, as this is what GCC expects. Use NULL_TREE instead
19447 2004-11-18 Robert Dewar <dewar@adacore.com>
19449 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
19450 Minor reformatting througout (including new function specs)
19451 Add ??? comments asking for clarification.
19453 2004-11-18 Thomas Quinot <quinot@adacore.com>
19455 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
19456 incomplete duplicate implementation of this subprogram from butil.
19458 2004-11-18 Thomas Quinot <quinot@adacore.com>
19460 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
19461 procedures factors the common processing for building an RPC receiver
19462 for an RCI package or an RACW type.
19463 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
19464 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
19465 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
19467 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
19469 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
19471 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
19472 distribution subprogram identifiers that are either subprogram numbers
19474 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
19475 string distribution identifiers assigned to a given subprogram.
19476 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
19477 (Add_RAS_Dereference_TSS): Add comments.
19478 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
19479 is not referenced yet because it will be used by the PolyORB DSA
19481 (Insert_Partition_Check): Remove fossile code.
19482 (First_RCI_Subprogram_Id): Document this constant.
19483 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
19485 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
19486 replaced with calls to Get_Library_Unit_Name_String. Previously there
19487 were several instances of the same code in different locations in the
19488 compiler; this checkin completes the replacement of all of these
19489 instances with calls to a common subprogram.
19490 Minor reformatting.
19492 * sem_dist.adb: Remove comment noting that RPC receiver generation
19493 should be disabled for RACWs that implement RASs.
19494 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
19496 * sem_util.ads, sem_util.adb (Has_Stream): New function
19497 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
19498 qualified name of a library unit into the name buffer.
19499 (Note_Possible_Modification): Generate a reference only
19500 if the context comes from source.
19502 * snames.ads (PCS_Names): New subtype corresponding to names of
19503 supported implementations of the Partition Communication Subsystem
19504 (PCS) (i.e. the runtime library support modules for the distributed
19507 2004-11-18 Robert Dewar <dewar@adacore.com>
19508 Ed Schonberg <schonberg@adacore.com>
19510 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
19511 (Has_Rep_Pragma): New function
19512 (Has_Attribute_Definition_Clause): New function
19513 (Record_Rep_Pragma): Moved here from sem_ch13.adb
19514 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
19516 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
19518 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
19519 (Expand_Pragma_Psect_Object): New procedure
19520 These procedures contain the revised and cleaned up processing for
19521 these two pragmas. This processing was formerly in Sem_Prag, but
19522 is more appropriately moved here. The cleanup involves making sure
19523 that the pragmas are properly attached to the tree, and that no
19524 nodes are improperly shared.
19526 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
19527 pragmas to Exp_Prag, which is more appropriate.
19528 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
19529 check for duplicates Remove use of Is_Psected flag, no longer needed.
19530 Use new Make_String_Literal function with string.
19532 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
19533 that are functions return universal values, that have to be converted
19534 to the context type.
19535 Use new Make_String_Literal function with string.
19536 (Get_Stream_Convert_Pragma): New function, replaces the use of
19537 Get_Rep_Pragma, which had to be kludged to work in this case.
19539 * freeze.adb: Use new Has_Rep_Pragma function
19541 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
19542 function with string.
19543 Use new Has_Rep_Pragma function.
19545 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
19548 2004-11-18 Robert Dewar <dewar@adacore.com>
19550 * errout.ads, errout.adb: (First_Sloc): New function
19552 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
19553 check (-gnatyx) instead of being included as a redundant construct
19556 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
19557 Style_Check_Order_Subprograms.
19559 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
19560 stylesw.adb: Add Style_Check_Xtra_Parens
19562 * usage.adb: Add line for -gnatyx (check extra parens)
19564 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
19566 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19567 Robert Dewar <dewar@adacore.com>
19569 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
19570 discriminant of a constrained subtype, analyze the copy of the
19571 corresponding constraint, because in some cases it may be only
19572 partially analyzed.
19573 Removes long-lived ??? comments.
19575 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
19576 handled controlled or secondary-stack expressions within the
19577 iteration_scheme of a loop.
19579 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
19580 bounds that may contain functions calls, to prevent memory leaks when
19581 the bound contains a call to a function that uses the secondary stack.
19582 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
19583 generate temporaries for loop bounds that might contain function calls
19584 that require secondary stack and/or finalization actions.
19586 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
19587 selected component and the selector is overloadable (not just a
19588 function) treat as function call, Analyze_Call will disambiguate if
19590 (Analyze_Selected_Component): Do not generate an actual subtype for the
19591 selected component if expansion is disabled. The actual subtype is only
19592 needed for constraint checks.
19593 (Analyze_Allocator): If restriction No_Streams is set, then do
19594 not permit objects to be declared of a stream type, or of a
19595 composite type containing a stream.
19597 * restrict.ads: Remove the a-stream entry from Unit_Array, since
19598 No_Streams no longer prohibits with'ing this package.
19600 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
19601 discriminants, but the parent base has unknown discriminants, there is
19602 no discriminant constraint to inherit. Such a discrepancy can arise
19603 when the actual for a formal type with unknown discriminants is a
19604 similar private type whose full view has discriminants.
19605 (Analyze_Object_Declaration): If restriction No_Streams is set, then
19606 do not permit objects to be declared of a stream type, or of a
19607 composite type containing a stream.
19609 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19611 * exp_dbug.ads: Update documentation to reflect simpler encoding for
19612 protected operations.
19614 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
19615 generated name, it complicates decoding in gdb and hinders debugging
19616 of protected operations.
19617 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
19618 flag for the protected entry barrier function.
19619 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
19620 flag for the protected entry function.
19622 2004-11-18 Nicolas Setton <setton@adacore.com>
19624 * expect.c: Define __unix__ when __APPLE__ is defined.
19626 * Makefile.in: Inform the value of the variable GMEM_LIB in the
19627 Darwin-specific section.
19629 * lang-specs.h: Change the placement of the %1 marker.
19630 Works around the fact that gcc adds -fPIC by default under Darwin.
19632 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19634 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
19635 type of the object with the packed array type, set the Analyzed flag
19636 on the object if it is an entity or simple indexed component, to avoid
19637 spurious type errors.
19639 2004-11-18 Gary Dismukes <dismukes@adacore.com>
19641 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
19642 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
19643 separate line from the version message.
19645 2004-11-18 Ed Falis <falis@adacore.com>
19647 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
19649 (init_float): Eliminate initialization of floating point status for
19650 AE653. The instructions have no effect for vThreads.
19652 2004-11-18 Vincent Celier <celier@adacore.com>
19654 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
19655 gnatbind is invoked with -shared.
19657 2004-11-18 Jose Ruiz <ruiz@adacore.com>
19659 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
19660 for Detect_Blocking which is redundant with the check done within the
19661 procedure Protected_Single_Entry_Call.
19662 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
19663 Detect_Blocking which is redundant with the check done within the
19664 procedure Protected_Single_Entry_Call.
19666 2004-11-18 Vincent Celier <celier@adacore.com>
19668 * makegpr.adb (Compile): Put the compiling switches (in package
19669 Compiler and on the command line) immediately after "-c", instead of
19670 at the end of the command line invocation of the compiler, when
19671 compiling a non-Ada file.
19672 (Build_Global_Archive): When there is no need to rebuild the archive,
19673 set Global_Archive_Exists, so that the archive is passed to the linker
19676 2004-11-18 Robert Dewar <dewar@adacore.com>
19677 Sergey Rybin <rybin@adacore.com>
19680 Remove extra paren check from list of checks for redundant constructs
19681 Add documentation of new -gnatyx style check (check extra parens)
19682 Remove paragraph about gnatelim debug options.
19684 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
19685 objects rather than forbidding dependencies on the package Ada.Streams.
19687 * sinfo.ads: Add ??? note that we should document pragmas passed to
19690 * g-expect.ads: Fix a few typos in the comments.
19692 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
19694 * misc.c (gnat_handle_option): Use %< and %> for quoting in
19697 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19699 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
19701 2004-11-07 Andreas Schwab <schwab@suse.de>
19703 * Makefile.in (install-gnatlib): Remove spurious hyphen.
19705 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
19708 * Makefile.in (darwin): Set soext to .dylib.
19710 2004-10-26 Vincent Celier <celier@gnat.com>
19711 Thomas Quinot <quinot@act-europe.fr>
19713 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
19714 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
19715 there is no use of GNAT.Sockets.Constants.
19716 Remove remaining pragma Import for C_Write
19717 Remove C_Read and C_Write from internal implementation unit
19718 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
19719 the read and write functions from the system runtime library is fine
19720 on UNIX but won't work under Windows).
19722 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
19723 (Check_Selector): Use C_Recv instead of C_Read.
19724 Selectors are the GNAT.Sockets abstraction to perform a select()
19725 call on a set of descriptors. To allow abortion of an ongoing
19726 select operation, some data is written to a dedicated socket that
19727 is always monitored.
19728 Under Windows, the write and read library functions cannot operate
19729 on sockets, so we need to use send and recv instead, which is portable
19730 across all supported platforms.
19732 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
19733 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
19734 (using the read and write functions from the system runtime library is
19735 fine on UNIX but won't work under Windows).
19737 2004-10-26 Nicolas Setton <setton@act-europe.fr>
19739 * mlib-tgt-darwin.adb: New file.
19741 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19742 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
19743 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
19744 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
19747 * Makefile.in: Add support for building shared libraries under Darwin.
19748 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
19749 the low level EH init subprogram to be called from __gnat_initialize.
19751 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
19752 indicates which options to pass to the archive indexer.
19754 * mlib-utl.adb: Add support for calling ranlib with additional
19755 options. This is needed for instance under Mac OS X.
19756 (Ranlib_Options): New global variable, used to store the potential
19757 options to pass to ranlib.
19758 (Ar): Use Ranlib_Options when spawning ranlib.
19759 (Initialize): Set the value of ranlib option.
19761 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
19763 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
19764 instead of 8K, to reflect the real potential needs for stack-checking
19767 2004-10-26 Pascal Obry <obry@gnat.com>
19769 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
19771 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
19772 Windows only the initial thread stack size can be set so it is good to
19773 start we a low stack size.
19774 The OS will adjust the size as needed.
19776 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
19777 Nicolas Setton <setton@act-europe.fr>
19779 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
19780 "__unix__" instead of "unix".
19781 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
19782 sections were just mistakenly ignored. The former is
19783 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
19784 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
19785 of hpux. This prevents an unwanted definition of the symbol
19786 convert_addresses in adaint.o.
19788 2004-10-26 Gary Dismukes <dismukes@gnat.com>
19790 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
19791 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
19793 2004-10-26 Cyrille Comar <comar@act-europe.fr>
19795 * a-filico.ads, a-filico.adb: fix incorrect header.
19797 2004-10-26 Javier Miranda <miranda@gnat.com>
19799 * a-ststio.ads: Fix typo in identifier
19801 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
19803 * sem_ch4.adb: Minor reformatting.
19805 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19807 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
19808 enabled, check the result of unary and binary operations when the
19809 expression is the right-hand side of an assignment.
19811 2004-10-26 Vincent Celier <celier@gnat.com>
19813 * clean.adb (Delete): Do not output warnings when in quiet output and
19814 not in verbose mode.
19815 (Force_Deletions): New Boolean flag, defaulted to False
19816 (Delete): Only delete a file if it is writable, and when
19817 Force_Deletions is True.
19818 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
19819 (Usage): Line for new switch -f
19820 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
19823 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
19825 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
19826 JM type only if its size matches that of the wrapper. When a size is
19827 prescribed and the field is not aliased, remove the wrapper of a JM
19828 type only if the size is not greater than that of the packed array.
19829 (gnat_to_gnu_entity): Change the extension of packed array wrappers
19832 2004-10-26 Geert Bosch <bosch@gnat.com>
19834 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
19835 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
19836 (Pred): Implement in terms of Succ.
19838 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19840 * exp_aggr.adb (Safe_Component): An aggregate component that is an
19841 unchecked conversion is safe for in-place use if the expression of the
19842 conversion is safe.
19843 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
19844 be expandable in place even if the aggregate does not come from source.
19845 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
19846 designated object of an allocator in place, rather than building it
19847 first on the stack. The previous scheme forces a full copy of the array,
19848 and may be altogether unsusable if the size of the array is too large
19849 for stack allocation.
19851 2004-10-26 Robert Dewar <dewar@gnat.com>
19853 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
19854 compares if the component is atomic.
19856 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
19857 array assignment if the component type is atomic.
19859 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19860 Eric Botcazou <ebotcazou@act-europe.fr>
19862 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
19863 is aliased and is a by_reference type, do not pass by copy.
19864 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
19865 detect whether the call is in the right side of an assignment or
19866 the expression of an object declaration. Recurse on component
19867 association within aggregates.
19868 Call it in the condition that determines whether the temporary is
19869 necessary for correct stack-checking.
19871 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
19873 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
19874 RACW_Type, used in the PolyORB version.
19875 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
19876 version and the GARLIC version.
19878 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
19879 Rename RCI_Info to RCI_Locator for better consistency between the
19880 GARLIC and PolyORB versions of the distributed systems annex.
19881 (DSA_Implementation_Name): This enumeration lists the possible
19882 implementations of the Partition Communication Subsystem for the
19883 Distributed Systems Annex (DSA). The three available implementations
19884 are the dummy stub implementation (No_DSA), and two versions based on
19885 two different distribution runtime libraries: GARLIC and PolyORB. Both
19886 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
19888 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
19891 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
19892 between the GARLIC and PolyORB versions of the distributed systems
19894 Remove RE_Unbounded_Reclaim_Pool since it is unused.
19896 2004-10-26 Gary Dismukes <dismukes@gnat.com>
19898 * gnat1drv.adb: Suppress calling the back end when
19899 Frontend_Layout_On_Target is true.
19901 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
19903 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
19904 Set_Read_Only): New subprograms.
19905 These new routines allow the user to set or unset the Owner execute
19906 and Owner write permission flags on a file.
19908 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
19909 GNAT.OS_Lib.Set_Executable instead of rolling our own.
19911 2004-10-26 Matthew Gingell <gingell@gnat.com>
19913 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
19915 2004-10-26 Pascal Obry <obry@gnat.com>
19917 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
19918 memory before the faulting page we properly test the process read
19919 access for this address using appropriate Win32 routine.
19920 (HPUX sections): guard with "__hpux__" instead of "hpux".
19922 2004-10-26 Robert Dewar <dewar@gnat.com>
19924 * lib-xref.adb (Generate_Reference): Don't complain about reference to
19925 entry parameter if pragma Unreferenced set, since we do not properly
19926 handle the case of multiple parameters.
19928 2004-10-26 Vincent Celier <celier@gnat.com>
19930 * prj-env.adb: (Contains_ALI_Files): New Boolean function
19931 (Ada_Objects_Path.Add): For a library project, add to the object path
19932 the library directory only if there is no object directory or if the
19933 library directory contains ALI files.
19934 (Set_Ada_Paths.Add.Recursive_Add): Ditto
19936 2004-10-26 Vincent Celier <celier@gnat.com>
19938 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
19939 extension of library projects.
19941 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
19942 path defaults to ".:<prefix>/lib/gnat".
19943 (Parse): For an extending all project, allow direct import of a project
19944 that is virtually extended.
19946 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
19947 the specified name is directly imported, return its ID. Otherwise, if
19948 an extension of this project is imported, return the ID of the
19951 2004-10-26 Robert Dewar <dewar@gnat.com>
19953 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
19954 (Sub3): New procedure, used by Scaled_Divide
19955 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
19956 correct more than one instance of failure to propagate carries
19958 (Double_Divide): Handle overflow case of largest negative number
19959 divided by minus one.
19961 * s-arit64.ads (Double_Divide): Document that overflow can occur in
19962 the case of a quotient value out of range.
19965 2004-10-26 Robert Dewar <dewar@gnat.com>
19967 * s-bitops.adb (Bit_Eq): Remove redundant check.
19969 * s-bitops.ads: Minor comment updates
19970 Change some occurrences of Address to System.Address
19972 * s-carsi8.ads: Fix minor cut-and-paste error in comments
19974 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19976 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
19977 accessibility check to prefix that is a protected operation.
19979 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19981 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
19982 empty, post message on stub.
19984 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19985 Javier Miranda <miranda@gnat.com>
19987 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
19988 current instance appears within a unit that is directly in the context
19990 Used to determine whether the body of the instance should be analyzed
19991 immediately after its spec, to make its subprogram bodies available
19992 for front-end inlining.
19993 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
19994 constraint is not allowed on the component type (AARM 12.5.3(3))
19996 2004-10-26 Cyrille Comar <comar@act-europe.fr>
19998 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
19999 'Storage_Pool): enhance, document & limit detection of non-sharable
20002 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
20004 * s-pooglo.ads: Add more documentation now that this pool is properly
20007 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20009 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
20010 or protected type with discriminants, do not constrain the
20011 corresponding record type if the subtype declaration has no
20012 discriminant constraints. This can be the case in source code, or in
20013 the subtype declaration created to rename an actual type within an
20016 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20018 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
20019 different kind of stub (possibly wrong name for file), do not check
20021 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
20022 includes call to some function that returns an unconstrained type, do
20025 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20027 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
20028 appear in the code for the main unit. Dependencies among units in the
20029 context of the main unit are established when those other units are
20030 compiled. Otherwise spurious elaboration constraints can generate
20031 incorrect elaboration circularities.
20033 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20034 Ed Schonberg <schonberg@gnat.com>
20036 * sem_util.adb (Is_Aliased_View): Defend against the case where this
20037 subprogram is called with a parameter that is not an object name. This
20038 situation arises for some cases of illegal code, which is diagnosed
20039 later, and in this case it is wrong to call Is_Aliased, as that might
20040 cause a compiler crash.
20041 (Explain_Limited_Type): Refine previous fix to include
20042 inherited components of derived types, to provide complete information.
20044 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
20045 is the prival for a protected object.
20046 It is necessary to mark this entity as a variable, in addition to
20047 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
20048 modified to avoid checking the Aliased flag on entities that are not
20049 objects. (Checking that flag for non-objects is erroneous and could
20050 lead to a compiler crash).
20052 2004-10-26 Robert Dewar <dewar@gnat.com>
20054 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
20055 X_Frac = 0.5, then we know that the number X must be positive.
20056 (Succ): Remove the same redundant test, and also fix the primary test
20057 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
20059 (Decompose): Add fuller comments to spec
20061 2004-10-26 Pascal Obry <obry@gnat.com>
20063 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
20064 validity (process must have read access). Set to 0 in all other cases.
20065 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
20066 violation on Win32.
20067 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
20068 segmentation violation.
20070 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
20072 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
20073 whose type is a constructed subtype of an aliased object with an
20074 unconstrained nominal subtype, convert the actual to the constructed
20075 subtype before taking its address.
20077 2004-10-26 Vincent Celier <celier@gnat.com>
20079 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
20080 (Is_Path_Name_Case_Sensitive): New function
20082 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
20083 (Base_Name, Simple_Name, Current_Directory, Compose,
20084 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
20087 2004-10-26 Cyrille Comar <comar@act-europe.fr>
20088 Vasiliy Fofanov <fofanov@act-europe.fr>
20089 Vincent Celier <celier@gnat.com>
20091 * gnat_ugn.texi: Generalize "finding memory problems" section into a
20092 "memory management issues" section and document some of the useful
20093 memory pools provided as part of the GNAT library.
20094 Remove "virtual" from declaration of A::method2 in
20095 the simple example of Ada/C++ mixed system.
20096 Library Projects may be virtually extended: their virtual extensions
20097 are not Library Projects.
20098 Added section on extending project hierarchies.
20100 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
20102 * adaint.c (__gnat_get_libraries_from_registry): Cast value
20104 (__gnat_portable_spawn): Remove const.
20106 * mingw32.h (MAXPATHLEN): Check for previous definition.
20108 2004-10-17 Matthias Klose <doko@debian.org>
20110 * gnatvsn.ads: Set gnat library version to 4.0.
20112 2004-10-05 Vincent Celier <celier@gnat.com>
20114 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
20116 2004-10-04 Laurent GUERBY <laurent@guerby.net>
20119 * Makefile.in: Define and use RANLIB_FLAGS.
20121 2004-10-04 Pascal Obry <obry@gnat.com>
20123 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
20124 other x86 platforms).
20126 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
20128 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
20129 in general and triggers stack alignment adjustment for thread entry
20130 points on targets where this is necessary.
20132 2004-10-04 Bernard Banner <banner@gnat.com>
20135 * Makefile.in: Add section for powerpc linux
20136 Add variant i-vxwork-x86.ads
20138 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
20140 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
20142 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
20143 table registration calls when need be. Ensures no reference to the crt
20144 ctors symbol are issued in the SJLJ case, which avoids possible
20145 undefined symbol errors in the case of modules to be statically linked
20148 2004-10-04 Javier Miranda <miranda@gnat.com>
20150 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
20151 in-line the code corresponding to subprogram Analyze_Actuals. In
20152 addition, analyze the actuals only in case of subprogram call.
20154 2004-10-04 Ed Falis <falis@gnat.com>
20156 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
20158 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
20160 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
20161 in the documentation.
20163 2004-10-04 Robert Dewar <dewar@gnat.com>
20165 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
20167 (Analyze_Block_Statement): Add circuitry to detect following dead code
20168 (Check_Unreachable_Code): Handle case of block exit
20170 2004-10-04 Robert Dewar <dewar@gnat.com>
20172 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
20173 (XMatchD): Avoid warning for Logic_Error call
20175 2004-10-04 Robert Dewar <dewar@gnat.com>
20177 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
20178 consider expressions buried within a procedure actual to be an actual.
20179 This caused some blowups with uses of packed slices within a procedure
20182 2004-10-04 Robert Dewar <dewar@gnat.com>
20184 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
20185 longer need to be initialized to zero.
20186 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
20187 initialized to zero.
20189 * checks.adb (Expr_Known_Valid): Packed arrays are now always
20190 considered valid, even if the representation is modular. That's correct
20191 now that we no longer initialize packed modular arrays to zero.
20193 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
20194 suffixes. These are now documented as the only cases in which the
20195 debugger ignores outer records.
20196 Previously, the spec allowed arbitrary suffixes for this purpose.
20197 Change name of LJM to JM for packed array pad records
20198 Create separate section on packed array handling, and add a whole new
20199 set of comments to this section describing the situation with packed
20200 modular types and justification requirements depending on endianness.
20202 2004-10-04 Robert Dewar <dewar@gnat.com>
20204 * a-except.adb: Add a comment for last change
20206 * einfo.ads: Minor spelling correction in comment
20208 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
20210 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
20213 * sem_util.ads: Minor comment update
20215 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20217 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
20218 Inline_Always when in Configurable_Run_Time mode.
20220 * sem_prag.adb (Process_Convention): If entity is an inherited
20221 subprogram, apply convention to parent subprogram if in same scope.
20222 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
20223 when in Configurable_Run_Time mode.
20225 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20227 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
20228 class_wide type after component list has been inherited.
20230 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20232 * sem_ch12.adb (Check_Generic_Actuals): New predicate
20233 Denotes_Previous_Actual, to handle properly the case of a private
20234 actual that is also the component type of a subsequent array actual.
20235 The visibility status of the first actual is not affected when the
20236 second is installed.
20237 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
20238 make fully recursive the treatment of formals of packages declared
20240 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
20241 the above on exit from an instantiation.
20242 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
20243 current instantiation which is now complete.
20244 (Analyze_Package_Instantiation): No instantiated body is needed if the
20245 main unit is generic. Efficient, and avoid anomalies when a instance
20246 appears in a package accessed through rtsfind.
20248 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20250 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
20251 do not generate a declaration for a temporary if the call is part of a
20252 library-level instantiation.
20254 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20256 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
20257 searching for a limited component to flag.
20259 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
20260 expansion of Input, to account for the fact that the implicit call
20261 generated by the attribute reference must freeze the user-defined
20262 stream subprogram. This is only relevant to 'Input, because it can
20263 appear in an object declaration, prior to the body of the subprogram.
20265 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
20266 expansion can proceed and further errors uncovered.
20267 (Minor clean up): Fix cases of using | instead of \ for continuation
20270 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20272 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
20274 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
20275 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
20276 Use gcc_assert and gcc_unreachable.
20278 * decl.c (gnat_to_gnu_entity, case object): Check and process a
20279 specified alignment before validating size.
20280 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
20281 stripped-down declaration for the type of the inner field when making
20284 * utils.c (finish_record_type): Do not compute the size in units
20285 incrementally. Instead compute it once for the rep clause case.
20286 Use gcc_assert and gcc_unreachable.
20288 2004-10-04 Vincent Celier <celier@gnat.com>
20290 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
20292 (Is_Valid_Path_Name): Take '/' as a directory separator.
20294 2004-10-04 Vincent Celier <celier@gnat.com>
20296 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
20297 (Extended_Project) only if Extended_Project is defined, to avoid
20299 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
20301 (Parse_Single_Project): Ditto.
20303 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
20304 Add_To_Project_Path for virtual projects.
20306 2004-10-04 Vincent Celier <celier@gnat.com>
20308 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20309 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20310 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
20311 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
20312 parameter Options_2.
20314 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
20315 Build_Dynamic_Library with an empty Options_2.
20317 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
20320 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
20321 directory separator, if any.
20322 (Gprmake): Do not allow mains on the command line for library projects.
20323 Do not attempt to link when the project is a library project.
20324 (Library_Opts): New table to store Library_Options.
20325 (Build_Library): If Library_Options is specified, pass these options
20326 when building a shared library.
20328 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
20330 * s-tposen.adb (Service_Entry): The object must be always unlocked at
20331 the end of this procedure now that the unlock operation was inserted
20334 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
20336 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
20337 corresponding to the Preallocated_Stacks flags in System.
20338 (Get_Target_Parameters): Including the processing for
20339 Preallocated_Stacks.
20341 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
20342 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
20343 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
20344 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
20345 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
20346 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
20347 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
20348 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
20349 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
20350 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
20351 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
20352 used to signal whether the compiler creates the required stacks and
20353 descriptors for the different tasks (when True) or it is done by the
20354 underlying operating system at run time (when False).
20355 It is initially set to False in all targets.
20357 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
20358 if it is supported by the target.
20359 (Make_Task_Create_Call): Pass the stack address if it has been
20360 previously created. Otherwise pass a Null_Address.
20362 * snames.adb: Add _stack.
20364 * snames.ads: Add Name_uStack. Required to allow the expander to
20365 statically allocated task stacks.
20367 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
20368 Stack_Address argument.
20369 Check that its value is equal to Null_Address because this target does
20370 not support the static stack allocation.
20372 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20374 * usage.adb: Change "pragma inline" to "pragma Inline" in information
20377 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20379 * exp_dist.adb: Split declaration of asynchronous flag out of
20380 Add_RACW_Read_Attribute.
20381 Minor reformatting for better alignment with PolyORB version.
20382 Store the entity for the asynchronous flag of an RACW, rather than the
20383 expression, in the asynchronous flags table. This will allow this flag
20384 to be used in other subprograms beside Add_RACW_Read_Attribute.
20386 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20388 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
20389 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
20390 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
20391 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
20392 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
20393 sockets constant MSG_NOSIGNAL (Linux-specific).
20394 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
20395 all Send operations.
20396 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
20397 from trigerring SIGPIPE.
20398 Rename components to avoid clash with Ada 2005 possible reserved
20400 (Check_Selector): When the select system call returns with an error
20401 condition, propagate Socket_Error to the caller.
20403 2004-10-01 Jan Hubicka <jh@suse.cz>
20405 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
20407 2004-09-23 Robert Dewar <dewar@gnat.com>
20410 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
20411 instead do this at freeze time (we won't do it if there is an address
20413 Change "pragma inline" to "pragma Inline" in information and error
20415 Minor reformatting.
20417 * freeze.adb (Check_Address_Clause): Remove previous change, not the
20418 right way of doing things after all.
20419 (Freeze_Entity): For object, set Is_Public for imported entities
20420 unless there is an address clause present.
20422 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
20424 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
20425 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
20426 ensures proper handling of types with rep clauses, which might have
20427 their TYPE_SIZE set already.
20429 2004-09-21 Robert Dewar <dewar@gnat.com>
20431 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
20432 packed array types in both little- and big-endian cases. This change
20433 ensures that we no longer count on the unused bits being initialized
20434 for such types (and in particular ensures that equality testing will
20435 only read the relevant bits).
20436 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
20437 These changes mean that we no longer need to initialize small packed
20439 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
20440 optimization to an LJM field as to its parent field.
20442 * ada-tree.h, trans.c, utils.c, utils2.c:
20443 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
20445 2004-09-20 Jan Hubicka <jh@suse.cz>
20447 * utils.c (gnat_finalize): Remove.
20448 (end_subprog_body): Directly call cgraph_finalize_function;
20449 do not lower the nested functions.
20451 2004-09-20 Robert Dewar <dewar@gnat.com>
20454 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
20455 if an address clause is present, since that means that the Import
20458 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
20460 * 5tsystem.ads: Removed, no longer used.
20462 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
20463 Zack Weinberg <zack@codesourcery.com>
20465 * ada-tree.def: Use tree_code_class enumeration constants
20466 instead of code letters.
20467 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
20468 Update for new tree-class enumeration constants.
20470 2004-09-17 Vincent Celier <celier@gnat.com>
20472 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
20473 capabilities of the general project manager.
20475 2004-09-09 Vincent Celier <celier@gnat.com>
20477 * a-direct.ads: Add pragma Ada_05
20478 (Directory_Entry_Type): Give default value to component Kind to avoid
20479 not initialized warnings.
20481 * a-direct.adb (Current_Directory): Remove directory separator at the
20483 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
20484 an existing directory.
20485 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
20486 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
20487 Convert the result to File_Size.
20489 * prj.ads: (Project_Error): New exception
20491 * prj-attr.adb: Except in procedure Initialize, Fail comes from
20492 Prj.Com, not from Osint.
20493 (Attrs, Package_Attributes): Tables moved to private part of spec
20494 (Add_Attribute, Add_Unknown_Package): Moved to new child package
20496 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
20497 Prj.Project_Error after call to Fail.
20498 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
20499 Fail. Check that package name is not already in use.
20501 * prj-attr.ads: Comment updates to indicate that all subprograms may be
20502 used by tools, not only by the project manager, and to indicate that
20503 exception Prj.Prj_Error may be raised in case of problem.
20504 (Add_Unknown_Package, Add_Attribute): Moved to new child package
20506 (Attrs, Package_Attributes): Table instantiations moved from the body to
20507 the private part to be accessible from Prj.Attr.PM body.
20509 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
20510 from new package Prj.Attr.PM.
20511 (Parse_Attribute_Declaration): Call Add_Attribute from new package
20514 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
20516 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
20517 instead of Elaboration_Checks).
20519 * a-calend.adb: Minor reformatting
20521 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20523 * gigi.h (maybe_pad_type): New declaration.
20524 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
20526 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
20528 * cuintp.c: Convert to use buildN.
20530 * decl.c (maybe_pad_type): No longer static.
20531 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
20533 Convert to use buildN.
20535 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
20536 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
20537 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
20539 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
20540 (gnat_gimplify_expr, case ADDR_EXPR): New case.
20541 Convert to use buildN.
20543 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
20544 TREE_READONLY for const.
20545 Convert to use buildN.
20547 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
20548 (create_var_decl): Refine when TREE_STATIC is set.
20549 Convert to use buildN.
20551 2004-09-09 Gary Dismukes <dismukes@gnat.com>
20553 * gnat_ugn.texi: Delete text relating to checking of ali and object
20556 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
20559 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
20561 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
20562 pragmas recognized by GNAT.
20564 * gnat_rm.texi: Document pragma Detect_Blocking.
20566 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
20567 raise Program_Error if called from a protected operation.
20569 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
20570 the protected action nesting level.
20571 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
20572 protected action nesting level.
20573 (Unlock): When pragma Detect_Blocking is active decrease the protected
20574 action nesting level.
20576 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
20577 Protected_Action_Nesting.
20579 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
20580 Common_ATCB record. It contains the dynamic level of protected action
20581 nesting for each task. It is needed for checking whether potentially
20582 blocking operations are called from protected operations.
20583 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
20584 Detect_Blocking is active or not in the partition.
20586 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
20587 raise Program_Error if called from a protected operation.
20588 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
20589 Program_Error if called from a protected operation.
20590 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
20591 Program_Error if called from a protected operation.
20593 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
20594 raise Program_Error if called from a protected operation.
20596 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
20597 raise Program_Error if called from a protected operation, and increase
20598 the protected action nesting level.
20599 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
20600 Program_Error if called from a protected operation, and increase the
20601 protected action nesting level.
20602 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
20603 protected action nesting level.
20605 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
20606 raise Program_Error if called from a protected operation, and increase
20607 the protected action nesting level.
20608 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
20609 Program_Error if called from a protected operation, and increase the
20610 protected action nesting level.
20611 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
20612 raise Program_Error if called from a protected operation.
20613 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
20614 active, raise Program_Error if called from a protected operation.
20615 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
20616 protected action nesting level.
20618 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
20619 insertion of the statement raising Program_Error. The run time
20620 contains the required machinery for handling that.
20622 * sem_util.ads: Change comment associated to procedure
20623 Check_Potentially_Blocking_Operation.
20624 This procedure does not insert a call for raising the exception because
20625 that is currently done by the run time.
20627 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
20629 * init.c: Add the global variable __gl_detect_blocking that indicates
20630 whether pragma Detect_Blocking is active (1) or not (0). Needed for
20631 making the pragma available at run time.
20632 (__gnat_set_globals): Pass and update the detect_blocking parameter.
20634 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
20635 pragma Detect_Blocking is active.
20637 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
20639 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
20640 DB is found in the ali file. Any unit compiled with pragma
20641 Detect_Blocking active forces its effect in the whole partition.
20643 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
20644 Detect_Blocking is active and delay is called from a protected
20647 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
20648 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
20649 Detect_Blocking is active (0 otherwise).
20650 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
20651 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
20654 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
20656 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
20657 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
20660 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
20661 (Register_Receiving_Stub): Add Subp_Info formal parameter.
20662 Update API in placeholder implemetation of s-parint to reflect changes
20663 in distribution runtime library.
20665 * sem_ch3.adb (Expand_Derived_Record): Rename to
20666 Expand_Record_Extension.
20668 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
20669 primitive operations of potentially distributed object types that have
20670 non-controlling anonymous access formals.
20672 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
20674 New implementation of expansion for remote access-to-subprogram types,
20675 based on the RACW infrastructure.
20676 This version of sem_dist is compatible with PolyORB/DSA as well as
20679 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
20680 Asynchrronous that applies to a remote access-to-subprogram type, mark
20681 the underlying RACW type as asynchronous.
20683 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
20684 __gnat_using_gnu_linker to 1.
20686 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
20687 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
20688 GNAT.Perfect_Hash_Generators, and remove the empty
20689 GNAT.Perfect_Hash package.
20691 * atree.adb: Minor reformatting
20693 * exp_ch3.adb (Expand_Derived_Record): Rename to
20694 Expand_Record_Extension.
20695 (Build_Record_Init_Proc.Build_Assignment): The default expression in
20696 a component declaration must remain attached at that point in the
20697 tree so New_Copy_Tree copies it if the enclosing record type is derived.
20698 It is therefore necessary to take a copy of the expression when building
20699 the corresponding assignment statement in the init proc.
20700 As a side effect, in the case of a derived record type, we now see the
20701 original expression, without any rewriting that could have occurred
20702 during expansion of the ancestor type's init proc, and we do not need
20703 to go back to Original_Node.
20705 * exp_ch3.ads (Expand_Derived_Record): Rename to
20706 Expand_Record_Extension.
20708 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
20709 Returns the RACW type used to implement a remote access-to-subprogram
20711 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
20712 New subprograms. Used to create a proxy tagged object for a remote
20713 subprogram. The proxy object is used as the designated object
20714 for RAS values on the same partition (unless All_Calls_Remote applies).
20715 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
20716 System.Partition_Interface.Get_Unique_Remote_Pointer.
20717 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
20718 Renamed from Add_RAS_*_Attribute.
20719 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
20721 New implementation of expansion for remote access-to-subprogram types,
20722 based on the RACW infrastructure.
20724 * exp_dist.ads (Copy_Specification): Update comment to note that this
20725 function can copy the specification from either a subprogram
20726 specification or an access-to-subprogram type definition.
20728 2004-09-09 Ed Schonberg <schonberg@gnat.com>
20730 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
20731 in an instance, between an explicit subprogram an one inherited from a
20732 type derived from an actual.
20734 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
20735 add a polling call if the subprogram is to be inlined by the back-end,
20736 to avoid repeated calls with multiple inlinings.
20738 * checks.adb (Apply_Alignment_Check): If the expression in the address
20739 clause is a call whose name is not a static entity (e.g. a dispatching
20740 call), treat as dynamic.
20742 2004-09-09 Robert Dewar <dewar@gnat.com>
20744 * g-trasym.ads: Minor reformatting
20746 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
20747 packed arrays, since unused bits are expected to be zero for a
20750 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
20752 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
20755 2004-09-09 Pascal Obry <obry@gnat.com>
20757 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
20758 enable map file generation. Add the right option to generate the map
20759 file if Map_File is set to True.
20761 * gnatdll.adb (Gen_Map_File): New variable.
20762 (Syntax): Add info about new -m (Map_File) option.
20763 (Parse_Command_Line): Add support for -m option.
20764 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
20765 Minor reformatting.
20767 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
20769 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
20770 new gnatdist implementation.
20771 Define a subpackage isolating the output routines specific to this
20774 2004-09-09 Joel Brobecker <brobecker@gnat.com>
20776 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
20778 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
20780 2004-09-09 Cyrille Comar <comar@act-europe.fr>
20782 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
20785 * opt.ads: Add Ada_Version_Runtime constant used to decide which
20786 version of the language is used to compile the run time.
20788 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
20790 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
20791 of variable length temporaries for function return now that the
20792 back-end and gigi support it.
20794 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20796 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
20798 * trans.c (struct stmt_group): Delete field GLOBAL.
20799 (gnat_init_stmt_group): Do not initialize it.
20800 (call_to_gnu): Use save_expr, not protect_multiple_eval.
20801 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
20802 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
20803 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
20804 (start_stmt_group): Likewise.
20805 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
20807 * utils2.c (ggc.h): Include.
20808 (build_call_raise): Call build_int_cst, not build_int_2.
20810 * utils.c (gnat_init_decl_processing): Fix arg to
20811 build_common_tree_nodes.
20812 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
20813 (gnat_define_builtin): Set built_in_decls.
20814 (init_gigi_decls): Call build_int_cst, not build_int_2.
20816 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
20817 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
20818 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
20819 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
20820 SET_TYPE_MODULE): Use them.
20821 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
20822 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
20823 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
20824 SET_TYPE_ADA_SIZE): Likewise.
20825 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
20826 (DECL_CONST_CORRESPONDING_VAR,
20827 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
20828 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
20829 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
20830 (TYPE_RM_SIZE_NUM): New macro.
20831 (TYPE_RM_SIZE): Modified to use above.
20833 * cuintp.c: (build_cst_from_int): New function.
20834 (UI_To_gnu): Use it.
20836 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
20837 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
20838 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
20839 MIN_EXPR for the size, copy it into new.
20841 2004-09-01 Robert Dewar <dewar@gnat.com>
20843 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
20844 packed indexed component where array is an IN OUT formal. This
20845 generated garbage code previously.
20847 * gnat_ugn.texi: Document -fverbose-asm
20849 * gnat-style.texi: Minor updates (note that boolean constants and
20850 variables are joined with AND/OR rather than short circuit forms).
20852 2004-09-01 Ed Schonberg <schonberg@gnat.com>
20854 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
20855 it is an upward conversion of an untagged type with no representation
20858 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
20860 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
20861 System.Partition_Interface.
20863 * checks.adb (Apply_Access_Checks): Do not generate checks when
20864 expander is not active (but check for unset reference to prefix of
20867 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
20868 pragma Debug as an if statement with a constant condition, for
20869 consistent treatment of entity references contained within the
20870 enclosed procedure call.
20872 2004-09-01 Vincent Celier <celier@gnat.com>
20874 * bindgen.adb: (Set_EA_Last): New procedure
20875 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
20877 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
20878 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
20879 linked without errors.
20880 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
20882 (Gen_Exception_Table_C): Correct same bugs
20884 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
20886 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
20887 on Windows, make sure that the drive letter is in upper case.
20889 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
20890 Windows, when the drive letter is added and Case_Sensitive is True, the
20891 drive letter is forced to upper case.
20893 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
20894 to Options_2 for the call to MLib.Utl.Gcc.
20896 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
20897 directory separator when defining BASE_DIR.
20899 2004-09-01 Pascal Obry <obry@gnat.com>
20901 * gprcmd.adb (Extend): Do not output trailing directory separator. This
20902 is not needed and it confuses Windows GNU/make which does not report
20903 directory terminated by a slash as a directory.
20904 (gprcmd): Idem for "pwd" internal command.
20906 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
20907 target names rewrite to fix regressions with recent version of
20908 GNU/make. Starting with GNU/make 3.80 the pipe character was not
20909 handled properly anymore.
20911 2004-09-01 Andreas Schwab <schwab@suse.de>
20913 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
20914 * raise.c [!IN_RTS]: Undef abort.
20916 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
20918 * utils2.c (build_allocator): Use ssize_int.
20920 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
20922 2004-08-27 Andreas Schwab <schwab@suse.de>
20924 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
20926 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
20927 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20929 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
20931 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
20933 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
20934 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
20935 * utils.c (init_gigi_decls): Likewise.
20936 * utils2.c (build_call_raise, build_allocator): Likewise.
20938 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
20940 * utils.c (gnat_init_decl_processing): Adjust
20941 build_common_tree_nodes call.
20943 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
20945 * utils2.c (build_allocator): Use build_int_cst for negative
20948 2004-08-18 Richard Henderson <rth@redhat.com>
20950 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
20952 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
20954 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
20956 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
20957 (gnat_to_gnu): Likewise.
20959 2004-08-16 Pascal Obry <obry@gnat.com>
20961 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
20962 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
20963 option and not mdll anymore. Update comment.
20965 2004-08-16 Pascal Obry <obry@gnat.com>
20967 * bld.adb (Put_Include_Project): Properly handle directory separators
20970 2004-08-16 Ed Schonberg <schonberg@gnat.com>
20972 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
20973 decreasing the number of allocated junk nodes while searching for the
20974 appropriate subprogram.
20976 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
20978 * cuintp.c (UI_To_gnu): Use build_int_cst..
20979 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
20980 * utils.c (init_gigi_decls): Likewise.
20981 * utils2.c (build_call_raise): Likewise.
20983 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
20985 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
20986 for a global aliased object with a variable size and an unconstrained
20987 nominal subtype, pretend there is no initializer if the one we have is
20988 incomplete, and avoid referencing an inexistant component in there. The
20989 part we have will be rebuilt anyway and the reference may confuse
20990 further operations.
20992 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
20994 * einfo.ads: Minor reformatting
20996 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
20997 restrictions in the ALI if we only want to warn about violations.
20999 2004-08-13 Vincent Celier <celier@gnat.com>
21001 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
21002 when creating a new Unit_Record in table Units.
21004 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
21005 that are violated, if any.
21007 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
21008 add directory separator if path already ends with a directory separator.
21010 2004-08-13 Ed Schonberg <schonberg@gnat.com>
21012 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
21013 unit, this is an attempt to inline a construct that is not available in
21014 the current restricted mode, so abort rather than trying to continue.
21016 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
21017 discriminants that rename those of the parent, recover names of
21018 original discriminants for the constraint on the full view of the
21020 (Complete_Private_Subtype): Do not create a subtype declaration if the
21021 subtype is an itype.
21023 * gnat_rm.texi: Added section on implementation of discriminated
21024 records with default values for discriminants.
21026 2004-08-13 Ed Schonberg <schonberg@gnat.com>
21029 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
21030 the second operand is overloaded.
21032 2004-08-10 Richard Henderson <rth@redhat.com>
21034 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
21035 add __builtin_alloca.
21037 2004-08-10 Richard Henderson <rth@redhat.com>
21039 * config-lang.in (boot_language): Yes.
21041 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
21043 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
21044 from complaining on potential uninitialized reference.
21045 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
21046 new specification and test explicitly for non-zero return value.
21048 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
21049 returning C.int, to avoid using a derived boolean type.
21051 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
21052 Duplicate_Subexpr_No_Checks in preference to direct use of
21053 Remove_Side_Effects and New_Copy_Tree.
21054 Clear Comes_From_Source on prefix of 'Size attribute reference.
21056 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
21057 g-socthi-vxworks.adb: Change calls to
21058 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
21059 and test explicitly for non-zero return value.
21061 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
21062 (Is_Socket_In_Set): Declare imported function as returning C.int, to
21063 avoid using a derived boolean type.
21065 2004-08-09 Albert Lee <lee@gnat.com>
21067 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
21069 2004-08-09 Pascal Obry <obry@gnat.com>
21071 * gnat_ugn.texi: Document new way to build DLLs on Windows using
21072 GCC's -shared option.
21074 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
21075 Options_2 parameter (options put after object files).
21077 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
21079 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
21080 ignore overflows on low and high bounds of an index to also account for
21081 differences in signedness between sizetype and gnu_index_subtype.
21082 These are as legitimate as the ones caused by a lower TYPE_PRECISION
21085 2004-08-09 Robert Dewar <dewar@gnat.com>
21087 * s-solita.ads, s-solita.adb: Minor reformatting
21089 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
21090 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
21091 obsolescent section
21092 Add note that No_Implicit_Conditionals does not suppress
21093 run time constraint checks.
21095 * vms_conv.ads: Minor reformatting
21097 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
21098 and necessary for following change).
21099 (Mark): Return new format Mark_Id containing sec stack address
21100 (Release): Use sec stack address from Mark_Id avoiding Self call
21102 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
21103 pointer (cleanup and necessary for following change).
21104 Define Mark_Id as record containing address of secondary stack, that way
21105 Release does not need to find the stack again, decreasing the number of
21106 calls to Self and improving efficiency.
21108 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
21110 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
21111 case variable into the individual case branches when possible.
21113 * sem_ch11.adb: Minor reformatting
21115 * prj.ads: Correct spelling of suffixs
21117 * prj-nmsc.adb: Minor reformatting
21118 Correct spelling suffixs throughout (also in identifiers)
21120 * freeze.adb: Minor spelling correction
21122 * exp_ch2.adb: Cleanups to handling of Current_Value
21123 (no functional effect).
21125 * bld.adb: Correct spelling of suffixs
21127 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
21129 2004-08-09 Ed Schonberg <schonberg@gnat.com>
21132 * sem_ch7.adb (Install_Private_Declarations): In the body of the
21133 package or of a child, private entities are both immediately_visible
21136 2004-08-09 Ed Schonberg <schonberg@gnat.com>
21138 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
21139 there are no range checks on the value of the literal.
21141 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
21142 wrapped is the triggering alternative of an asynchronous select, action
21143 statements mustbe inserted before the select itself.
21145 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
21146 case where the prefix is a protected function call.
21147 (Resolve_Attribute, case 'Access): The attribute reference on a
21148 subprogram is legal in a generic body if the subprogram is declared
21151 2004-08-09 Vincent Celier <celier@gnat.com>
21153 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
21154 languages, otherwise building the library may fail with unresolved
21156 (Compile_Sources): Do not build libraries if -c switch is used
21158 * gnatlink.adb (Process_Args): New switches -M and -Mmap
21159 (Write_Usage): If map file creation is supported, output new switches
21161 (Gnatlink): When -M is specified, add the necessary switch(es) to the
21162 gcc call, when supported.
21164 * Makefile.in: Added indepsw.o to the object list for gnatlink
21165 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
21167 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
21168 indepsw.adb, indepsw.ads: New files.
21170 2004-08-09 Bernard Banner <banner@gnat.com>
21172 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
21174 * Makefile.in: add section for vxworks x86
21176 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
21178 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
21179 per-object constrained components where the discriminant is of an
21181 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
21182 the parent initialization procedure for derived Unchecked_Unions.
21183 Instead, derived Unchecked_Unions build their own initialization
21185 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
21186 Check the body of the subprogram for details.
21187 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
21188 functions for derived Unchecked_Union types by introducing a condition.
21189 Allow the creation of TSS equality functions for Unchecked_Unions.
21190 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
21191 Add formal parameter Discr to function signature. Discr is used to
21192 control the generated case statement for Unchecked_Union types.
21193 (Make_Eq_If): Rename formal parameter Node to E in function signature.
21195 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
21197 Check the body of the subprogram for details.
21198 (Expand_Composite_Equality): Augment composite type equality to include
21199 correct handling of Unchecked_Union components.
21200 (Expand_N_In): Add condition to detect illegal membership tests when the
21201 subtype mark is a constrained Unchecked_Union and the expression lacks
21202 inferable discriminants, and build a Raise_Program_Error node.
21203 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
21204 to detect types that contain components of unconstrained Unchecked_Union
21205 subtype. Add condition to detect equality between types that have an
21206 unconstrained Unchecked_Union component, and build a Raise_Program_Error
21207 node. Add condition to detect equality between Unchecked_Union types
21208 that lack inferable discriminants, and build a Raise_Program_Error node.
21209 Otherwise build a TSS equality function call.
21210 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
21211 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
21212 with the operand lacking inferable discriminants, and build a Raise_
21213 Program_Error node.
21214 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
21215 composite equality.
21216 (Has_Inferable_Discriminants): Implement new predicate for objects and
21217 expressions of Unchecked_Union type. Check the body of subprogram for
21219 (Has_Unconstrained_UU_Components): Add function
21220 Component_Is_Unconstrained_UU. It is used to detect whether a single
21221 component is of an unconstrained Unchecked_Union subtype. Add function
21222 Variant_Is_Unconstrained_UU. It is used to detect whether a single
21223 component inside a variant is of an unconstrained Unchecked_Union type.
21225 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
21226 inferred discriminant values. Add condition to generate a case
21227 statement with an inferred discriminant as the switch.
21228 (Make_Component_List_Assign): Introduce a Boolean flag that determines
21229 the behaviour of the subprogram in the presence of an Unchecked_Union.
21230 Add condition to trigger the usage of the inferred discriminant value
21231 as the generated case statement switch.
21232 (Make_Field_Assign): Introduce a Boolean flag that determines the
21233 behaviour of the subprogram in the presence of an Unchecked_Union. Add
21234 condition to trigger the usage of the inferred discriminant value as
21235 the right-hand side of the generated assignment.
21237 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
21238 parameter generation when dealing with Unchecked_Unions.
21240 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
21241 checks for Unchecked_Unions.
21243 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
21245 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
21246 Raise_Program_Error nodes for the execution of Read and Write
21247 attributes of Unchecked_Union types and the execution of Input and
21248 Output attributes of Unchecked_Union types that lack default
21249 discriminant values.
21251 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
21252 Unchecked_Union. Add procedure Check_Component. It is used to inspect
21253 per-object constrained components of Unchecked_Unions for being
21254 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
21255 check individual components withing a variant.
21257 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
21258 comparison of Unchecked_Unions.
21259 (Resolve_Equality_OP): Remove guard that prevents equality between
21262 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
21263 of component subtypes for Unchecked_Union components.
21264 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
21265 since it is the actual subtype.
21267 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
21268 pass of Unchecked_Union subtypes as generic actuals to formal types
21269 that lack known_discriminant_parts or that are derived Unchecked_Union
21270 types, and do nothing. In any other case, produce an error message.
21272 * sem_ch3.adb (Analyze_Component_Declaration): Add function
21273 Contains_POC. It determines whether a constraint uses the discriminant
21274 of an enclosing record type.
21275 Add condition to detect per-object constrained component and set the
21277 (Derived_Type_Declaration): Remove guard that prevents derivation from
21278 Unchecked_Union types.
21279 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
21282 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
21283 references to Unchecked_Union discriminants.
21285 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
21286 formal generation when dealing with Unchecked_Unions.
21287 (Set_Actual_Subtypes): Add condition to prevent generation of actual
21288 subtypes for Unchecked_Unions.
21290 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
21291 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
21292 completions of discriminated partial views by Unchecked_Unions and
21293 produce an error message.
21295 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21297 * trans.c (struct stmt_group): New field, GLOBAL.
21298 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
21299 (struct elab_info): New struct.
21300 (elab_info_list, gnu_elab_proc_stack): New variables.
21301 (Compilation_Unit_to_gnu): New procedure.
21302 (gigi): Call it and also handle elaboration procs we've saved.
21303 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
21304 global field from parent.
21305 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
21306 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
21307 (start_stmt_group): Initialize global field from parent.
21308 (add_decl_expr): Set to global for current statement group.
21309 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
21312 * utils.c (global_bindings_p): True when no current_function_decl; no
21313 longer check current_binding_level.
21315 2004-08-09 Ben Brosgol <brosgol@gnat.com>
21317 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
21320 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
21322 2004-08-06 Andreas Schwab <schwab@suse.de>
21324 * utils.c (gnat_define_builtin): Remove second parameter of
21326 (begin_subprog_body): Likewise.
21328 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
21330 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
21331 optimization, not supported by the tree-ssa back-end.
21333 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
21335 * s-mastop-irix.adb: Update comments.
21337 * a-except.adb (Exception_Information): Raise Constraint_Error if
21338 exception Id is Null_Id.
21339 This is required behavior, which is more reliably and clearly checked
21340 at the top level interface level.
21342 2004-07-26 Javier Miranda <miranda@gnat.com>
21344 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
21345 call if a component has no default_expression and the box is used.
21347 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
21348 default_expression and you use box, it behaves as if you had declared a
21349 stand-alone object.
21350 (Resolve_Record_Aggregate): If a component has no default_expression and
21351 you use box, it behaves as if you had declared a stand-alone object.
21353 * sem_ch10.adb (Install_Siblings): Do not make visible the private
21354 entities of private-with siblings.
21356 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21358 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
21359 for a component of an itype, set the parent pointer for analysis,
21360 there is no list in which to insert it.
21362 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
21363 bona-fide renamings, not for inherited operations.
21365 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
21366 actual for a formal that is an access parameter, create local
21367 finalization list even if the expression is not an aggregate.
21369 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21372 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
21373 Diagnose properly illegal subprogram renamings that are library units.
21375 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21378 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
21379 conversion rewritten as an unchecked conversion, check that original
21380 expression is a variable.
21382 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
21383 unchecked_conversion, create new node rather than rewriting in place,
21384 to preserve original construct.
21386 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21388 * gigi.h (gnat_expand_body): Deleted.
21390 * Make-lang.in: (trans.o): Depends on function.h.
21392 * misc.c: (gnat_expand_body): Moved to here.
21394 * trans.c (gnat_expand_body_1): Deleted.
21395 (gnat_expand_body): Moved from here.
21396 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
21397 (add_stmt): Check for marked visited with global_bindings_p.
21398 (gnat_gimplify_expr, case COMPONENT_REF): New case.
21399 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
21401 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
21402 VIEW_CONVERT_EXPR if not operation type.
21404 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
21407 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
21408 changes: reformatting of negation operators, removing unneeded
21409 inequality comparison with zero, converting equality comparisons with
21410 zero to negations, changing int/0/1 to bool/false/true, replace calls
21411 to gigi_abort with abort, and various other similar changes.
21413 2004-07-26 Vincent Celier <celier@gnat.com>
21415 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
21418 * make.adb (Gnatmake): Fail when a library is not present and there is
21419 no object directory.
21421 * mlib-prj.adb (Check_Library): No need to check if the library needs
21422 to be rebuilt if there is no object directory, hence no object files
21423 to build the library.
21425 * opt.ads (Setup_Projects): New Boolean flag.
21427 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
21429 Create directory when Kind /= "" and in "gnat setup". Report error if
21430 directory cannot be created.
21431 (Ada_Check): Create library interface copy dir if it does not exist
21432 and we are in "gnat setup".
21433 (Find_Sources): No error if in "gnat setup" and no Ada sources were
21435 (Language_Independent_Check): Create object directory, exec directory
21436 and/or library directory if they do not exist and we are in
21439 * vms_conv.ads: (Command_Type): New command Setup.
21441 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
21443 * vms_data.ads: Add qualifiers/switches for new built-in command
21446 2004-07-25 Richard Henderson <rth@redhat.com>
21448 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
21449 DECL_IGNORED_P on RESULT_DECL.
21451 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
21453 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
21454 allocation and potentially overflowing update with
21455 Tailored_Exception_Information. Use the sec-stack free procedural
21456 interface to output Exception_Information instead.
21458 * a-except.adb (To_Stderr): New subprogram for character, and string
21459 version moved from a-exextr to be visible from other separate units.
21460 (Tailored_Exception_Information): Remove the procedural version,
21461 previously used by the default Last_Chance_Handler and not any more.
21462 Adjust various comments.
21464 * a-exexda.adb: Generalize the exception information procedural
21465 interface, to minimize the use of secondary stack and the need for
21466 local buffers when the info is to be output to stderr:
21467 (Address_Image): Removed.
21468 (Append_Info_Character): New subprogram, checking for overflows and
21469 outputing to stderr if buffer to fill is of length 0.
21470 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
21471 (Append_Info_Address, Append_Info_Exception_Name,
21472 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
21473 Append_Info_Basic_Exception_Traceback,
21474 Append_Info_Exception_Information): New subprograms.
21475 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
21476 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
21477 Exception_Info_Maxlength, Exception_Name_Length,
21478 Exception_Message_Length): New subprograms.
21479 (Exception_Information): Use Append_Info_Exception_Information.
21480 (Tailored_Exception_Information): Use
21481 Append_Info_Basic_Exception_Information.
21482 Export services for the default Last_Chance_Handler.
21484 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
21485 other separate units.
21487 2004-07-20 Vincent Celier <celier@gnat.com>
21489 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
21491 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21493 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
21494 emit itype references for the designated types of component types that
21495 are declared outside of the full record declaration, and that may
21496 denote a partial view of that record type.
21498 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21501 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
21502 which is the designated type in an access component declaration, to the
21503 list of incomplete dependents of the parent type, to avoid elaboration
21504 issues with out-of-scope subtypes.
21505 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
21506 full view of the parent.
21508 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21511 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
21512 entities that are hidden, such as references to generic actuals
21513 outside an instance.
21515 2004-07-20 Javier Miranda <miranda@gnat.com>
21517 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
21518 support to the new notation.
21519 (Analyze_Selected_Component): Add call to Try_Object_Operation.
21521 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
21523 * s-taprob.adb: Adding the elaboration code required for initializing
21524 the tasking soft links that are common to the full and the restricted
21527 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
21528 restricted run time has been moved to the package
21529 System.Soft_Links.Tasking.
21531 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
21532 restricted run time has been moved to the package
21533 System.Soft_Links.Tasking.
21535 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
21537 * s-solita.ads, s-solita.adb: New files.
21539 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21541 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
21542 Case_Statement_to_gnu): Split off from gnat_to_gnu.
21543 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
21544 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
21545 Exception_Handler_to_gnu_zcx): Likewise.
21547 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
21549 * gigi.h (builtin_function): Declare.
21551 2004-07-15 Robert Dewar <dewar@gnat.com>
21553 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
21556 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
21557 access values as an example of a warning.
21559 * gnat_rm.texi: Document new attribute Has_Access_Values
21561 * gnat-style.texi: Document that box comments belong on nested
21564 * sem_util.ads (Has_Access_Values): Improved documentation
21566 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
21568 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
21569 (Process_Interface_Name): Call to this new procedure
21570 (Set_Extended_Import_Export_External_Name): Call to this new procedure
21572 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
21574 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
21576 * einfo.ads: Minor comment typo fixed
21578 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
21580 * snames.adb: Add _atcb.
21582 * snames.ads: Add Name_uATCB.
21584 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
21585 (in the expanded code) when using the restricted run time.
21587 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
21588 a in parameter in order to allow ATCBs to be preallocated (in the
21591 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
21592 order to allow ATCBs to be preallocated. In case of error, the ATCB is
21593 deallocated in System.Tasking.Stages.
21595 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
21596 order to allow ATCBs to be preallocated.
21598 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
21599 here. It was previously done in Initialize_ATCB.
21601 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
21603 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
21604 Restricted run time.
21606 * exp_ch3.adb: When using the Restricted run time, pass the
21607 preallocated Ada_Task_Control_Block when creating a task.
21609 2004-07-15 Ed Schonberg <schonberg@gnat.com>
21611 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
21612 function call that is itself an actual in an enclosing call, diagnose
21613 problem here rather than assuming that resolution will catch it.
21615 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
21616 the local copy of a generic unit for a formal package, and the generic
21617 is a child unit, install private part of ancestors before compiling
21618 private part of spec.
21620 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
21621 use scope entities rather than tree structures, to handle properly
21622 parent units that are instances rewritten as bodies for inlining
21625 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
21626 Remove_Parents): Handle properly a parent unit that is an
21627 instantiation, when the unit has been rewritten as a body for inlining
21630 * par.adb (Goto_List): Global variable to collect goto statements in a
21631 given unit, for use in detecting natural loops.
21633 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
21634 use in detecting natural loops.
21636 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
21637 backwards goto's, and rewrite as a infinite loop, to improve locality
21640 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
21641 subcomponent that includes an indexed reference, to prevent the
21642 generation of copies that would miscompile the desired assignment
21644 (Build_Task_Image_Decls): Add a numeric suffix to
21645 generated name for string variable, to avoid spurious conflicts with
21646 the name of the type of a single protected object.
21648 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
21649 loop with an explicit exit statement, to avoid generating an
21650 out-of-range value with 'Succ leading to spurious constraint_errors
21651 when compiling with -gnatVo.
21653 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
21655 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
21656 might not be analyzed yet, even if its Etype is already set (case of an
21657 unchecked conversion built using Unchecked_Convert_To, for example).
21658 If the prefix has already been analyzed, this will be a nop anyway.
21660 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
21661 controller type, or an assignment of a record type with controlled
21662 components, copy only user data, and leave the finalization chain
21663 pointers untouched.
21665 2004-07-15 Vincent Celier <celier@gnat.com>
21667 * make.adb (Collect_Arguments): Improve error message when attempting
21668 to compile a source not part of any project, when -x is not used.
21670 * prj.ads: (Defined_Variable_Kind): New subtype
21672 * prj-attr.adb (Register_New_Package): Two new procedures to register
21673 a package with or without its attributes.
21674 (Register_New_Attribute): Mew procedure to register a new attribute in a
21676 New attribute oriented subprograms: Attribute_Node_Id_Of,
21677 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
21678 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
21680 New package oriented subprograms: Package_Node_Id_Of,
21681 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
21683 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
21685 (Package_Node_Id): Now a private, self initialized type
21686 (Register_New_Package): New procedure to register a package with its
21688 New attribute oriented subprograms: Attribute_Node_Id_Of,
21689 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
21690 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
21692 New package oriented subprograms: Package_Node_Id_Of,
21693 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
21695 * prj-dect.adb (Parse_Attribute_Declaration,
21696 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
21698 * prj-makr.adb (Make): Parse existing project file before creating
21699 other files. Fail if there was an error during parsing.
21701 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
21702 new spec of Prj.Attr.
21704 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
21705 to new spec of Prj.Attr.
21707 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21709 * utils2.c: Fix typo in comment.
21711 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21713 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
21714 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
21716 2004-07-14 Andreas Schwab <schwab@suse.de>
21718 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
21720 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21722 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
21724 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
21727 * misc.c (gnat_types_compatible_p): New function.
21728 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
21729 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
21731 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
21732 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
21733 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
21734 (mark_visited): Don't mark dummy type.
21735 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
21736 parameter, we must remove any LJM building from GNU_NAME.
21737 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
21738 (pos_to_constructor): Use int_const_binop.
21739 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
21742 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
21743 (gnat_pushlevel): Set TREE_USE on BLOCK node.
21744 (gnat_install_builtins): Add __builtin_memset.
21746 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
21748 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
21749 for a renaming, stabilize the initialization expression if we are at a
21750 local level. At the local level, uses of the renaming may be performed
21751 by a direct dereference of the initializing expression, and we don't
21752 want possible variables there to be evaluated for every use.
21754 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
21755 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
21756 them on the way. Account for the fact that we may introduce side
21757 effects in the process.
21759 2004-07-13 Richard Henderson <rth@redhat.com>
21761 * misc.c (default_pass_by_ref): Use pass_by_reference.
21763 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
21765 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
21766 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
21768 2004-07-08 Richard Henderson <rth@redhat.com>
21770 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
21773 2004-07-06 Vincent Celier <celier@gnat.com>
21775 * vms_conv.ads: Minor reformatting.
21776 Alphabetical order for enumerated values of type Command_Type, to have
21777 the command in alphabetical order for the usage.
21779 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
21780 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
21782 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
21784 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
21785 (Add_Archive_Path): Only add the global archive if there is one.
21786 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
21787 or not any object file to put in the global archive, and don't build
21788 a global archive if there is none.
21789 (X_Switches): New table
21790 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
21791 in the X_Switches table, if any.
21792 (Initialize): Make sure the X_Switches table is empty
21793 (Scan_Arg): Record -X switches in table X_Switches
21795 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
21797 * make.adb: Minor comment fix
21799 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
21800 invoked with directory information, add the directory in front of the
21803 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
21804 invoked with directory information, add the directory in front of the
21807 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
21808 when Keep_Temporary_Files is False.
21809 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
21810 directory information, add the directory in front of the path.
21811 When not on VMS, handle new switch -dn before the command to set
21812 Keep_Temporary_Files to True.
21813 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
21816 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
21817 invoked with directory information, add the directory in front of the
21820 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
21822 * snames.ads, snames.adb (Name_Stub): New name for the distributed
21825 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
21826 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
21828 * g-socket.adb (To_Timeval): Fix incorrect conversion of
21829 Selector_Duration to Timeval for the case of 0.0.
21831 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
21832 documentation from Evolve_And_Then.
21834 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
21836 * s-taprop-tru64.adb, s-taprop-os2.adb,
21837 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
21839 2004-07-06 Robert Dewar <dewar@gnat.com>
21841 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
21842 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
21843 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
21844 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
21845 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
21846 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
21847 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
21848 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
21849 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
21850 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
21851 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
21852 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
21853 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
21854 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
21855 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
21856 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
21857 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
21858 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
21859 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
21860 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
21861 vms_data.ads: Minor reformatting,
21862 Fix bad box comment format.
21864 * gnat_rm.texi: Fix minor grammatical error
21866 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
21868 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
21869 more cases of discriminated records to be recognized as not needing a
21871 (Has_Access_Values): New function.
21873 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
21875 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
21876 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
21877 with LRM terminology).
21878 Change terminology in comments primitive type => elementary type.
21880 2004-07-06 Ed Schonberg <schonberg@gnat.com>
21883 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
21884 parameters do not impose any requirements on the presence of a body.
21886 2004-07-06 Ed Schonberg <schonberg@gnat.com>
21889 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
21890 compilation unit and is in an open scope at the point of instantiation,
21891 assume that a body may be present later.
21893 2004-07-06 Ed Schonberg <schonberg@gnat.com>
21895 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
21896 Improve error message when specified size is not supported.
21898 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
21899 is never a primitive operation.
21901 2004-07-05 Andreas Schwab <schwab@suse.de>
21903 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
21904 RECORD_OR_UNION_CHECK.
21905 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
21907 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
21909 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
21910 dependency on xgnatugn, instead build it via a submake.
21911 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
21913 2004-07-04 Richard Henderson <rth@redhat.com>
21915 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
21917 2004-07-01 Richard Henderson <rth@redhat.com>
21919 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
21920 * utils.c (max_size): Likewise.
21922 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21924 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
21925 and rest_of_type_compilation; add arg to create_*_decl.
21926 (annotate_decl_with_node): Deleted.
21927 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
21928 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
21929 (get_current_block_context, gnat_pushdecl): New declarations.
21930 (gnat_init_stmt_group): Likewise.
21931 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
21932 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
21933 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
21934 (gnat_init): Call gnat_init_stmt_group.
21935 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
21936 (gnu_pending_elaboration_list): Deleted.
21937 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
21938 (gigi): Rearrange initialization calls and move some to last above.
21939 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
21940 Delete calls to add_decl_expr; add arg to create_*_decl.
21941 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
21942 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
21943 begin_subprog_body and call it.
21944 Don't push and pop ggc context.
21945 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
21946 (add_stmt): Remove handling of DECL_EXPR from here.
21947 If not in function, mark visited.
21948 (add_decl_expr): Put global at top level.
21949 Check for cases of DECL_INITIAL we have to handle here.
21950 (process_type): Add extra arg to create_type_decl.
21951 (build_unit_elab): Rework to just gimplify.
21952 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
21953 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
21954 (get_pending_elaborations, pending_elaborations_p): Likewise.
21955 (push_pending_elaborations, pop_pending_elaborations): Likewise.
21956 (get_elaboration_location, insert_elaboration_list): Likewise.
21957 (gnat_binding_level): Renamed from ada_binding_level.
21958 (init_gnat_to_gnu): Don't clear pending_elaborations.
21959 (global_bindings_p): Treat as global if no current_binding_level.
21960 (set_current_block_context): New function.
21961 (gnat_pushdecl): Renamed from pushdecl; major rework.
21962 All callers changed.
21963 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
21964 (finish_record_type): Call call pushdecl for stub decl.
21965 (function_nesting_depth): Deleted.
21966 (begin_subprog_body): Delete obsolete code.
21967 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
21969 2004-06-28 Robert Dewar <dewar@gnat.com>
21971 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21972 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21973 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
21974 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
21975 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
21977 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
21978 deal with problem of inefficient slices on machines with strict
21979 alignment, when the slice is a component of a composite.
21981 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
21982 machines, we need the check there as well.
21984 2004-06-28 Ed Schonberg <schonberg@gnat.com>
21986 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
21987 determine safe copying direction for overlapping slice assignments
21988 when component is controlled.
21990 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
21991 formal derived type in the actual for a formal package are visible in
21992 the enclosing instance.
21994 2004-06-28 Ed Schonberg <schonberg@gnat.com>
21997 * sem_util.adb (Trace_Components): Diagnose properly an illegal
21998 circularity involving a private type whose completion includes a
21999 self-referential component.
22000 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
22001 renaming or an instantiation from an implicit derived operation.
22003 2004-06-28 Pascal Obry <obry@gnat.com>
22005 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
22007 (Library_File_Name_For): Idem.
22009 2004-06-28 Matthew Gingell <gingell@gnat.com>
22011 * g-traceb.ads: Add explanatory note on the format of addresses
22012 expected by addr2line.
22014 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
22016 * Makefile.in: Force debugging information on s-tasdeb.adb,
22017 a-except.adb and s-assert.adb needed by the debugger.
22019 2004-06-28 Vincent Celier <celier@gnat.com>
22021 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
22025 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
22027 * prj.adb: Minor reformatting
22028 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
22030 * prj.ads: Comment updates
22032 (Project_Data): Change Flag1 to Need_To_Build_Lib.
22033 Remove Flag2: not used.
22035 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
22038 * gnat_ugn.texi: Put a "null;" declaration in one project file example
22040 * gnat_rm.texi: Document Empty declarations "null;".
22042 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
22043 front of the linker options.
22044 (Link_Foreign): Put the global archives and the libraries in front of
22045 the linker options.
22047 2004-06-28 Javier Miranda <miranda@gnat.com>
22049 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
22050 (RTU_Loaded): Code cleanup
22051 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
22052 withed predefined units.
22054 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
22055 explicitly withed predefined units.
22056 Fix typo in comment
22058 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
22059 explicitly withed predefined units.
22061 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22063 * ada-tree.def (DECL_STMT): Deleted.
22064 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
22065 (DECL_STMT_VAR): Deleted.
22066 * decl.c: add_decl_stmt now add_decl_expr.
22067 * gigi.h: Likewise.
22068 * trans.c: Likewise.
22069 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
22070 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
22071 (add_stmt): Only handle padded type here.
22072 (add_stmt_with_node): Allow gnat_node to not be present.
22073 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
22074 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
22075 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
22076 make a SAVE_EXPR for the entire fat pointer.
22077 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
22078 (create_index_type): Make a DECL_EXPR.
22079 (end_subprog_body): Don't call allocate_struct_function here but
22082 2004-06-25 Pascal Obry <obry@gnat.com>
22084 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
22085 Relocatable from Build_Dynamic_Library call.
22087 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
22088 Relocatable are now synonym.
22090 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
22092 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
22093 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
22096 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
22097 Lib_Address and Relocatable.
22098 (Default_DLL_Address): Removed.
22100 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22101 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22102 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
22103 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
22104 (Default_DLL_Address): Removed.
22106 * mlib-tgt-mingw.adb: Ditto.
22107 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
22109 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
22110 the initial thread stack size.
22112 * a-strmap.ads: Move package L to private part as it is not used in
22113 the spec. Found while reading code.
22115 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
22117 * tracebak.c: Introduce support for a GCC infrastructure based
22118 implementation of __gnat_backtrace.
22120 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
22121 any more. Use accessors instead. This eases maintenance and relaxes
22122 some alignment constraints.
22123 (_GNAT_Exception structure): Remove the Ada specific fields
22124 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
22126 (is_handled_by, __gnat_eh_personality): Replace component references to
22127 exception structure by use of the new accessors.
22129 * init.c (__gnat_initialize): Adjust comments to match the just
22130 reverted meaning of the -static link-time option.
22132 * adaint.c (convert_addresses): Arrange not to define a stub for
22133 mips-irix any more, as we now want to rely on a real version from a
22134 recent libaddr2line.
22136 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
22137 the personality routine can use them and not have to rely on a C
22138 counterpart of the record anymore. This simplifies maintenance and
22139 relaxes the constraint of having Standard'Maximum_Alignment match
22141 Update comments, and add a section on the common header alignment issue.
22143 2004-06-25 Geert Bosch <bosch@gnat.com>
22145 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
22146 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
22148 2004-06-25 Robert Dewar <dewar@gnat.com>
22150 * gnat_rm.texi: Fix section on component clauses to indicate that the
22151 restriction on byte boundary placement still applies for bit packed
22153 Add comment on stack usage from Initialize_Scalars
22155 * gnat_ugn.texi: Add documentation for -gnatyLnnn
22157 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
22158 limiting nesting level.
22160 * usage.adb: Add line for -gnatyLnnn switch
22162 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
22163 sem_ch13.adb, exp_aggr.adb: Minor reformatting
22165 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
22166 type as well as on the subtype. This corrects a problem in freeze in
22167 setting alignments of atomic types.
22169 * sem_eval.ads: Minor comment typo fixed
22171 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
22172 level. Minor reformatting.
22174 * fname.adb (Is_Predefined_File_Name): Require a letter after the
22175 minus sign. This means that file names like a--b.adb will not be
22176 considered predefined.
22178 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
22179 record Test new flag and give diagnostic for bad component clause.
22180 (Freeze_Entity): Set alignment of array from component alignment in
22181 cases where this is safe to do.
22183 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
22186 * cstand.adb: (Create_Standard): Set alignment of String to 1
22188 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
22190 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
22191 code in the common constrained array cases.
22193 * a-storio.adb: Change implementation to avoid possible alignment
22194 problems on machines requiring strict alignment (data should be moved
22195 as type Buffer, not type Elmt).
22197 * checks.adb (Apply_Array_Size_Check): Improve these checks by
22198 killing the overflow checks which we really do not need (64-bits is
22201 2004-06-25 Vincent Celier <celier@gnat.com>
22203 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
22204 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
22205 inconditionally for the main project.
22206 (Recursive_Add_Archives.Add_Archive_Path): New procedure
22207 (Link_Executables.Check_Time_Stamps): New procedure
22208 (Link_Executables.Link_Foreign): New procedure
22209 Changes made to reduce nesting level of this package
22210 (Check): New procedure
22211 (Add_Switches): When not in quiet output, check that a switch is not
22212 the concatenation of several valid switches. If it is, issue a warning.
22213 (Build_Global_Archive): If the global archive is rebuilt, linking need
22215 (Compile_Sources): Rebuilding a library archive does not imply
22216 rebuilding the global archive.
22217 (Build_Global_Archive): New procedure
22218 (Build_Library): New name for Build_Archive, now only for library
22220 (Check_Archive_Builder): New procedure
22221 (Create_Global_Archive_Dependency_File): New procedure
22222 (Gprmake): Call Build_Global_Archive before linking
22223 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
22225 (Scan_Arg): Display the Copyright notice when -v is used
22227 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
22230 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
22232 Add new GNAT LIST qualifier /FILES=
22233 Added qualifier /DIRECTORY= to GNAT METRIC
22234 Added qualifier /FILES= to GNAT METRIC
22235 Added qualifier /FILES to GNAT PRETTY
22237 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
22238 to take into account both versions of the switch.
22240 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
22241 always be the last switch to the gcc driver. Disable switch storing so
22242 that switches automatically added by the gcc driver are not put in the
22245 * prj.adb (Project_Empty): Take into account changes in components of
22248 * prj.ads (Languages_Processed): New enumaration value All_Languages.
22250 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
22251 used. Split Boolean component Ada_Sources_Present in two Boolean
22252 components Ada_Sources_Present and Other_Sources_Present.
22255 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
22256 instead of Sources_Present.
22257 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22259 * prj-nmsc.adb: Minor reformatting
22260 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
22261 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
22262 Check_Ada_Naming_Scheme.
22263 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
22266 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
22268 Make sure that all cycles where there is at least one "limited with"
22270 (Parse_Single_Project): New Boolean parameter In_Limited
22272 * prj-proc.adb (Recursive_Check): When Process_Languages is
22273 All_Languages, call first Prj.Nmsc.Ada_Check, then
22274 Prj.Nmsc.Other_Languages_Check.
22276 * prj-proc.adb (Process): Use Ada_Sources_Present or
22277 Other_Sources_Present (instead of Sources_Present) depending on
22280 * lang-specs.h: Keep -g and -m switches in the same order, and as the
22283 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
22284 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
22286 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
22289 * lib.ads (Disable_Switch_Storing): New procedure.
22291 * make.adb: Modifications to reduce nesting level of this package.
22292 (Check_Standard_Library): New procedure
22293 (Gnatmake.Check_Mains): New procedure
22294 (Gnatmake.Create_Binder_Mapping_File): New procedure
22295 (Compile_Sources.Compile): Add switch -gnatez as the last option
22296 (Display): Never display -gnatez
22298 * Makefile.generic:
22299 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
22301 * gnatcmd.adb (Check_Project): New function
22302 (Process_Link): New procedure to reduce nesting depth
22303 (Check_Files): New procedure to reduce the nesting depth.
22304 For GNAT METRIC, include the inherited sources in extending projects.
22305 (GNATCmd): When GNAT LS is invoked with a project file and no files,
22306 add the list of files from the sources of the project file. If this list
22307 is too long, put it in a temp text files and use switch -files=
22308 (Delete_Temp_Config_Files): Delete the temp text file that contains
22309 a list of source for gnatpp or gnatmetric, if one has been created.
22310 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
22311 in the project file is too large, create a temporary text file that
22312 list them and pass it to the tool with "-files=<temp text file>".
22313 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
22315 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
22316 generated file is in not in Ada.
22318 * gnatls.adb: Remove all parameters And_Save that are no longer used.
22319 (Scan_Ls_Arg): Add processing for -files=
22320 (Usage): Add line for -files=
22322 * g-os_lib.adb (On_Windows): New global constant Boolean flag
22323 (Normalize_Pathname): When on Windows and the path starts with a
22324 directory separator, make sure that the resulting path will start with
22327 * clean.adb (Clean_Archive): New procedure
22328 (Clean_Project): When there is non-Ada code, delete the global archive,
22329 the archive dependency files, the object files and their dependency
22330 files, if they exist.
22331 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
22333 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
22335 * sinfo.ads: Fix typo in comment.
22337 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
22338 the TSS for remote access-to-subprogram types, since these TSS are
22339 always present once the type has been analyzed.
22340 (RAS_E_Dereference): Same.
22342 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
22343 reference raises Bad_Attribute, mark the reference as analyzed so the
22344 node (and any children resulting from rewrites that could have occurred
22345 during the analysis that ultimately failed) is not analyzed again.
22347 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
22349 * exp_dist.adb: Minor comment fix.
22351 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
22352 type is an anonymous access type, no unchecked deallocation of the
22353 allocated object can occur. If the object is controlled, attach it with
22354 a count of 1. This allows attachment to the Global_Final_List, if
22355 no other relevant list is available.
22356 (Get_Allocator_Final_List): For an anonymous access type that is
22357 the type of a discriminant or record component, the corresponding
22358 finalisation list is the one of the scope of the type.
22360 2004-06-25 Ed Schonberg <schonberg@gnat.com>
22362 * sem_ch3.adb (Replace_Type): When computing the signature of an
22363 inherited subprogram, use the first subtype if the derived type
22364 declaration has no constraint.
22366 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
22367 before applying previous optimization. Minor code cleanup.
22369 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
22370 placed at the beginning of an unpacked record without explicit
22371 alignment, a slice of it will be aligned and does not need a copy when
22374 2004-06-25 Ed Schonberg <schonberg@gnat.com>
22378 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
22379 reference is written with expressions mimicking parameters.
22381 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
22384 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
22385 STEP 2a. The constraints of a full type declaration of a derived record
22386 type are checked for conformance with those declared in the
22387 corresponding private extension declaration. The message
22388 "not conformant with previous declaration" is emitted if an error is
22391 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
22393 * g-traceb.ads: Document the need for -E binder switch in the spec.
22395 * g-trasym.ads: Document the need for -E binder switch in the spec.
22397 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
22399 * sem_prag.adb: Add handling of pragma Detect_Blocking.
22401 * snames.h, snames.ads, snames.adb: Add entry for pragma
22404 * s-rident.ads: Change reference to pragma Detect_Blocking.
22406 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
22409 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
22410 to indicate whether pragma Detect_Blocking is active.
22412 * par-prag.adb: Add entry for pragma Detect_Blocking.
22414 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
22415 of not handling WITH.
22416 Note that this replaces the previous update which was incorrect.
22418 2004-06-25 Javier Miranda <miranda@gnat.com>
22420 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
22421 use-clauses to have a clean environment.
22423 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
22424 the installation of the use-clauses to stablish a clean environment in
22425 case of compilation of a separate unit; otherwise the call to
22426 use_one_package is protected by the barrier Applicable_Use.
22428 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
22429 the installation of the use-clauses to stablish a clean environment in
22430 case of compilation of a separate unit.
22431 (End_Use_Clauses): Minor comment cleanup.
22433 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
22435 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
22437 2004-06-23 Richard Henderson <rth@redhat.com>
22439 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
22441 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22443 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
22444 now bool instead of int.
22445 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
22446 * trans.c (gnu_switch_label_stack): New function.
22447 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
22448 elaboration of renamed entity returns.
22449 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
22450 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
22451 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
22452 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
22453 DECL_SIZE_UNIT and simplify variable-sized case.
22454 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
22455 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
22456 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
22457 (build_unit_elab): Disable for now.
22458 * utils.c (mark_visited): New function.
22459 (pushdecl): Walk tree to call it for global decl.
22460 (update_pointer_to): Update all variants of pointer and ref types.
22461 Add arg to COMPONENT_REF.
22462 (convert): Likewise.
22463 Move check for converting between variants lower down.
22464 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
22465 (build_allocator): Don't force type of MODIFY_EXPR.
22466 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
22467 put_var_into_stack.
22469 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22471 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
22472 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
22473 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
22475 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
22476 all callers changed.
22477 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
22478 the way that EXIT_STMT finds the loop label.
22479 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
22480 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
22481 (add_stmt): Use annotate_with_locus insted of setting directly.
22482 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
22483 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
22484 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
22485 (build_vms_descriptor): Add extra args to ARRAY_REF.
22486 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
22487 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
22489 (build_binary_op): Don't make explicit CONVERT_EXPR.
22490 Add extra rgs to ARRAY_REF.
22492 2004-06-14 Pascal Obry <obry@gnat.com>
22494 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
22495 Windows. Fix minor typo.
22497 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
22498 which is now supported on Windows. With this implementation using the
22499 Library Project feature is no different on Windows than on UNIX.
22501 2004-06-14 Vincent Celier <celier@gnat.com>
22503 * makegpr.adb (Compile_Sources): Nothing to do when there are no
22506 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
22508 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
22509 found, show the project name and the path of the previously parsed
22512 2004-06-14 Ed Schonberg <schonberg@gnat.com>
22514 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
22515 array, avoid copying the actual before the call.
22517 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
22519 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
22520 Instead, allocate memory on worst-case alignment assumptions, and then
22521 return an aligned address within the allocated zone.
22523 2004-06-14 Robert Dewar <dewar@gnat.com>
22525 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
22526 elab entities in predefined units in No_Run_Time_Mode.
22527 (Gen_Adainit_C): Same fix
22528 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
22529 units in No_Run_Time_Mode
22530 (Gen_Elab_Calls_C): Same fix
22532 * symbols-vms-alpha.adb: Minor reformatting
22534 * g-debpoo.ads: Minor reformatting
22536 * lib.adb (In_Same_Extended_Unit): Version working on node id's
22538 * lib.ads (In_Same_Extended_Unit): Version working on node id's
22540 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
22543 * make.adb: Minor reformatting
22545 * par-ch12.adb: Minor reformatting
22547 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
22549 * prj-strt.adb: Minor reformatting
22551 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
22554 * sem_attr.adb: Minor reformatting
22556 * sem_ch7.adb: Minor reformatting
22558 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
22559 for type in the same unit as the object declaration.
22561 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
22562 static string expressions and not just string literals.
22564 (Set_Warning): Reset restriction warning flag for restriction pragma
22565 Implement pragma Profile_Warnings
22566 Implement pragma Profile (Restricted)
22567 Give obolescent messages for old restrictions and pragmas
22569 * snames.h, snames.ads, snames.adb: Add new entry for pragma
22572 * s-rident.ads: Add declarations for restrictions required by profile
22573 Restricted and profile Ravenscar.
22575 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
22577 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
22578 configuration pragmas.
22580 2004-06-11 Vincent Celier <celier@gnat.com>
22582 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
22583 gnatsym, when symbol policy is Restricted.
22585 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
22586 gnatsym, when symbol policy is Restricted.
22588 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
22589 read the symbol file.
22590 (Finalize): Fail in symbol policy Restricted if a symbol in the original
22591 symbol file is not in the object files. Do not create a new symbol file
22592 when symbol policy is Restricted.
22594 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
22597 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
22599 (Usage): Line for new switch -R
22601 * make.adb (Initialize): When the platform is not VMS, add the
22602 directory where gnatmake is invoked in the front of the path, if
22603 gnatmake is invoked with directory information. Change the Scan_Args
22604 while loop to a for loop.
22605 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
22606 if Depth is equal or greater than the proposed depth, there is nothing
22608 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
22611 * prj.ads: Add new symbol policy Restricted.
22613 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
22614 with the new parameters Check_All_Labels and Case_Location.
22616 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
22617 (Library_Symbol_File needs to be defined).
22619 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
22620 and Case_Location If Check_All_Labels is True, check that all values of
22621 the string type are used, and output warning(s) if they are not.
22623 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
22626 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
22628 * gnat_ugn.texi: Update documentation about the library directory in
22631 * makegpr.adb (Display_Command): In verbose mode, also display the
22632 value of the CPATH env var, when the compiler is gcc.
22633 (Initialize): Change the Scan_Args while loop to a for loop
22634 (Compile_Individual_Sources): Change directory to object directory
22635 before compilations.
22637 * symbols.ads: New symbol policy Restricted.
22639 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
22641 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
22642 is now taken care of internally in the Exception_Propagation package
22643 and does not require clients assistance any more.
22645 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
22646 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
22647 functions. Helpers to maintain a predicate required in the handling of
22648 occurrence transfer between tasks.
22649 This is now handled internally and does not require clients assistance
22650 for the setup/propagate separation anymore.
22651 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
22652 allocation strategy, handle the Setup_And_Not_Propagated predicate and
22655 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
22656 raise_after_setup, now that everything is handled internally within the
22657 setup/propagation engine.
22659 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
22661 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
22662 Add additional conditions for the case of an actual being a simple
22663 name or literal. Improve inlining by preventing the generation
22664 of temporaries with a short lifetime (one use).
22666 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
22669 * einfo.ads: Minor comment updates for Has_Completion and
22670 E_Constant list of flags.
22672 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
22673 and constant redeclarations now set the Has_Completion flag of their
22674 defining identifiers.
22676 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
22677 Inspect_Deferred_Constant_Completion.
22678 Used to detect private deferred constants that have not been completed
22679 either by a constant redeclaration or pragma Import. Emits error message
22680 "constant declaration requires initialization expression".
22682 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
22683 completes a deferred constant.
22685 2004-06-11 Geert Bosch <bosch@gnat.com>
22687 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
22689 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
22690 calculating exponent for scaling denormal numbers.
22691 (Leading_Part): Properly raise Constraint_Error for zero or negative
22693 (Remainder): Properly raise Constraint_Error for zero divisor.
22695 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
22697 * sem_util.adb: Minor reformatting.
22699 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
22700 dereference when accessing the entry parameter record.
22701 (Check_Array_Type): Always check for possible implicit dereference.
22702 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
22703 Abort if a pointer is still present (denoting that an implicit
22704 dereference was left in the tree by the front-end).
22706 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
22707 dereference when accessing the entry parameter record.
22708 (Check_Array_Type): Always check for possible implicit dereference.
22709 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
22710 Abort if a pointer is still present (denoting that an implicit
22711 dereference was left in the tree by the front-end).
22713 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
22715 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
22716 message, like the compiler itself does. Easier to parse the output.
22718 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
22720 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
22721 be base names, and not includes directories.
22723 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
22725 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
22726 so that dependencies are properly taken into account by make.
22728 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
22731 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
22732 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
22734 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
22736 * Makefile.in (install-gnatlib): install target-specific run-time files.
22738 * Make-lang.in: Remove obsolete targets.
22740 2004-06-11 Ed Schonberg <schonberg@gnat.com>
22742 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
22743 specification, to catch misuses of program unit names.
22745 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
22746 superfluous conversions in an instance.
22748 2004-06-11 Ed Schonberg <schonberg@gnat.com>
22751 * sem_ch12.adb (Save_References): If operator node has been folded to
22752 enumeration literal, associated_node must be discarded.
22754 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
22756 * s-stchop-vxworks.adb: Add required pragma Convention to
22757 Task_Descriptor because it is updated by a C function.
22759 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
22762 * Makefile.in: Remove target specific SO_OPT on IRIX
22764 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22766 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
22767 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
22768 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
22769 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
22770 (STMT_STMT, USE_STMT): New statement codes.
22771 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
22772 * ada-tree.h: Reflect above changes.
22773 (struct tree_loop_id): Deleted.
22774 (union lang_tree_node, struct lang_decl, struct lang_type):
22775 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
22776 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
22777 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
22778 (IS_ADA_STMT): New macro.
22779 * decl.c (annotate_decl_with_node): New function.
22780 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
22781 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
22782 Call add_stmt_with_node to do needed assignments.
22783 Add call to update setjmp buffer directly, not via EXPR_STMT.
22784 (maybe_variable): Argment GNAT_NODE deleted.
22785 * gigi.h (maybe_variable): Likewise.
22786 (make_transform, add_stmt_with_node, set_block_for_group): New.
22787 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
22788 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
22789 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
22790 (set_lineno, set_lineno_from_sloc): Likewise.
22791 (record_code_position, insert_code_for): Likewise.
22792 (gnat_poplevel): Now returns void.
22793 (end_subprog_body): Now takes argument.
22794 * misc.c (cgraph.h, tree-inline.h): New includes.
22795 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
22796 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
22797 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
22798 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
22799 (gnat_parse_file): Don't set immediate_size_expand.
22800 Call cgraph functions.
22801 (gnat_expand_expr): Remove most cases.
22802 (record_code_position, insert_code_for): Remove from here.
22803 * trans.c (toplev.h, tree-gimple.h): Now included.
22804 (discard_file_names): Deleted.
22805 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
22806 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
22807 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
22808 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
22809 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
22810 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
22811 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
22812 (set_block_for_group, add_stmt_list): Likewise.
22813 (start_stmt_group): Renamed from start_block_stmt.
22814 (end_stmt_group): Likewise, from end_block_stmt.
22815 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
22816 (gigi): Don't set discard_file_names or call set_lineno.
22817 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
22818 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
22819 Numerous changes throughout to reflect new names and complete
22820 function-at-a-time implementation.
22821 (gnat_expand_stmt): Delete or comment out all cases.
22822 (process_inlined_subprograms): Use add_stmt.
22823 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
22824 call set_lineno; also remove unneeded block handling.
22825 (process_type): Remove unneeded block handling.
22826 (build_unit_elab): Remove calls to deleted functions.
22827 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
22828 (tree-dump.h): Likewise.
22829 (struct ada_binding_level): Add field jmpbuf_decl.
22830 (gnat_define_builtin, gnat_install_builtins): New.
22831 (gnat_gimplify_function, gnat_finalize): Likewise.
22832 (gnat_poplevel): No longer return BLOCK, set it instead.
22833 Remove code dealing with nested functions.
22834 (gnat_init_decl_processing): Also set size_type_node.
22835 Call gnat_install_builtins.
22836 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
22837 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
22838 Remove special-case for "main".
22839 (end_subprog_body): Add arg and rework for tree-ssa.
22840 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
22841 Add case for BOOLEAN_TYPE.
22842 * utils2.c (rtl.h): Now include.
22843 (build_call_raise): Test Debug_Flag_NN directly.
22844 (build_call_alloc_dealloc): Don't use local stack allocation for now.
22845 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
22846 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
22848 2004-06-07 Robert Dewar <dewar@gnat.com>
22850 * a-direct.ads, einfo.ads: Minor comment updates
22852 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
22853 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
22854 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
22855 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
22856 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
22858 * s-interr-sigaction.adb: Remove unreferenced variable
22859 (Attached_Interrupts). Minor reformatting.
22860 Avoid use of variable I (replace by J).
22862 * par-ch10.adb: Fix text of one error message
22864 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
22865 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
22866 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
22867 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
22868 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
22869 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
22870 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
22871 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
22872 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
22873 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
22874 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
22877 2004-06-07 Doug Rupp <rupp@gnat.com>
22879 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
22881 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
22883 * mlib-tgt-vms-ia64.adb: New file.
22885 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
22886 Add mlib-tgt-vms-ia64.adb
22887 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
22888 Move to alpha specific ifeq section.
22889 Add VMS specific versions of symbols.adb
22890 Renaming of 5q vms files.
22892 * 5qsystem.ads renamed to system-vms_64.ads.
22894 2004-06-07 Vincent Celier <celier@gnat.com>
22896 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
22897 explain that when a time of day corresponding to the non existing hour
22898 on the day switching to DST is specified, Split may return a different
22901 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
22904 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
22905 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
22907 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
22909 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
22910 the linking options.
22911 (Build_Library.Check_Libs): On VMS, if there is a dependency on
22912 g-trasym.ads, set Gtrasymobj_Needed to True.
22914 * prj-attr.adb: Add new package Metrics for gnatmetric
22916 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
22917 canonical case to take into account files with upper case characters on
22919 (Ada_Check): Load the reference symbol file name in the name buffer to
22920 check it, not the symbol file name.
22922 * snames.ads, snames.adb: Add standard name Metrics (name of project
22923 file package for gnatmetric).
22925 * vms_conv.ads: Add Metric to Comment_Type
22927 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
22929 * vms_data.ads: Add qualifiers for GNAT METRIC
22931 * makegpr.adb (Link_Executables): Take into account the switches
22932 specified in package Linker of the main project.
22934 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
22936 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
22937 the index of the last element is Units.Last, not Units.Table'Last
22938 (which is usually not a valid index within the actually allocated
22939 storage for the table).
22941 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
22942 determines whether to generate a call to a checked storage pool
22943 Dereference action.
22944 Generate such a call only for a dereference that either comes from
22945 source, or is the result of rewriting a dereference that comes from
22948 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
22950 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
22952 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
22954 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
22955 file level, elaborate the stride for inner dimensions in alignment
22958 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
22961 2004-06-07 Javier Miranda <miranda@gnat.com>
22963 * exp_ch6.adb: Correct wrong modification in previous patch
22965 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
22967 * g-trasym.ads: Corrected comment to properly reflect level of support
22970 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
22972 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
22973 includes case of a variable referenced on the left hand side of an
22974 assignment, therefore remove redundant code. Variables and prefixes of
22975 indexed or selected components are now marked as referenced on left
22976 hand side. Warnings are now properly emitted when variables or prefixes
22977 are assigned but not read.
22979 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
22980 left hand side referenced variables. Private access types do not
22981 produce the warning "variable ... is assigned but never read".
22982 Add also additional checks to left hand side referenced variables.
22983 Aliased, renamed objects and access types do not produce the warning
22984 "variable ... is assigned but never read" since other entities may read
22985 the memory location.
22987 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
22989 * Makefile.in: In the powerpc/vxworks-specific section, restore
22990 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
22993 2004-06-07 Ed Schonberg <schonberg@gnat.com>
22995 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
22996 predefined operators.
22997 Removes spurious type errors from g-trasym-vms.adb.
22999 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
23000 distinct from the operator appearing in the source, call appropriate
23001 routine to insert conversions when needed, and complete resolution of
23003 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
23004 interpretations for rewritten right operand.
23005 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
23006 the other operand is overloaded and the context is a type conversion.
23008 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23010 * ada-tree.def (BLOCK_STMT): Now has two operands.
23013 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
23015 * gigi.h: (gnat_poplevel): Now returns a tree.
23017 * trans.c (end_block_stmt): Add arg; all callers changed.
23018 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
23019 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
23020 (add_stmt): Set TREE_TYPE.
23021 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
23022 (gnat_expand_stmt, case BREAK_STMT): New case.
23024 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
23026 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
23028 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
23029 procedure Set_Stack_Size that is not needed.
23031 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
23033 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
23034 used for gnatpp input file and for the files upon which it depends
23036 2004-06-07 Ben Brosgol <brosgol@gnat.com>
23038 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
23040 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
23042 * gnatvsn.ads: Bump version numbers appropriately.
23043 Add new build type.
23045 2004-06-07 Pascal Obry <obry@gnat.com>
23047 * gnat_ugn.texi: Improve comments about imported names and link names
23048 on Windows. Add a note about the requirement to use -k gnatdll's option
23049 when working with a DLL which has stripped stdcall symbols (no @nn
23052 2004-05-27 Vincent Celier <celier@gnat.com>
23054 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
23055 COMMENTS_LAYOUT=UNTOUCHED
23057 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
23058 symbols-vms-alpha.adb
23060 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
23062 * sem.ads: Clarify documentation on checks suppression.
23064 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
23066 2004-05-27 Ed Schonberg <schonberg@gnat.com>
23068 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
23069 the case of multiple derivations.
23070 (Is_Object_Reference): For a selected component, verify that the prefix
23071 is itself an object and not a value.
23073 * sem_ch12.adb (Same_Instantiated_Constant): New name for
23074 Same_Instantiated_Entity.
23075 (Same_Instantiated_Variable): Subsidiary to
23076 Check_Formal_Package_Instance, to recognize actuals for in-out generic
23077 formals that are obtained from a previous formal package.
23078 (Instantiate_Subprogram_Body): Emit proper error when
23079 generating code and the proper body of a stub is missing.
23081 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
23082 has a universal interpretation, do the disambiguation here.
23084 * exp_ch4.adb (Expand_N_Type_Conversion,
23085 Expand_N_Unchecked_Type_Conversion): Special handling when target type
23086 is Address, to avoid typing anomalies when Address is a visible integer
23089 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
23090 to determine whether a subprogram should not be marked Pure, even when
23091 declared in a pure package.
23093 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
23095 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
23097 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
23098 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
23099 Update the documentation about the Ravenscar profile, following the
23100 definition found in AI-249.
23102 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
23103 setting the Profile (Ravenscar). This must be done in addition to
23104 setting the required restrictions.
23106 * rtsfind.ads: Add the set of operations defined in package
23109 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
23112 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
23114 lang-specs.h: Always require -c or -S and always redirect to /dev/null
23115 if -gnatc or -gnats is passed.
23117 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
23119 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
23120 a significant reference. Warnings are now properly emitted when a
23121 discriminated type is not referenced.
23123 * lib-xref.adb (Generate_Reference): A deferred constant completion,
23124 record representation clause or record type discriminant does not
23125 produce a reference to its corresponding entity. Warnings are now
23126 properly emitted when deferred constants and record types are not
23129 2004-05-27 Geert Bosch <bosch@gnat.com>
23131 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
23132 Fixes ACATS Annex G tests.
23134 2004-05-27 Robert Dewar <dewar@gnat.com>
23136 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
23139 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
23141 * s-interr.adb (Server_Task): Take into account case of early return
23142 from sigwait under e.g. linux.
23144 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
23146 * gnat_ugn.texi: Add description for the new gnatpp options:
23147 -rnb - replace the original source without creating its backup copy
23148 -c0 - do not format comments
23150 2004-05-24 Geert Bosch <bosch@gnat.com>
23152 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
23153 with 192 bits of precision, sufficient to reduce a double-extended
23154 arguments X with a maximum relative error of T'Machine_Epsilon, for X
23155 in -2.0**32 .. 2.0**32.
23156 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
23157 reduction by the processor, which only uses a 68-bit approximation of
23159 (Tan): Always reduce arguments and compute function either using
23160 the processor's fptan instruction, or by dividing sin and cos as needed.
23162 2004-05-24 Doug Rupp <rupp@gnat.com>
23164 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
23165 gcc error on 32/64 bit VMS.
23167 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
23169 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
23170 since this is what we get for stack overflows although not documented
23172 Document the issues which may require adjustments to our signal
23175 2004-05-24 Ed Schonberg <schonberg@gnat.com>
23177 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
23178 enclosing dynamic scope if the instantiation is within a generic unit.
23180 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
23182 * exp_dbug.ads: Fix typo.
23184 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
23185 Rename it to its proper name: system-linux-ia64.ads
23186 (stamp-gnatlib1): Remove extra target specific run time files when
23187 setting up the rts directory.
23189 2004-05-24 Javier Miranda <miranda@gnat.com>
23191 * einfo.ads, einfo.adb (Limited_Views): Removed.
23192 (Limited_View): New attribute that replaces the previous one. It is
23193 now a bona fide package with the limited-view list through the
23194 first_entity and first_private attributes.
23196 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
23197 limited-private-with clause.
23198 (Install_Limited_Withed_Unit): Install the private declarations of a
23199 limited-private-withed package. Update the installation of the shadow
23200 entities according to the new structure (see Build_Limited_Views)
23201 (Build_Limited_Views): Replace the previous implementation of the
23202 limited view by a package entity that references the first shadow
23203 entity plus the first shadow private entity (required for limited-
23204 private-with clause)
23205 (New_Internal_Shadow_Entity): Code cleanup.
23206 (Remove_Limited_With_Clause): Update the implementation to undo the
23207 new work carried out by Build_Limited_Views.
23208 (Build_Chain): Complete documentation.
23209 Replace Ada0Y by Ada 0Y in comments
23212 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
23213 types the level of accessibility depends on the enclosing type
23216 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
23217 entities. Complete documentation of previous change.
23219 2004-05-24 Robert Dewar <dewar@gnat.com>
23221 * namet.adb: Minor reformatting
23222 Avoid use of name I (replace by J)
23223 Minor code restructuring
23225 * sem_ch6.adb: Minor reformatting
23227 * lib-writ.adb: Do not set restriction as active if this is a
23228 Restriction_Warning case.
23230 * sem_prag.adb: Reset restriction warning flag if real pragma
23231 restriction encountered.
23233 * s-htable.adb: Minor reformatting
23234 Change rotate count to 3 in Hash (improves hash for small strings)
23236 * 5qsystem.ads: Add comments for type Address (no literals allowed).
23238 * gnat_ugn.texi: Add new section of documentation "Code Generation
23239 Control", which describes the use of -m switches.
23241 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
23243 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
23244 through the DECL_INITIAL for renamed variables.
23246 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
23248 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
23250 2004-05-19 Joel Brobecker <brobecker@gnat.com>
23252 * exp_dbug.ads: Correct comments concerning handling of overloading,
23253 since we no longer use $ anymore.
23255 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
23257 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
23258 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
23259 with illegal subunits.
23261 2004-05-19 Ed Schonberg <schonberg@gnat.com>
23263 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
23264 body with front-end inlining enabled, check whether an inline pragma
23265 appears immediately after the body and applies to it.
23267 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
23268 enabled and the pragma appears after the body of the subprogram.
23270 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23272 Part of function-at-a-time conversion
23274 * misc.c (adjust_decl_rtl): Deleted.
23275 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
23278 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
23279 (add_decl_stmt, add_stmt, block_has_vars): New functions.
23280 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
23282 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
23283 when making a decl.
23284 (gnat_to_gnu_entity): Likewise.
23285 Use add_stmt to update setjmp buffer.
23286 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
23288 No longer call adjust_decl_rtl.
23289 (DECL_INIT_BY_ASSIGN_P): New macro.
23290 (DECL_STMT_VAR): Likewise.
23292 * trans.c (gigi): Call start_block_stmt to make the outermost
23294 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
23295 Call start_block_stmt and end_block_stmt temporarily.
23296 Use gnat_expand_stmt instead of expand_expr_stmt.
23297 (add_decl_stmt): New function.
23298 (tree_transform): Call it.
23299 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
23300 (end_block_stmt): Set type and NULL_STMT.
23301 (gnat_expand_stmt): Make recursize call instead of calling
23303 (gnat_expand_stmt, case DECL_STMT): New case.
23304 (set_lineno_from_sloc): Do nothing if global.
23305 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
23306 (start_block_stmt, add_stmt, end_block_stmt): New functions.
23307 (build_block_stmt): Call them.
23308 (gnat_to_code): Don't expand NULL_STMT.
23309 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
23311 (tree_transform): Likewise.
23312 (tree_transform, case N_Null_Statement): Return NULL_STMT.
23313 (gnat_expand_stmt, case NULL_STMT): New case.
23314 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
23317 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
23320 * utils.c (create_var_decl): Do not call expand_decl or
23322 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
23323 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
23325 (struct e_stack): Add chain_next to GTY.
23326 (struct binding_level): Deleted.
23327 (struct ada_binding_level): New struct.
23328 (free_block_chain): New.
23329 (global_binding_level, clear_binding_level): Deleted.
23330 (global_bindings_p): Rework to see if no chain.
23331 (kept_level_p, set_block): Deleted.
23332 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
23333 new data structure and work directly on BLOCK node.
23334 (gnat_poplevel): Similarly.
23335 (get_decls): Look at BLOCK_VARS.
23336 (insert_block): Work directly on BLOCK node.
23337 (block_has_var): New function.
23338 (pushdecl): Rework for new binding structures.
23339 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
23341 (build_subprog_body): Likewise.
23342 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
23344 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
23346 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
23347 (DECL_STMT_VAR): Likewise.
23349 2004-05-17 Robert Dewar <dewar@gnat.com>
23351 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
23354 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
23355 of restriction synonyums by using
23356 Restrict.Process_Restriction_Synonyms.
23358 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
23360 * s-restri.ads (Tasking_Allowed): Correct missing comment
23362 * s-rident.ads: Add entries for restriction synonyms
23364 * ali.adb: Fix some problems with badly formatted ALI files that can
23365 result in infinite loops.
23367 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
23368 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
23369 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
23370 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
23371 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
23372 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
23373 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
23374 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
23375 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
23376 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
23377 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
23378 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
23379 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
23380 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
23381 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
23382 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
23383 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
23384 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23385 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
23386 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
23387 to Task_Id (minor cleanup).
23389 2004-05-17 Vincent Celier <celier@gnat.com>
23391 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
23392 directory separator.
23394 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
23395 project being extended, if Languages is not declared in extending
23398 2004-05-17 Javier Miranda <miranda@gnat.com>
23400 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
23401 limited view of a visible sibling.
23403 2004-05-14 Robert Dewar <dewar@gnat.com>
23405 * gnat_ugn.texi: Minor change to -gnatS documentation
23407 * sprint.adb: Remove some instances of Assert (False) and for this
23408 purpose replace them by output of a ??? string.
23410 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
23413 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
23414 flag processing. This was suppressing required dependencies in
23415 No_Run_Time mode and is not needed since the binder does not generate
23416 references for things in libgnat anyway.
23418 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
23421 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
23423 * gnat_ugn.texi: Document AIX-specific issue with initialization of
23426 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
23427 action for the case of an actual parameter in an init proc call.
23429 2004-05-14 Ed Schonberg <schonberg@gnat.com>
23431 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
23432 subtype, check visible entities in base type.
23434 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
23435 actions if the object is a renaming.
23437 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
23438 Check_Formal_Package_Instance, to determine more precisely when the
23439 formal and the actual denote the same entity.
23441 2004-05-14 Javier Miranda <miranda@gnat.com>
23443 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
23445 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
23446 corresponding to a private_with must be removed from visibility; it
23447 will be made visible later, just before we analyze the private part of
23449 (Check_Private_Child_Unit): Allow private_with clauses in public
23451 (Install_Siblings): Make visible the private entities of private-withed
23453 (Install_Withed_Unit): Do not install the private withed unit if we
23454 are compiling a package declaration and the Private_With_OK flag was
23455 not set by the caller. These declarations will be installed later,
23456 just before we analyze the private part of the package.
23458 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
23459 during the evaluation of the expression that initializes the object,
23460 decorate it with the expected type to avoid cascade errors.
23463 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
23464 subprogram we have to install the private_with clauses after its
23465 specification has been analyzed (as documented in AI-262.TXT).
23467 * sem_ch8.adb (Has_Private_With): New function. Determines if the
23468 current compilation unit has a private with on a given entity.
23469 (Find_Direct_Name): Detect the Beaujolais problem described in
23472 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
23473 provides the functionality of the function Is_Ancestor that was
23474 previously available in sem_ch10. It has been renamed to avoid
23477 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
23479 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23481 * utils.c (build_vms_descriptor): Use SImode pointers.
23483 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
23485 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
23487 2004-05-14 GNAT Script <nobody@gnat.com>
23489 * Make-lang.in: Makefile automatically updated
23491 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
23493 Renaming of target specific files for clarity
23495 * Makefile.in: Rename GNAT target specific files.
23497 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
23498 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
23499 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
23500 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
23501 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
23502 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
23503 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
23504 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
23505 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
23506 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
23507 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
23508 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
23509 51osinte.adb, 51osinte.ads, 51system.ads,
23510 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
23511 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
23512 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
23513 56tpopsp.adb, 57system.ads, 58system.ads,
23514 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
23515 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
23516 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
23517 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
23518 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
23519 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
23520 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
23521 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
23522 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
23523 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
23524 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
23525 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
23526 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
23527 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
23528 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
23529 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
23530 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
23531 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
23532 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
23533 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
23534 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
23535 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
23536 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
23537 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
23538 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
23539 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
23540 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
23541 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
23542 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
23543 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
23544 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
23545 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
23546 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
23547 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
23548 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
23549 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
23550 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
23551 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
23552 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
23553 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
23555 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
23556 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
23557 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
23558 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
23559 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
23560 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
23561 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
23562 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
23563 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
23564 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
23565 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
23566 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
23567 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
23568 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
23569 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
23570 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
23571 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
23572 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
23573 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
23574 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
23575 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
23576 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
23577 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
23578 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
23579 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
23580 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
23581 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
23582 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
23583 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
23584 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
23585 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
23586 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
23587 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
23588 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
23589 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
23590 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
23591 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
23592 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
23593 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
23594 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
23595 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
23596 s-osinte-vms.ads, s-osinte-vxworks.adb,
23597 s-osinte-vxworks.ads, s-osprim-mingw.adb,
23598 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
23599 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23600 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
23601 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
23602 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
23603 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23604 s-stchop-vxworks.adb, s-taprop-dummy.adb,
23605 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
23606 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
23607 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
23608 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
23609 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
23610 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
23611 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
23612 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
23613 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
23614 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
23615 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
23616 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
23617 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
23618 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
23619 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
23620 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
23621 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
23622 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
23623 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
23624 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
23625 system-irix-o32.ads, system-linux-x86_64.ads,
23626 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
23627 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
23628 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
23629 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
23630 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
23631 system-vxworks-mips.ads, system-vxworks-ppc.ads,
23632 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
23635 2004-05-13 Zack Weinberg <zack@codesourcery.com>
23637 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
23639 2004-05-13 Diego Novillo <dnovillo@redhat.com>
23641 Merge from tree-ssa-20020619-branch.
23643 * config-lang.in (boot_language, build_by_default): Set
23645 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
23646 (max_size): Add static chain op for call_expr.
23648 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
23651 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
23653 2004-05-11 Roger Sayle <roger@eyesopen.com>
23655 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
23658 2004-05-10 Doug Rupp <rupp@gnat.com>
23660 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
23663 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
23665 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
23667 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
23668 Fixes undefined symbols in IA64 gnatlib.
23670 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
23672 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
23673 Short_Address). This will be moved to system.auxdec.
23675 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
23677 * sem_util.adb: Replace test for presence of a node that is always
23678 present with a call to Discard_Node.
23680 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
23681 Analyze on the library unit node after generation of distribution stub
23682 constructs. The call was a no-op because Unit_Node has already been
23683 Analyzed, and the tree fragments for the distribution stubs are
23684 analyzed as they are inserted in Exp_Dist.
23685 Update comment regarding to distribution stubs to reflect that we
23686 do not generate stub in separate files anymore.
23688 * einfo.ads: Clarify the fact that a tagged private type has the
23689 E_Record_Type_With_Private Ekind.
23691 * erroutc.adb: Minor reformatting
23693 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
23694 values if line length is increased using -gnatyM (noticed during code
23697 * eval_fat.adb: Minor reformatting
23698 Put spaces around exponentiation operator
23700 2004-05-10 Ed Schonberg <schonberg@gnat.com>
23703 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
23704 has been rewritten as an explicit dereference, retrieve type of
23705 original node to check for possibly unconstrained record type.
23707 2004-05-10 Ed Schonberg <schonberg@gnat.com>
23709 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
23710 overriding, use the operation of the parent unconditionally.
23712 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
23713 operation when either operand is a literal, to avoid further
23716 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
23717 overridden by a previous explicit declaration, mark the previous entity
23720 * sem_disp.adb (Check_Dispatching_Operation): New predicate
23721 Is_Visibly_Controlled, to determine whether a declaration of a
23722 primitive control operation for a derived type overrides an inherited
23723 one. Add warning if the explicit declaration does not override.
23725 2004-05-10 Vincent Celier <celier@gnat.com>
23727 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
23728 some cases when the sources are no longer present.
23730 * make.adb (Collect_Arguments): Fail if an external source, not part
23731 of any project need to be compiled, when switch -x has not been
23734 * makeusg.adb: Document new switch -x
23736 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
23737 defaulted to False.
23739 * switch-m.adb (Scan_Make_Switches): New switch -x
23741 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
23742 gnatmake switch -x.
23744 * gnat_ugn.texi: Document new gnatmake switch -x
23746 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
23748 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
23750 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
23751 (process_attributes): Likewise.
23753 2004-05-10 Joel Brobecker <brobecker@gnat.com>
23755 * s-inmaop.ads: Fix spelling mistake in one of the comments.
23757 2004-05-10 Robert Dewar <dewar@gnat.com>
23759 * gnat_ugn.texi: Document that for config pragma files, the maximum
23760 line length is always 32767.
23762 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
23763 literals is now allowed.
23765 * gnat-style.texi: Remove statement about splitting long lines before
23766 an operator rather than after, since we do not follow this rule at all.
23767 Clarify rule (really lack of rule) for spaces around exponentiation
23769 * sem_elim.adb: Allow concatenation of string literals as well as a
23770 single string literal for pragma arguments.
23772 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
23774 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
23775 written for append case.
23777 * frontend.adb: Changes to avoid checking max line length in config
23780 * g-os_lib.ads: Minor reformatting
23782 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
23783 wrong in any case. Instead use standard value. Noticed during code
23786 * opt.ads (Max_Line_Length): New field, used to implement removal of
23787 limitation on length of lines when scanning config pragma files.
23789 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
23790 makeutl.ads, makeutl.adb: Minor reformatting
23792 * scn.adb: Do not check line length while scanning config pragma files
23793 Do not check line length while scanning out license information
23795 * scng.adb: Changes to avoid line length checks while parsing config
23798 2004-05-10 GNAT Script <nobody@gnat.com>
23800 * Make-lang.in: Makefile automatically updated
23802 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
23804 * osint.adb (Find_Program_Name): Fix handling of VMS version
23807 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
23809 * g-os_lib.ads (Invalid_Time): New constant
23811 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
23812 return OS_Time instead of time_t to match what is imported by Ada.
23813 Now return -1 if the file doesn't exist, instead of a random value
23815 2004-05-05 Robert Dewar <dewar@gnat.com>
23817 * usage.adb: Add line for -gnatR?s switch
23819 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
23821 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
23822 and for Match (Data_First, Data_last)
23824 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
23825 written when we are dealing with multi-unit files.
23827 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
23829 * Makefile.in: Remove unused targets and variables.
23831 2004-05-05 Vincent Celier <celier@gnat.com>
23833 * switch-m.adb: New gnatmake switch -eI
23835 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
23836 of new gnatmake switch -eInnn.
23838 * makegpr.adb: Take into account new parameters Index and Src_Index in
23841 * clean.adb: Implement support for multi-unit sources, including new
23844 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
23847 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
23848 (Extract_From_Q): New out parameter Index
23849 (Mark, Is_Marked): Subprograms moved to Makeutl
23850 (Switches_Of): New parameter Source_Index
23851 (Add_Switch): New parameter Index
23852 (Check): New parameter Source_Index
23853 (Collect_Arguments): New parameter Source_Index
23854 (Collect_Arguments_And_Compile): New parameter Source_Index
23855 (Compile): New parameter Source_Index
23856 Put subprograms in alphabetical order
23857 Add support for multi-source sources, including in project files.
23859 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
23860 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
23863 * makeusg.adb: New gnatmake switch -eInnn
23865 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
23868 * opt.ads (Main_Index): New variable, defaulted to 0.
23870 * osint.ads, osinte.adb (Add_File): New parameter Index
23871 (Current_Source_Index): New function
23873 * prj.adb: Take into account new components Index and Src_Index
23875 * prj.ads (String_Element): New component Index
23876 (Variable_Value): New component Index
23877 (Array_Element): New component Src_Index
23879 * prj-attr.adb: Indicate that optional index may be specified for
23880 attributes Main, Executable, Spec, Body and some of Switches.
23882 * prj-attr.ads (Attribute_Kind): New values for optional indexes
23883 (Attribute_Record): New component Optional_Index
23885 * prj-com.ads (File_Name_Data): New component Index
23887 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
23889 * prj-env.adb (Put): Output optional index
23891 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
23892 attributes Spec and Body.
23894 * prj-nmsc.adb: Process optional indexes
23896 * prj-pp.adb: Ouput "at" for optional indexes
23898 * prj-proc.adb: Take into account optional indexes
23900 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
23901 Optional_Index. For string literal,
23902 process optional index when Optional_Index is True.
23903 (Parse_Expresion): New Boolean parameter Optional_Index
23905 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
23906 (Set_Source_Index_Of): New procedure
23908 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
23911 * prj-util.ads (Executable_Of): New parameter Index
23912 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
23913 New parameter Src_Index, defaulted to 0.
23915 2004-05-05 Ed Schonberg <schonberg@gnat.com>
23918 * sem_ch3.adb (Access_Definition): If this is an access parameter
23919 whose designated type is imported through a limited_with clause, do
23920 not add the enclosing subprogram to the list of private dependents of
23923 2004-05-05 Ed Schonberg <schonberg@gnat.com>
23926 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
23927 a limited_with clause, and the other is its non-limited view.
23929 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
23931 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
23933 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
23934 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
23935 Stand.Boolean_Literals to produce references to entities
23936 Standard_False and Standard_True from compile-time computed boolean
23939 * stand.ads (Boolean_Literals): New variable, provides the entity
23940 values for False and True, for use by the expander.
23942 2004-05-05 Doug Rupp <rupp@gnat.com>
23944 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
23945 5vinmaop.adb: Unchecked convert Short_Address vice Address
23947 * adaint.c, raise.c: Caste CRTL function return value
23948 to avoid gcc error on 32/64 bit IVMS.
23950 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
23953 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
23955 * 5qsystem.ads (Address): Declare as Long_Integer
23956 (Short_Address): Declare as 32 bit subtype of Address
23957 Declare abstract address operations to avoid gratuitous ambiguities.
23959 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
23961 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
23962 instead of the old Boolean_Entry_Barriers.
23963 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
23965 2004-05-05 GNAT Script <nobody@gnat.com>
23967 * Make-lang.in: Makefile automatically updated
23969 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
23971 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
23973 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
23976 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
23977 alone. Replacing object references by literals is inappropriate in a
23978 so low level context.
23980 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
23982 * a-exexpr.adb: Add comments
23984 2004-05-03 Joel Brobecker <brobecker@gnat.com>
23986 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
23987 declare the Ancestor_Tags array in Type_Specific_Data with a small size
23988 without risking a bounds check error when accessing one of its
23990 (Type_Specific_Data): Define Ancestor_Tags as a small array.
23991 This prevents us from hitting a limitation during the debug info
23992 generation when using stabs.
23994 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
23996 This prevents us from hitting a limitation during the debug info
23997 generation when using stabs.
23999 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
24001 lang-specs.h: Remove -gnatz* from specs.
24003 2004-05-03 Vincent Celier <celier@gnat.com>
24005 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
24007 * Make-lang.in, Makefile.in: Add gprmake
24009 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
24011 * sem_aggr.adb: Fix typo in comment.
24013 2004-05-03 Robert Dewar <dewar@gnat.com>
24015 * make.adb: Minor reformatting
24017 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
24019 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
24020 so that it works when address is not a private type.
24022 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
24023 properly with rewritten unchecked conversions. This prevents
24024 order-of-elaboration issues that can otherwise arise.
24025 (Minimum_Size): Don't check size of access types under VMS
24027 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
24028 interpretations of integer literals as type System.Address.
24030 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
24031 (Is_Descendent_Of): New function
24033 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
24035 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
24036 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
24037 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
24039 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
24040 of the old Max_Entry_Queue_Depth.
24042 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
24043 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
24044 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
24046 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
24047 New entry for proper handling of Max_Entry_Queue_Depth.
24048 New entry for proper handling of No_Dynamic_Interrupts.
24050 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
24051 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
24052 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
24053 the GNAT specific restriction Max_Entry_Queue_Depth.
24054 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
24055 the GNAT specific restriction No_Dynamic_Interrupts.
24057 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
24058 instead of the old Boolean_Entry_Barriers.
24059 Use the new restriction No_Dynamic_Attachment instead of the old
24060 No_Dynamic_Interrupts.
24062 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
24063 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
24065 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
24066 of the old Max_Entry_Queue_Depth.
24068 2004-05-03 GNAT Script <nobody@gnat.com>
24070 * Make-lang.in: Makefile automatically updated
24072 2004-04-29 Ed Schonberg <schonberg@gnat.com>
24074 * checks.adb (Enable_Range_Check): If the prefix of an index component
24075 is an access to an unconstrained array, perform check unconditionally.
24077 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24079 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
24082 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
24084 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
24085 alternate stack setting. There was no support for the tasking cases
24086 and the changes eventually caused a number of side-effect failures in
24087 the non-tasking case too.
24089 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
24091 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
24094 2004-04-29 Vincent Celier <celier@gnat.com>
24096 * make.adb (Gnatmake): Increase max size of argument array for
24097 gnatbind for the potential addition of -F.
24098 If there are Stand-Alone Library projects, invoke gnatbind with -F to
24099 be sure that elaboration flags will be checked.
24101 * switch-c.adb: Correct call to Scan_Pos for -gnateI
24103 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
24105 * sem_warn.adb (Check_References): Move '<access-variable> may be
24106 null' warning out of under Warn_On_No_Value_Assigned.
24108 2004-04-29 Ed Falis <falis@gnat.com>
24110 * gnat_ugn.texi: Fixed texi error
24112 2004-04-29 Robert Dewar <dewar@gnat.com>
24114 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
24115 abstract operations if they come from predefined files.
24117 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
24120 * s-addope.adb: Correct obvious error in mod function
24122 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
24124 * Makefile.in: Add target pairs for powerpc darwin*
24127 * a-intnam-darwin.ads, s-osinte-darwin.adb,
24128 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
24130 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
24132 * Makefile.in: Add target macro definitions for s390*-linux*.
24133 * system-linux-s390.ads: New file.
24134 * system-linux-s390x.ads: New file.
24136 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
24138 * gnat_ugn.texi: Correct argument to @setfilename.
24140 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
24142 * a-exexpr.adb (Unwind_Word): New data type.
24143 (Unwind_Exception): Use it as type of Private1 and Private2.
24145 * raise.c (db_action_for): Fix debug printf.
24147 2004-04-27 Ed Schonberg <schonberg@gnat.com>
24149 * a-wtmoio.ads: Formal type must be a modular type, not a signed
24152 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24154 * decl.c (gnat_to_gnu_entity, case object): Call
24155 __builtin_update_setjmp_buf.
24157 * gigi.h (update_setjmp_buf): Deleted.
24158 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
24160 * misc.c: (update_setjmp_buf): Deleted.
24162 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
24163 around block of RTL.
24165 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
24167 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
24169 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
24170 subprogram for which no pragma All_Calls_Remote applies, store the
24171 address of the real subprogram in the underlying record type, so local
24172 dereferences do not go through the PCS.
24174 2004-04-26 Robert Dewar <dewar@gnat.com>
24176 * i-c.ads: Add some type qualifications to avoid ambiguities when
24177 compiling with s-auxdec.ads and a non-private address type.
24179 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
24181 * Makefile.rtl: Fix error in previous check-in:
24182 Add s-addope.o to non tasking object list (rather than tasking object
24185 2004-04-26 Javier Miranda <miranda@gnat.com>
24187 * sem_aggr.adb: Fix typo in comments
24188 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
24189 Required to check the null-exclusion attribute.
24191 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
24192 case of anonymous access types in record and array components. For a
24193 component definition the level is the same of the enclosing composite
24196 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
24197 that are anonymous access types the level of accessibility depends on
24198 the enclosing type declaration. In order to have this information, set
24199 the scope of the anonymous access type to the enclosing record type
24201 (Array_Type_Declaration): In case of components that are anonymous
24202 access types the level of accessibility depends on the enclosing type
24203 declaration. In order to have this information, set the scope of the
24204 anonymous access type to the enclosing array type declaration.
24206 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
24209 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
24210 renaming of anonymous access-to-constant types allowed if and only if
24211 the renamed object is access-to-constant.
24213 * sem_util.adb (Type_Access_Level): In case of anonymous access types
24214 that are component_definition or discriminants of a nonlimited type,
24215 the level is the same as that of the enclosing component type.
24217 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
24219 * sem_elim.adb: Some minor code reorganization from code reading. Fix
24220 misprint in the function name (File_Name_Match).
24222 2004-04-23 Laurent GUERBY <laurent@guerby.net>
24224 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
24227 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24229 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
24231 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
24233 * adaint.c (__gnat_try_lock): No longer requires that the parent
24234 directory be writable, the directory itself is enough.
24235 (gnat_is_absolute_path): Change profile, so that the call from
24236 GNAT.OS_Lib can be made more efficient.
24238 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
24239 from GNAT.OS_Lib can be made more efficient.
24241 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
24242 one copy of the file name. Found by code reading.
24244 2004-04-23 Vincent Celier <celier@gnat.com>
24246 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
24247 Correct documentation on gnatmake switches transmitted to the compiler
24249 * ali.ads: Minor comment fix
24251 2004-04-23 Javier Miranda <miranda@gnat.com>
24253 * sem_ch6.adb: (Confirming Types): Code cleanup
24255 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
24256 subprogram types: E_Anonymous_Access_Subprogram_Type and
24257 E_Anonymous_Access_Protected_Subprogram_Type.
24259 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
24261 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
24262 whether a pragma All_Calls_Remote applies to the subprogram on which
24264 No functional change is introduced by this revision; the new parameter
24265 will be used to allow calls to local RCI subprograms to be optimized
24266 to not use the PCS in the case where no pragma All_Calls_Remote applies,
24267 as is already done in the PolyORB implementation of the DSA.
24269 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
24270 whether a pragma All_Calls_Remote applies to the subprogram on which
24272 No functional change is introduced by this revision; the new parameter
24273 will be used to allow calls to local RCI subprograms to be optimized
24274 to not use the PCS in the case where no pragma All_Calls_Remote applies,
24275 as is already done in the PolyORB implementation of the DSA.
24277 2004-04-23 Robert Dewar <dewar@gnat.com>
24279 * Makefile.rtl: Add entry for s-addope.o in run time library list
24280 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
24281 * s-addope.ads, s-addope.adb: New files.
24283 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
24284 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
24285 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
24286 System.Address to be non-private and signed.
24288 * sem_elim.adb: Minor reformatting (fairly extensive)
24289 Some minor code reorganization from code reading
24290 Add a couple of ??? comments
24292 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24294 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
24295 (tree_transform, case N_If_Statement): Remove non-determinism.
24297 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
24299 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
24301 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
24302 Eliminate' section.
24304 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
24305 no longer used as a parameter name for Eliminate pragma).
24307 2004-04-22 Laurent GUERBY <laurent@guerby.net>
24309 PR optimization/14984
24310 PR optimization/14985
24311 * trans.c (gigi): Fix non determinism leading to bootstrap
24312 comparison failures.
24314 2004-04-21 Pascal Obry <obry@gnat.com>
24316 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
24317 passed to spawnvp() to properly handle program pathname with spaces on
24320 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
24322 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
24323 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
24324 unlocked in case of exceptions.
24326 2004-04-21 Joel Brobecker <brobecker@gnat.com>
24328 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
24329 This function does not exist anymore.
24331 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
24333 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
24335 * link.c: Move variables to the __gnat name space.
24337 * Makefile.in: list link.o explicitly when needed.
24339 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
24341 2004-04-21 Javier Miranda <miranda@gnat.com>
24343 * einfo.adb (Original_Access_Type): New subprogram
24344 (Set_Original_Access_Type): New subprogram
24345 (Write_Field21_Name): Write the name of the new field
24347 * einfo.ads (Original_Access_Type): New field present in access to
24349 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
24350 E_Anonymous_Access_Protected_Subprogram_Type.
24352 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
24355 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
24356 to anonymous access to subprogram types.
24358 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
24359 to subprogram types.
24361 * sem_ch3.adb (Access_Definition): Complete decoration of entities
24362 corresponding to anonymous access to subprogram types.
24363 (Analyze_Component_Declaration): Add new actual to the call to
24364 subprogram replace_anonymous_access_to_protected_subprogram.
24365 (Array_Type_Declaration): Add new actual to the call to subprogram
24366 replace_anonymous_access_to_protected_subprogram.
24367 (Process_Discriminants): Add new actual to the call to subprogram
24368 replace_anonymous_access_to_protected_subprogram.
24369 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
24371 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
24374 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
24375 access to subprogram types.
24377 * sem_util.adb (Has_Declarations): Addition of package_specification
24380 2004-04-21 Ed Schonberg <schonberg@gnat.com>
24382 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
24383 inlined flags to renamed entity only if in current unit.
24385 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
24387 * s-parint.ads: Add DSA implementation marker.
24389 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
24390 value of System.Partition_Interface.DSA_Implementation to determine
24391 what version of the distributed systems annex is available (no
24392 implementation, GLADE, or PolyORB).
24394 2004-04-21 Joel Brobecker <brobecker@gnat.com>
24396 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
24398 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24400 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
24401 with new type if alias sets differ.
24402 Fixes ACATS c41103b.
24404 2004-04-21 Vincent Celier <celier@gnat.com>
24406 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
24407 Add array Lang_Args for the language specific compiling argument
24410 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
24412 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
24414 * gnat_rm.texi: Update the descripton of the Eliminate pragma
24415 according to the recent changes in the format of the parameters of the
24416 pragma (replacing Homonym_Number with Source_Location).
24418 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
24420 * 5isystem.ads: Removed, unused.
24422 * gnat_rm.texi: Redo 1.13 change.
24424 2004-04-19 Robert Dewar <dewar@gnat.com>
24426 * s-stoele.ads: Clean up definition of Storage_Offset (the new
24427 definition is cleaner, avoids the kludge of explicit Standard operator
24428 references, and also is consistent with a visible System.Address with
24429 no visible operations.
24431 * s-geveop.adb: Add declarations to avoid assumption of visible
24432 operations on type System.Address (since these might not be available
24433 if Address is a non-private type for which the operations
24434 are made abstract).
24436 * sem_eval.adb: Minor reformatting
24438 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
24439 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
24440 reformatting (new function spec format).
24442 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
24443 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
24444 s-caun64.adb: Add declarations to avoid assumption of visible
24445 operations on type System.Address (since these might not be available
24446 if Address is a non-private type for which the operations are made
24449 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
24451 * exp_intr.adb: Minor comment update
24453 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
24455 * 5omastop.adb: Add declarations to avoid assumption of visible
24456 operations on type System.Address (since these might not be available
24457 if Address is a non-private type for which the operations
24458 are made abstract).
24460 2004-04-19 Vincent Celier <celier@gnat.com>
24462 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
24464 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
24467 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
24469 Call Check with Process_Languages.
24470 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
24471 with Process_Languages.
24472 (Recursive_Check): New Boolean parameter Process_Languages. Call
24473 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
24476 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
24478 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
24479 parameter Ada_Main, defaulted to True.
24480 Check for Ada specific characteristics only when Ada_Main is True.
24482 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
24484 * prj.adb: (Project_Empty): Add new Project_Data components.
24486 * prj.ads: New types and tables for non Ada languages.
24487 (Project_Data): New components Languages, Impl_Suffixes,
24488 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
24489 Include_Path, Include_Data_Set.
24491 * prj-env.ads, prj-env.adb: Minor reformatting
24493 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
24494 Put subprograms in alphabetical order
24496 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
24497 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
24500 * mlib-prj.adb: Back out modification in last version, as they are
24502 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
24504 * make.adb: (Mains): Moved to package Makeutl
24505 (Linker_Opts): Moved to package Makeutl
24506 (Is_External_Assignment): Moved to package Makeutl
24507 (Test_If_Relative_Path): Moved to package Makeutl
24508 (Gnatmake): Move sorting of linker options to function
24509 Makeutl.Linker_Options_Switches.
24511 * makeutl.ads, makeutl.adb: New files.
24513 * Makefile.in: Add makeutl.o to the object files for gnatmake
24515 * makeusg.adb: Add line for new switch -eL.
24517 * gnatls.adb (Image): New function.
24518 (Output_Unit): If in verbose mode, output the list of restrictions
24519 specified by pragmas Restrictions.
24521 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
24524 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
24525 needed, to put it in the range 1970 (included) - 2026 (excluded).
24526 (Time_Of): Do not shift Unix_Min_Year (1970).
24527 Shift the date by multiple of 56 years, if needed, to put it in the
24528 range 1970 (included) - 2026 (excluded).
24530 * adaint.h, adaint.c (__gnat_set_executable): New function.
24532 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24534 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
24535 and pop GC context.
24536 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
24537 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
24538 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
24539 (tree_transform, case N_Code_Statement): Likewise.
24540 (gnat_expand_stmt, case LABEL_STMT): Don't look at
24541 LABEL_STMT_FIRST_IN_EH.
24542 (gnat_expand_stmt, case ASM_STMT): New case.
24544 * utils2.c (build_unary_op): Properly set TREE_READONLY of
24545 UNCONSTRAINED_ARRAY_REF.
24547 * utils.c (poplevel): Temporarily push/pop GC context around inline
24548 function expansion.
24550 * decl.c (maybe_variable): Properly set TREE_READONLY of
24551 UNCONSTRAINED_ARRAY_REF.
24552 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
24554 * ada-tree.def: (ASM_STMT): New.
24556 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
24557 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
24558 ASM_STMT_INPUT): New.
24559 (ASM_STMT_CLOBBER): Likewise.
24561 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
24563 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
24564 general rcheck mechanism to raise Program_Error for E.4(18), instead
24565 of a custom raiser in System.Partition_Interface.
24566 Part of general cleanup work before PolyORB integration.
24568 * snames.ads, snames.adb: Add new runtime library entities and names
24571 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
24573 (Build_Subprogram_Id): New subprogram provided by exp_dist
24574 Code reorganisation in preparation for PolyORB integration.
24576 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
24578 (Build_Subprogram_Id): New subprogram provided by exp_dist
24580 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
24581 actual parameter types for call to dereference of an
24582 access-to-subprogram type.
24584 * rtsfind.ads: Add new runtime library entities and names for PolyORB
24587 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
24588 instead, which has the same behaviour here since we never pass it a
24591 * link.c (run_path_option, Solaris case): Use -Wl, as for other
24594 * Makefile.in: adjust object file lists for gnatlink and gnatmake
24595 to account for new dependency upon Interfaces.C.Strings + link.o
24596 For x86 FreeBSD, use 86numaux.
24598 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
24599 from Mlib.Tgt to Mlib.
24601 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
24602 target-independent.
24604 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
24605 target-specific versions of this subprogram, now implemented as a
24606 target-independent function in Mlib.
24608 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
24609 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
24610 (Linker_Library_Path_Option): Remove target-specific versions of this
24611 subprogram, now implemented as a target-independent function in Mlib.
24613 * atree.adb: (Allocate_Initialize_Node): New subprogram.
24614 Factors out node table slots allocation.
24615 (Fix_Parents): New subprogram.
24616 Encapsulate the pattern of fixing up parent pointers for syntactic
24617 children of a rewritten node.
24618 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
24619 (Rewrite): Use New_Copy when creating saved copy of original node.
24620 (Replace): Use Copy_Node to copy nodes.
24622 2004-04-19 Javier Miranda <miranda@gnat.com>
24624 * sprint.adb (Sprint_Node_Actual): Give support to the new
24625 Access_To_Subprogram node available in Access_Definition nodes. In
24626 addition, give support to the AI-231 node fields: null-exclusion,
24627 all-present, constant-present.
24629 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
24631 * sinfo.ads, sinfo.adb:
24632 New field Access_To_Subprogram_Definition in Access_Definition nodes
24634 * sem_ch6.adb (Process_Formals): Move here the code that creates and
24635 decorates internal subtype declaration corresponding to the
24636 null-excluding formal. This code was previously in Set_Actual_Subtypes.
24637 In addition, carry out some code cleanup on this code. In case of
24638 access to protected subprogram call
24639 Replace_Anonymous_Access_To_Protected_Subprogram.
24640 (Set_Actual_Subtypes): Code cleanup.
24642 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
24643 Find_Type in case of anonymous access renamings. Add warning in case of
24644 null-excluding attribute used in anonymous access renaming.
24646 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
24649 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
24651 (Access_Definition): In case of anonymous access to subprograms call
24652 the corresponding semantic routine to decorate the node.
24653 (Access_Subprogram_Declaration): Addition of some comments indicating
24654 some code that probably should be added here. Detected by comparison
24655 with the access_definition subprogram.
24656 (Analyze_Component_Declaration): In case of access to protected
24657 subprogram call Replace_Anonymous_Access_To_Protected.
24658 (Array_Type_Declaration): In case of access to protected subprogram call
24659 Replace_Anonymous_Access_To_Protected_Subprogram.
24660 (Process_Discriminants): In case of access to protected subprogram call
24661 Replace_Anonymous_Access_To_Protected_Subprogram.
24663 * par.adb (P_Access_Definition): New formal that indicates if the
24664 null-exclusion part was present.
24665 (P_Access_Type_Definition): New formal that indicates if the caller has
24666 already parsed the null-excluding part.
24668 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
24669 (P_Identifier_Declarations): Code cleanup and give support to renamings
24670 of anonymous access to subprogram types.
24671 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
24672 (P_Array_Type_Definition): Give support to AI-254.
24673 (P_Component_Items): Give support to AI-254.
24674 (P_Access_Definition): New formal that indicates if the header was
24675 already parsed by the caller.
24676 (P_Access_Type_Definition): New formal that indicates if the caller has
24677 already parsed the null-excluding part.
24679 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
24680 call to P_Access_Definition.
24682 2004-04-19 Geert Bosch <bosch@gnat.com>
24684 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
24685 the delicate semantics of floating-point to integer conversion.
24686 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
24688 * eval_fat.adb (Machine_Mantissa): Moved to spec.
24689 (Machine_Radix): New function.
24691 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
24693 (Machine_Radix): New function also for use in conversion checks.
24695 2004-04-19 Ed Schonberg <schonberg@gnat.com>
24697 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
24699 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
24700 to decorate the access-to-protected subprogram and the equivalent type.
24702 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
24703 to anonymous access to subprogram types.
24705 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
24706 constant-folding, for legality checks in contexts that require an RM
24709 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
24710 temporary but stack checking is not enabled, increment serial number
24711 to so that symbol generation is consistent with and without stack
24714 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
24715 independent on whether stack checking is enabled, caller must check
24716 the corresponding flag.
24718 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
24720 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
24721 parent if it has discriminants.
24722 (Build_Derived_Private_Type): Constructed full view does
24723 not come from source.
24724 (Process_Discriminants): Default discriminants on a tagged type are
24725 legal if this is the internal completion of a private untagged
24728 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
24729 no constraint checks, because it corresponds to an existing object.
24731 * sem_prag.adb (Process_Convention): Pragma applies
24732 only to subprograms in the same declarative part, i.e. the same unit,
24733 not the same scope.
24735 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
24736 ignore type mismatch on a numeric conversion if expression comes from
24739 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
24741 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
24742 Homonym_Number parameter, add processing for Source_Location parameter
24744 (Check_Eliminated): Remove the check for homonym numbers, add the check
24745 for source location traces.
24747 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
24748 with Arg_Source_Location corresponding to the changes in the format of
24751 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
24752 Eliminate pragma corresponding to the changes in the format of the
24753 pragma: Homonym_Number is replaced with Source_Location, two ways of
24754 distinguishing homonyms are mutially-exclusive.
24756 2004-04-19 Joel Brobecker <brobecker@gnat.com>
24758 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
24760 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
24761 No_Dollar_In_Label, no longer necessary, as it is always True.
24762 (Strip_Suffixes): Likewise.
24764 2004-04-19 Gary Dismukes <dismukes@gnat.com>
24766 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
24767 modulus for compatibility with size clause on targets with 16-bit
24770 * layout.adb (Discrimify): In the case of private types, set Vtyp to
24771 full type to fix type mismatches on calls to size functions for
24772 discriminant-dependent array components.
24774 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
24776 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
24779 2004-04-19 Pascal Obry <obry@gnat.com>
24781 * mdll-utl.adb (Locate): New version is idempotent.
24783 2004-04-17 Laurent Guerby <laurent@guerby.net>
24785 PR ada/14988 (partial)
24786 * impunit.adb: Fix typo.
24788 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
24790 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
24791 and install-rts-cert targets. Remove all gnatlib and gnattools
24792 targets and all other rts-* targets (moved to libada). Remove (now)
24793 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
24794 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
24796 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24798 * trans.c (tree_transform): Shortcut returning error_mark_node for
24799 statements in annotate_only_mode.
24800 (tree_transform, case N_Label, case N_Return_Statement,
24801 N_Goto_Statement): Make statement tree instead of generating code.
24802 (tree_transform, case N_Assignment_Statement): No longer check
24803 type_annotate_only.
24804 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
24806 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
24808 (gnat_to_gnu): Collect any RTL generated and deal with it.
24809 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
24810 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
24811 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
24813 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
24815 * ada-tree.def (EXPR_STMT): Fix typo in name.
24816 (BLOCK_STMT, IF_STMT): New nodes.
24818 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
24819 LABEL_STMT_FIRST_IN_EH): New macros.
24820 (RETURN_STMT_EXPR): Likewise.
24822 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
24823 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
24825 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
24827 * atree.ads: Correct documentation on extended nodes.
24829 * link.c: Set run_path_option for FreeBSD.
24831 2004-04-08 Vincent Celier <celier@gnat.com>
24833 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
24834 one of the ALI file, do not link with DEC lib.
24836 * par.adb Remove the last two characters ("%s" or "%b") when checking
24837 if a language defined unit may be recompiled.
24839 2004-04-08 Ed Schonberg <schonberg@gnat.com>
24841 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
24842 removal of abstract operation leaves no possible interpretation for
24845 * sem_eval.adb (Eval_Qualified_Expression): Use
24846 Set_Raises_Constraint_Error on node when needed, so that it does not
24847 get optimized away by subsequent optimizations.
24849 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
24850 operands even when they are not wrapped in a type conversion.
24852 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
24854 * sem_prag.adb (Set_Exported): Warn about making static as result of
24855 export only when the export is coming from source. This may be not
24856 be true e.g. on VMS where we expand export pragmas for exception codes
24857 together with imported or exported exceptions, and we don't want the
24858 user to be warned about something he didn't write.
24860 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
24862 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
24863 duplication between normal entities and those declared as renamings.
24864 No functional change.
24866 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
24867 inline functions returning an unconstrained result.
24869 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
24871 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
24872 conform to what other front-ends do.
24874 2004-04-08 Doug Rupp <rupp@gnat.com>
24876 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
24879 2004-04-06 Pascal Obry <obry@gnat.com>
24881 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
24883 * osint.adb (Program_Name): Do not look past a directory separator.
24885 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
24887 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
24889 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
24890 requirement for preserving a copy of the original assignment node.
24892 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
24894 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
24896 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
24899 2004-04-06 Ed Schonberg <schonberg@gnat.com>
24901 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
24902 operator calls in functional notation, and apply
24903 Universal_Interpretation to operands, not to their type.
24905 2004-04-06 Robert Dewar <dewar@gnat.com>
24907 * 5wdirval.adb: Minor reformatting
24909 2004-04-06 Ed Falis <falis@gnat.com>
24911 * gnat_rm.texi: Improve a reference to the GCC manual
24913 2004-04-05 Vincent Celier <celier@gnat.com>
24915 * adaint.h, adaint.c: Add function __gnat_named_file_length
24917 * impunit.adb: Add Ada.Directories to the list
24919 * Makefile.in: Add VMS and Windows versions of
24920 Ada.Directories.Validity package body.
24922 * Makefile.rtl: Add a-direct and a-dirval
24924 * mlib-tgt.ads: Minor comment update.
24926 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
24927 a-direct.ads, a-direct.adb: New files.
24929 2004-04-05 Vincent Celier <celier@gnat.com>
24932 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
24933 just to the compiler.
24935 2004-04-05 Robert Dewar <dewar@gnat.com>
24937 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
24938 returned string is 1.
24940 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
24942 * eval_fat.ads: Minor reformatting
24944 * g-curexc.ads: Document that lower bound of returned string values
24947 * gnatlink.adb: Add ??? comment for previous change
24948 (need to document why this is VMS specific)
24950 * s-stoele.ads: Minor reformatting
24952 * tbuild.ads: Minor reformatting throughout (new function specs)
24954 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
24957 * scng.adb: Minor reformatting
24959 2004-04-05 Geert Bosch <bosch@gnat.com>
24961 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
24962 (Leading_Part): Still perform truncation to machine number if the
24963 specified radix_digits is greater or equal to machine_mantissa.
24965 2004-04-05 Javier Miranda <miranda@gnat.com>
24967 * par-ch3.adb: Complete documentation of previous change
24968 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
24969 (aliased must appear before constant).
24971 * par-ch4.adb: Complete documentation of previous change.
24973 * par-ch6.adb: Complete documentation of previous change.
24975 * sinfo.ads: Fix typo in commment.
24977 2004-04-05 Ed Schonberg <schonberg@gnat.com>
24979 * sem_ch3.adb (Inherit_Components): If derived type is private and has
24980 stored discriminants, use its discriminants to constrain parent type,
24981 as is done for non-private derived record types.
24983 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
24984 Ada 2005 AI-310: an abstract non-dispatching operation is not a
24985 candidate interpretation in an overloaded call.
24987 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
24988 expression is Null and target type is not an access type (e.g. a
24989 non-private address type).
24991 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
24993 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
24994 statement whose right-hand side is an inlined call, save a copy of the
24995 original assignment subtree to preserve enough consistency for
24996 Analyze_Assignment to proceed.
24998 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
24999 complete assignment subtree which is now unnecessary, as the expansion
25000 of inlined call has been improved to preserve a consistent assignment
25001 tree. Note_Possible_Modification must be called only
25002 after checks have been applied, or else unnecessary checks will
25005 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
25006 of explicit dereferences that do not Come_From_Source:
25007 - be selective on cases where we must go back to the dereferenced
25008 pointer (an assignment to an implicit dereference must not be
25009 recorded as modifying the pointer);
25010 - do not rely on Original_Node being present (Analyze_Assignment
25011 calls Note_Possible_Modification on a copied tree).
25013 * sem_warn.adb (Check_References): When an unset reference to a pointer
25014 that is never assigned is encountered, prefer '<pointer> may be null'
25015 warning over '<pointer> is never assigned a value'.
25017 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
25019 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
25022 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
25024 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
25025 libexc. We currently don't reference anything in this library and
25026 linking it in triggers linker warnings we don't want to see.
25028 * init.c: Update comments.
25030 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25032 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
25033 * utils.c (create_field_decl): Likewise.
25034 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
25036 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
25038 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
25039 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
25040 Add info directory entry and category.
25042 2004-04-02 Jan Hubicka <jh@suse.cz>
25044 * utils.c: Include function.h
25045 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
25047 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
25050 * Make-lang.in: Clean up generation of documentation
25052 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
25054 * xgnatug.adb: Removed, replaced by xgnatugn.adb
25056 * xgnatugn.adb: Replaces xgnatug.adb
25058 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
25060 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
25062 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
25063 gnat_ug_wnt.texi: Removed.
25065 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
25067 * utils2.c: Update copyright notice.
25069 2004-04-01 Robert Dewar <dewar@gnat.com>
25071 * checks.adb: Minor reformatting throughout
25072 Note that prev checkin added RM reference to alignment warning
25074 2004-04-01 Ed Schonberg <schonberg@gnat.com>
25076 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
25077 non-static when building aggregate for bit-packed array.
25079 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
25080 function call that is itself the actual in a procedure call, build
25083 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
25084 a string literal, create a temporary for it, constant folding only
25085 handles scalars here.
25087 2004-04-01 Vincent Celier <celier@gnat.com>
25089 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
25090 Error_Msg_SP): New empty procedures to instantiate the Scanner.
25091 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
25093 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
25094 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
25095 and get the checksum.
25097 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
25099 Increase the Marking_Label at the end of the Multiple_Main_Loop,
25100 instead of at the beginning.
25102 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
25104 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
25107 * osint.ads (Multi_Unit_Index_Character): New Character global variable
25109 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
25112 * par.adb: Remove test on file name to detect language defined units.
25113 Add test on unit name, after parsing, to detect language defined units
25114 that are not compiled with -gnatg (except System.RPC and its children)
25116 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
25117 following units without style checking.
25119 * switch-c.adb: Change -gnatC to -gnateI
25121 * usage.adb: Document new switch -gnateInnn
25123 * scng.adb (Accumulate_Token_Checksum): New procedure
25124 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
25125 word or literal number.
25126 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
25129 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
25132 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
25133 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
25134 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
25135 5vtpopde.adb: Add missing 'constant' keywords.
25137 2004-04-01 Javier Miranda <miranda@gnat.com>
25139 * par-ch4.adb: (P_Allocator): Code cleanup
25141 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
25144 * sinfo.ads: Complete documentation of previous change
25146 2004-04-01 Pascal Obry <obry@gnat.com>
25148 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
25149 only on VMS. This special handling was done because an old GNU/ld bug
25150 on Windows which has been fixed.
25152 2004-04-01 GNAT Script <nobody@gnat.com>
25154 * Make-lang.in: Makefile automatically updated
25156 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25158 * decl.c (gnat_to_gnu_entity, make_type_from_size):
25159 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
25160 * trans.c (tree_transform, convert_with_check): Likewise.
25161 * utils.c (gnat_signed_or_unsigned_type): Likewise.
25162 (build_vms_descriptor, unchecked_convert): Likewise.
25163 * utils2.c (nonbinary_modular_operation): Likewise.
25165 2004-03-29 Javier Miranda <miranda@gnat.com>
25167 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
25168 (Install_Null_Excluding_Check): Local subprogram that determines whether
25169 an access node requires a runtime access check and if so inserts the
25170 appropriate run-time check.
25171 (Apply_Access_Check): Call Install_Null_Excluding check if required
25172 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
25174 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
25176 * einfo.ads: Fix typo in comment
25178 * exp_ch3.adb (Build_Assignment): Generate conversion to the
25179 null-excluding type to force the corresponding run-time check.
25180 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
25181 type to force the corresponding run-time check.
25183 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
25184 the null-excluding type to force the corresponding run-time check.
25186 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
25187 case of access types unless they have the null-excluding attribute.
25189 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
25192 * exp_util.ads: Fix typo in comment
25194 * par.adb (P_Null_Exclusion): New subprogram
25195 (P_Subtype_Indication): New formal that indicates if the null-excluding
25196 part has been scanned-out and it was present
25198 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
25200 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
25201 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
25202 type to force the corresponding run-time check
25203 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
25205 (Resolve_Array_Aggregate): Carry out some static checks
25206 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
25208 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
25209 attribute must be set only if specified by means of the null-excluding
25210 part. In addition, we must also propagate the access-constant attribute
25212 (Access_Subprogram_Declaration, Access_Type_Declaration,
25213 Analyze_Component_Declaration, Analyze_Object_Declaration,
25214 Array_Type_Declaration, Process_Discriminants,
25215 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
25216 and carry out some static checks.
25217 (Build_Derived_Access_Type): Set the null-excluding attribute
25218 (Derived_Type_Declaration, Process_Subtype): Carry out some static
25221 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
25223 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
25225 * sem_ch6.adb (Process_Formals): Carry out some static checks.
25226 (Set_Actual_Subtypes): Generate null-excluding subtype if the
25227 null-excluding part was present; it is not required to be done here in
25228 case of anonymous access types.
25229 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
25232 * sem_res.adb (Resolve_Actuals): Carry out some static check
25233 (Resolve_Null): Allow null in anonymous access
25235 * sinfo.adb: New subprogram Null_Exclusion_Present
25236 All_Present and Constant_Present available on access_definition nodes
25238 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
25239 object_declaration, derived_type_definition, component_definition,
25240 discriminant_specification, access_to_object_definition,
25241 access_function_definition, allocator, access_procedure_definition,
25242 access_definition, parameter_specification, All_Present and
25243 Constant_Present flags available on access_definition nodes.
25245 2004-03-29 Robert Dewar <dewar@gnat.com>
25247 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
25248 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
25249 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
25250 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
25251 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
25252 sem_prag.adb: Updates to handle multiple units/file
25254 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
25256 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
25257 sem_util.adb: Minor reformatting
25259 * sem_ch12.adb: Add comment for previous change
25261 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
25263 * osint.adb (Executable_Prefix): Set Exec_Name to the current
25264 executable name when not initialized. Otherwise, use its current value.
25266 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
25267 initialize it to another executable name than the current one. This
25268 allows to configure paths for an executable name (gnatmake) different
25269 from the current one (gnatdist).
25271 2004-03-29 Ed Schonberg <schonberg@gnat.com>
25273 * exp_ch6.adb (Expand_Call): A call to a function declared in the
25274 current unit cannot be inlined if it appears in the body of a withed
25275 unit, to avoid order of elaboration problems in gigi.
25277 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
25278 information for protected (wrapper) operation as well, to simplify gdb
25281 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
25282 protected body, indicate that the entity for the generated spec comes
25283 from source, to ensure that references are properly generated for it.
25284 (Build_Body_To_Inline): Do not inline a function that returns a
25287 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
25288 apply convention to homonyms that are declared explicitly.
25290 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
25291 that renames an equality operator and the operands are overloaded,
25292 resolve them with the declared formal types, before rewriting as an
25295 2004-03-29 GNAT Script <nobody@gnat.com>
25297 * Make-lang.in: Makefile automatically updated
25299 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
25301 * memtrack.adb: Log realloc calls, which are treated as free followed
25304 2004-03-25 Vincent Celier <celier@gnat.com>
25306 * prj-makr.adb (Process_Directories): Detect when a file contains
25307 several units. Do not include such files in the config pragmas or
25308 in the naming scheme.
25310 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
25311 Resolve links only when not in Trusted_Mode.
25312 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
25313 Do not resolve links for the display names.
25315 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
25316 resolve links when computing the display names.
25318 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
25320 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
25321 attribute reference does not denote a subtype, it can be any
25322 expression that has a classwide type, potentially after an implicit
25323 dereference. In particular, the prefix can be a view conversion for
25324 a classwide type (for which Is_Object_Reference holds), but it can
25325 also be a value conversion for an access-to-classwide type. In the
25326 latter case, there is an implicit dereference, and the original node
25327 for the prefix does not verify Is_Object_Reference.
25329 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
25330 conversion of a discriminant-dependent component of a mutable object
25333 2004-03-25 Ed Schonberg <schonberg@gnat.com>
25335 * freeze.adb (Freeze_Entity): When an inherited subprogram is
25336 inherited, has convention C, and has unconstrained array parameters,
25337 place the corresponding warning on the derived type declaration rather
25338 than the original subprogram.
25340 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
25341 indication on renaming declaration, if formal has a box and actual
25344 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
25345 determine whether to generate an implicit or explicit reference to
25346 the renamed entity.
25348 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
25349 subprogram renaming comes from a defaulted formal subprogram in an
25352 2004-03-25 Gary Dismukes <dismukes@gnat.com>
25354 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
25355 value expressions to ensure that calls within a component definition
25356 will be checked (since those are evaluated during the record type's
25359 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
25361 * s-tpobop.adb: Code clean up:
25362 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
25364 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
25366 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
25368 * Makefile.in: Clean up in the ravenscar run time.
25370 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25372 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
25373 of No_Strict_Aliasing to build_pointer_type_for_mode.
25374 * utils.c (update_pointer_to): Walk pointer and ref chains.
25376 2004-03-22 Cyrille Comar <comar@act-europe.fr>
25378 * ali.ads: Fix Comment about Dynamic_Elab.
25380 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
25381 Has_RACW, Is_Generic, etc.)
25382 (Output_Object, Gnatls): Take into account ALI files not attached to
25385 2004-03-22 Vincent Celier <celier@gnat.com>
25387 * gprep.adb: Change all String_Access to Name_Id
25388 (Is_ASCII_Letter): new function
25389 (Double_File_Name_Buffer): New procedure
25390 (Preprocess_Infile_Name): New procedure
25391 (Process_Files): New procedure
25392 (Gnatprep): Check if output and input are existing directories.
25393 Call Process_Files to do the real job.
25395 2004-03-22 Robert Dewar <dewar@gnat.com>
25397 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
25398 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
25400 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
25402 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
25403 case when the source contains only comments.
25405 2004-03-22 Ed Schonberg <schonberg@gnat.com>
25407 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
25408 declaration for a child subprogram body that acts as a spec, indicate
25409 that the entity in the declaration needs debugging information.
25411 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
25412 full view if the subtype is created for a constrained record component;
25413 gigi has enough information to construct the record, and there is no
25414 place in the tree for the declaration.
25416 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
25417 serial number for the dummy body that is built for analysis, to avoid
25418 inconsistencies in the generation of internal names when compiling
25421 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
25423 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
25426 2004-03-22 GNAT Script <nobody@gnat.com>
25428 * Make-lang.in: Makefile automatically updated
25430 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25432 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
25433 * trans.c (tree_transform, emit_index_check): Likewise.
25434 * utils.c (build_template): Likewise.
25435 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
25436 (maybe_unconstrained_array, unchecked_convert): Likewise.
25437 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
25438 (build_unary_op): Likewise.
25439 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
25440 (fill_vms_descriptor): Likewise.
25441 (build_call_alloc_dealloc): Likewise.
25443 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
25445 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
25448 * gnat_ug.texi: Add info directory category and entry.
25449 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
25450 gnat_ug_wnt.texi: Regenerate.
25452 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
25454 * ada-tree.h: Update copyright notice.
25455 Minor reformatting.
25457 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
25459 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
25460 as regular exception objects and not as mere integers representing the
25461 condition code. The latter approach required some dynamics to mask off
25462 severity bits, which did not fit well into the GCC table based model.
25463 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
25464 exception data objects. We don't it and it would conflict with the other
25465 external symbol we have to generate for such exceptions.
25467 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
25468 the special code for VMS exceptions, since these are now represented
25469 as regular exceptions objects.
25471 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25473 * decl.c (debug_no_type_hash): Remove.
25474 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
25475 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
25477 2004-03-19 Laurent Guerby <laurent@guerby.net>
25479 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
25480 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
25482 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25484 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
25485 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
25486 (TYPE_RM_SIZE_INT): Directly use type.values.
25487 (TREE_LOOP_ID): Clean up check.
25488 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
25489 TYPE_VALUES, not TYPE_FIELDS.
25490 * trans.c (convert_with_check): Delay access of bounds of basetype
25491 until sure is numeric.
25493 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
25495 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
25498 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
25499 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
25500 Specific.Set instead of direct call to e.g pthread_setspecific.
25502 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
25504 * adaint.c: Update comments.
25506 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
25507 GNATLIB_SHARED for FreeBSD.
25509 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
25511 * init.c [VxWorks]: Do not fix the stack size for the environment task.
25512 When needed (stack checking) the stack size is retrieved
25513 from the VxWorks kernel.
25515 * Makefile.in: Flag -nostdinc is required when building the run time
25516 for avoiding looking for files in the base compiler.
25517 Add the VxWorks specific version of the package body for
25518 System.Stack_checking.Operations (5zstchop.adb).
25520 * Make-lang.in: Add the object file for
25521 System.Stack_Checking.Operations.
25523 * Makefile.rtl: Add object file for the package
25524 System.Stack_Checking.Operations.
25526 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
25528 * s-stache.ads, s-stache.adb: Move the operations related to stack
25529 checking from this package to package System.Stack_Checking.Operations.
25530 This way, stack checking operations are only linked in the final
25531 executable when using the -fstack-check flag.
25533 2004-03-18 Doug Rupp <rupp@gnat.com>
25535 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
25538 * 5qsystem.ads, 5xcrtl.ads: New files.
25540 2004-03-18 Vincent Celier <celier@gnat.com>
25542 * prj.adb (Reset): Reset hash table Files_Htable
25544 * prj-env.adb (Source_Paths, Object_Paths): New tables.
25545 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
25546 the procedures Add_To_Path_File.
25547 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
25548 making sure that each directory is present only once and, for object
25549 dirs, when a directory already present is added, the duplicate is
25550 removed and the directory is always put as the last in the table.
25551 Write the path files at the end of these accumulations.
25553 * prj-nmsc.adb (Record_Source): Add source file name in hash table
25554 Files_Htable for all sources.
25556 * prj-proc.adb (Process): Remove restrictions between not directly
25557 related extending projects.
25559 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
25561 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
25562 (Find_Sources): Minor speed optimization.
25564 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
25565 parameter Trusted_Mode.
25567 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
25569 * scn.adb (Determine_License): Take into account a degenerated case
25570 when the source contains only comments.
25572 2004-03-18 Ed Schonberg <schonberg@gnat.com>
25574 * sem_warn.adb (Check_References): For a warning on a selected
25575 component that does not come from source, locate an uninitialized
25576 component of the record type to produce a more precise error message.
25578 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
25580 * 3zsoccon.ads: Fix multicast options.
25582 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
25585 2004-03-15 Robert Dewar <dewar@gnat.com>
25587 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
25588 pragma used for a private type.
25590 * lib-xref.adb (Generate_Reference): Do not generate warning if
25591 reference is in a different unit from the pragma Unreferenced.
25593 * 5vtpopde.adb: Minor reformatting
25594 Fix casing of To_Task_ID
25596 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
25597 flag if we have an unchecked conversion to an access type in the same
25600 2004-03-15 Geert Bosch <bosch@gnat.com>
25602 * a-ngcoty.adb (Modulus): In alternate formula for large real or
25603 imaginary parts, use Double precision throughout.
25605 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
25606 we want to be able to compile run-time with -gnata for testing, but
25607 this may also be instantiated in user code that is compiled with -gnata.
25609 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
25611 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
25612 codes. Having a separate type for this is useful to enforce consistency
25613 throughout the various run-time units.
25614 (Exception_Data): Use Exception_Code for Import_Code.
25616 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
25617 Natural and Integer in various places.
25618 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
25619 with the severity bits masked off.
25620 (Register_VMS_Exception): Handle the additional exception data pointer
25623 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
25624 component, now reflected by an exported accessor.
25625 (is_handled_by): New routine to compute whether the propagated
25626 occurrence matches some handler choice specification. Extracted out of
25627 get_action_description_for, and expanded to take care of the VMS
25629 (get_action_description_for): Use is_handled_by instead of an explicit
25630 complex condition to decide if the current choice at hand catches the
25631 propagated occurrence.
25633 * raise.h (Exception_Code): New type for C.
25635 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
25636 System.Standard_Library.Exception_Code, to allow references from the
25637 pragma import/export expander.
25639 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
25640 New accessors to allow easy access to GNAT exception data
25642 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
25643 redundant Handled_By_Others component, helper for the personality
25644 routine which will now be able to call the appropriate exception data
25647 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
25648 component of Standard_Exception_Type to be the closest possible to
25649 Exception_Code in System.Standard_Library, that we cannot get at this
25650 point. Expand a ??? comment to notify that this type node should
25651 probably be rewritten later on.
25653 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
25654 registration call to include a pointer to the exception object in the
25657 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
25658 instead of int and explicit bitmasks.
25660 2004-03-15 Vincent Celier <celier@gnat.com>
25662 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
25663 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
25665 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
25666 longer needed now that it is in the spec of
25667 System.Tasking.Task_Attributes.
25669 * adaint.h, adaint.c: (__gnat_create_output_file): New function
25671 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
25673 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
25675 * make.adb (Gnatmake): Do not check the executable suffix; it is being
25676 taken care of in Scan_Make_Arg.
25677 (Scan_Make_Arg): Add the executable suffix only if the argument
25678 following -o, in canonical case, does not end with the executable
25679 suffix. When in verbose mode and executable file name does not end
25680 with executable suffix, output the executable name, in canonical case.
25682 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
25683 to avoid warnings when instantiating Ada.Task_Attributes.
25686 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
25687 in the correct order.
25689 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
25690 redirect standard output and error to a file for the invocation of the
25691 compiler, then read the file.
25693 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
25694 directory, instead of the Value.
25695 (Find_Source_Dirs): Remove useless code & comments.
25697 2004-03-15 Ed Schonberg <schonberg@gnat.com>
25699 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
25700 tagged type is inherited, and the parent operation is not frozen yet,
25701 force generation of a freeze node for the inherited operation, so the
25702 corresponding dispatch entry is properly initialized.
25703 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
25704 when looking for user-defined equality operation.
25706 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
25707 boolean when locating primitive equality of tagged component.
25709 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
25710 bit-aligned field and the right-hand side a string literal, introduce
25711 a temporary before expanding assignment into a loop.
25713 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
25714 priority in full, to ensure that any expanded subepxressions of it are
25715 elaborated in the scope of the init_proc.
25717 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
25718 after object declaration, skipping over code that may have been
25719 generated for validity checks.
25721 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
25722 discriminants, ignore the known discriminants of its full view, if
25723 any, to check legality.
25725 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
25726 component if type has unknown discriminants.
25727 (Analyze_Private_Extension_Declaration): Discriminant constraint is
25728 null if type has unknown discriminants.
25730 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
25731 for end label when present.
25733 * s-fileio.adb (Open): When called with a C_Stream, use given name for
25734 temporary file, rather than an empty string.
25736 2004-03-15 Ed Falis <falis@gnat.com>
25738 * s-thread.adb: Removed, no longer used.
25740 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25742 * decl.c (target.h): Now include.
25743 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
25744 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
25745 (validate_size): For POINTER_TYPE, get smallest size permitted on
25748 * fe.h: Sort Einfo decls and add Set_Mechanism.
25750 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
25751 (ada/decl.o): Depends on target.h.
25753 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
25754 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
25756 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
25758 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
25760 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
25761 Insert_Dereference_Action when rewriting an implicit dereference into
25762 an explicit one, this will be taken care of during expansion of the
25763 explicit dereference.
25764 (Expand_N_Slice): Same. Always do the rewriting, even for the case
25765 of non-packed slices, since the dereference action generated by
25766 expansion of the explicit dereference is needed in any case.
25767 (Expand_N_Selected_Component): When rewriting an implicit dereference,
25768 analyze and resolve the rewritten explicit dereference so it is seen
25770 (Insert_Dereference_Action): This procedure is now called only for the
25771 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
25772 dereferences that do not come from source (including explicit
25773 dereferences resulting from rewriting implicit ones), but do not
25774 recursively insert a check for the dereference nodes contained within
25776 (Insert_Dereference_Action): Clarify and correct comment.
25778 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
25781 Move language detection to the top level.
25782 * config-lang.in: Build by default.
25784 2004-03-05 Robert Dewar <dewar@gnat.com>
25786 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
25788 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
25789 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
25790 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
25791 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
25792 unchecked conversion to spec to avoid warnings.
25794 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
25797 * 7stpopsp.adb: Correct casing in To_Task_ID call
25799 * a-strsea.ads, a-strsea.adb: Minor reformatting
25801 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
25803 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
25804 Adjust Max_Msg_Length to be clearly large enough.
25806 * fe.h: Define In_Same_Source_Unit
25808 * osint.adb: Add pragma Warnings Off to suppress warnings
25809 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
25812 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
25814 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
25816 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
25818 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
25820 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
25822 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
25823 node. We now do generate them for gcc back end.
25825 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
25828 * sinput-c.adb: Fix bad name in header.
25829 Add pragma Warnings Off to suppress aliasing warning.
25831 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
25833 * snames.h, snames.ads, snames.adb: Add entry for pragma
25834 No_Strict_Aliasing.
25836 2004-03-05 Vincent Celier <celier@gnat.com>
25838 * prj-com.ads: Add hash table Files_Htable to check when a file name
25839 is already a source of another project.
25841 * prj-nmsc.adb (Record_Source): Before recording a new source, check
25842 if its file name is not already a source of another project. Report an
25845 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
25846 source file name, call gnatpp with all the sources of the main project.
25848 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
25851 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
25852 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
25853 /RUNTIME_SYSTEM=, converted to --RTS=
25854 /NOTABS, converted to -notabs
25856 2004-03-05 Pascal Obry <obry@gnat.com>
25858 * make.adb: Minor reformatting.
25860 2004-03-05 Ed Schonberg <schonberg@gnat.com>
25862 Part of implemention of AI-262.
25863 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
25865 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
25868 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
25869 when component type is a partially constrained class-wide subtype.
25870 (Constrain_Discriminated_Type): If parent type has unknown
25871 discriminants, a constraint is illegal, even if full view has
25873 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
25874 with unknown discriminants whose full view is a discriminated record.
25876 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
25877 flag, to handle properly derivations of tagged types with unknown
25879 (Analyze_Package_Spec, Analyze_Package_Body): Install
25880 Private_With_Clauses before analyzing private part or body.
25882 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
25883 Has_Discriminants can be true for a given type (documentation).
25885 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
25887 * s-restri.ads: Fix license (GPL->GMGPL).
25889 * s-tassta.adb: Minor reformatting.
25891 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
25892 by calls to Exit_One_ATC_Level, since additional clean up is performed
25895 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
25896 by calls to Exit_One_ATC_Level, since additional clean up is performed
25899 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25901 * trans.c: Reflect GCC changes to fix bootstrap problem.
25902 Add warning for suspicious aliasing unchecked conversion.
25904 2004-03-05 GNAT Script <nobody@gnat.com>
25906 * Make-lang.in: Makefile automatically updated
25908 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
25910 * ali.adb (Read_Instantiation_Instance): Do not modify the
25911 current_file_num when reading information about instantiations, since
25912 this corrupts files in later references.
25914 2004-03-02 Vincent Celier <celier@gnat.com>
25916 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
25917 before checking if it is read-only.
25919 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
25920 of SRC_DIRS and eliminate duplicates.
25922 * gprcmd.adb: Replace command "path" with command "path_sep" to return
25923 the path separator.
25924 (Usage): Document path_sep
25926 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
25927 C++ compiler. No need for a script.
25928 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
25929 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
25932 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
25933 where there are Ada sources.
25934 (Set_Ada_Paths): Only add to the include path the source dirs of project
25936 (Add_To_Path): Add the Display_Values of the directories, not their
25939 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
25942 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
25944 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
25945 Value is canonicalized.
25946 (Language_Independent_Check): Do not copy Value to Display_Value when
25947 canonicalizing Value.
25949 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
25950 path to find limited with cycles.
25951 (Parse_Single_Project): Use canonical cased path to find the end of a
25954 2004-03-02 Ed Schonberg <schonberg@gnat.com>
25956 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
25957 and not a child unit.
25959 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
25960 appear in a with_clause.
25962 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
25963 only happen in type_annotate mode, do not try to elaborate it.
25965 * exp_util.adb (Force_Evaluation): If expression is a selected
25966 component on the left of an assignment, use a renaming rather than a
25967 temporary to remove side effects.
25969 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
25970 inlined instance body, which is analyzed before the end of the
25973 2004-03-02 Robert Dewar <dewar@gnat.com>
25975 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
25976 sem_ch4.adb: Use new feature for substitution of keywords in VMS
25978 * errout.ads, errout.adb: Implement new circuit for substitution of
25981 * sem_case.adb (Analyze_Choices): Place message properly when case is
25982 a subtype reference rather than an explicit range.
25984 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
25986 2004-03-02 Doug Rupp <rupp@gnat.com>
25988 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
25990 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
25992 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
25994 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25996 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
25999 2004-02-25 Robert Dewar <dewar@gnat.com>
26001 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
26002 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
26003 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
26004 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
26005 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
26006 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
26007 the defining instance of the type to avoid aliasing problems.
26008 Fix copyright header. Fix bad comments in package header.
26010 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
26012 2004-02-25 Ed Schonberg <schonberg@gnat.com>
26014 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
26015 rewritten as references when aliased through an address clause.
26017 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
26018 whether call can be interpreted as an indirect call to the result of a
26019 parameterless function call returning an access subprogram.
26021 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
26024 * exp_ch7.adb (Make_Clean): Remove generation of calls to
26025 Unlock[_Entries], since this is now done by Service_Entries directly.
26027 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
26029 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
26030 Requeue_Call for better code readability. Change spec and update calls:
26031 PO_Service_Entries now unlock the PO on exit.
26032 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
26033 PO_Service_Entries.
26035 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
26037 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
26039 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
26041 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
26042 protected subprogram call and analyzing the result of such expanding
26043 in case when the called protected subprogram is eliminated.
26045 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
26048 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
26050 * Makefile.in: Clean ups.
26052 2004-02-23 Ed Schonberg <schonberg@gnat.com>
26054 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
26055 protected operations if original subprogram is flagged as eliminated.
26056 (Expand_N_Subprogram_Body): For a protected operation, create
26057 discriminals for next operation before checking whether the operation
26060 * exp_ch9.adb (Expand_N_Protected_Body,
26061 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
26062 for internal protected operations if the original subprogram is
26065 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
26066 declared in a single protected object.
26068 2004-02-23 Vincent Celier <celier@gnat.com>
26070 * prj-attr.adb: Make attribute Builder'Executable an associative array,
26071 case insensitive if file names are case insensitive, instead of a
26072 standard associative array.
26074 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
26075 them as case insensitive on platforms where the file names are case
26078 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
26079 project file has already been parsed that canonical path are compared.
26081 2004-02-23 Robert Dewar <dewar@gnat.com>
26083 * sinput-c.ads: Correct bad unit title in header
26085 * freeze.adb: Minor reformatting
26087 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26089 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
26090 nonaddressable COMPONENT_REF that is removing padding that we are
26091 taking the address of, take the address of the padded record instead
26092 if item is variable size.
26094 2004-02-20 Robert Dewar <dewar@gnat.com>
26096 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
26098 2004-02-20 Ed Schonberg <schonberg@gnat.com>
26100 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
26101 itype references for the constrained designated type of a component
26102 whose base type is already frozen.
26104 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
26106 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
26107 avoid GCC warnings.
26109 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
26111 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
26112 identifier for a phantom package that rewrites the formal package
26113 declaration with a box. The Add semantic decorations for the defining
26114 identifier from the original node (that represents the formal package).
26116 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
26118 * Make-lang.in (ada/stamp-sdefault): Use the top level
26121 2004-02-19 Richard Henderson <rth@redhat.com>
26123 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
26125 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
26127 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
26128 Scan_ALI can be used for multiple ALI files without reinitializing
26131 2004-02-18 Robert Dewar <dewar@gnat.com>
26133 * debug.adb: Minor reformatting.
26135 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26137 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
26138 to zero if there is an address clause.
26140 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
26142 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
26144 2004-02-18 Gary Dismukes <dismukes@gnat.com>
26146 * layout.adb (Layout_Component_List): Revise generation of call to
26147 discriminant-checking function to pass selections of all of the type's
26148 discriminants rather than just the variant-controlling discriminant.
26150 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
26152 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
26153 fail in the current setup and triggers spurious system error messages.
26154 Pretend it occurred and failed instead.
26156 2004-02-18 Vincent Celier <celier@gnat.com>
26158 * bld.adb: Mark FLDFLAGS as saved
26159 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
26160 it is not the root project. Put each directory to be
26161 extended between double quotes to prevent it to be expanded on Windows.
26162 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
26163 the project file. Set them back to their initial values if they have not
26164 been set in the project file.
26166 * gprcmd.adb: (Gprdebug, Debug): New global variables
26167 (Display_Command): New procedure
26168 (Usage): Document new command "linkopts"
26169 Call Display_Command when env var GPRDEBUG has the value "TRUE"
26170 Implement new command "linkopts"
26171 Remove quotes that may be around arguments for "extend"
26172 Always call Normalize_Pathname with arguments formatted for the platform
26174 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
26175 Change @echo to @$(display) in target clean to be able to clean silently
26177 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
26179 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
26182 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
26183 = Extending_All when current project is an extending all project.
26185 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
26186 set to True only for LINK command, after Unix switch -o.
26187 (Process_Arguments): Set Output_File_Expected to True for LINK command
26188 after Unix switch -o. When Output_File_Expected is True, never add an
26189 extension to a file name.
26191 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
26192 option file name, only to the --for-linker= switch.
26193 (Option_File_Name): If option file name do not end with ".opt", append
26196 2004-02-18 GNAT Script <nobody@gnat.com>
26198 * Make-lang.in: Makefile automatically updated
26200 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
26202 * Make-lang.in (stamp-sdefault): Do not depend on
26205 2004-02-12 Zack Weinberg <zack@codesourcery.com>
26207 * config-lang.in: Disable Ada by default until probe logic for
26208 a bootstrap Ada compiler can be moved to the top level configure
26211 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
26213 * decl.c (components_to_record): Don't claim that the internal fields
26214 we make to hold the variant parts are semantically addressable, because
26217 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
26218 adjust the comment describing the modular type form when we can use it.
26219 (Install_PAT): Account for the Esiz renaming.
26221 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
26222 sc_onstack context indication before raising the exception to which
26223 the signal is mapped. Allows better handling of later signals possibly
26224 triggered by the resumed user code if the exception is handled.
26226 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
26228 * 5zinit.adb: Removed, no longer used.
26230 2004-02-12 Robert Dewar <dewar@gnat.com>
26232 * ali.adb: Remove separating space between parameters on R line. Makes
26233 format consistent with format used by the binder for Set_Globals call.
26235 * atree.ads, atree.adb: Minor reformatting (new function header format)
26237 * bindgen.adb: Add Run-Time Globals documentation section containing
26238 detailed documentation of the globals passed from the binder file to
26241 * gnatls.adb: Minor reformatting
26243 * init.c (__gnat_set_globals): Add note pointing to documentation in
26246 * lib-writ.ads, lib-writ.adb: Remove separating space between
26247 parameters on R line.
26248 Makes format consistent with format used by the binder for Set_Globals
26251 * osint.ads: Add 2004 to copyright notice
26254 * snames.ads: Correct capitalization of FIFO_Within_Priorities
26255 Noticed during code reading, documentation issue only
26257 * usage.adb: Remove junk line for obsolete C switch
26258 Noticed during code reading
26260 2004-02-12 Vincent Celier <celier@gnat.com>
26262 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
26263 extend for each directory, so that multiple /** directories are
26264 extended individually.
26265 (Recursive_Process): Set the default for LANGUAGES to ada
26267 * gprcmd.adb: Define new command "ignore", to do nothing.
26268 Implement new comment "path".
26270 * Makefile.generic: Suppress output when SILENT is set
26271 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
26272 used, so that the correct compiler is invoked.
26273 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
26274 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
26276 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
26278 * Makefile.in: Clean ups and remove obsolete targets.
26280 2004-02-12 Ed Schonberg <schonberg@gnat.com>
26282 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
26283 predicate declared in exp_util.
26285 * exp_util.adb: Add comments.
26287 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
26288 visibility before compiling context of the subunit.
26290 * sem_res.adb (Check_Parameterless_Call): If the context expects a
26291 value but the name is a procedure, do not attempt to analyze as a call,
26292 in order to obtain more telling diagnostics.
26294 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
26295 'Access on parameterless function calls.
26296 (Normalize_Actuals): For a parameterless function call with missing
26297 actuals, defer diagnostic until resolution of enclosing call.
26299 * sem_util.adb (Wrong_Type): If the context type is an access to
26300 subprogram and the expression is a procedure name, suggest a missing
26303 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
26304 Nathanael Nerode <neroden@gcc.gnu.org>
26308 Merge with libada-branch:
26309 * config-lang.in: Build libada only when ada is built.
26311 2004-02-09 Ed Schonberg <schonberg@gnat.com>
26313 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
26314 for a tagged type, verify that both formals have the same type.
26316 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
26317 temporary when the formal is an in-parameter and the actual a possibly
26320 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
26321 when expansion is disabled, to ensure proper name capture with
26322 overloaded literals. Condition can be of any boolean type, resolve
26325 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
26326 renaming is for a formal subprogram with a default operator name, and
26327 there is a usable operator that is visible at the point of
26330 2004-02-09 Robert Dewar <dewar@gnat.com>
26332 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
26333 rewrite to ignore errors in ali files, intended to allow tools downward
26334 compatibility with new versions of ali files.
26336 * ali.ads: Add new parameter Ignore_Errors
26338 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
26339 duplicating the error message giving the file with restrictions.
26341 * debug.adb: Add debug flag I for gnatbind
26343 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
26344 operators for the case where the operator is a defining operator.
26346 * exp_ch3.adb: Minor reformatting (new function spec format).
26348 * exp_ch4.adb: Add comment for previous change, and make minor
26349 adjustment to loop to always check for improper loop termination.
26350 Minor reformatting throughout (new function spec format).
26352 * gnatbind.adb: Implement -di debug flag for gnatbind
26354 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
26356 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
26358 * lib-load.adb: Fix bad assertion.
26359 Found by testing and code reading.
26360 Minor reformatting.
26362 * lib-load.ads: Minor reformatting.
26364 * lib-writ.adb: There is only one R line now.
26366 * lib-writ.ads: Add documentation on making downward compatible changes
26367 to ali files so old tools work with new ali files.
26368 There is only one R line now.
26369 Add documentation on format incompatibilities (with special GPS note)
26371 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
26373 * par-load.adb: Minor reformatting
26375 * sem_ch8.adb: Fix to error message from last update
26376 Minor reformatting and restructuring of code from last update
26378 * par-prag.adb, snames.adb, snames.ads, snames.h,
26379 sem_prag.adb: Implement pragma Profile.
26381 * stylesw.adb: Implement -gnatyN switch to turn off all style check
26384 * usage.adb: Add line for -gnatyN switch
26386 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
26388 2004-02-09 Albert Lee <lee@gnat.com>
26390 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
26392 2004-02-09 Ed Schonberg <schonberg@gnat.com>
26394 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
26397 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
26398 is nested in an instance that is not frozen yet, to avoid
26399 order-of-elaboration problems in gigi.
26401 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
26402 body the attribute is legal.
26404 2004-02-09 Robert Dewar <dewar@gnat.com>
26406 * s-rident.ads: Minor comment correction
26408 * targparm.adb: Remove dependence on uintp completely. There was
26409 always a bug in Make in that it called Targparm before initializing
26410 the Uint package. The old code appeared to get away with this, but
26411 the new code did not! This caused an assertion error in gnatmake.
26413 * targparm.ads: Fix bad comment, restriction pragmas with parameters
26414 are indeed fully supported.
26416 2004-02-06 Alan Modra <amodra@bigpond.net.au>
26418 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
26420 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
26422 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
26423 with targetm.calls.promote_prototypes.
26425 2004-02-04 Robert Dewar <dewar@gnat.com>
26427 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
26428 ali.ads, gprcmd.adb: Minor reformatting
26430 * bindgen.adb: Output restrictions string for new style restrictions
26433 * impunit.adb: Add s-rident.ads (System.Rident) and
26434 s-restri (System.Restrictions)
26436 * lib-writ.adb: Fix bug in writing restrictions string (last few
26439 * s-restri.ads, s-restri.adb: Change name Restrictions to
26440 Run_Time_Restrictions to avoid conflict with package name.
26441 Add circuit to read and acquire run time restrictions.
26443 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
26445 * restrict.ads, restrict.adb: Use the new restriction
26446 No_Task_Attributes_Package instead of the old No_Task_Attributes.
26448 * sem_prag.adb: No_Task_Attributes is a synonym of
26449 No_Task_Attributes_Package.
26451 * snames.ads, snames.adb: New entry for proper handling of
26452 No_Task_Attributes.
26454 * s-rident.ads: Adding restriction No_Task_Attributes_Package
26455 (AI-00249) that supersedes the GNAT specific restriction
26456 No_Task_Attributes.
26458 2004-02-04 Ed Schonberg <schonberg@gnat.com>
26461 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
26462 body, an identifier may be wrapped in an unchecked conversion.
26464 2004-02-04 Vincent Celier <celier@gnat.com>
26466 * lib-writ.ads: Comment update for the W lines
26468 * bld.adb: (Expression): An empty string list is static
26470 * fname-uf.adb: Minor comment update
26472 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
26474 * gnatbind.adb: Initialize Cumulative_Restrictions with the
26475 restrictions on the target.
26477 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
26479 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
26482 2004-02-02 Arnaud Charlet <charlet@gnat.com>
26484 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
26486 2004-02-02 Vincent Celier <celier@gnat.com>
26488 * gprcmd.adb (Check_Args): If condition is false, print the invoked
26489 comment before the usage.
26490 Gprcmd: Fail when command is not recognized.
26491 (Usage): Document command "prefix"
26493 * g-md5.adb (Digest): Process last block.
26494 (Update): Do not process last block. Store remaining characters and
26497 * g-md5.ads (Update): Document that several call to update are
26498 equivalent to one call with the concatenated string.
26499 (Context): Add fields to allow new Update behaviour.
26501 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
26502 defaulted to False.
26503 When May_Fail is True and no existing file can be found, return No_File.
26505 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
26508 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
26509 spec file name instead on the W line.
26511 2004-02-02 Robert Dewar <dewar@gnat.com>
26513 * ali.adb: Read and acquire info from new format restrictions lines
26515 * bcheck.adb: Add circuits for checking restrictions with parameters
26517 * bindgen.adb: Output dummy restrictions data
26518 To be changed later
26520 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
26521 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
26522 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
26523 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
26524 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
26526 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
26527 the warning message on access to possibly uninitialized variable S)
26528 Minor changes for new restrictions handling.
26530 * gnatbind.adb: Minor reformatting
26531 Minor changes for new restrictions handling
26532 Move circuit for -r processing here from bcheck (cleaner)
26534 * gnatcmd.adb, gnatlink.adb: Minor reformatting
26536 * lib-writ.adb: Output new format restrictions lines
26538 * lib-writ.ads: Document new R format lines for new restrictions
26541 * s-restri.ads/adb: New files
26543 * Makefile.rtl: Add entry for s-restri.ads/adb
26545 * par-ch3.adb: Fix bad error messages starting with upper case letter
26548 * restrict.adb: Major rewrite throughout for new restrictions handling
26549 Major point is to handle restrictions with parameters
26551 * restrict.ads: Major changes in interface to handle restrictions with
26552 parameters. Also generally simplifies setting of restrictions.
26554 * snames.ads/adb: New entry for proper handling of No_Requeue
26556 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
26557 restriction counting.
26558 Other minor changes for new restrictions handling
26560 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
26561 Restriction_Warnings now allows full parameter notation
26562 Major rewrite of Restrictions for new restrictions handling
26564 2004-02-02 Javier Miranda <miranda@gnat.com>
26566 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
26567 syntax rule for object renaming declarations.
26568 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
26569 component definitions.
26571 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
26573 (Array_Type_Declaration): Give support to access components. In addition
26574 it was also modified to reflect the name of the object in anonymous
26575 array types. The old code did not take into account that it is possible
26576 to have an unconstrained anonymous array with an initial value.
26577 (Check_Or_Process_Discriminants): Allow access discriminant in
26579 (Process_Discriminants): Allow access discriminant in non-limited types
26580 Initialize the new Access_Definition field in N_Object_Renaming_Decl
26581 node. Change Ada0Y to Ada 0Y in comments
26583 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
26584 equality operators.
26585 Change Ada0Y to Ada 0Y in comments
26587 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
26588 renamings Change Ada0Y to Ada 0Y in comments
26590 * sem_type.adb (Find_Unique_Type): Give support to the equality
26591 operators for universal access types
26592 Change Ada0Y to Ada 0Y in comments
26594 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
26596 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
26598 (N_Object_Renaming_Declaration): Addition of Access_Definition field
26599 Change Ada0Y to Ada 0Y in comments
26601 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
26602 component definition and object renaming nodes
26603 Change Ada0Y to Ada 0Y in comments
26605 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
26607 * restrict.adb: Use the new restriction identifier
26608 No_Requeue_Statements instead of the old No_Requeue for defining the
26609 restricted profile.
26611 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
26612 No_Requeue_Statements.
26614 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
26615 that supersedes the GNAT specific restriction No_Requeue. The later is
26616 kept for backward compatibility.
26618 2004-02-02 Ed Schonberg <schonberg@gnat.com>
26620 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
26621 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
26622 pragma and fix incorrect ones.
26624 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
26625 warning if the pragma is redundant.
26627 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
26629 * 5staprop.adb: Add missing 'constant' keywords.
26631 * Makefile.in: use consistent value for SYMLIB on
26632 platforms where libaddr2line is supported.
26634 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26636 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
26639 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
26641 * init.c (__gnat_install_handler): Setup an alternate stack for signal
26642 handlers in the environment thread. This allows proper propagation of
26643 an exception on stack overflows in this thread even when the builtin
26644 ABI stack-checking scheme is used without support for a stack reserve
26647 * utils.c (create_field_decl): Augment the head comment about bitfield
26648 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
26649 here, because the former is not accurate enough at this point.
26650 Let finish_record_type decide instead.
26651 Don't make a bitfield if the field is to be addressable.
26652 Always set a size for the field if the record is packed, to ensure the
26653 checks for bitfield creation are triggered.
26654 (finish_record_type): During last pass over the fields, clear
26655 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
26656 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
26657 from DECL_BIT_FIELD.
26659 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
26661 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
26662 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
26663 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
26665 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26667 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
26669 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
26670 (ZCX_By_Default): Likewise.
26671 (Front_End_ZCX_Support): Likewise.
26673 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
26674 (Initialize_Lock): Mark Level unreferenced.
26675 (Sleep): Mark Reason unreferenced.
26676 (Timed_Sleep): Likewise.
26677 (Wakeup): Likewise.
26678 (Exit_Task): Use Result.
26679 (Check_No_Locks): Mark Self_ID unreferenced.
26681 * 5gtasinf.adb (New_Sproc): Make Attr constant.
26682 (Bound_Thread_Attributes): Make Sproc constant.
26683 (New_Bound_Thread_Attributes): Likewise.
26685 2004-01-26 Ed Schonberg <schonberg@gnat.com>
26687 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
26688 one-dimensional array an slice assignments, when component type is
26691 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
26692 component type is controlled, and control_actions are in effect, use
26693 TSS procedure rather than generating inline code.
26695 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
26696 arrays with controlled components.
26698 2004-01-26 Vincent Celier <celier@gnat.com>
26700 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
26701 command line for the non VMS case.
26703 * gnatlink.adb (Process_Binder_File): When building object file, if
26704 GNU linker is used, put all object paths between quotes, to prevent ld
26705 error when there are unusual characters (such as '!') in the paths.
26707 * Makefile.generic: When there are sources in Ada and the main is in
26708 C/C++, invoke gnatmake with -B, instead of -z.
26710 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
26711 from VMS_Conversion.
26712 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
26713 specification of argument file on the command line.
26715 2004-01-26 Bernard Banner <banner@gnat.com>
26717 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
26719 2004-01-26 Ed Schonberg <schonberg@gnat.com>
26721 * snames.adb: Update copyright notice.
26722 Add info on slice assignment for controlled arrays.
26724 2004-01-23 Robert Dewar <dewar@gnat.com>
26726 * exp_aggr.adb: Minor reformatting
26728 * exp_ch9.adb: Minor code clean up
26730 Fix bad character in comment
26733 * targparm.adb (Get_Target_Parameters): Give clean abort error on
26734 unexpected end of file, along with more detailed message.
26736 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26738 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
26741 * decl.c (copy_alias_set): New function.
26742 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
26744 2004-01-23 Doug Rupp <rupp@gnat.com>
26746 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
26747 lib$${file} in case subsequent character is not a separator.
26749 2004-01-23 Vincent Celier <celier@gnat.com>
26751 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
26752 when the GCC version is at least 3.
26754 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
26755 Remove all "Opt.", to prepare for opt split
26757 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
26758 Extends_All. Set to True when the project parsed is an extending all
26759 project. Fails for importing an extending all project only when the
26760 imported project is an extending all project.
26761 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
26762 depending on the value of Extends_All returned.
26764 * prj-proc.adb (Process): Check that no project shares its object
26765 directory with a project that extends it, directly or indirectly,
26766 including a virtual project.
26767 Check that no project extended by another project shares its object
26768 directory with another also extended project.
26770 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
26771 Kind = N_With_Clause
26773 * prj-tree.ads: Minor reformatting
26774 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
26776 2004-01-23 Ed Schonberg <schonberg@gnat.com>
26778 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
26779 applies to a type with an incomplete view, use full view in Name of
26780 clause, for consistency with uses of Get_Attribute_Definition_Clause.
26782 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
26784 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
26785 SCHED_RR, since other values are not supported by this policy.
26786 (Initialize): Move initialization of mutex attribute to package
26787 elaboration, to prevent early access to this variable.
26789 * Makefile.in: Remove mention of Makefile.adalib, unused.
26791 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
26792 1ssecsta.ads: Removed, unused.
26794 2004-01-21 Javier Miranda <miranda@gnat.com>
26796 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
26797 entity if already built in the current scope.
26799 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
26800 reminder in internal scopes. Required for nested limited aggregates.
26802 2004-01-21 Doug Rupp <rupp@gnat.com>
26804 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
26805 VMS. Replace all occurences of libgnat- and libgnarl- with
26806 libgnat$(hyphen) and libgnarl$(hyphen).
26807 Fixed shared library build problem on VMS.
26809 2004-01-21 Robert Dewar <dewar@gnat.com>
26811 * mlib-prj.adb: Minor reformatting
26813 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
26815 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
26816 'constant' keywords for declaration of pointers that are not modified.
26818 * exp_pakd.adb: Fix English in comment.
26820 2004-01-21 Ed Schonberg <schonberg@gnat.com>
26823 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
26824 copy all attributes of the parent, including the foreign language
26827 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
26830 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
26831 for 'delay until' statement.
26833 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
26835 * Make-lang.in: Replace $(docdir) with doc.
26836 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
26837 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
26838 to use consistent MAKEINFO rule.
26839 (ada.man, ada.srcman): Dummy entry.
26840 (ADA_INFOFILES): Define.
26841 (ada.info, ada.srcinfo): New rules.
26843 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
26845 * utils.c: Update copyright notice, missed in previous change.
26847 2004-01-19 Vincent Celier <celier@gnat.com>
26849 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
26850 args if Bind is True. Set First_ALI, if not already done.
26851 (Build_Library): For Stand Alone Libraries, extract from one ALI file
26852 an eventual --RTS switch, for gnatbind, and all backend switches +
26853 --RTS, for linking.
26855 2004-01-19 Robert Dewar <dewar@gnat.com>
26857 * sem_attr.adb, memtrack.adb: Minor reformatting
26859 2004-01-19 Ed Schonberg <schonberg@gnat.com>
26861 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
26862 that rename enumeration literals. This is properly done in sem_eval.
26864 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
26865 to functions that rename enumeration literals.
26867 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
26868 functions that rename enumeration literals.
26870 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
26872 * Make-lang.in (utils.o): Depend on target.h.
26873 * utils.c: Include target.h.
26874 (process_attributes): Use targetm.have_named_sections instead
26875 of ASM_OUTPUT_SECTION_NAME.
26877 2004-01-16 Andreas Jaeger <aj@suse.de>
26879 * Makefile.in: Add $(DESTDIR).
26881 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
26883 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
26884 also when not defining if a Size clause applies. That information is
26887 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
26889 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
26890 symbolic links for the shared gnat run time when needed.
26892 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
26894 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
26895 for writing, and terminate with an error message if not.
26897 2004-01-15 Ed Schonberg <schonberg@gnat.com>
26899 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
26900 warning on an access to subprogram in an instance, when the target
26901 type is declared in the same generic unit.
26902 (Eval_Attribute): If 'access is known to fail accessibility check,
26903 rewrite as a raise statement.
26905 2004-01-15 GNAT Script <nobody@gnat.com>
26907 * Make-lang.in: Makefile automatically updated
26909 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
26911 * Make-lang.in (ada.srcextra): Dummy entry.
26913 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
26915 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
26917 2004-01-13 Ed Schonberg <schonberg@gnat.com>
26919 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
26920 components that are initialized with aggregates.
26922 2004-01-13 Vincent Celier <celier@gnat.com>
26924 * gnatlink.adb (Process_Binder_File): To find directory of shared
26925 libgcc, if "gcc-lib" is not a subdirectory, look for the last
26926 subdirectory "lib" in the path of the shared libgnat or libgnarl.
26928 * make.adb (Gnatmake): If GCC version is at least 3, link with
26929 -shared-libgcc, when there is at least one shared library project.
26931 * opt.ads (GCC_Version): New integer constant.
26933 * adaint.c (get_gcc_version): New function.
26935 2004-01-13 Robert Dewar <dewar@gnat.com>
26937 * sem_dist.adb, sem_res.adb, sem_util.adb,
26938 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
26939 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
26941 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
26943 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
26944 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
26947 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
26949 * misc.c: Remove trailing spaces.
26950 Update copyright notice missed in previous change.
26953 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
26956 * Makefile.generic: Update copyright.
26957 Add license notice.
26959 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
26960 of prefix/share/make.
26962 * Makefile.prolog: Update copyright.
26963 Add license notice.
26965 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
26967 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
26968 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
26969 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
26972 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
26975 2004-01-12 Javier Miranda <miranda@gnat.com>
26977 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
26978 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
26979 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
26980 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
26981 Component_Definition node.
26983 2004-01-12 Ed Falis <falis@gnat.com>
26985 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
26987 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
26989 * link.c: Change default libgnat kind to STATIC for FreeBSD.
26991 2004-01-12 Bernard Banner <banner@gnat.com>
26993 * Makefile.in: map 86numaux to a-numaux for x86_64
26995 2004-01-12 Ed Schonberg <schonberg@gnat.com>
26997 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
26998 generated to rename a generic actual, go to the actual itself, the
26999 subtype is not a user-visible entity.
27001 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
27002 part is a private subtype, reset the visibility of its full view, if
27003 any, to be consistent.
27006 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
27007 to use a generic package G as a formal package for another generic
27010 2004-01-12 Robert Dewar <dewar@gnat.com>
27012 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
27014 * usage.adb: Remove mention of obsolete -gnatwb switch
27015 Noticed during code reading
27017 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
27019 * 1ssecsta.adb: Minor changes for -gnatwa warnings
27021 2004-01-12 GNAT Script <nobody@gnat.com>
27023 * Make-lang.in: Makefile automatically updated
27025 2004-01-09 Mark Mitchell <mark@codesourcery.com>
27027 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
27029 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27031 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
27033 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
27035 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
27036 Update comment and copyright date.
27037 * stamp-xgnatug: Delete.
27039 2004-01-05 Robert Dewar <dewar@gnat.com>
27041 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
27042 be modified by the binder generated main program if the -D switch is
27045 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
27046 imported functions (since now we expect this to be done for imported
27049 * 5vtaprop.adb: Add several ??? for sections requiring more comments
27050 Minor reformatting throughout
27052 * 5zinit.adb: Minor reformatting
27053 Add 2004 to copyright date
27054 Minor changes to avoid -gnatwa warnings
27055 Correct some instances of using OR instead of OR ELSE (noted while
27056 doing reformatting)
27058 * sprint.adb: Minor updates to avoid -gnatwa warnings
27060 * s-secsta.ads, s-secsta.adb:
27061 (SS_Get_Max): New function to obtain high water mark for ss stack
27062 Default_Secondary_Stack is not a constant since it may be modified by
27063 the binder generated main program if the -D switch is used.
27065 * switch-b.adb: New -Dnnn switch for binder
27068 Make -gnatg imply all warnings currently in -gnatwa
27070 * vms_conv.adb: Minor reformatting
27071 Add 2004 to copyright notice
27072 Add 2004 to printed copyright notice
27074 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
27075 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
27076 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
27077 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
27078 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
27079 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
27080 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
27081 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
27082 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
27083 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
27084 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
27085 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
27086 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
27087 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
27088 checks.adb, clean.adb, cstand.adb, einfo.ads,
27089 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
27090 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
27091 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
27092 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
27093 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
27094 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
27095 Minor reformatting and code clean ups.
27096 Minor changes to prevent -gnatwa warnings
27098 * ali.adb: Minor reformatting and cleanup of code
27099 Acquire new SS indication of secondary stack use from ali files
27101 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
27102 (since now we expect this to be done for imported functions)
27104 * bindgen.adb: Generate call to modify default secondary stack size if
27107 * bindusg.adb: Add line for new -D switch
27109 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
27110 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
27111 Add circuitry for both records and arrays to avoid gigi
27112 processing if the type involved has non-bit-aligned components
27114 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
27115 N_String_Literal node always references an E_String_Literal_Subtype
27116 entity. This may not be true in the future.
27117 (Possible_Bit_Aligned_Component): Move processing of
27118 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
27120 * exp_ch6.adb (Expand_Thread_Body): Pick up
27121 Default_Secondary_Stack_Size as variable so that we get value modified
27122 by possible -Dnnn binder parameter.
27124 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
27125 (Type_May_Have_Bit_Aligned_Components): New function.
27127 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
27128 (Type_May_Have_Bit_Aligned_Components): New function.
27130 * fe.h: (Set_Identifier_Casing): Fix prototype.
27131 Add declaration for Sem_Elim.Eliminate_Error_Msg.
27132 Minor reformatting.
27134 * freeze.adb (Freeze_Entity): Add RM reference to error message about
27135 importing constant atomic/volatile objects.
27136 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
27137 unless explicit Pure_Function pragma given, to avoid insidious bug of
27138 call to non-pure imported function getting eliminated.
27140 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
27141 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
27142 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
27143 Add 2004 to printed copyright notice
27145 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
27148 * Makefile.rtl: Add entry for g-sestin.o
27149 g-sestin.ads: New file.
27151 * mdll.adb: Minor changes to avoid -gnatwa warnings
27153 * mlib-tgt.adb: Minor reformatting
27155 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
27156 New switch Sec_Stack_Used (GNAT, GNATBIND)
27157 Make Default_Secondary_Stack_Size a variable instead of a constant,
27158 so that it can be modified by the new -Dnnn bind switch.
27160 * rtsfind.adb (Load_Fail): Give full error message in configurable
27161 run-time mode if all_errors mode is set. This was not done in the case
27162 of a file not found, which was an oversight.
27163 Note if secondary stack unit is used by compiler.
27165 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
27166 ineffective elaborate all pragmas on non-visible packages (this
27167 happened when a renamed subprogram was called). Now the elaborate all
27168 always goes on the package containing the renaming rather than the one
27169 containing the renamed subprogram.
27171 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
27172 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
27174 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
27175 has an Etype that references an E_String_Literal.
27176 (Eval_String_Literal): Avoid assumption that N_String_Literal node
27177 always references an E_String_Literal_Subtype entity. This may not
27178 be true in the future.
27180 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
27183 * sem_res.adb (Resolve): Specialize msg for function name used in proc
27186 2004-01-05 Ed Falis <falis@gnat.com>
27188 * g-debuti.adb: Replaced direct boolean operator with short-circuit
27191 2004-01-05 Vincent Celier <celier@gnat.com>
27193 * bld.adb: Minor comment updates
27194 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
27197 * make.adb (Gnatmake): Special process for files to compile/check when
27198 -B is specified. Fail when there are only foreign mains in attribute
27199 Main of the project file and -B is not specified. Do not skip bind/link
27200 steps when -B is specified.
27202 * makeusg.adb: Document new switch -B
27204 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
27206 * switch-m.adb: (Scan_Make_Switches): Process -B switch
27208 * vms_data.ads: Add new GNAT PRETTY qualifier
27209 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
27211 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27213 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
27216 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
27217 Set_Identifier_Casing.
27219 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
27220 has size that overflows.
27222 2004-01-05 Gary Dismukes <dismukes@gnat.com>
27224 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
27225 -gnatwa warning on static condition.
27227 2004-01-05 Doug Rupp <rupp@gnat.com>
27229 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
27231 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
27233 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
27234 all attributes, including read-only attribute.
27236 2004-01-05 Pascal Obry <obry@gnat.com>
27238 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
27239 library naming scheme.
27241 * mlib-prj.adb (Build_Library): Generate different names for the static
27242 or dynamic version of the GNAT runtime. This is needed to support the
27243 new shared library naming scheme.
27244 (Process_Binder_File): Add detection of shared library in binder file
27245 based on the new naming scheme.
27247 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
27248 scheme for the shared runtime libraries.
27251 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
27253 (install-gnatlib): Do not create symlinks for shared libraries.
27254 (gnatlib-shared-default): Idem.
27255 (gnatlib-shared-dual-win32): New target. Not used for now as the
27256 auto-import feature does not support arrays/records.
27257 (gnatlib-shared-win32): Do not create copy for the shared libraries.
27258 (gnatlib-shared-vms): Fix shared runtime libraries names.
27260 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
27261 dependent runtime shared library name.
27263 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
27265 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
27268 2004-01-05 Ed Schonberg <schonberg@gnat.com>
27270 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
27271 protected objects when allocator has a subtype indication, not a
27272 qualified expression. Note that qualified expressions may have to be
27273 checked when limited aggregates are implemented.
27275 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
27276 pure, emit warning.
27277 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
27278 subprogram is imported, remove warning.
27280 2004-01-05 Geert Bosch <bosch@gnat.com>
27282 * s-poosiz.adb: Update copyright notice.
27283 (Allocate): Use Task_Lock to protect against concurrent access.
27284 (Deallocate): Likewise.
27286 2004-01-05 Joel Brobecker <brobecker@gnat.com>
27288 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
27291 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
27293 * gnat_ug.texi: Force a CVS commit by updating copyright.
27294 * gnat_ug_vxw.texi: Regenerate.
27295 * gnat_ug_wnt.texi: Regenerate.
27296 * gnat_ug_vms.texi: Regenerate.
27297 * gnat_ug_unx.texi: Regenerate.
27299 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
27301 * trans.c: Remove uses of "register" specifier in
27302 declarations of local variables.
27304 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
27306 * stamp-xgnatug: New stamp file.
27307 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
27308 (ada/doctools/xgnatug): Add $(build_exeext).
27309 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
27310 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
27312 2003-12-17 Ed Falis <falis@gnat.com>
27314 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
27317 * a-exextr.adb: Add context clause for
27318 Ada.Exceptions.Last_Chance_Handler.
27320 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
27322 * cstand.adb (Create_Standard): Change the way how the declaration of
27323 the Duration type is created (making it the same way as it is for all
27324 the other standard types).
27326 2003-12-17 Robert Dewar <dewar@gnat.com>
27328 * s-crtl.ads: Fix header format
27329 Change Pure to Preelaborate
27331 2003-12-17 Ed Schonberg <schonberg@gnat.com>
27333 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
27334 the expression type only if it is declared in the current unit.
27336 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
27337 are universal and already analyzed, as can occur in constrained
27338 subcomponents that depend on discriminants, when one constraint is a
27341 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
27342 type Any_Fixed is legal as the argument of a conversion, if only one
27343 fixed-point type is in context.
27345 2003-12-17 GNAT Script <nobody@gnat.com>
27347 * Make-lang.in: Makefile automatically updated
27349 2003-12-15 Robert Dewar <dewar@gnat.com>
27351 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
27354 2003-12-15 Vincent Celier <celier@gnat.com>
27356 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
27357 (Gnatchop): Do not set failure status when reporting the number of
27360 2003-12-15 Doug Rupp <rupp@gnat.com>
27362 * s-ctrl.ads: New file.
27364 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
27366 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
27367 (GNATBIND_OBJS): Add ada/s-crtl.o.
27369 * Makefile.in [VMS]: Clean up ifeq rules.
27371 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
27372 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
27373 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
27374 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
27375 s-tasdeb.adb: Update copyright.
27376 Import System.CRTL.
27377 Make minor modifications to use System.CRTL declared functions instead
27378 of importing locally.
27380 2003-12-15 GNAT Script <nobody@gnat.com>
27382 * Make-lang.in: Makefile automatically updated
27384 2003-12-11 Ed Falis <falis@gnat.com>
27386 * 5zinit.adb: Clean up.
27388 * 5zintman.adb (Notify_Exception): replaced case statement with a call
27389 to __gnat_map_signal, imported from init.c to support
27390 signal -> exception mappings that depend on the vxWorks version.
27393 Created and exported __gnat_map_signal to support signal -> exception
27394 mapping that is dependent on the VxWorks version.
27395 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
27397 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
27399 * 5wosinte.ads: Link with -mthreads switch.
27401 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
27403 * init.c (__gnat_install_handler [NetBSD]): Set
27404 __gnat_handler_installed, as done on all other platforms.
27405 Remove duplicated code.
27407 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
27409 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
27411 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
27413 * sinfo.ads: Fix inconsistent example code in comment.
27415 2003-12-11 Robert Dewar <dewar@gnat.com>
27417 * a-tiinau.adb: Add a couple of comments
27419 * sem_ch3.adb: Minor reformatting
27422 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
27423 Minor reformatting throughout
27425 2003-12-11 Ed Schonberg <schonberg@gnat.com>
27427 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
27428 bounds of a loop, create a separate block in order to generate proper
27429 cleanup actions to prevent memory leaks.
27431 * sem_res.adb (Resolve_Call): After a call to
27432 Establish_Transient_Scope, the call may be rewritten and relocated, in
27433 which case no further processing is needed.
27435 * sem_util.adb: (Wrong_Type): Refine previous fix.
27436 Fixes ACATS regressions.
27439 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
27442 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
27444 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
27445 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
27448 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
27451 2003-12-08 Robert Dewar <dewar@gnat.com>
27453 * 7sintman.adb: Minor reformatting
27455 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
27456 standard linker options to get standard libraries linked. We now plan
27457 to provide dummy versions of these libraries to match the appropriate
27458 configurable run-time (e.g. if a library is not needed at all, provide
27459 a dummy empty library).
27461 * targparm.ads: Configurable_Run_Time mode no longer affects linker
27462 options (-L parameters and standard libraries). What we plan to do is
27463 to provide dummy libraries where the libraries are not required.
27465 * gnatbind.adb: Minor comment improvement
27467 2003-12-08 Javier Miranda <miranda@gnat.com>
27469 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
27470 aggregate in the parent. Otherwise constants with limited aggregates
27471 are not supported. Add new formal to pass the component type (Ctype).
27472 It is required to call the corresponding IP subprogram in case of
27473 default initialized components.
27474 (Gen_Assign): In case of default-initialized component, generate a
27475 call to the IP subprogram associated with the component.
27476 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
27477 of aggregate with default initialized components.
27478 (Has_Default_Init_Comps): Improve implementation to recursively check
27479 all the present expressions.
27481 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
27482 to indicate that the initialization call corresponds to a
27483 default-initialized component of an aggregate.
27484 In case of default initialized aggregate with tasks this parameter is
27485 used to generate a null string (this is just a workaround that must be
27486 improved later). In case of discriminants, this parameter is used to
27487 generate a selected component node that gives access to the discriminant
27490 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
27491 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
27492 allocated aggregates with default-initialized components.
27494 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
27495 the box notation is used in positional aggregates.
27497 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
27499 * lib.ads: Fix typo in comment
27501 2003-12-08 Vincent Celier <celier@gnat.com>
27503 * prj.adb (Project_Empty): New component Unkept_Comments
27504 (Scan): Remove procedure; moved to Prj.Err.
27506 * prj.ads (Project_Data): New Boolean component Unkept_Comments
27507 (Scan): Remove procedure; moved to Prj.Err.
27509 * prj-dect.adb: Manage comments for the different declarations.
27511 * prj-part.adb (With_Record): New component Node
27512 (Parse): New Boolean parameter Store_Comments, defaulted to False.
27513 Set the scanner to return ends of line and comments as tokens, if
27514 Store_Comments is True.
27515 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
27516 comments are associated with these nodes. Store the node IDs in the
27518 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
27520 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
27521 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
27522 current project. Call Tree.Restore afterwards. Set the various nodes
27523 for comment storage (Next_End, End_Of_Line, Previous_Line,
27526 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
27527 defaulted to False.
27529 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
27530 to False. When Truncated is True, truncate the string, never go to the
27532 (Write_End_Of_Line_Comment): New procedure
27533 (Print): Process comments for nodes N_With_Clause,
27534 N_Package_Declaration, N_String_Type_Declaration,
27535 N_Attribute_Declaration, N_Typed_Variable_Declaration,
27536 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
27537 Process nodes N_Comment.
27539 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
27540 without comments and there are some comments, set the flag
27541 Unkept_Comments to True.
27542 (Scan): If there are comments, set the flag Unkept_Comments to True and
27543 clear the comments.
27544 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
27545 (Next_End_Nodes: New table
27546 (Comment_Zones_Of): New function
27547 (Scan): New procedure; moved from Prj. Accumulate comments in the
27548 Comments table and set end of line comments, comments after, after end
27550 (Add_Comments): New procedure
27551 (Save, Restore, Seset_State): New procedures
27552 (There_Are_Unkept_Comments): New function
27553 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
27554 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
27556 (First_Comment_After, First_Comment_After_End): New functions
27557 (First_Comment_Before, First_Comment_Before_End): New functions
27558 (Next_Comment): New function
27559 (End_Of_Line_Comment, Follows_Empty_Line,
27560 Is_Followed_By_Empty_Line): New functions
27561 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
27562 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
27563 (Set_Next_Comment): New procedure
27564 (Default_Project_Node): Associate comment before if the node can store
27567 * scans.ads (Token_Type): New enumeration value Tok_Comment
27568 (Comment_Id): New global variable
27570 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
27571 defaulted to False.
27572 (Scan): Store position of start of comment. If comments are tokens, set
27573 Comment_Id and set Token to Tok_Comment when scanning a comment.
27574 (Set_Comment_As_Token): New procedure
27576 * sinput-p.adb: Update Copyright notice
27577 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
27578 that no longer exists.
27580 2003-12-08 Javier Miranda <miranda@gnat.com>
27582 * sem_aggr.adb: Add dependence on Exp_Tss package
27583 Correct typo in comment
27584 (Resolve_Aggregate): In case of array aggregates set the estimated
27585 type of the aggregate before calling resolve. This is needed to know
27586 the name of the corresponding IP in case of limited array aggregates.
27587 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
27588 in case of default initialized array components.
27590 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
27591 types. Required to give support to limited aggregates in generic
27594 2003-12-08 Ed Schonberg <schonberg@gnat.com>
27596 * sem_ch3.adb (Check_Initialization): For legality purposes, an
27597 inlined body functions like an instantiation.
27598 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
27599 until bounds are analyzed, to diagnose premature use of type.
27601 * sem_util.adb (Wrong_Type): Improve error message when the type of
27602 the expression is used prematurely.
27604 2003-12-08 GNAT Script <nobody@gnat.com>
27606 * Make-lang.in: Makefile automatically updated
27608 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
27610 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
27611 they are automatically generated by Make-lang.in and cause nothing but
27612 maintenance troubles.
27614 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
27616 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
27617 version of this unit).
27619 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
27621 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
27622 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
27623 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
27624 the body of System.Interrupt_Management common to several targets.
27625 Update copyright notice when appropriate.
27627 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
27630 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
27631 to ensure that the kernel fills in the interrupted context structure
27632 before calling a signal handler, which is necessary to be able to
27633 unwind past it. Update the copyright notice.
27635 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
27637 * a-elchha.ads: New file.
27639 * a-elchha.adb: New default last chance handler. Contents taken from
27640 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
27642 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
27643 is moved to a-elchha.adb to provide a target-independent default last
27646 * Makefile.rtl: Add a-elchha.o
27648 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
27650 2003-12-05 Ed Schonberg <schonberg@gnat.com>
27652 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
27653 declared in an instance, do not inline the call if the instance is not
27654 frozen yet, to prevent order of elaboration problems.
27656 * sem_prag.adb: Add comments for previous fix.
27658 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
27660 * g-table.adb: Use the right variable in Set_Item.
27661 Update copyright notice.
27663 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
27665 * Makefile.in: Remove unused rules.
27667 2003-12-05 Vincent Celier <celier@gnat.com>
27669 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
27670 -nostdlib. Not needed here after all.
27672 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
27675 * adaint.h, adaint.c, g-os_lib.ads:
27676 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
27677 on some platforms (including FreeBSD), it is a 64 bit value.
27678 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
27680 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
27682 * gnatvsn.ads (Library_Version): Now contain only the relevant
27684 (Verbose_Library_Version): New constant.
27686 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
27687 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
27688 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
27690 * gnatlbr.adb: Clean up: replace Library_Version by
27691 Verbose_Library_Version.
27693 * make.adb, lib-writ.adb, exp_attr.adb:
27694 Clean up: replace Library_Version by Verbose_Library_Version.
27696 * 5lintman.adb: Removed.
27699 Update and simplify computation of LIBRARY_VERSION.
27700 Fix computation of GSMATCH_VERSION.
27701 5lintman.adb is no longer used: replaced by 7sintman.adb.
27703 2003-12-03 Robert Dewar <dewar@gnat.com>
27706 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
27707 name. Modified to consider small non-bit-packed arrays as troublesome
27708 and in need of component-by-component assigment expansion.
27710 2003-12-03 Vincent Celier <celier@gnat.com>
27712 * lang-specs.h: Process nostdlib as nostdinc
27714 * back_end.adb: Update Copyright notice
27715 (Scan_Compiler_Arguments): Process -nostdlib directly.
27717 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
27720 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
27721 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
27722 included in HIE_NONE_TARGET_PAIRS.
27724 2003-12-03 Ed Schonberg <schonberg@gnat.com>
27727 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
27728 is legal in an instance, because legality is cheched in the template.
27731 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
27732 appplied to an unchecked conversion of a formal parameter.
27735 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
27738 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
27740 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
27741 routines. The second one is new functionality to deal with backtracing
27742 through signal handlers.
27743 (unwind): Split into the two separate subroutines above.
27744 Update the documentation, and deal properly with sizeof (REG) different
27745 from sizeof (void*).
27747 2003-12-01 Nicolas Setton <setton@act-europe.fr>
27749 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
27750 so that the debugger can reliably access the value of the parameter,
27751 and therefore is able to display the exception name when an exception
27752 breakpoint is reached.
27754 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
27756 * fmap.adb: Fix typo in warning message.
27758 * g-socket.ads, g-socket.adb: Make Free a visible instance of
27759 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
27761 2003-12-01 Vincent Celier <celier@gnat.com>
27763 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
27765 (Build_Library): Get the switches only if Default_Switches is declared
27768 2003-12-01 Ed Schonberg <schonberg@gnat.com>
27770 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
27771 actuals that are indexed components, reanalyze actual to ensure that
27772 packed array references are properly expanded.
27774 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
27775 attempted assignment to a discriminant.
27777 2003-12-01 Robert Dewar <dewar@gnat.com>
27779 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
27782 * switch-c.adb: Minor reformatting of comments
27784 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
27786 * Makefile.in: Clean ups.
27788 2003-12-01 GNAT Script <nobody@gnat.com>
27790 * Make-lang.in: Makefile automatically updated
27792 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
27794 * 5wsystem.ads: Disable zero cost exception, not ready yet.
27796 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
27798 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
27799 to force serialization.
27801 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
27803 * g-socket.ads, g-socket.adb:
27804 Clarify documentation of function Stream. Introduce a Free procedure
27805 to release the returned Stream once it becomes unused.
27807 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
27809 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
27811 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
27812 since NT 4 cannot handle timeout values that are too large,
27813 e.g. DWORD'Last - 1.
27815 2003-11-26 Ed Schonberg <schonberg@gnat.com>
27818 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
27819 in procedure calls and whose expansion must be deferred.
27821 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
27825 (Build_Derived_Array_Type): Create operator for unconstrained type
27826 if ancestor is unconstrained.
27828 2003-11-26 Vincent Celier <celier@gnat.com>
27830 * make.adb (Project_Object_Directory): New global variable
27831 (Change_To_Object_Directory): New procedure
27832 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
27833 of Change_Dir directly. Do not change working directory to object
27834 directory of main project after each compilation.
27835 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
27837 Change to object directory of main project before binding step.
27838 (Initialize): Initialize Project_Object_Directory to No_Project
27841 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
27842 binding a Stand-Alone Library.
27844 * output.adb: Update Copyright notice
27845 (Write_Char): Output buffer when full
27847 2003-11-26 Robert Dewar <dewar@gnat.com>
27849 * sem_ch13.adb: (Check_Size): Reset size if size is too small
27852 (Check_Size): Fix documentation to include bit-packed array case
27854 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
27856 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
27858 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
27860 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
27863 * utils.c (init_gigi_decls): Change name of built-in setjmp to
27864 __builtin_setjmp, since this is apparently needed by recent
27867 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27869 * adadecode.c: Only include ctype.h if not IN_GCC.
27870 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
27872 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
27875 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
27876 signals and interrupts.
27878 * 5zintman.ads: New File.
27880 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
27881 add exception signals to the set of unmasked signals.
27884 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
27885 between signals and interrupts.
27886 Add to Unblocked_Signal_Mask the set of signals that are in
27890 Adding a check to see whether the Interrupt_ID we want to unmask is in
27891 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
27892 reason is that the index type of the Keep_Unmasked array is not always
27893 Interrupt_ID; it may be a subtype of Interrupt_ID.
27895 2003-11-24 Gary Dismukes <dismukes@gnat.com>
27898 (Remove_Side_Effects): Condition constantness of object created for a
27899 an unchecked type conversion on the constantness of the expression
27900 to ensure the correct value for 'Constrained when passing components
27901 of view-converted class-wide objects.
27903 2003-11-24 Robert Dewar <dewar@gnat.com>
27905 * par-load.adb (Load): Improve handling of misspelled and missing units
27906 Removes several cases of compilation abandoned messages
27908 * lib.adb: (Remove_Unit): New procedure
27910 * lib.ads: (Remove_Unit): New procedure
27912 * lib-load.adb: Minor reformatting
27914 2003-11-24 Vincent Celier <celier@gnat.com>
27917 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
27918 (Marking_Label): Label to mark processed source files. Incremented for
27920 (Gnatmake): Increase Marking_Labet for each executable
27921 (Is_Marked): Compare against marking label
27922 (Mark): Mark with marking label
27924 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
27927 Move the declaration of the TSD for System.Threads to System.Soft_Links.
27930 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
27931 (rts-cert): build a single relocatable object for the run-time lib.
27934 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
27937 Use gnatls rather than gcc to obtain the location of GNAT RTL for
27940 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
27942 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
27943 can not use it as before (that is, as a variable) when dumping it into
27944 the tree file. Add a local variable to store the result of this
27945 function and to be used as the string to be written into the tree.
27947 * scn.adb (Initialize_Scanner): Add comments explaining the recent
27950 * sinput.adb (Source_First, Source_Last): In case of
27951 Internal_Source_File, replace returning attributes of
27952 Internal_Source_Ptr (which is wrong) with returning attributes of
27955 2003-11-24 Ed Schonberg <schonberg@gnat.com>
27958 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
27959 used for implicit concatenation operators.
27963 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
27964 task bodies that are in the scope of a Suppress pragma.
27965 (Check_A Call): Use the flag to prevent spurious elaboration checks.
27967 * sinfo.ads, sinfo.adb:
27968 New flag No_Elaboration_Check on function/procedure calls, to properly
27969 suppress checks on calls in task bodies that are within a local suppress
27973 (Expand_Concatenate_Other): Use the proper integer type for the
27974 expression for the upper bound, to avoid universal_integer computations
27977 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
27979 * .cvsignore: Delete.
27981 2003-11-21 Andreas Schwab <schwab@suse.de>
27983 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
27985 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
27987 * 5wsystem.ads: Enable zero cost exception.
27989 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
27991 * 5ztiitho.adb: Remove an unreferenced variable.
27993 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
27995 * adaint.c: For FreeBSD, use mkstemp.
27997 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
27999 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
28001 2003-11-21 Robert Dewar <dewar@gnat.com>
28003 * bld.adb: Remove useless USE of gnatvsn
28005 * gnatchop.adb: Minor reformatting
28006 Clean up version handling to be more consistent
28008 * gnatxref.adb: Minor reformatting
28010 * gprcmd.adb: Minor reformatting
28011 Fix output of copyright to be more consistent with other tools
28013 2003-11-21 Vincent Celier <celier@gnat.com>
28015 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
28017 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
28019 * atree.adb (Initialize): Add initializations for global variables
28020 used in New_Copy_Tree.
28022 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
28023 Internal_Source_File as the actual).
28024 Put the set of statements creating Any_Character before the set of
28025 statements creating Any_Array to have Any_Character fully initialized
28026 when it is used in creating Any_Array.
28028 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
28029 not call Scan in case if the actual is Internal_Source_File
28030 Add 2003 to copyright note.
28032 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
28033 processing Internal_Source_File.
28035 * types.ads: Add the constant Internal_Source_File representing the
28036 source buffer for artificial source-code-like strings created within
28037 the compiler (the definition of Source_File_Index is changed).
28039 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
28041 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
28042 56system.ads: New file, FreeBSD version.
28044 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
28046 * Make-lang.in (ada.extraclean): Delete.
28048 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
28050 * gnatmem.adb: Clean up verbose output.
28052 * gprcmd.adb: Change copyright to FSF.
28054 2003-11-19 Vincent Celier <celier@gnat.com>
28056 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
28057 and Version (ignored).
28059 * symbols.ads: (Policy): New type
28060 (Initialize): New parameter Reference, Symbol_Policy and
28062 Remove parameter Force.
28063 Minor reformatting.
28065 * snames.ads, snames.adbadb: New standard names
28066 Library_Reference_Symbol_File and Library_Symbol_Policy
28069 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
28073 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
28075 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
28077 * prj.adb: (Project_Empty): New component Symbol_Data
28079 * prj.ads: (Policy, Symbol_Record): New types
28080 (Project_Data): New component Symbol_Data
28083 New attributes Library_Symbol_File, Library_Symbol_Policy and
28084 Library_Reference_Symbol_File.
28087 (Ada_Check): When project is a Stand-Alone library project, process
28088 attribute Library_Symbol_File, Library_Symbol_Policy and
28089 Library_Reference_Symbol_File.
28091 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
28092 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
28093 5sml-tgt.adb (Build_Dynamic_Library): New parameter
28094 Symbol_Data (ignored).
28096 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
28097 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
28098 functions Option_File_Name and Version_String. Set new options of
28099 gnatsym related to symbol file, symbol policy and reference symbol
28103 Extensive modifications to take into account the reference symbol file,
28104 the symbol policy, the library version and to put in the symbol file the
28105 minor and major IDs.
28107 * bld.adb (Process_Declarative_Items): Put second argument of
28108 gprcmd to_absolute between single quotes, to avoid problems with
28111 * bld-io.adb: Update Copyright notice.
28112 (Flush): Remove last character of a line, if it is a back slash, to
28113 avoid make problems.
28116 Implement new scheme with reference symbol file and symbol policy.
28118 * g-os_lib.ads: (Is_Directory): Clarify comment
28120 2003-11-19 Robert Dewar <dewar@gnat.com>
28122 * atree.adb: Move New_Copy_Tree global variables to head of package
28124 * errout.adb: Minor reformatting
28126 2003-11-19 Javier Miranda <miranda@gnat.com>
28128 * sem_ch4.adb: (Diagnose_Call): Improve error message.
28129 Add reference to Ada0Y (AI-50217)
28131 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
28132 sem_util.adb: Add reference to AI-50217
28134 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
28136 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
28138 * sem_aggr.adb: Complete documentation of AI-287 changes
28140 * par-ch4.adb: Document previous changes.
28142 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
28143 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
28146 * exp_aggr.adb: Add references to AI-287 in previous changes
28148 2003-11-19 Ed Schonberg <schonberg@gnat.com>
28151 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
28152 in the rewriting is the result of an inlined call.
28154 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
28155 parameter is a type conversion, use original node to construct the
28156 post-call assignment, because expression may have been rewritten, e.g.
28157 if it is a packed array.
28160 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
28161 body, just as it is in an instance.
28162 Categorization routines
28164 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
28165 Instantiate_Object): Set proper sloc reference for message on missing
28168 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
28170 * Makefile.in: Add FreeBSD libgnat pairs.
28172 * usage.adb: Fix typo in usage message.
28174 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
28176 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
28177 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
28178 pragma Thread_Body.
28179 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
28181 * s-thread.adb: This file is now a dummy implementation of
28184 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
28186 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
28188 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
28190 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
28191 instanciation references in the parent type description.
28193 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28195 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
28197 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
28198 TYPE_PRECISION directly from esize.
28200 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
28203 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
28205 * init.c: Initialization routines for FreeBSD
28207 * link.c: Link info for FreeBSD
28209 * sysdep.c: Add the case of FreeBSD
28211 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
28213 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
28214 already called in System.Threads.
28216 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
28217 environment task, as it has been moved to System.Threads.Initialization.
28219 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
28221 * adaint.c (__gnatlib_install_locks): Only reference
28222 __gnat_install_locks on VMS, since other platforms can avoid using
28223 --enable-threads=gnat
28225 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28227 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
28229 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
28230 TYPE_PACKED_ARRAY_TYPE_P.
28231 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
28233 Part of PR ada/12806
28234 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
28235 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
28237 2003-11-17 Vincent Celier <celier@gnat.com>
28239 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
28241 Do not set exit status to Failure when Warning is True.
28242 (Gnatchop): Make errors "no compilation units found" and
28243 "no source files written" warnings only.
28245 * make.adb (Gnatmake): When using a project file, set
28246 Look_In_Primary_Dir to False.
28247 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
28248 and Local_Configuration_Pragmas in the project where they are declared
28249 not an extending project which might have inherited them.
28251 * osint.adb (Locate_File): If Name is already an absolute path, do not
28252 look for a directory.
28254 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
28255 -gnats (Check_Syntax) is used, issue only a warning, not an error.
28257 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
28258 in objects of type Variable_Value.
28260 * prj.ads: (Variable_Value): New component Project
28262 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
28263 is in a project extended by Project.
28265 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
28266 Project of Variable_Values to this new parameter value.
28267 (Expression): Set component Project of Variable_Values.
28268 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
28269 Set the component Project in array elements.
28271 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
28273 * errout.adb: (Initialize): Add initialization for error nodes.
28275 * sem_ch12.adb (Initialize): Add missing initializations for
28276 Exchanged_Views and Hidden_Entities.
28278 2003-11-17 Ed Schonberg <schonberg@gnat.com>
28280 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
28281 already instantiated tree for use in subsequent inlining.
28282 (Analyze_Associations, Instantiate_Formal_Subprogram,
28283 Instantiate_Object): improve error message for mismatch in
28286 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
28287 instantiations of subprograms declared in instances.
28289 2003-11-17 Javier Miranda <miranda@gnat.com>
28291 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
28292 executed only under the Extensions_Allowed flag.
28294 2003-11-17 Robert Dewar <dewar@gnat.com>
28296 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
28298 (Address_Image): Fix bug of returning 0x instead of 0x0
28299 Minor reformatting (function specs).
28301 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
28302 (missed case of 33-63)
28304 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
28306 * s-thread.adb: Add comments for pragma Restriction
28308 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
28309 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
28311 2003-11-17 Ed Falis <falis@gnat.com>
28313 * s-thread.adb: Added No_Tasking restriction for this implementation.
28315 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
28317 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
28318 instanciation references in the parent type description.
28320 2003-11-17 GNAT Script <nobody@gnat.com>
28322 * Make-lang.in: Makefile automatically updated
28324 2003-11-16 Jason Merrill <jason@redhat.com>
28326 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
28327 and TAGS files that include them for each front end.
28329 2003-11-14 Andreas Jaeger <aj@suse.de>
28331 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
28332 is the canonical version.
28333 * misc.c (gnat_handle_option): Likewise.
28335 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
28337 * 5nsystem.ads: New file for x86_64-linux-gnu.
28339 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
28341 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
28343 * comperr.adb: Fix logic in previous change.
28345 2003-11-13 Vincent Celier <celier@gnat.com>
28347 * 5bml-tgt.adb (Build_Dynamic_Library): Use
28348 Osint.Include_Dir_Default_Prefix instead of
28349 Sdefault.Include_Dir_Default_Name.
28351 * gnatlbr.adb: Update Copyright notice
28352 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
28353 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
28354 instead of Sdefault.Object_Dir_Default_Name
28357 (Process_Binder_File): Never suppress the option following -Xlinker
28360 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
28361 Sdefault.Object_Dir_Default_Name.
28363 * osint.ads, osint.adb:
28364 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
28365 Minor reformatting.
28367 * vms_conv.ads: Minor reformating
28368 Remove GNAT STANDARD and GNAT PSTA
28371 Allow GNAT MAKE to have several files on the command line.
28372 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
28373 Sdefault.Object_Dir_Default_Name.
28375 Remove data for GNAT STANDARD
28378 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
28379 Remove data for GNAT STANDARD
28380 Remove options and documentation for -gnatwb/-gnatwB: these warning
28381 options no longer exist.
28383 2003-11-13 Ed Falis <falis@gnat.com>
28385 * 5zthrini.adb: (Init_RTS): Made visible
28388 (Register): Removed unnecessary call to taskVarGet that checked whether
28389 an ATSD was already set as a task var for the argument thread.
28392 Updated comment to reflect that this is a VxWorks version
28393 Added context clause for System.Threads.Initialization
28394 Added call to System.Threads.Initialization.Init_RTS
28396 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
28399 (Init_RTS): New procedure, for the initialization of the run-time lib.
28402 Remove dependancy on System.Init, so that this file can be used in the
28403 AE653 sequential run-time lib.
28405 2003-11-13 Robert Dewar <dewar@gnat.com>
28407 * bindgen.adb: Minor reformatting
28409 2003-11-13 Ed Schonberg <schonberg@gnat.com>
28412 (Apply_Discriminant_Check): Do no apply check if target type is derived
28413 from source type with no applicable constraint.
28416 (Ensure_System_Dependency): Do not apply the style checks that may have
28417 been specified for the main unit.
28420 (Find_Selected_Component): Further improvement in error message, with
28424 (Resolve): Handle properly the case of an illegal overloaded protected
28427 2003-11-13 Javier Miranda <miranda@gnat.com>
28430 (Has_Default_Init_Comps): New function to check the presence of
28431 default initialization in an aggregate.
28432 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
28433 extension aggregate of a limited record. In addition, a new formal
28434 was added to do not initialize the record controller (if any) during
28435 this recursive expansion of ancestors.
28436 (Init_Controller): Add support for limited record components.
28437 (Expand_Record_Aggregate): In case of default initialized components
28438 convert the aggregate into a set of assignments.
28440 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
28441 describing the new syntax.
28442 Nothing else needed to be done because this subprogram delegates part of
28443 its work to P_Precord_Or_Array_Component_Association.
28444 (P_Record_Or_Array_Component_Association): Give support to the new
28445 syntax for default initialization of components.
28448 (Resolve_Aggregate): Relax the strictness of the frontend in case of
28449 limited aggregates.
28450 (Resolve_Record_Aggregate): Give support to default initialized
28452 (Get_Value): In case of default initialized components, duplicate
28453 the corresponding default expression (from the record type
28454 declaration). In case of default initialization in the *others*
28455 choice, do not check that all components have the same type.
28456 (Resolve_Extension_Aggregate): Give support to limited extension
28460 (Check_Initialization): Relax the strictness of the front-end in case
28461 of aggregate and extension aggregates. This test is now done in
28462 Get_Value in a per-component manner.
28464 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
28465 expression corresponds to a limited aggregate. This test is now done
28468 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
28471 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
28472 present in an N_Component_Association node
28474 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
28476 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
28477 type-conformant entry only if they are homographs.
28479 2003-11-13 GNAT Script <nobody@gnat.com>
28481 * Make-lang.in: Makefile automatically updated
28483 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28485 * adadecode.c: Use <> form of include for ctype.h.
28486 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
28488 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28490 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
28491 Works around PR middle-end/6552.
28493 2003-11-10 Ed Falis <falis@gnat.com>
28495 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
28497 * 5zinit.adb: (Install_Handler): Moved back to spec
28498 (Install_Signal_Handlers): Deleted
28500 * 5zthrini.adb: Added context clause for System.Storage_Elements
28501 (Register): Only handles creation of taskVar; initialization moved to
28503 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
28504 Added declaration of environment task secondary stack and
28507 * s-thread.adb: Implement bodies for thread body processing
28510 Added comment identifying supported targets for pragma Thread_Body.
28512 2003-11-10 Pascal Obry <obry@gnat.com>
28514 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
28518 (Open): Properly check for string length before copying into the buffer.
28519 Raises Name_Error if buffer is too small. Note that this was a potential
28522 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
28524 * bindgen.adb, comperr.adb: Code clean ups.
28525 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
28527 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
28529 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
28531 2003-11-10 Vincent Celier <celier@gnat.com>
28534 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
28537 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
28539 * prj.adb: (Project_Empty): Add new boolean component Virtual
28541 * prj.ads: (Virtual_Prefix): New constant string
28542 (Project_Data): New boolean component Virtual
28544 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
28545 a library project is extended by a virtual extending project.
28548 Modifications throughout to implement extending-all project, including:
28549 (Virtual_Hash, Processed_Hash): New hash tables
28550 (Create_Virtual_Extending_Project): New procedure
28551 (Look_For_Virtual_Projects_For): New procedure
28554 (Process): After checking the projects, if main project is an
28555 extending-all project, set the object directory of all virtual extending
28556 project to the object directory of the main project.
28557 Adjust error message when a virtual extending project has the same
28558 object directory as an project being extended.
28559 (Recursive_Process): If name starts with the virtual prefix, set Virtual
28560 to True in the project data.
28563 (Default_Project_Node): Add new boolean component Extending_All
28564 (Is_Extending_All): New function
28565 (Set_Is_Extending_All): New procedure
28567 * prj-tree.ads: (Is_Extending_All): New function
28568 (Set_Is_Extending_All): New procedure
28569 (Project_Node_Record): New boolean component Extending_All
28571 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
28574 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
28576 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
28577 "gprcmd prefix" to define it.
28579 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
28581 * einfo.ads: Fix a typo and remove an extraneous word in comments.
28584 (Create_Dummy_Package_Unit): Set the scope of the entity for the
28585 created dummy package to Standard_Standard, not to itself, to
28586 defend other parts of the front-end against encoutering a cycle in
28590 (Analyze_With_Clause): When setting the entities for the successive
28591 N_Expanded_Names that constitute the name of a child unit, do not
28592 attempt to go further than Standard_Standard in the chain of scopes.
28593 This case arises from the placeholder units created by
28594 Create_Dummy_Package_Unit in the case of a with_clause for a
28595 nonexistent child unit.
28597 2003-11-10 Ed Schonberg <schonberg@gnat.com>
28600 (Expand_Thread_Body): Place subprogram on scope stack, so that new
28601 declarations are given the proper scope.
28604 (Check_Expr_Constants): Reject an expression that contains a constant
28605 created during expansion, and that appears after the object to which
28606 the address clause applies.
28608 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
28609 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
28610 that uses 'Range of a function call with controlled components, so
28611 that the function result can be finalized before starting the loop.
28614 (Find_Selected_Component): Improve error message when prefix is
28615 an implicit dereference of an incomplete type.
28617 2003-11-10 Robert Dewar <dewar@gnat.com>
28619 * opt.ads: New Print_Standard flag for -gnatS switch
28621 * sem_ch13.adb: Remove some additional checks for unaligned arrays
28623 * cstand.adb (Create_Standard): Print out package standard if -gnatS
28626 * debug.adb: Update doc for -gnatds to discuss relationship with new
28629 * sinfo.adb: Add new field Entity_Or_Associated_Node
28631 * sinfo.ads: Add new field Entity_Or_Associated_Node
28632 Update documentation for Associated_Node and Entity fields to clarify
28633 relationship and usage.
28636 (Write_Id): Properly process Associated_Node field in generic template
28639 Recognize new -gnatS switch for printing package Standard
28640 This replaces gnatpsta
28643 Add line for new -gnatS switch for printing package Standard
28644 This replaces gnatpsta
28646 2003-11-10 Andreas Jaeger <aj@suse.de>
28648 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
28651 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
28653 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
28656 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
28658 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
28661 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
28663 * sysdep.c: Add handling of cygwin.
28665 2003-11-10 GNAT Script <nobody@gnat.com>
28667 * Make-lang.in: Makefile automatically updated
28669 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
28672 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
28673 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
28674 Replace GNAT_ROOT by GCC_ROOT.
28676 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
28678 2003-11-06 Zack Weinberg <zack@codesourcery.com>
28680 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
28681 and update for changed meaning of GET_MODE_BITSIZE.
28683 2003-11-04 Doug Rupp <rupp@gnat.com>
28685 * sysdep.c: Problem discovered during IA64 VMS port.
28686 [VMS] #include <unixio.h> to get proper prototypes.
28689 Issues discovered/problems fixed during IA64 VMS port.
28690 [VMS] #define _POSIX_EXIT for proper semantics.
28691 [VMS] #include <unixio.h> for proper prototypes.
28692 [VMS] (fork): #define IA64 version.
28693 (__gnat_os_exit): Remove unnecessary VMS specific code.
28695 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28697 Part of PR ada/12806
28698 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
28702 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
28705 * targtyps.c, decl.c, misc.c,
28706 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
28707 routines to work around change in FP sizing semantics in GCC.
28710 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
28712 * gigi.h: (enumerate_modes): New function.
28714 * Make-lang.in: (ada/misc.o): Add real.h.
28716 * misc.c: (enumerate_modes): New function.
28718 2003-11-04 Robert Dewar <dewar@gnat.com>
28720 * 3vtrasym.adb: Minor reformatting
28721 Use terminology encoded/decoded name, rather than C++ specific notion
28722 of mangling (this is the terminology used throughout GNAT).
28724 * einfo.h: Regenerated
28726 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
28729 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
28731 * par-prag.adb: Add dummy entry for Thread_Body pragma
28734 Add entries for System.Threads entities for thread body processing
28737 (Analyze_Pragma, Access attributes): Check these are not applied to a
28738 thread body, since this is not permitted
28740 * sem_prag.adb: Add processing for Thread_Body pragma.
28744 (Resolve_Call): Check for incorrect attempt to call a thread body
28745 procedure with a direct call.
28747 * snames.ads, snames.adb: Add entry for Thread_Body pragma
28748 Add names associated with thread body expansion
28750 * snames.h: Add entry for Thread_Body pragma
28752 * s-thread.adb: Add entries for thread body processing
28753 These are dummy bodies so far
28755 * s-thread.ads: Add documentation on thread body handling.
28756 Add entries for thread body processing.
28758 2003-11-04 Javier Miranda <miranda@gnat.com>
28761 (Build_Limited_Views): Return after posting an error in case of limited
28762 with_clause on subprograms, generics, instances or generic renamings
28763 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
28764 on subprograms, generics, instances or generic renamings
28766 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
28768 * raise.c (setup_to_install): Correct mistake in last revision; two
28769 arguments out of order.
28771 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
28772 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
28773 notice, missed in previous change.
28774 Remove trailing blanks and other style errors introduced in previous
28777 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
28779 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
28780 rid of the wrapper for a LJM type, ensuring we don't do that if the
28781 field is addressable. This avoids potential low level type view
28782 mismatches later on, for instance in a by-reference argument passing
28785 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28787 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
28788 aligned at byte boundary.
28790 2003-11-04 Joel Brobecker <brobecker@gnat.com>
28792 * decl.c (components_to_record): Do not delete the empty variants from
28793 the end of the union type.
28795 2003-11-04 Ed Schonberg <schonberg@gnat.com>
28797 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
28798 operation for a derived type, an explicit declaration may use a local
28799 subtype of Boolean.
28801 2003-11-04 Vincent Celier <celier@gnat.com>
28803 * make.adb (Gnatmake): Allow main sources on the command line with a
28804 library project when it is only for compilation (no binding or
28807 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28809 * Makefile.in: Remove many duplicate variables.
28811 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
28813 * Make-lang.in (dvi): Move targets to $(docobjdir).
28814 (gnat_ug_vms.dvi): Simplify rule and adjust target.
28815 (gnat_ug_wnt.dvi): Likewise.
28816 (gnat_ug_unx.dvi): Likewise.
28817 (gnat_ug_vxw.dvi): Likewise.
28818 (gnat_rm.dvi): Likewise.
28819 (gnat-style.dvi): Likewise.
28821 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
28823 * gigi.h: Missed commit from update for C90.
28825 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
28827 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
28829 2003-10-31 Andreas Schwab <schwab@suse.de>
28831 * raise.c (get_action_description_for): Fix typo in last change.
28833 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
28836 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
28837 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
28839 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
28841 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
28842 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
28843 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
28844 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
28845 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
28847 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
28850 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
28851 numbers when symbol name is too long.
28853 2003-10-30 Ed Falis <falis@gnat.com>
28855 * g-signal.ads, g-signal.adb: New files
28857 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
28859 * Makefile.rtl: Introduce GNAT.Signals
28861 2003-10-30 Robert Dewar <dewar@gnat.com>
28863 * freeze.adb: Minor reformatting
28865 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
28867 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
28868 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
28869 New handling of Id_Check parameter to improve recognition of keywords
28870 used as identifiers.
28871 Update copyright notice to include 2003
28873 2003-10-29 Robert Dewar <dewar@gnat.com>
28875 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
28876 sem_ch10.adb: Minor reformatting
28878 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
28879 (Expand_Assign_Record): Test right hand side for bit unaligned as well
28881 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
28883 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
28884 Support for TBK$SYMBOLIZE-based symbolic traceback.
28886 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
28889 Revert previous change, that did not work well when pragma No_Run_Time
28890 was used in conjunction with a run-time other than ZFP.
28892 2003-10-29 Vincent Celier <celier@gnat.com>
28895 (Gnatmake): When there are no Ada mains in attribute Main, disable the
28896 bind and link steps only is switch -z is not used.
28898 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
28900 * Makefile.generic: Remove duplicated setting of CC.
28902 * Makefile.prolog: Set CC to gcc by default, to override make's
28905 * einfo.h: Regenerated.
28907 2003-10-29 Ed Schonberg <schonberg@gnat.com>
28909 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
28910 current body, after compiling subunit.
28912 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
28913 when in deleted code, because gigi needs properly ordered freeze
28914 actions to annotate types.
28916 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
28917 prevent the premature freezing of record type that contains
28918 subcomponents with a private type that does not yet have a completion.
28920 2003-10-29 Javier Miranda <miranda@gnat.com>
28923 (Analyze_Package_Instantiation): Check that instances can not be used in
28924 limited with_clauses.
28927 (Analyze_Package_Renaming): Check that limited withed packages cannot
28928 be renamed. Improve text on error messages related to limited
28931 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
28933 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
28934 Update copyright notice.
28936 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
28937 (Install_Limited_Context_Clauses): New subprogram that isolates all the
28938 checks required for limited context_clauses and installs the limited
28940 (Install_Limited_Withed_Unit): Complete its documentation.
28941 (Analyze_Context): Check that limited with_clauses are only allowed in
28943 (Install_Context): Call Install_Limited_Context_Clauses after the
28944 parents have been installed.
28945 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
28946 package as 'From_With_Type'; this mark indicates that the limited view
28947 is installed. Used to check bad usages of limited with_clauses.
28948 (Build_Limited_Views): Do not add shadow entities to the scope's list
28949 of entities. Do not add real entities to the Non_Limited_Views chain.
28950 Improve error notification.
28951 (Remove_Context_Clauses): Remove context clauses in two phases:
28952 limited views first and regular views later (to maintain the
28954 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
28955 its visible entities.
28957 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
28959 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
28960 with any type that Is_Fixed_Point_Type.
28962 * sinfo.ads: Fix documentation for Associated_Node attribute.
28964 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
28966 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
28967 both '-gnatc' and '-gnatt' are specified.
28969 * atree.adb (Initialize): Add initialization for Node_Count (set to
28972 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28974 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
28975 do not consider as Pure.
28977 Part of implementation of function-at-a-time:
28979 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
28980 (tree_transform): Add new argument to build_component_ref.
28981 (tree_transform, case N_Assignment_Statement): Make and return an
28983 (tree_transform): If result IS_STMT, set flags and return it.
28984 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
28986 * utils2.c (build_simple_component_ref, build_component_ref): Add new
28988 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
28989 (build_allocator): Likewise.
28991 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
28992 Add new arg to build_component_ref.
28993 (maybe_unconstrained_array, unchecked_convert): Likewise.
28995 * ada-tree.def (EXPR_STMT): New code.
28997 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
28999 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
29000 build_component_ref calls.
29002 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
29004 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
29005 (build_component_ref): Add new argument, NO_FOLD_P.
29007 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
29009 * Makefile.generic: Add missing substitution on object_deps handling.
29012 * Make-lang.in (check-ada): Enable ACATS test suite.
29014 2003-10-27 Robert Dewar <dewar@gnat.com>
29017 (Freeze_Array_Type): We do not need an initialization routine for types
29018 derived from String or Wide_String. They should be treated the same
29019 as String and Wide_String themselves. This caused problems with the
29020 use of Initialize_Scalars.
29023 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
29024 composites. This allows use of component clauses that are not byte
29028 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
29029 is an attempt to pack an array of atomic objects.
29031 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
29033 2003-10-27 Pascal Obry <obry@gnat.com>
29036 (Basename): Check for drive letters in a pathname only on DOS based OS.
29038 2003-10-27 Vincent Celier <celier@gnat.com>
29041 (Gnatmake): When unable to change dir to the object dir, display the
29042 content of the parent dir of the obj dir, to try to understand why this
29045 2003-10-27 GNAT Script <nobody@gnat.com>
29047 * Make-lang.in: Makefile automatically updated
29049 2003-10-27 Ed Schonberg <schonberg@gnat.com>
29052 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
29053 should not be done in Save/Restore_Scope_Stack, because it is performed
29057 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
29058 whether use clauses should be removed/restored.
29061 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
29062 whether use clauses should be removed/restored.
29064 2003-10-26 Andreas Jaeger <aj@suse.de>
29066 * Makefile.in: Remove duplicated lines.
29068 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29070 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
29071 minimize the differences with ACT tree.
29073 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
29074 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
29075 Gnatvsn.Gnat_Static_Version_String to reduce differences between
29078 2003-10-24 Pascal Obry <obry@gnat.com>
29081 * adadecode.c (ostrcpy): New function.
29082 (__gnat_decode): Use ostrcpy of strcpy.
29083 (has_prefix): Set first parameter a const.
29084 (has_suffix): Set first parameter a const.
29085 Update copyright notice. Fix source name in header.
29086 Removes a trailing space.
29088 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
29091 Remove the test against being in No_Run_Time_Mode before generating a
29092 call to Register_Tag. It is redundant with the test against the
29093 availability of the function Register_Tag.
29095 2003-10-24 Vincent Celier <celier@gnat.com>
29097 * g-catiio.adb: (Month_Name): Correct spelling of February
29099 * make.adb: (Mains): New package
29100 (Initialize): Call Mains.Delete
29101 (Gnatmake): Check that each main on the command line is a source of a
29102 project file and, if there are several mains, each of them is a source
29103 of the same project file.
29104 (Gnatmake): When a foreign language is specified in attribute Languages,
29105 no main is specified on the command line and attribute Mains is not
29106 empty, only build the Ada main. If there is no Ada main, just compile
29107 the Ada sources and their closure.
29108 (Gnatmake): If a main is specified on the command line with directory
29109 information, check that the source exists and, if it does, that the path
29110 is the actual path of a source of a project.
29113 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
29114 Full_Path is True, return the full path instead of the simple file name.
29115 (Project_Of): New function
29118 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
29119 defaulted to False.
29120 (Project_Of): New function
29122 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29124 * Makefile.generic:
29125 Ensure objects of main project are always checked and rebuilt if needed.
29126 Set CC to gcc by default.
29127 Prepare new handling of link by creating a global archive (not activated
29130 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
29131 stringt.h: Update copyright notice. Remove trailing blanks.
29132 Fix source name in header.
29134 2003-10-24 Robert Dewar <dewar@gnat.com>
29136 * sem_ch12.adb: Minor reformatting
29139 Minor reformatting (including new function return style throughout)
29142 Minor reformatting (including new function return style throughout)
29144 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29146 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
29147 stringt.h: Update copyright notice. Remove trailing blanks.
29148 Fix source name in header.
29150 2003-10-24 GNAT Script <nobody@gnat.com>
29152 * Make-lang.in: Makefile automatically updated
29154 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
29156 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
29157 stringt.h: Convert to ISO C90 declarations and definitions.
29159 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
29162 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
29163 External_Tag attribute definition clauses.
29165 2003-10-23 Ed Schonberg <schonberg@gnat.com>
29168 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
29169 child unit, generate a fully qualified name to avoid spurious errors
29170 when the context contains renamings of different child units with
29171 the same simple name.
29173 * exp_dbug.ads: Add documentation on name qualification for renamings
29176 2003-10-23 Robert Dewar <dewar@gnat.com>
29178 * g-regpat.ads, g-regpat.adb: Minor reformatting
29180 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
29182 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
29184 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29186 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
29189 * urealp.h: (Machine): Update to proper definition.
29191 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
29193 * init.c, adaint.c: Minor reformatting.
29195 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
29197 * adaint.c (w32_epoch_offset): Define static const at file level.
29198 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
29199 rather than t_create, t_access in call to GetFileTime. Use union
29200 to convert between FILETIME and unsigned long long.
29201 (__gnat_file_time_name): Test for invalid file handle.
29202 (__gnat_set_filetime_name): Support win32 targets using
29203 w32api SetFileTime.
29205 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
29207 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
29209 * ctrl_c.c (__gnat_int_handler): Remove declaration.
29211 * decl.c (creat_concat_name): Const-ify prefix.
29213 * adaint.c: Include ctype.h if __MINGW32__.
29214 (__gnat_readlink): Mark arguments as possibly unused.
29215 (__gnat_symlink): Likewise.
29216 (__gnat_is_symbolic_link): Likewise.
29217 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
29219 (__gnat_file_time_name): Don't declare struct stat statbuf when
29221 (__gnat_is_absolute_path): Add parenthesis around condition of
29222 'if' statement to avoid warning.
29223 (__gnat_plist_init): Specify void as parameter.
29224 (plist_enter): Likewise.
29225 (plist_leave): Likewise.
29226 (remove_handle): Make static. Initialize prev.
29228 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
29231 * Makefile.in: Disable build of gnatpsta.
29232 * cstreams.c (__gnat_full_name): Minor improvements and clean up
29233 of previous change.
29235 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29237 * tracebak.c (MAX): Avoid redefinition warning.
29239 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
29240 Change msg to const char *.
29241 (__gnat_install_handler): Remove ss, unused.
29242 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
29244 * cstreams.c (__gnat_full_name): Declare p only when used.
29245 (__gnat_full_name) [sgi] Return buffer.
29247 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
29249 * mingw32.h: New file.
29250 * gnat_wrapper.adb: New file.
29252 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
29254 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
29255 string match a pre compiled regular expression (the corresponding
29256 version of the function working on a raw regular expression)
29257 Fix typos in various comments
29258 Update copyright notice in spec
29260 2003-10-21 Gary Dismukes <dismukes@gnat.com>
29263 (Component_Needs_Simple_Initialization): Return False when the type is a
29264 packed bit array. Revise spec comments to document this case.
29267 (Expand_Pragma_Import): Set any expression on the imported object to
29268 empty to avoid initializing imported objects (in particular this
29269 covers the case of zero-initialization of bit arrays).
29270 Update copyright notice.
29272 2003-10-21 Ed Schonberg <schonberg@gnat.com>
29275 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
29276 a subunit is missing.
29277 (Instantiate_Subprogram_Body): If body of function is missing, set type
29278 of return expression explicitly in dummy body, to prevent cascaded
29279 errors when a subunit is missing.
29283 (Access_Subprogram_Declaration): Verify that return type is valid.
29287 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
29292 (Corresponding_Discriminant): If the scope of the discriminant is a
29293 private type without discriminant, use its full view.
29296 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
29298 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
29299 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
29300 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
29301 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
29302 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
29303 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
29304 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
29305 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
29306 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
29307 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
29308 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
29309 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
29310 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
29311 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
29312 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
29313 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
29314 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
29315 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
29316 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
29317 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
29318 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
29319 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
29320 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
29321 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
29322 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
29323 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
29324 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
29325 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
29326 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
29327 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
29328 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
29329 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
29330 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
29331 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
29332 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
29333 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
29334 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
29335 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
29336 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
29337 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
29338 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
29339 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
29340 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
29341 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
29342 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
29343 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
29344 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
29345 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
29346 vms_conv.ads, vms_conv.adb, vms_data.ads,
29347 vxaddr2line.adb: Files added. Merge with ACT tree.
29349 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
29350 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
29351 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
29352 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
29353 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
29354 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
29355 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
29356 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
29357 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
29358 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
29360 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
29361 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
29362 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
29363 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
29364 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
29365 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
29366 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
29367 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
29368 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
29369 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
29370 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
29371 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
29372 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
29373 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
29374 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
29375 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
29376 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
29377 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
29378 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
29379 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
29380 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
29381 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
29382 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
29383 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
29384 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
29385 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
29386 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
29387 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
29388 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
29389 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
29390 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
29391 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
29392 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
29393 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
29394 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
29395 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
29396 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
29397 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
29398 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
29399 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
29400 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
29401 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
29402 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
29403 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
29404 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
29405 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
29406 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
29407 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
29408 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
29409 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
29410 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
29411 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
29412 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
29413 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
29414 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
29415 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
29416 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
29417 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
29418 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
29419 checks.adb, checks.ads, cio.c, comperr.adb,
29420 comperr.ads, csets.adb, cstand.adb, cstreams.c,
29421 debug_a.adb, debug_a.ads, debug.adb, decl.c,
29422 einfo.adb, einfo.ads, errout.adb, errout.ads,
29423 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
29424 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
29425 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
29426 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
29427 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
29428 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
29429 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
29430 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
29431 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
29432 fe.h, fmap.adb, fmap.ads, fname.adb,
29433 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
29434 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
29435 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
29436 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
29437 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
29438 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
29439 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
29440 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
29441 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
29442 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
29443 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
29444 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
29445 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
29446 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
29447 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
29448 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
29449 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
29450 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
29451 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
29452 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
29453 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
29454 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
29455 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
29456 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
29457 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
29458 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
29459 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
29460 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
29461 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
29462 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
29463 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
29464 layout.adb, lib.adb, lib.ads, lib-list.adb,
29465 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
29466 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
29467 link.c, live.adb, make.adb, make.ads,
29468 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
29469 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
29470 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
29471 misc.c, mkdir.c, mlib.adb, mlib.ads,
29472 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
29473 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
29474 namet.adb, namet.ads, namet.h, nlists.ads,
29475 nlists.h, nmake.adt, opt.adb, opt.ads,
29476 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
29477 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
29478 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
29479 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
29480 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
29481 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
29482 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
29483 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
29484 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
29485 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
29486 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
29487 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
29488 prj-util.adb, prj-util.ads, raise.c, raise.h,
29489 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
29490 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
29491 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
29492 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
29493 scans.ads, scn.adb, scn.ads, s-crc32.adb,
29494 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
29495 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
29496 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
29497 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
29498 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
29499 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
29500 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
29501 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
29502 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
29503 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
29504 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
29505 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
29506 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
29507 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
29508 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
29509 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
29510 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
29511 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
29512 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
29513 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
29514 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
29515 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
29516 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
29517 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
29518 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
29519 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
29520 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
29521 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
29522 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
29523 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
29524 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
29525 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
29526 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
29527 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
29528 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
29529 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
29530 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
29531 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
29532 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
29533 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
29534 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
29535 stringt.adb, stringt.ads, stringt.h, style.ads,
29536 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
29537 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
29538 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
29539 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
29540 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
29541 table.adb, table.ads, targparm.adb, targparm.ads,
29542 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
29543 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
29544 ttypes.ads, types.ads, types.h, uintp.adb,
29545 uintp.ads, uintp.h, uname.adb, urealp.adb,
29546 urealp.ads, urealp.h, usage.adb, utils2.c,
29547 utils.c, validsw.adb, validsw.ads, widechar.adb,
29548 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
29549 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
29550 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
29551 gnatvsn.ads: Merge with ACT tree.
29553 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
29555 2003-10-20 Mark Mitchell <mark@codesourcery.com>
29557 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
29558 (gnat_ug_vmx.info): Likewise.
29559 (gnat_ug_vxw.info): Likewise.
29560 (gnat_ug_wnt.info): Likewise.
29561 (gnat_rm.info): Likewise.
29562 (gnat-style.info): Likewise.
29564 * Make-lang.in (ada.install-info): Remove target.
29565 (info): New target.
29566 (install-info): Likewise.
29567 (gnat_ug_unx.info): Simplify rule.
29568 (gnat_ug_vmx.info): Likewise.
29569 (gnat_ug_vxw.info): Likewise.
29570 (gnat_ug_wnt.info): Likewise.
29571 (gnat_rm.info): Likewise.
29572 (gnat-style.info): Likewise.
29574 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
29576 * Make-lang.in: Replace uses of $(target_alias) with
29577 $(target_noncanonical).
29578 * ada/Makefile.in: Remove unused mention of $(target_alias).
29580 2003-10-06 Mark Mitchell <mark@codesourcery.com>
29582 * Make-lang.in (ada.info): Replace with ...
29584 (ada.dvi): Replace with ...
29587 2003-09-29 Zack Weinberg <zack@codesourcery.com>
29589 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
29590 initialize dconstp5 and dconstmp5.
29592 2003-09-28 Richard Henderson <rth@redhat.com>
29594 * trans.c (tree_transform): Update call to expand_asm_operands.
29596 2003-09-21 Richard Henderson <rth@redhat.com>
29598 * trans.c, utils.c: Revert.
29600 2003-09-21 Richard Henderson <rth@redhat.com>
29602 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
29605 2003-09-04 Michael Matz <matz@suse.de>
29607 * misc.c: Include "target.h".
29608 * Make-lang.in (misc.o): Add dependency on target.h.
29610 2003-09-03 DJ Delorie <dj@redhat.com>
29612 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
29615 2003-08-30 Zack Weinberg <zack@codesourcery.com>
29617 * Makefile.in: Update substitutions to match changes to
29618 configure. Use include directives instead of @-insertions
29619 to read in host and target fragments. Add a rule to
29620 regenerate ada/Makefile.
29622 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
29624 * lang-options.h: Remove.
29625 * lang.opt: Add help text.
29627 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
29629 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
29632 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
29634 * misc.c (gnat_handle_option): Don't handle filenames.
29636 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
29638 * Make-lang.in: Replace PWD with PWD_COMMAND.
29639 * Makefile.adalib: Likewise.
29640 * Makefile.in: Likewise.
29642 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
29644 * misc.c (gnat_argv): Revert last change.
29645 (gnat_handle_option, gnat_init_options): Copy arguments.
29647 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
29649 * misc.c (gnat_argv): Make const.
29651 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
29653 * misc.c (save_argc, save_argv): Keep non-static!
29655 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
29657 * misc.c (save_argc, save_argv): Make static.
29658 (gnat_init_options): New prototype.
29659 (gnat_init_options): Update.
29661 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
29663 * gnat_ug.texi: Remove unlikely characters from @vars.
29664 * gnat_ug_vms.texi: Regenerate.
29666 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
29668 * misc.c (record_code_position): Adjust emit_note call.
29670 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
29672 * misc.c (gnat_handle_option): Don't check for missing arguments.
29674 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
29676 * utils.c (end_subprog_body): Adjust expand_function_end call.
29678 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
29680 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
29683 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
29685 * lang.opt: Declare Ada.
29686 * misc.c (gnat_init_options): Update.
29688 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
29690 * utils.c (begin_subprog_body): Adjust init_function_start call.
29692 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
29694 * Make-lang.in: Update to use options.c and options.h.
29695 * misc.c: Include options.h not aoptions.h.
29696 (gnat_handle_option): Abort on unrecognized switch.
29697 (gnat_init_options): Request Ada switches.
29699 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
29701 * lang.opt: Add -Wall.
29702 * misc.c (gnat_handle_option): Handle it.
29704 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
29706 * misc.c (gnat_handle_option): Fix warnings.
29708 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
29710 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
29712 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
29714 * Make-lang.in: Update to handle command-line options.
29715 * lang.opt: New file.
29716 * misc.c: Include aoptions.h.
29717 (cl_options_count, cl_options): Remove.
29718 (gnat_handle_option): New.
29719 (gnat_decode_option): Remove.
29720 (LANG_HOOKS_DECODE_OPTION): Remove.
29721 (LANG_HOOKS_HANDLE_OPTION): Override.
29723 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
29725 * init.c, misc.c, trans.c, utils.c: Remove dead code.
29727 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
29729 * Makefile.in: Replace "host_canonical" with "host" for autoconf
29732 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
29734 * Make-lang.in: Update.
29735 * misc.c: Include opts.h. Define cl_options_count and cl_options.
29737 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
29739 * misc.c (gnat_init_options): Update.
29741 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
29743 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
29744 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
29745 __attribute__ ((__unused__)).
29747 2003-06-05 Jan Hubicka <jh@suse.cz>
29749 * Make-lang.in: Add support for stageprofile and stagefeedback
29751 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
29753 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
29754 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
29756 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
29758 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
29759 Remove non-VMS directive.
29760 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
29762 (Examples of gnatls Usage): Remove VMS alternative.
29764 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
29767 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
29768 and turn ZCX_By_Default back to False since the underlying support
29769 is not quite there yet.
29771 2003-06-01 Andreas Jaeger <aj@suse.de>
29773 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
29774 and ROUND_TYPE_SIZE_UNIT.
29776 2003-05-22 Geert Bosch <bosch@gnat.com>
29778 * gnat_rm.texi : Remove reference to Ada Core Technologies.
29780 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
29782 * trans.c (tree_transform): Use location_t and input_location
29784 (build_unit_elab): Likewise.
29785 * utils.c (create_label_decl): Likewise.
29787 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
29789 * trans.c (tree_transform, build_unit_elab,
29790 set_lineno): Rename lineno to input_line.
29791 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
29792 end_subprog_body): Likewise.
29793 * utils2.c (build_call_raise): Likewise.
29795 2003-05-01 Laurent Guerby <guerby@acm.org>
29798 * 5iosinte.ads: Increase pthread_cond_t size to match recent
29799 LinuxThread and NPTL version, merge from ACT.
29801 2003-04-28 Zack Weinberg <zack@codesourcery.com>
29803 * utils.c (convert): No need to clear TREE_CST_RTL.
29805 2003-04-23 Geert Bosch <bosch@gnat.com>
29807 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
29808 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
29809 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
29810 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
29811 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
29812 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
29813 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
29814 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
29815 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
29816 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
29817 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
29818 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
29819 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
29820 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
29821 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
29822 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
29823 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
29824 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
29825 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
29826 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
29827 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
29828 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
29829 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
29830 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
29831 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
29832 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
29833 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
29834 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
29835 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
29836 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
29837 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
29838 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
29839 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
29840 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
29841 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
29842 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
29843 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
29844 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
29845 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
29846 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
29847 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
29848 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
29849 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
29850 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
29851 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
29852 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
29853 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
29854 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
29855 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
29856 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
29857 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
29858 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
29859 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
29860 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
29861 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
29862 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
29863 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
29864 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
29865 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
29866 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
29867 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
29868 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
29869 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
29870 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
29871 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
29872 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
29873 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
29874 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
29875 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
29876 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
29877 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
29878 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
29879 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
29880 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
29881 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
29882 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
29883 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
29884 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
29885 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
29886 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
29887 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
29888 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
29889 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
29890 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
29891 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
29892 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
29893 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
29894 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
29895 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
29896 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
29897 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
29898 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
29899 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
29900 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
29901 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
29902 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
29903 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
29904 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
29905 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
29906 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
29907 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
29908 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
29909 ali.adb, ali.ads, alloc.ads, argv.c,
29910 atree.adb, atree.ads, atree.h, aux-io.c,
29911 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
29912 binde.adb, binde.ads, binderr.adb, binderr.ads,
29913 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
29914 butil.adb, butil.ads, cal.c, calendar.ads,
29915 casing.adb, casing.ads, ceinfo.adb, checks.adb,
29916 checks.ads, cio.c, comperr.adb, comperr.ads,
29917 config-lang.in, csets.adb, csets.ads, csinfo.adb,
29918 cstand.adb, cstand.ads, cuintp.c, debug.adb,
29919 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
29920 dec-io.ads, dec.ads, deftarg.c, directio.ads,
29921 einfo.adb, einfo.ads, elists.adb, elists.ads,
29922 elists.h, errno.c, errout.adb, errout.ads,
29923 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
29924 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
29925 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
29926 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
29927 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
29928 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
29929 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
29930 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
29931 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
29932 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
29933 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
29934 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
29935 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
29936 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
29937 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
29938 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
29939 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
29940 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
29941 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
29942 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
29943 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
29944 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
29945 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
29946 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
29947 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
29948 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
29949 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
29950 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
29951 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
29952 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
29953 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
29954 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
29955 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
29956 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
29957 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
29958 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
29959 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
29960 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
29961 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
29962 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
29963 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
29964 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
29965 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
29966 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
29967 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
29968 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
29969 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
29970 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
29971 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
29972 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
29973 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
29974 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
29975 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
29976 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
29977 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
29978 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
29979 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
29980 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
29981 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
29982 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
29983 lib.adb, lib.ads, live.adb, live.ads,
29984 machcode.ads, make.adb, make.ads, makeusg.adb,
29985 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
29986 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
29987 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
29988 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
29989 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
29990 mlib.ads, namet.adb, namet.ads, nlists.adb,
29991 nlists.ads, opt.adb, opt.ads, osint-b.adb,
29992 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
29993 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
29994 osint.ads, output.adb, output.ads, par-ch10.adb,
29995 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
29996 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
29997 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
29998 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
29999 par-tchk.adb, par-util.adb, par.adb, par.ads,
30000 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
30001 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
30002 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
30003 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
30004 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
30005 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
30006 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
30007 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
30008 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
30009 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
30010 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
30011 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
30012 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
30013 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
30014 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
30015 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
30016 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
30017 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
30018 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
30019 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
30020 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
30021 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
30022 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
30023 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
30024 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
30025 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
30026 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
30027 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
30028 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
30029 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
30030 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
30031 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
30032 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
30033 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
30034 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
30035 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
30036 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
30037 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
30038 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
30039 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
30040 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
30041 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
30042 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
30043 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
30044 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
30045 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
30046 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
30047 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
30048 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
30049 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
30050 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
30051 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
30052 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
30053 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
30054 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
30055 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
30056 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
30057 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
30058 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
30059 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
30060 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
30061 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
30062 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
30063 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
30064 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
30065 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
30066 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
30067 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
30068 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
30069 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
30070 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
30071 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
30072 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
30073 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
30074 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
30075 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
30076 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
30077 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
30078 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
30079 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30080 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
30081 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
30082 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
30083 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
30084 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
30085 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
30086 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
30087 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
30088 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
30089 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
30090 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
30091 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
30092 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
30093 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
30094 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
30095 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
30096 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
30097 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
30098 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
30099 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
30100 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
30101 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
30102 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
30103 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
30104 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
30105 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
30106 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
30107 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
30108 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
30109 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
30110 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
30111 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
30112 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
30113 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
30114 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
30115 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
30116 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
30117 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
30118 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
30119 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
30120 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
30121 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
30122 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
30123 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
30124 snames.ads, sprint.adb, sprint.ads, stand.adb,
30125 stand.ads, stringt.adb, stringt.ads, style.adb,
30126 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
30127 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
30128 switch-m.ads, switch.adb, switch.ads, system.ads,
30129 table.adb, table.ads, targparm.adb, targparm.ads,
30130 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
30131 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
30132 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
30133 ttypef.ads, ttypes.ads, types.adb, types.ads,
30134 uintp.adb, uintp.ads, uname.adb, uname.ads,
30135 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
30136 usage.adb, usage.ads, validsw.adb, validsw.ads,
30137 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
30138 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
30139 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
30140 formatting and other trivial changes from ACT.
30142 2003-04-12 Zack Weinberg <zack@codesourcery.com>
30144 * gigi.h, utils2.c (build_constructor):
30145 Rename gnat_build_constructor. Use build_constructor.
30146 * decl.c (gnat_to_gnu_entity)
30147 * trans.c (tree_transform, pos_to_constructor, extract_values)
30148 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
30149 (unchecked_convert)
30150 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
30151 (fill_vms_descriptor):
30154 2003-04-06 Zack Weinberg <zack@codesourcery.com>
30156 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
30157 * misc.c (gnat_tree_size): New function.
30158 (LANG_HOOKS_TREE_SIZE): Override.
30160 2003-04-03 Jason Merrill <jason@redhat.com>
30162 * misc.c (gnat_adjust_rli): #if 0.
30164 2003-03-31 Geert Bosch <bosch@gnat.com>
30167 * link.c : Fix misspelled "const" keyword
30169 2003-03-23 Mark Mitchell <mark@codesourcery.com>
30172 * utils2.c: Adjust calls to put_var_into_stack.
30174 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
30176 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
30178 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
30180 * misc.c (gnat_init): Update for new prototype.
30182 2003-03-05 Olivier Hainque <hainque@gnat.com>
30185 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
30186 warning, and fix return type for the IN_RTS && !SJLJ case.
30188 2003-03-04 Tom Tromey <tromey@redhat.com>
30190 * Make-lang.in (ada.tags): New target.
30192 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
30195 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
30196 wrapper, which name remains constant whatever underlying GCC
30199 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
30200 the stable interface needed for a-except.
30202 2003-03-02 Andreas Jaeger <aj@suse.de>
30204 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30205 gnat_ug_wnt.texi: Regenerate.
30207 2003-03-02 Laurent Guerby <guerby@acm.org>
30209 * Makefile.in (install-gnatlib): Match previous change there
30212 2003-02-28 Andreas Schwab <schwab@suse.de>
30214 * Make-lang.in (install-gnatlib): Change to ada directory before
30215 running make instead of using ada/Makefile directly.
30217 2003-02-18 Ben Elliston <bje@redhat.com>
30219 Part of PR ada/9406
30220 * gnat_ug.texi (Binder output file): Grammar fix.
30222 2003-02-18 Ben Elliston <bje@redhat.com>
30225 * 5qtaprop.adb (Sleep): Fix typo in comment.
30227 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
30229 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
30230 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30231 gnat_ug_wnt.texi: Regenerate.
30233 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
30235 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
30236 be created if necessary.
30237 (ada.install-common): Let $(DESTDIR)$(bindir) be created
30238 if necessary. Remove erroneous and redundant gnatchop
30239 installation commands. Test for gnatdll before attempting
30241 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
30242 and gnatdll from all plausible locations.
30244 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
30246 * utils2.c (build_unary_op): Don't check flag_volatile.
30247 * gnat_ug.texi: Remove -fvolatile from example.
30248 * gnat_ug_vxw.texi: Likewise.
30250 2003-01-29 Laurent Guerby <guerby@acm.org>
30253 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
30254 * Makefile.in: match previous change.
30255 * Make-lang.in: match previous change.
30257 2003-01-29 Joel Sherrill <joel@OARcorp.com>
30259 * 5rosinte.ads: Add SIGXCPU.
30260 * 5rtpopsp.adb: New file.
30261 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
30262 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
30263 specific file 5rtpopsp.adb.
30264 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
30265 is likely needed for all newlib targets.
30266 * init.c: Add RTEMS specific version of __gnat_initialize().
30268 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30270 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
30272 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30274 * init.c (__gnat_error_handler): Make msg const.
30276 * gmem.c (convert_addresses): Move declaration ...
30277 * adaint.h: ... here.
30278 * adaint.c (convert_addresses): Adapt addrs type to match
30281 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
30283 2003-01-24 Andreas Schwab <schwab@suse.de>
30285 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
30286 size_t to avoid warning.
30288 2003-01-21 Zack Weinberg <zack@codesourcery.com>
30290 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
30292 2003-01-09 Geoffrey Keating <geoffk@apple.com>
30294 * gnat_rm.texi: Remove RCS version number.
30296 * ada-tree.h (union lang_tree_node): Add chain_next option.
30298 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
30300 * Make-lang.in (ada.install-info, ada.install-common,
30301 ada.uninstall): Prepend $(DESTDIR) to the destination
30302 directory in all (un)installation commands.
30303 * Makefile.in (install-gnatlib, install-rts): Ditto.
30305 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
30307 * gnat_rm.texi, gnat_ug.texi: Use @copying.
30308 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30309 gnat_ug_wnt.texi: Regenerate.
30311 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
30313 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
30315 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
30316 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
30317 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
30318 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
30319 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
30320 $(srcdir)/doc/include/gcc-common.texi.
30322 2002-12-15 Geert Bosch <bosch@gnat.com>
30324 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
30326 2002-12-14 Geert Bosch <bosch@gnat.com>
30329 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
30330 case of a body created for a Renaming_As_Body, on which
30331 conformance checks are not performed.
30333 2002-11-30 Zack Weinberg <zack@codesourcery.com>
30335 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
30336 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
30337 not already included.
30338 * Make-lang.in: Update dependencies.
30340 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
30341 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
30342 solution to buffer overflow bug on GNU/Linux.
30344 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
30348 * bindgen.adb: Remove all references to Public_Version.
30349 * comperr.adb: Remove all references to Public_Version and
30350 GNATPRO_Version; correct bug reporting instructions.
30351 * comperr.ads: Change to match bug box.
30352 * gnatvsn.ads: Remove all references to Public version and
30355 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
30358 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
30362 * config-lang.in: Remove diff_excludes.
30364 2002-11-05 Graham Stott <graham.stott@btinternet.com>
30367 * trans.c (gnu_pending_elaboration_lists): New GC root.
30368 (build_unit_elab): Use..
30370 2002-10-30 Geert Bosch <bosch@gnat.com>
30373 * misc.c : Include optabs.h
30375 * Make-lang.in (misc.o): Add dependency on optabs.h
30377 2002-10-29 Geert Bosch <bosch@gnat.com>
30380 * Make-lang.in (gnatbind): Depend on CONFIG_H
30382 2002-10-29 Geert bosch <bosch@gnat.com>
30385 * misc.c: Unrevert misc.c (1.13)
30387 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
30389 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
30390 maintainership comments.
30392 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
30395 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
30396 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
30397 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
30398 7staprop.adb: Correct statements in comments about
30399 maintainership of GNAT.
30402 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
30403 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
30404 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
30405 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
30406 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
30407 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
30408 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
30409 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
30410 comments about maintainership of GNAT.
30412 PR ada/6919 (forward port of patch for PR ada/5904)
30413 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
30414 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
30415 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
30416 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
30417 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
30418 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
30419 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
30420 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
30421 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
30422 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
30423 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
30424 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
30425 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
30426 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
30427 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
30428 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
30429 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
30430 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
30431 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
30432 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
30433 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
30434 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
30435 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
30436 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
30437 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
30438 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
30439 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
30440 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
30441 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
30442 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
30443 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
30444 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
30445 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
30446 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
30447 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
30448 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
30449 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
30450 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
30451 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
30452 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
30453 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
30454 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
30455 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
30456 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
30457 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
30458 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
30459 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
30460 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
30461 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
30462 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
30463 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
30464 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
30465 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
30466 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
30467 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
30468 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
30469 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
30470 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
30471 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
30472 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
30473 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
30474 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
30475 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
30476 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
30477 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
30478 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
30479 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
30480 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
30481 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
30482 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
30483 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
30484 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
30485 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
30486 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
30487 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
30488 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
30489 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
30490 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
30491 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
30492 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
30493 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
30494 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
30495 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
30496 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
30497 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
30498 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
30499 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
30500 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
30501 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
30502 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
30503 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
30504 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
30505 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
30506 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
30507 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
30508 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
30509 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
30510 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
30511 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
30512 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
30513 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
30514 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
30515 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
30516 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
30517 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
30518 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
30519 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
30520 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
30521 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
30522 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
30523 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
30524 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
30525 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
30526 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
30527 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
30528 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
30529 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
30530 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
30531 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
30532 par-endh.adb par-labl.adb par-load.adb par-prag.adb
30533 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
30534 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
30535 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
30536 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
30537 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
30538 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
30539 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
30540 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
30541 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
30542 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
30543 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
30544 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
30545 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
30546 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
30547 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
30548 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
30549 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
30550 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
30551 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
30552 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
30553 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
30554 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
30555 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
30556 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
30557 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
30558 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
30559 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
30560 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
30561 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
30562 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
30563 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
30564 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
30565 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
30566 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
30567 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
30568 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
30569 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
30570 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
30571 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
30572 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
30573 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
30574 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
30575 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
30576 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
30577 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
30578 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
30579 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
30580 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
30581 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
30582 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
30583 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
30584 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
30585 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
30586 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
30587 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
30588 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
30589 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
30590 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
30591 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
30592 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
30593 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
30594 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
30595 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
30596 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
30597 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
30598 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
30599 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
30600 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
30601 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
30602 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
30603 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
30604 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
30605 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
30606 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
30607 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
30608 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
30609 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
30610 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
30611 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
30612 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
30613 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
30614 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
30615 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
30616 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
30617 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
30618 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
30619 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
30620 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
30621 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
30622 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
30623 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
30624 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
30625 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
30626 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
30627 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
30628 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
30629 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
30630 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
30631 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
30632 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
30633 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
30634 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
30635 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
30636 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
30637 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
30638 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
30639 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
30640 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
30641 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
30642 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
30643 stringt.ads stringt.h style.adb style.ads stylesw.adb
30644 stylesw.ads switch.adb switch.ads sysdep.c system.ads
30645 table.adb table.ads targparm.adb targparm.ads targtyps.c
30646 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
30647 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
30648 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
30649 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
30650 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
30651 usage.ads utils.c utils2.c validsw.adb validsw.ads
30652 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
30653 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
30654 xtreeprs.adb: Correct statements in comments about maintainership
30657 2002-09-23 Zack Weinberg <zack@codesourcery.com>
30659 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
30660 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
30661 * gnatvsn.ads: Gnat_Version_String is now a function.
30662 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
30663 copy the C version_string into a String and return it.
30664 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
30665 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
30666 Remove pragma Ident (Gnat_Version_String). If this was the
30667 sole use of package Gnatvsn, remove the with statement too.
30668 * gnat1drv.adb: Tweak -gnatv output.
30670 2002-09-17 Richard Henderson <rth@redhat.com>
30672 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
30673 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
30674 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
30675 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
30676 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
30677 and real_2expN instead of a loop.
30678 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
30679 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
30681 2002-08-25 Andre Leis <a.leis@gmx.net>
30682 David Billinghurst (David.Billinghurst@riotinto.com>
30684 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
30686 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30688 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
30689 Remove $(CONFIG_H) dependency.
30691 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
30693 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
30695 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30697 * adadecode.c (ada_demangle): Use xstrdup in lieu of
30699 * misc.c (gnat_decode_option): Likewise.
30701 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
30703 * make.adb (Add_Switch): Make Generic_Position a procedure. The
30704 function approach did not work well because of a side effect (the
30705 function call could reallocate the table which was being indexed
30706 using its result). Fixes ada/4851. [RESURRECTED]
30708 2002-07-01 Roger Sayle <roger@eyesopen.com>
30710 * ada/utils.c (builtin_function): Accept an additional parameter.
30712 2002-06-28 Andreas Jaeger <aj@suse.de>
30715 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
30718 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30720 * Makefile.in (SHELL): Set to @SHELL@.
30722 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30724 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
30725 array size calculation.
30727 2002-06-04 Andreas Jaeger <aj@suse.de>
30729 * Make-lang.in (gnatbind): Readd rule that has been lost in last
30732 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
30734 Merge from pch-branch:
30736 * config-lang.in (gtfiles): Add ada-tree.h.
30737 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
30738 (SET_TYPE_MODULUS): New.
30739 (SET_TYPE_INDEX): New.
30740 (SET_TYPE_DIGITS_VALUE): New.
30741 (SET_TYPE_RM_SIZE): New.
30742 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
30743 (SET_TYPE_ADA_SIZE): New.
30744 (SET_TYPE_ACTUAL_BOUNDS): New.
30745 (SET_DECL_CONST_CORRESPONDING_VAR): New.
30746 (SET_DECL_ORIGINAL_FIELD): New.
30747 (TREE_LOOP_ID): Correct typo.
30748 * decl.c: Use new macros.
30749 * utils.c: Include debug.h, use new macros.
30750 * utils2.c: Use new macros.
30752 * ada-tree.h: Update all macros for new tree description.
30753 (struct tree_loop_id): New.
30754 (union lang_tree_node): New.
30755 (struct lang_decl): New.
30756 (struct lang_type): New.
30757 * misc.c (gnat_mark_tree): Delete.
30758 (LANG_HOOKS_MARK_TREE): Delete.
30759 * trans.c (tree_transform): No longer any need to cast
30762 * utils.c (struct language_function): New dummy structure.
30764 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
30765 (misc.o): Likewise.
30766 (utils.o): Likewise; also gtype-ada.h.
30767 * Make-lang.in (gnat1): Add dependency on s-gtype.
30768 (gnatbind): Add dependency on $(CONFIG_H).
30769 * utils.c: Correct last #include.
30770 (stuct e_stack): Remove unnecessary 'static'.
30771 (mark_e_stack): Remove unused prototype.
30773 * scn-nlit.adb: Remove whitespace after version number to
30774 keep lines under 80 chars.
30775 * snames.adb: Likewise.
30776 * treepr.ads: Likewise.
30778 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
30779 (misc.o): Likewise.
30780 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
30781 * config-lang.in (gtfiles): New.
30782 * decl.c: Use gengtype for roots.
30783 * gigi.h: Use gengtype for roots.
30784 * trans.c: Use gengtype for roots.
30785 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
30787 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
30789 * misc.c (gnat_init): Adjust setting of internal_error_function.
30791 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
30793 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
30794 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30795 gnat_ug_wnt.texi: Regenerate.
30797 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
30799 * 5ntaprop.adb (with System.OS_Primitives): Remove.
30801 * cstreams.c (max_path_len): Move from here ...
30802 * adaint.c (__gnat_max_path_len): ... to here.
30803 * adaint.c (__gnat_max_path_len): Declare.
30804 * g-dirope.adb (Max_Path): Adjust.
30805 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
30806 * i-cstrea.ads (max_path_len): Adjust.
30807 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
30808 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
30810 * Makefile.in, Make-lang.in: Documentation is now built in
30811 Make-lang.in. Store Info and generated Texinfo files in the
30813 * gnat_ug.texi: Remove CVS keywords, correct version number.
30814 Set file name correctly.
30816 * gnat_ug_*.texi: Add.
30817 * .cvsignore: Ignore generated Texinfo files.
30819 2002-05-30 Zack Weinberg <zack@codesourcery.com>
30821 * ada.h: Add MI guard macro.
30822 (SUBTYPE): Define constants with an anonymous enum, not static
30824 (IN): Cast constants to appropriate type before use.
30826 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
30828 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
30831 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30833 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
30834 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
30835 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
30836 (ALL_ADA_CFLAGS): Likewise.
30837 (ADA_INCLUDES): Likewise.
30838 Adapt for new working dir.
30839 (GNATBIND): Use Makefile.in version.
30840 (.SUFFIXES): Copy from Makefile.in.
30841 (ada-warn): Define.
30842 (.adb.o, .ads.o): Copy from Makefile.in.
30843 Added $(OUTPUT_OPTION).
30844 (GNAT1_C_OBJS): Moved from Makefile.in.
30845 Prefix with ada subdir.
30846 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
30847 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
30848 Adapt for new working dir.
30849 (EXTRA_GNATBIND_OBJS): Likewise.
30850 (ADA_BACKEND): Moved from Makefile.in.
30851 Renamed to avoid conflict with global BACKEND.
30853 (TARGET_ADA_SRCS): Moved from Makefile.in.
30854 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
30856 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
30857 (ada_extra_files): Moved from Makefile.in.
30858 Prefix with ada subdir.
30859 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
30860 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
30861 (ada/nmake.ads): Likewise.
30862 (update-sources): Moved from Makefile.in.
30863 Prefix with ada subdir.
30864 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
30865 (ADA_TREE_H): Likewise.
30866 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
30867 (ada/memtrack.o): Likewise.
30868 (ada/adadecode.o): Likewise.
30869 Update dependencies.
30870 (ada/adaint.o): New.
30871 (ada/argv.o): Moved from Makefile.in.
30872 Prefix with ada subdir.
30873 Update dependencies.
30874 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
30875 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
30876 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
30877 Prefix with ada subdir.
30878 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
30879 (GNAT DEPENDENCIES): Regenerate.
30880 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
30881 toplevel Makefile.in.
30882 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
30883 (TARGET_ADA_SRCS): Removed.
30884 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
30885 (GNATBIND_OBJS): Likewise.
30886 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
30887 (BACKEND): Removed.
30888 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
30889 (TREE_H): Likewise.
30890 (ada_extra_files): Likewise.
30891 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
30892 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
30893 (update-sources): Likewise.
30894 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
30895 (ADA_TREE_H): Likewise.
30896 (adadecoce.o): Likewise.
30897 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
30898 (GNAT DEPENDENCIES): Likewise.
30900 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30902 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
30903 * Makefile.in: Likewise.
30905 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30907 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
30908 Restore $(CONFIG_H) and prefix.o dependencies.
30909 (ada.stage[1-4]): Depend on stage?-start.
30911 * Makefile.in (b_gnatb.c): Depend on interfac.o.
30913 2002-05-02 Jim Wilson <wilson@redhat.com>
30915 * utils.c (finish_record_type): Change record_size to record_type.
30917 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
30919 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
30920 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
30921 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
30923 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
30925 * misc.c (gnat_parse_file): Update.
30927 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
30929 * misc.c (gnat_init): Don't set lang_attribute_common.
30931 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
30933 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
30935 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
30937 * gnat_ug.texi: New file.
30939 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
30940 instead of gfdl.texi
30942 * xgnatug.adb, ug_words: New files.
30944 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
30945 gnat_rm and gnat-style manuals.
30947 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
30949 * gigi.h (incomplete_type_error): Remove.
30950 * utils.c (incomplete_type_error): Remove.
30952 2002-04-16 Mark Mitchell <mark@codesourcery.com>
30954 * trans.c (tree_transform): Add has_scope argument to
30955 expand_start_stmt_expr.
30957 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
30959 * gigi.h (truthvalue_conversion): Rename.
30960 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
30961 * trans.c (tree_transform): Update.
30962 * utils2.c (truthvalue_conversion): Rename, update.
30963 (build_binary_op, build_unary_op): Update.
30965 2002-04-04 Laurent Guerby <guerby@acm.org>
30967 * make.adb: Implement -margs, remove restriction about file name placement.
30968 * makeusg.adb: Documentation update.
30969 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
30970 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
30972 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
30974 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
30975 (builtin_function): Similarly.
30977 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
30979 * decl.c (gnat_to_gnu_entity): Update.
30980 * gigi.h (mark_addressable): Rename.
30981 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
30982 * trans.c (tree_transform): Update.
30983 * utils.c (create_var_decl): Update.
30984 * util2.c (build_binary_op, build_unary_op,
30985 fill_vms_descriptor): Update.
30986 (mark_addressable): Rename, update.
30988 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
30990 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
30992 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
30993 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
30994 * trans.c (tree_transform, convert_with_check): Update.
30995 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
30998 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
31000 * gigi.h (finish_incomplete_decl): Rename.
31001 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
31002 * utils.c (gnat_init_decl_processing): Don't set hook.
31003 (finish_incomplete_decl): Rename.
31005 2002-03-29 Andreas Schwab <schwab@suse.de>
31007 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
31010 2001-03-28 Robert Dewar <dewar@gnat.com>
31013 (Remove_Checks): New procedure
31016 (Remove_Checks): New procedure
31019 Use new Duplicate_Subexpr functions
31020 (Duplicate_Subexpr_No_Checks): New procedure
31021 (Duplicate_Subexpr_No_Checks_Orig): New procedure
31022 (Duplicate_Subexpr): Restore original form (checks duplicated)
31023 (Duplicate_Subexpr): Call Remove_Checks
31026 (Duplicate_Subexpr_No_Checks): New procedure
31027 (Duplicate_Subexpr_No_Checks_Orig): New procedure
31028 Add 2002 to copyright notice
31030 * sem_util.adb: Use new Duplicate_Subexpr functions
31033 (Eval_Indexed_Component): This is the place to call
31034 Constant_Array_Ref and to replace the value. We simply merge
31035 the code of this function in here, since it is now no longer
31036 used elsewhere. This fixes the problem of the back end not
31037 realizing we were clever enough to see that this was
31039 (Expr_Val): Remove call to Constant_Array_Ref
31040 (Expr_Rep_Val): Remove call to Constant_Array_Ref
31042 (Constant_Array_Ref): Deal with string literals (patch
31043 suggested by Zack Weinberg on the gcc list)
31045 2001-03-28 Ed Schonberg <schonber@gnat.com>
31047 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
31048 Duplicate_Subexpr_Move_Checks.
31050 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
31051 Duplicate_Subexpr_Move_Checks.
31053 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
31054 value of array exists before retrieving it (it may a private
31055 protected component in a function).
31057 2002-03-28 Geert Bosch <bosch@gnat.com>
31059 * prj-pp.adb : New file.
31061 * prj-pp.ads : New file.
31063 2002-03-28 Andreas Jaeger <aj@suse.de>
31065 * Makefile.in (stamp-sdefault): Fix path for Makefile.
31067 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
31069 * misc.c (gnat_expand_expr): Move prototype.
31071 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31073 * misc.c (insert_default_attributes): Remove.
31075 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31077 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
31078 (gnat_init): Don't set hook.
31079 (gnat_expand_expr): Fix prototype.
31081 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31083 * misc.c (ggc_p): Remove.
31085 2002-03-27 Geert Bosch <bosch@gnat.com>
31087 * prj-makr.ads, prj-makr.adb : New files.
31089 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
31091 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
31092 (lang_mark_tree): Make static, rename.
31094 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
31096 * misc.c (maybe_build_cleanup): Remove.
31098 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
31100 * gigi.h (yyparse): Remove.
31102 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
31104 * gnat_rm.texi: Sync with ACT version.
31105 (From Ben Brosgol <brosgol@gnat.com>)
31107 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
31109 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
31110 (gnat_init): Remove old hook.
31112 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
31114 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
31115 (yyparse): Rename gnat_parse_file.
31117 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
31119 Delete all lines containing "$Revision:".
31120 * xeinfo.adb: Don't look for revision numbers.
31121 * xnmake.adb: Likewise.
31122 * xsinfo.adb: Likewise.
31123 * xsnames.adb: Likewise.
31124 * xtreeprs.adb: Likewise.
31126 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31128 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
31129 gnat_tree_code_name): Delete.
31130 (tree_code_type, tree_code_length, tree_code_name): Define.
31131 (gnat_init): Don't try to copy into the various tree_code
31134 2002-03-11 Richard Henderson <rth@redhat.com>
31136 * Makefile.in (.NOTPARALLEL): Add fake tag.
31138 2002-03-07 Geert Bosch <bosch@gnat.com>
31140 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
31141 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
31142 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
31143 switch-m.adb, switch-m.ads : New files.
31145 2002-03-07 Geert Bosch <bosch@gnat.com>
31147 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
31148 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
31149 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
31150 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
31151 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
31152 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
31153 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
31154 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
31155 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
31156 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
31157 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
31158 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
31159 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
31160 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
31161 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
31162 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
31163 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
31164 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
31165 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
31166 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
31167 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
31168 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
31169 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
31170 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
31171 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
31172 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
31173 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
31174 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
31175 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
31176 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
31177 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
31178 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
31179 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
31180 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
31181 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
31182 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
31183 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
31184 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
31185 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
31186 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
31187 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
31188 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
31189 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
31190 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
31191 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
31192 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
31193 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
31194 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
31195 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
31196 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
31197 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
31198 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
31199 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
31200 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
31201 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
31202 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
31203 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
31204 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
31205 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
31206 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
31207 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
31208 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
31209 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
31210 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
31211 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
31212 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
31213 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
31214 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
31215 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
31216 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
31217 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
31218 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
31219 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
31220 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
31221 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
31222 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
31223 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
31224 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
31225 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
31226 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
31227 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
31228 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
31229 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
31230 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
31231 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
31232 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
31233 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
31234 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
31235 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
31236 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
31237 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
31238 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
31239 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
31240 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
31241 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
31242 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
31243 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
31245 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
31246 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
31247 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
31248 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
31250 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
31251 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
31253 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
31254 to mdll-fil.ad[bs] and mdll-util.ad[bs]
31256 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
31257 from mdllfile.ad[bs] and mdlltool.ad[bs]
31259 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31261 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
31262 lieu of explicit sizeof/sizeof.
31264 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
31266 * misc.c (copy_lang_decl): Remove.
31268 2002-02-27 Zack Weinberg <zack@codesourcery.com>
31270 * misc.c: Delete traditional-mode-related code copied from the
31271 C front end but not used, or used only to permit the compiler
31274 2002-02-07 Richard Henderson <rth@redhat.com>
31276 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
31277 * adaint.h (__gnat_to_gm_time): Update prototype.
31279 2002-01-30 Richard Henderson <rth@redhat.com>
31281 * trans.c (tree_transform) [N_Loop_Statement]: Use
31282 expand_exit_loop_top_cond.
31284 2001-12-23 Richard Henderson <rth@redhat.com>
31286 * utils.c (end_subprog_body): Push GC context around
31287 rest_of_compilation for nested functions.
31289 2001-12-23 Richard Henderson <rth@redhat.com>
31291 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
31293 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
31295 * gnat-style.texi (Declarations and Types): Remove ancient style
31296 rule which was mandated by code generation issues.
31298 * gnat-style.texi (header): Add @dircategory, @direntry.
31299 (title page): Remove date.
31300 (general) Add @./@: where approriate, and two spaces after the
31301 full stop at the end of a sentence. Use @samp markup when
31302 referring concrete lexical entities (keywords, attribute names
31303 etc.), and @syntax for ARM grammar elements. Use @r for English
31304 text in comments. Use @emph for emphasis. Change "if-statements"
31305 etc. to "if statements" (without @samp). Break long lines. Make
31306 casing of section names consistent.
31307 (Identifiers): Use @samp markup for variable names.
31308 (Comments): Use @samp markup for comment characters. Line-end
31309 comments may follow any Ada code, not just statements. Fix
31310 misspelling of "Integer" as "integer".
31311 (Loop statements): Do not use variable name "I", use "J".
31312 (Subprogram Declarations): Document alignment.
31313 (Subprogram Bodies, Block statements): Document empty line before
31316 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
31318 * make.adb (Add_Switch): Make Generic_Position a procedure. The
31319 function approach did not work well because of a side effect (the
31320 function call could reallocate the table which was being indexed
31321 using its result). Fixes ada/4851.
31323 2001-12-19 Robert Dewar <dewar@gnat.com>
31325 * bindgen.adb: Minor reformatting
31327 * cstand.adb: Minor reformatting
31329 * fmap.adb: Minor reformatting
31330 Change name from Add for Add_To_File_Map (Add is much too generic)
31331 Change Path_Name_Of to Mapped_Path_Name
31332 Change File_Name_Of to Mapped_File_Name
31333 Fix copyright dates in header
31336 Change name from Add for Add_To_File_Map (Add is much too generic)
31337 Change Path_Name_Of to Mapped_Path_Name
31338 Change File_Name_Of to Mapped_File_Name
31339 Fix copyright dates in header
31341 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
31342 Add use clause for Fmap.
31344 * make.adb: Minor reformatting
31346 * osint.adb: Minor reformatting. Change of names in Fmap.
31347 Add use clause for Fmap.
31349 * prj-env.adb: Minor reformatting
31351 * prj-env.ads: Minor reformatting
31353 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
31354 error found (there were odd exceptions to this general rule in
31355 -gnatec/-gnatem processing)
31357 2001-12-19 Olivier Hainque <hainque@gnat.com>
31359 * raise.c (__gnat_eh_personality): Exception handling personality
31360 routine for Ada. Still in rough state, inspired from the C++ version
31361 and still containing a bunch of debugging artifacts.
31362 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
31363 inspired from the C++ library.
31365 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
31366 exception handling integration.
31368 2001-12-19 Arnaud Charlet <charlet@gnat.com>
31370 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
31371 (HIE_SOURCES): Add s-secsta.ad{s,b}.
31372 (HIE_OBJS): Add s-fat*.o
31373 (RAVEN_SOURCES): Remove files that are no longer required. Add
31374 interrupt handling files.
31375 (RAVEN_MOD): Removed, no longer needed.
31377 2001-12-19 Robert Dewar <dewar@gnat.com>
31379 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
31380 Add 2001 to copyright date
31382 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
31383 need to force universal inlining for these cases.
31385 2001-12-19 Arnaud Charlet <charlet@gnat.com>
31387 * s-taprob.adb: Minor clean ups so that this unit can be used in
31390 * exp_ch7.adb: Allow use of secondary stack in HI mode.
31391 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
31393 2001-12-19 Vincent Celier <celier@gnat.com>
31395 * prj-tree.ads (Project_Node_Record): Add comments for components
31396 Pkg_Id and Case_Insensitive.
31398 2001-12-19 Pascal Obry <obry@gnat.com>
31400 * g-socket.adb: Minor reformatting. Found while reading code.
31402 2001-12-19 Robert Dewar <dewar@gnat.com>
31404 * prj-tree.ads: Minor reformatting
31406 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
31408 * config-lang.in (diff_excludes): Remove.
31410 2001-12-17 Ed Schonberg <schonber@gnat.com>
31412 * sem_res.adb (Resolve_Selected_Component): do not generate a
31413 discriminant check if the selected component is a component of
31414 the argument of an initialization procedure.
31416 * trans.c (tree_transform, case of arithmetic operators): If result
31417 type is private, the gnu_type is the base type of the full view,
31418 given that the full view itself may be a subtype.
31420 2001-12-17 Robert Dewar <dewar@gnat.com>
31422 * sem_res.adb: Minor reformatting
31424 * trans.c (tree_transform, case N_Real_Literal): Add missing third
31425 parameter in call to Machine (unknown horrible effects from this
31428 * urealp.h: Add definition of Round_Even for call to Machine
31429 Add third parameter for Machine
31431 2001-12-17 Ed Schonberg <schonber@gnat.com>
31433 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
31434 predefined units in No_Run_Time mode.
31436 2001-12-17 Richard Kenner <kenner@gnat.com>
31438 * misc.c (insn-codes.h): Now include.
31440 2001-12-17 Olivier Hainque <hainque@gnat.com>
31442 * a-except.adb: Preparation work for future integration of the GCC 3
31443 exception handling mechanism
31444 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
31445 to factorize previous code sequences and make them externally callable,
31446 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
31447 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
31448 Use the new notification routines.
31450 2001-12-17 Emmanuel Briot <briot@gnat.com>
31452 * prj-tree.ads (First_Choice_Of): Document the when others case
31454 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31456 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
31457 HI-E mode, in order to support Ravenscar profile properly.
31459 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
31460 mode on 32 bits targets.
31462 2001-12-17 Vincent Celier <celier@gnat.com>
31464 * fmap.adb: Initial version.
31466 * fmap.ads: Initial version.
31468 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
31469 If search is successfully done, add to mapping.
31471 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
31474 (Gnatmake): Add new local variable Mapping_File_Name.
31475 Create mapping file when using project file(s).
31476 Delete mapping file before exiting.
31478 * opt.ads (Mapping_File_Name): New variable
31480 * osint.adb (Find_File): Use path name found in mapping, if any.
31482 * prj-env.adb (Create_Mapping_File): New procedure
31484 * prj-env.ads (Create_Mapping_File): New procedure.
31486 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
31489 * usage.adb: Add entry for new switch -gnatem.
31491 * Makefile.in: Add dependencies for fmap.o.
31493 2001-12-17 Ed Schonberg <schonber@gnat.com>
31495 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
31496 is a package instantiation rewritten as a package body.
31497 (Install_Withed_Unit): Undo previous change, now redundant.
31499 2001-12-17 Gary Dismukes <dismukes@gnat.com>
31502 (Compute_Length): Move conversion to Unsigned to callers.
31503 (Get_Max_Size): Convert Len expression to Unsigned after calls to
31504 Compute_Length and Determine_Range.
31505 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
31506 Compute_Length and Determine_Range.
31507 Above changes fix problem with length computation for supernull arrays
31508 where Max (Len, 0) wasn't getting applied due to the Unsigned
31509 conversion used by Compute_Length.
31511 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31514 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
31515 System.Secondary_Stack.
31516 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
31518 Remove unused entity RE_Exception_Data.
31520 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
31522 * rident.ads (No_Secondary_Stack): New restriction.
31524 2001-12-17 Joel Brobecker <brobecke@gnat.com>
31526 * gnat_rm.texi: Fix minor typos. Found while reading the section
31527 regarding "Bit_Order Clauses" that was sent to a customer.
31528 Very interesting documentation!
31530 2001-12-17 Robert Dewar <dewar@gnat.com>
31532 * sem_case.adb (Choice_Image): Avoid creating improper character
31533 literal names by using the routine Set_Character_Literal_Name. This
31534 fixes bombs in certain error message cases.
31536 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31538 * a-reatim.adb: Minor reformatting.
31540 2001-12-17 Ed Schonberg <schonber@gnat.com>
31542 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
31543 case where the formal is an extension of another formal in the current
31544 unit or in a parent generic unit.
31546 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31548 * s-tposen.adb: Update comments. Minor reformatting.
31549 Minor code clean up.
31551 * s-tarest.adb: Update comments. Minor code reorganization.
31553 2001-12-17 Gary Dismukes <dismukes@gnat.com>
31555 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
31558 2001-12-17 Robert Dewar <dewar@gnat.com>
31560 * exp_attr.adb: Minor reformatting
31562 2001-12-17 Ed Schonberg <schonber@gnat.com>
31564 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
31565 derivations nested within a child unit: verify that the parent
31566 type is declared in an outer scope.
31568 2001-12-17 Robert Dewar <dewar@gnat.com>
31570 * sem_ch12.adb: Minor reformatting
31572 2001-12-17 Ed Schonberg <schonber@gnat.com>
31574 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
31575 warning if current unit is a predefined one, from which bodies may
31578 2001-12-17 Robert Dewar <dewar@gnat.com>
31580 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
31581 Fix header format. Add 2001 to copyright date.
31583 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
31584 which caused CE during compilation if checks were enabled.
31586 2001-12-17 Vincent Celier <celier@gnat.com>
31589 (Switches_Of): New function
31590 (Test_If_Relative_Path): New procedure
31591 (Add_Switches): Use new function Switches_Of
31592 (Collect_Arguments_And_Compile): Use new function Switches_Of.
31593 When using a project file, test if there are any relative
31594 search path. Fail if there are any.
31595 (Gnatmake): Only add switches for the primary directory when not using
31596 a project file. When using a project file, change directory to the
31597 object directory of the main project file. When using a project file,
31598 test if there are any relative search path. Fail if there are any.
31599 When using a project file, fail if specified executable is relative
31600 path with directory information, and prepend executable, if not
31601 specified as an absolute path, with the exec directory. Make sure
31602 that only one -o switch is transmitted to the linker.
31604 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
31607 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
31608 when using a non standard naming scheme.
31609 (Check_Ada_Naming_Scheme): Make sure that error messages
31610 do not raise exceptions.
31611 (Is_Illegal_Append): Return True if there is no dot in the suffix.
31612 (Language_Independent_Check): Check the exec directory.
31614 * prj.adb (Project_Empty): Add new component Exec_Directory
31617 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
31618 (Project_Data): Add component Exec_Directory
31620 * snames.adb: Updated to match snames.ads revision 1.215
31622 * snames.ads: Added Exec_Dir
31624 2001-12-17 Robert Dewar <dewar@gnat.com>
31626 * make.adb: Minor reformatting
31628 * prj-nmsc.adb: Minor reformatting
31630 * snames.adb: Updated to match snames.ads
31632 * snames.ads: Alphebetize entries for project file
31634 2001-12-17 Ed Schonberg <schonber@gnat.com>
31636 * trans.c (process_freeze_entity): Do nothing if the entity is a
31637 subprogram that was already elaborated.
31639 2001-12-17 Richard Kenner <kenner@gnat.com>
31641 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
31642 and Esize if object is referenced via pointer.
31644 2001-12-17 Ed Schonberg <schonber@gnat.com>
31646 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
31647 is discrete before analyzing choices.
31649 2001-12-17 Joel Brobecker <brobecke@gnat.com>
31651 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
31652 containing the name of the Ada Main Program. This string is mainly
31653 intended for the debugger.
31654 (Gen_Output_File_C): Do the equivalent change when generating a C file.
31656 2001-12-17 Robert Dewar <dewar@gnat.com>
31658 * ali.adb: Set new Dummy_Entry field in dependency entry
31660 * ali.ads: Add Dummy_Entry field to source dependency table
31662 * bcheck.adb (Check_Consistency): Ignore dummy D lines
31664 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
31666 * lib-writ.ads: Document dummy D lines for missing files.
31668 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
31670 2001-12-17 Robert Dewar <dewar@gnat.com>
31672 * ali.adb: Type reference does not reset current file.
31674 * ali.adb: Recognize and scan renaming reference
31676 * ali.ads: Add spec for storing renaming references.
31678 * lib-xref.ads: Add documentation for handling of renaming references
31680 * lib-xref.adb: Implement output of renaming reference.
31683 (Determine_Range): Document local variables
31684 (Determine_Range): Make sure Hbound is initialized. It looks as though
31685 there could be a real problem here with an uninitialized reference
31686 to Hbound, but no actual example of failure has been found.
31688 2001-12-17 Laurent Pautet <pautet@gnat.com>
31691 Fix comment of Shutdown_Socket and Close_Socket. These functions
31692 should not fail silently because if they are called twice, this
31693 probably means that there is a race condition in the user program.
31694 Anyway, this behaviour is consistent with the rest of this unit.
31695 When an error occurs, an exception is raised with the error message
31696 as exception message.
31698 2001-12-17 Robert Dewar <dewar@gnat.com>
31700 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
31701 that it happens before modification of Sloc values for -gnatD.
31703 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
31704 so that it happens before modification of Sloc values for -gnatD.
31706 * switch.adb: Minor reformatting
31708 2001-12-15 Richard Henderson <rth@redhat.com>
31710 * sem_ch7.adb: Wrap comment.
31712 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
31714 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
31715 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
31716 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
31717 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
31718 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
31719 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
31720 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
31721 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
31722 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
31723 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
31724 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
31725 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
31726 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
31727 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
31728 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
31729 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
31730 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
31731 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
31732 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
31733 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
31734 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
31735 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
31736 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
31737 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
31740 2001-12-14 Vincent Celier <celier@gnat.com>
31742 * osint.adb(Create_Debug_File): When an object file is specified,
31743 put the .dg file in the same directory as the object file.
31745 2001-12-14 Robert Dewar <dewar@gnat.com>
31747 * osint.adb: Minor reformatting
31749 * lib-xref.adb (Output_Instantiation): New procedure to generate
31750 instantiation references.
31752 * lib-xref.ads: Add documentation of handling of generic references.
31754 * ali.adb (Read_Instantiation_Ref): New procedure to read
31755 instantiation references
31757 * ali.ads: Add spec for storing instantiation references
31759 * bindusg.adb: Minor reformatting
31761 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
31763 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
31765 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
31767 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
31771 Add 2001 to copyright date
31772 Add entry for Latin-5 (Cyrillic ISO-8859-5)
31774 2001-12-14 Matt Gingell <gingell@gnat.com>
31776 * adaint.c: mktemp is a macro on Lynx and can not be used as an
31779 2001-12-14 Richard Kenner <kenner@gnat.com>
31781 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
31782 if operand is CONSTRUCTOR.
31784 2001-12-14 Ed Schonberg <schonber@gnat.com>
31786 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
31787 before emiting check on right-hand side, so that exception information
31790 2001-12-14 Richard Kenner <kenner@gnat.com>
31792 * utils.c (create_var_decl): Throw away initializing expression
31793 if just annotating types and non-constant.
31795 2001-12-14 Vincent Celier <celier@gnat.com>
31797 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
31800 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
31802 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
31804 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
31806 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
31808 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
31810 * ChangeLog: Remove piece of diff output.
31812 2001-12-14 Geert Bosch <bosch@gnat.com>
31814 * config-lang.in: Update copyright notice
31816 * layout.adb: Remove commented out code.
31818 * mdllfile.ads: Update copyright notice. Fix header format.
31820 * sem_case.ads: Likewise.
31822 * sem_ch3.adb: Minor reformatting.
31824 2001-12-12 Geert Bosch <bosch@gnat.com>
31826 * freeze.ads: Update copyright date.
31828 * g-comlin.ads: Minor reformatting.
31830 * gnat-style.texi: Fix typo.
31832 2001-12-12 Geert Bosch <bosch@gnat.com>
31834 * einfo.h: Regenerate.
31836 2001-12-12 Ed Schonberg <schonber@gnat.com>
31838 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
31839 on known node types, rather than untyped fields. Further cleanups.
31841 2001-12-12 Robert Dewar <dewar@gnat.com>
31844 (Save_Entity_Descendant): Minor comment update.
31845 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
31846 of an N_Attribute_Reference node. As per note below, this does not
31847 eliminate need for Associated_Node in attribute ref nodes.
31848 (Associated_Node): Documentation explicitly mentions attribute
31849 reference nodes, since this field is used in such nodes.
31851 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
31853 2001-12-12 Robert Dewar <dewar@gnat.com>
31855 * s-stalib.adb: Add more comments on with statements being needed
31857 * par-ch12.adb: Minor reformatting
31859 * prj-dect.ads: Fix copyright header
31861 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
31862 inputs fit in 32 bits, but the result still overflows.
31864 * s-fatgen.ads: Minor comment improvement
31866 2001-12-12 Ed Schonberg <schonber@gnat.com>
31868 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
31869 formal derived type, look for an inherited component from the full
31870 view of the parent, if any.
31872 2001-12-12 Robert Dewar <dewar@gnat.com>
31874 * checks.ads (Apply_Alignment_Check): New procedure.
31876 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
31877 ensure that the alignment of objects with address clauses is
31878 appropriate, and raise PE if not.
31880 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
31881 Exp_Pakd.Known_Aligned_Enough
31883 * mdllfile.ads: Minor reformatting
31885 * mlib-fil.ads: Minor reformatting
31887 2001-12-12 Ed Schonberg <schonber@gnat.com>
31889 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
31890 fix to any component reference if enclosing record has non-standard
31893 2001-12-12 Vincent Celier <celier@gnat.com>
31895 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
31898 2001-12-12 Ed Schonberg <schonber@gnat.com>
31900 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
31903 2001-12-12 Robert Dewar <dewar@gnat.com>
31905 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
31907 2001-12-12 Emmanuel Briot <briot@gnat.com>
31909 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
31910 and it adds dependencies to system.io.
31912 2001-12-12 Pascal Obry <obry@gnat.com>
31914 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
31917 2001-12-11 Ed Schonberg <schonber@gnat.com>
31919 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
31920 that is the parent of other generics, the instance body replaces the
31921 instance node. Retrieve the instance of the spec, which is the one
31922 that is visible in clients and within the body.
31924 2001-12-11 Vincent Celier <celier@gnat.com>
31926 * gnatmain.adb: Initial version.
31928 * gnatmain.ads: Initial version.
31930 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
31932 * snames.adb: Updated to match snames.ads.
31934 * snames.ads: Added Gnatstub.
31936 2001-12-11 Vincent Celier <celier@gnat.com>
31938 * prj-attr.adb (Initialization_Data): Change name from
31939 Initialisation_Data.
31941 2001-12-11 Emmanuel Briot <briot@gnat.com>
31943 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
31944 + and * applied to backslashed expressions like \r.
31946 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
31948 * g-os_lib.ads: String_List type added, Argument_List type is now
31949 subtype of String_List.
31951 2001-12-11 Robert Dewar <dewar@gnat.com>
31953 * g-os_lib.ads: Change copyright to FSF
31954 Add comments for String_List type
31956 2001-12-11 Vincent Celier <celier@gnat.com>
31958 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
31959 string to the buffer).
31961 2001-12-11 Ed Schonberg <schonber@gnat.com>
31963 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
31966 * sem_attr.adb: Simplify previous fix for Address.
31967 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
31968 to avoid anomalies where the bound of the type appears to raise
31971 2001-12-11 Robert Dewar <dewar@gnat.com>
31973 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
31976 2001-12-11 Ed Schonberg <schonber@gnat.com>
31978 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
31979 renamed unit before checking for recursive instantiations.
31981 2001-12-11 Emmanuel Briot <briot@gnat.com>
31983 * prj.ads: Add comments for some of the fields.
31985 2001-12-11 Robert Dewar <dewar@gnat.com>
31987 * lib-xref.adb (Output_Refs): Don't output type references outside
31988 the main unit if they are not otherwise referenced.
31990 2001-12-11 Ed Schonberg <schonber@gnat.com>
31992 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
31993 code and diagnose additional illegal uses
31995 * sem_util.adb (Is_Object_Reference): An indexed component is an
31996 object only if the prefix is.
31998 2001-12-11 Vincent Celier <celier@gnat.com>
32000 * g-diopit.adb: Initial version.
32002 * g-diopit.ads: Initial version.
32005 (Expand_Path): Avoid use of Unbounded_String
32006 (Find, Wildcard_Iterator): Moved to child package Iteration
32008 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
32010 2001-12-11 Robert Dewar <dewar@gnat.com>
32012 * sem_attr.adb: Minor reformatting
32014 2001-12-11 Ed Schonberg <schonber@gnat.com>
32016 * sem_ch3.adb: Clarify some ???.
32018 2001-12-11 Robert Dewar <dewar@gnat.com>
32020 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
32021 Exp_Pakd.Known_Aligned_Enough
32023 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
32024 version is moved to Exp_Ch13.
32026 2001-12-11 Robert Dewar <dewar@gnat.com>
32028 * einfo.ads: Minor reformatting
32030 * exp_ch5.adb: Add comment for previous.change
32032 * ali.adb: New interface for extended typeref stuff.
32034 * ali.ads: New interface for typeref stuff.
32036 * checks.adb (Apply_Alignment_Check): New procedure.
32038 * debug.adb: Add -gnatdM for modified ALI output
32040 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
32042 * lib-xref.adb: Extend generation of <..> notation to cover
32043 subtype/object types. Note that this is a complete rewrite,
32044 getting rid of the very nasty quadratic algorithm previously
32045 used for derived type output.
32047 * lib-xref.ads: Extend description of <..> notation to cover
32048 subtype/object types. Uses {..} for these other cases.
32049 Also use (..) for pointer types.
32051 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
32053 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
32054 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
32056 2001-12-11 Vincent Celier <celier@gnat.com>
32059 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
32060 Changed /BIND_ONLY to /ACTIONS=BIND
32061 Changed /LINK_ONLY to /ACTIONS=LINK
32063 2001-12-11 Ed Schonberg <schonber@gnat.com>
32065 * sem_ch8.adb (Find_Selected_Component): improved search for a
32066 candidate package in case of error.
32068 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
32069 chain back on scope stack before reinstalling use clauses.
32071 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
32072 is enabled, do not kill the code for the condition, to preserve
32075 2001-12-11 Robert Dewar <dewar@gnat.com>
32077 * checks.adb (Insert_Valid_Check): Apply validity check to expression
32078 of conversion, not to result of conversion.
32080 2001-12-11 Ed Schonberg <schonber@gnat.com>
32082 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
32083 before freezing parent. If the declarations are mutually recursive,
32084 an access to the current record type may be frozen before the
32085 derivation is complete.
32087 2001-12-05 Vincent Celier <celier@gnat.com>
32089 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
32090 -c /COMPILE_ONLY, -l /LINK_ONLY
32093 (Bind_Only): New Flag
32094 (Link_Only): New flag
32096 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
32099 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
32102 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
32103 (Gnatmake): Set the step flags. Only perform a step if the
32104 corresponding step flag is True.
32105 (Scan_Make_Arg): Reset the bind and link step flags when -u
32106 or -gnatc has been specified.
32108 2001-12-05 Ed Schonberg <schonber@gnat.com>
32110 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
32111 get bounds from right operand.
32113 * sem_eval.adb: Minor reformatting
32115 * exp_util.adb (Make_Literal_Range): use bound of literal rather
32116 than Index'First, its lower bound may be different from 1.
32118 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
32121 2001-12-05 Vincent Celier <celier@gnat.com>
32123 * prj-nmsc.adb Minor reformatting
32125 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
32126 set and libraries are not supported.
32128 2001-12-05 Ed Schonberg <schonber@gnat.com>
32130 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
32131 private view explicitly, so the back-end can treat as a global
32134 2001-12-05 Ed Schonberg <schonber@gnat.com>
32136 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
32137 unit, always replace instance node with new body, for ASIS use.
32139 2001-12-05 Vincent Celier <celier@gnat.com>
32141 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
32142 libraries are not supported and both attributes Library_Name and
32143 Library_Dir are specified.
32145 * prj-proc.adb (Expression): Set location of Result to location of
32148 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
32149 (prj-nmsc is now importing MLib.Tgt)
32151 * prj-proc.adb: Put the change indicated above that was forgotten.
32153 2001-12-05 Robert Dewar <dewar@gnat.com>
32155 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
32157 2001-12-05 Ed Schonberg <schonber@gnat.com>
32159 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
32160 constraint, introduce explicit subtype declaration and derive from it.
32162 * sem_ch3.adb: Minor reformatting
32164 2001-12-05 Robert Dewar <dewar@gnat.com>
32166 * checks.adb (Determine_Range): Increase cache size for checks.
32169 * exp_ch6.adb: Minor reformatting
32170 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
32171 a parameter whose root type is System.Address, since treating such
32172 subprograms as pure in the code generator is almost surely a mistake
32173 that will lead to unexpected results.
32175 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
32176 change handling of conversions.
32178 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
32180 2001-12-05 Ed Schonberg <schonber@gnat.com>
32182 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
32183 aggregate with static wrong size, attach generated Raise node to
32186 2001-12-05 Robert Dewar <dewar@gnat.com>
32188 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
32189 Fixes compilation abandoned bomb in B24009B.
32191 2001-12-05 Ed Schonberg <schonber@gnat.com>
32194 Document use of Associated_Node on Selected_Components.
32195 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
32196 to clarify use of untyped descendant fields.
32198 2001-12-05 Robert Dewar <dewar@gnat.com>
32200 * prj-dect.ads: Add ??? comment
32201 Add 2001 to copyright notice (was not done in after all)
32203 * prj-part.adb: Minor reformatting. Reword one awkward error message.
32205 * prj.ads: Minor reformatting throughout, and add some ??? comments
32207 * snames.ads: Minor reformatting
32209 2001-12-05 Geert Bosch <bosch@gnat.com>
32211 * snames.adb: Autoupdate
32213 2001-12-05 Vincent Celier <celier@gnat.com>
32215 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
32217 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
32219 * prj-env.adb: Minor comment changes (modifying -> extends).
32221 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
32223 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
32226 * prj.adb (Initialize): Change Modifying to Extends.
32228 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
32230 * prj.ads: Minor comment change (Modifying -> extending).
32232 * snames.ads: Change modifying to extends.
32234 2001-12-05 Robert Dewar <dewar@gnat.com>
32236 * sem_warn.adb: Remove stuff for conditionals, we are not going to
32239 * sem_warn.ads: Remove stuff for conditionals, we are not going to
32240 do this after all. Add 2001 to copyright notice
32242 2001-12-04 Geert Bosch <bosch@gnat.com>
32244 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
32246 2001-12-04 Robert Dewar <dewar@gnat.com>
32248 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
32249 location if we already have errors. Stops some cases of cascaded
32252 * errout.adb: Improve comment.
32254 2001-12-04 Robert Dewar <dewar@gnat.com>
32257 (Analyze_Formal_Type_Definition): Defend against Error.
32258 (Analyze_Formal_Subprogram): Defend against Error.
32260 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
32261 remove following semicolon if present. Removes cascaded error.
32263 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
32266 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
32267 exceptions equals 0.
32268 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
32269 Fixes PIWG E tests (which have to be run with -gnatL).
32271 2001-12-04 Robert Dewar <dewar@gnat.com>
32273 * einfo.ads: Minor reformatting
32275 2001-12-04 Ed Schonberg <schonber@gnat.com>
32277 * einfo.ads: Block_Node points to the identifier of the block, not to
32278 the block node itself, to preserve the link when the block is
32279 rewritten, e.g. within an if-statement with a static condition.
32281 * inline.adb (Cleanup_Scopes): recover block statement from block
32282 entity using new meaning of Block_Node.
32284 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
32285 identifier of block node, rather than to node itself.
32287 2001-12-04 Gary Dismukes <dismukes@gnat.com>
32290 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
32291 (Discrimify): Go back to setting the Etypes of the selected component
32292 because the Vname component does not exist at this point and will
32293 fail name resolution. Also set Analyzed.
32294 Remove with and use of Sem_Res.
32296 2001-12-04 Arnaud Charlet <charlet@gnat.com>
32298 * Makefile.in: (HIE_SOURCES): add s-fat*.
32300 2001-12-04 Robert Dewar <dewar@gnat.com>
32303 (Compile_Time_Known_Attribute): New procedure.
32304 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
32305 proper range check.
32307 2001-12-04 Ed Schonberg <schonber@gnat.com>
32309 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
32310 processing discriminants to diagnose illegal default values.
32312 2001-12-04 Ed Schonberg <schonber@gnat.com>
32314 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
32315 access discriminant within a type extension that constrains its
32316 parent discriminants.
32318 2001-12-04 Ed Schonberg <schonber@gnat.com>
32320 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
32321 is malformed, use instance of Any_Id to allow analysis to proceed.
32323 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
32324 type definition is illegal.
32325 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
32328 2001-12-04 Ed Schonberg <schonber@gnat.com>
32330 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
32333 2001-12-04 Robert Dewar <dewar@gnat.com>
32335 * errout.adb: Minor reformatting
32337 2001-12-04 Robert Dewar <dewar@gnat.com>
32339 * exp_util.adb: Minor reformatting from last change
32341 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
32342 which is a rewriting of an expression, traverse the original
32343 expression to remove warnings that may have been posted on it.
32345 2001-12-04 Ed Schonberg <schonber@gnat.com>
32347 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
32348 record that has other packed components.
32350 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
32352 * adaint.c: Minor cleanups.
32354 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
32356 * adaint.c: Do not use utime.h on vxworks.
32358 2001-12-04 Arnaud Charlet <charlet@gnat.com>
32360 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
32361 more confusion than it solves.
32363 2001-12-04 Geert bosch <bosch@gnat.com>
32365 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
32367 2001-12-04 Geert Bosch <bosch@gnat.com>
32369 * Makefile.in (update-sources): New target.
32370 For use by gcc_release script.
32372 2001-12-04 Ed Schonberg <schonber@gnat.com>
32374 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
32375 a configuration pragma, it is now legal wherever a pragma can appear.
32377 2001-12-04 Zack Weinberg <zack@codesourcery.com>
32379 * Makefile.in: Don't set ALL. Delete @cross_defines@,
32380 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
32381 is now @CROSS@ -DIN_GCC; update comment.
32383 2001-12-04 Robert Dewar <dewar@gnat.com>
32385 * einfo.adb (Has_Pragma_Pure_Function): New flag.
32386 Fix problem that stopped ceinfo from working
32388 * einfo.ads (Has_Pragma_Pure_Function): New flag.
32390 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
32392 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
32395 (File_Time_Stamp): New procedure.
32396 (Preserve_Mode): New boolean.
32397 (Write_Unit): Pass time stamp.
32398 Implement -p switch (preserve time stamps).
32400 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
32402 * gnatchop.adb: Do usage info for -p switch
32404 * adaint.h (__gnat_set_file_time_name): New function
32406 * adaint.c (__gnat_set_file_time_name): Implement
32408 * adaint.h: Fix typo
32410 2001-12-03 Robert Dewar <dewar@gnat.com>
32412 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
32413 have Associated_Node.
32415 2001-12-03 Robert Dewar <dewar@gnat.com>
32417 * prj-proc.adb: Minor reformatting
32419 * make.adb: Minor reformatting
32421 2001-12-03 Geert Bosch <bosch@gnat.com>
32423 * make.adb: Minor reformatting.
32425 2001-12-03 Robert Dewar <dewar@gnat.com>
32427 * sem_ch12.adb: Minor reformatting
32429 2001-12-03 Ed Schonberg <schonber@gnat.com>
32431 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
32432 push Standard on the stack before analyzing the instance body,
32433 in order to have a clean visibility environment.
32435 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
32437 2001-12-03 Ed Schonberg <schonber@gnat.com>
32439 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
32440 instantiation of a body that contains an inlined body.
32442 2001-12-03 Ed Schonberg <schonber@gnat.com>
32445 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
32446 to prevent freezing within formal packages.
32447 (Freeze_Subprogram_Body): If body comes from another instance that
32448 appeared before its own body, place freeze node at end of current
32449 declarative part, to prevent a back-end crash.
32450 (Inline_Instance_Body): Handle properly a package instance within
32451 a subprogram instance that is a child unit.
32453 2001-12-01 Graham Stott <grahams@redhat.com>
32455 * Makefile.in (misc.o): Add missing $(srcdir) prefix
32456 and add optabs.h dependency.
32458 * misc.c: Include optabs.h
32459 (gnat_tree_code_type): Make static and const.
32460 (gnat_tree_code_length): Likewise.
32461 (gnat_tree_code_name): Likewise.
32462 (update_setjmp_buf): Obtain operands mode from insn_data.
32464 2001-11-29 Richard Henderson <rth@redhat.com>
32466 * init.c: Remove obsolete dwarf2 frame.h section.
32468 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
32470 * Make-lang.in (ada.generated-manpages): New dummy target.
32472 2001-11-29 Ed Schonberg <schonber@gnat.com>
32474 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
32475 into Command, an array conversion is illegal here. Uncovered by
32478 2001-11-28 Geert Bosch <bosch@gnat.com>
32480 * init.c: Minor whitespace changes.
32482 2001-11-28 Doug Rupp <rupp@gnat.com>
32484 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
32487 2001-11-28 Zack Weinberg <zack@codesourcery.com>
32489 * misc.c (gnat_expand_constant): Move declaration above
32490 definition of lang_hooks.
32491 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
32492 (gnat_init): lang_expand_constant no longer exists.
32494 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
32495 always have vprintf.
32496 (gnat_init): Always call set_internal_error_function.
32498 2001-11-27 Andreas Jaeger <aj@suse.de>
32500 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
32502 2001-11-27 Laurent Guerby <guerby@acm.org>
32504 * Makefile.in: Regenerate Ada dependencies.
32506 2001-11-26 Richard Henderson <rth@redhat.com>
32508 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
32509 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
32510 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
32512 2001-11-25 Laurent Guerby <guerby@acm.org>
32514 * sysdep.c (rts_get_*): Fix style.
32516 2001-11-19 Laurent Guerby <guerby@acm.org>
32518 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
32519 since it is of no apparent use and cause warnings.
32521 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
32523 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
32525 (gnat_init): Don't return NULL.
32526 (finish_parse): Remove.
32528 2001-11-17 Laurent Guerby <guerby@acm.org>
32530 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
32531 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
32532 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
32533 * lang-spec.h: Add missing struct field to silence warnings.
32534 * sysdep.c (rts_get_*): Provide K&R prototype.
32535 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
32536 * traceback.c (Unlock_Task, Lock_Task): Likewise.
32537 * tracebak.c (__gnat_backtrace): Remove unused variable.
32538 * utils.c (end_subprog_body): Move to K&R style.
32540 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32542 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
32544 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
32546 * misc.c (gnat_init): Change prototype. Include the
32547 functionality of the old init_parse and init_decl_processing.
32548 (gnat_init_decl_processing): New prototype.
32549 (init_parse): Remove.
32550 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
32552 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
32554 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
32555 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
32556 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
32557 set_yydebug): Remove.
32559 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
32561 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
32562 (struct lang_hooks): Constify.
32563 (language_string, lang_identify): Remove.
32564 * utils.c (init_decl_processing): Update.
32566 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
32568 * misc.c: Include langhooks-def.h.
32569 * Makefile.in: Update.
32571 2001-10-30 Robert Dewar <dewar@gnat.com>
32574 (Check_Identifier): Rewrite circuit to be compatible with use of letters
32575 in the upper half of ASCII.
32576 (Check_Identifier): Minor reformatting
32578 2001-10-30 Geert Bosch <bosch@gnat.com>
32580 * (Associated_Node, Set_Associated_Node): Do not check for
32583 2001-10-30 Robert Dewar <dewar@gnat.com>
32585 * a-reatim.ads: Minor reformatting
32587 2001-10-30 Robert Dewar <dewar@gnat.com>
32589 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
32590 undocumented declarations.
32592 2001-10-30 Pascal Obry <obry@gnat.com>
32594 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
32595 to the binder and linker.
32598 * mdll.ads: Fix layout. Update copyright notice.
32600 * mdll.adb: Fix layout. Update copyright notice.
32602 2001-10-30 Robert Dewar <dewar@gnat.com>
32604 * usage.adb: Minor fix to output for -gnaty.
32606 2001-10-30 Ed Schonberg <schonber@gnat.com>
32608 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
32609 to accommodate all its possible values.
32611 * a-reatim.adb (Split): Special-case handling of Time_Span_First
32612 and of small absolute values of T.
32614 2001-10-30 Richard Kenner <kenner@gnat.com>
32616 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
32617 set_mem_attributes since not needed and wrong if RESULT if a REG;
32618 fixes ACATS failures.
32620 2001-10-30 Geert Bosch <bosch@gnat.com>
32622 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
32623 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
32625 2001-10-30 Robert Dewar <dewar@gnat.com>
32627 * bindusg.adb: Undocument -f switch.
32629 * gnatcmd.adb: Remove /FULL_ELABORATION.
32631 * opt.ads (Force_RM_Elaboration_Order): Document that this is
32634 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
32636 * gnatbind.adb: Minor update of warning msg.
32638 2001-10-30 Vincent Celier <celier@gnat.com>
32640 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
32641 for project file switches (-P (/PROJECT_FILE=),
32642 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
32645 2001-10-30 Geert Bosch <bosch@gnat.com>
32647 * decl.c: Minor whitespace fixes.
32649 2001-10-30 Richard Kenner <kenner@gnat.com>
32651 * utils2.c (build_allocator): Test for SIZE overflow in array case too
32653 2001-10-30 Geert Bosch <bosch@gnat.com>
32655 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
32656 Found due to GCC 3.0 warning of using uninitialized value.
32659 (Get_Max_Size): Use variant record for tracking value/expression.
32660 Makes logic clearer and prevents warnings for uninitialized variables.
32661 (Layout_Array_Type): Use variant record for tracking value/expression.
32662 Makes logic clearer and prevents warnings for uninitialized variables.
32664 2001-10-30 Robert Dewar <dewar@gnat.com>
32666 * lib.adb: Minor reformatting
32668 * s-taprop.ads: Minor reformatting
32670 2001-10-29 Laurent Guerby <guerby@acm.org>
32673 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
32675 (_gnat_error_handler): Make MSG const.
32677 2001-10-29 Richard Kenner <kenner@gnat.com>
32679 * sysdep.c: Fix localtime_r problem on LynxOS.
32680 Also remove #elif to avoid warnings.
32682 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
32685 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
32687 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
32689 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
32690 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
32691 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
32692 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
32693 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
32694 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
32695 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
32696 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
32697 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
32698 types.ads, urealp.adb: Fix spelling errors.
32700 2001-10-27 Laurent Guerby <guerby@acm.org>
32702 * trans.c (gigi): Fix non determinism leading to bootstrap
32703 comparison failures for debugging information.
32705 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
32707 * gnat_rm.texi: Use @./@: where appropriate.
32709 2001-10-26 Robert Dewar <dewar@gnat.com>
32711 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
32713 2001-10-26 Richard Kenner <kenner@gnat.com>
32715 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
32717 2001-10-26 Richard Kenner <kenner@gnat.com>
32719 * decl.c (validate_size): Modify message for bad size to avoid
32720 implication that compiler is modifying the size.
32722 2001-10-26 Robert Dewar <dewar@gnat.com>
32724 * prj-util.adb: Minor reformatting. Fix bad header format.
32726 2001-10-26 Robert Dewar <dewar@gnat.com>
32728 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
32730 * sinfo.ads: Clarify use of Associated_Node (documentation only).
32732 * sem_ch12.adb: Change Node4 to Associated_Node. Change
32733 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
32734 much more narrowly in places where needed. These are cleanups.
32736 2001-10-26 Joel Brobecker <brobecke@gnat.com>
32738 * 5zosinte.ads (null_pthread): new constant.
32741 (Initialize_TCB): Initialize thread ID to null, to be able to verify
32742 later that this field has been set.
32743 (Finalize_TCB): ditto.
32744 (Suspend_Task): Verify that the thread ID is not null before using it.
32745 (Resume_Task): ditto.
32748 (Resume_All_Tasks): Lock the tasks list before using it.
32749 (Suspend_All_Tasks): ditto.
32751 2001-10-26 Richard Kenner <kenner@gnat.com>
32753 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
32754 Make constant variant of designated type for Is_Access_Constant.
32755 Call update_pointer_to with main variant.
32757 * trans.c (process_freeze_entity, process_type):
32758 Call update_pointer_to on main variant.
32760 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
32761 If main variant, update all other variants.
32763 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
32766 2001-10-26 Robert Dewar <dewar@gnat.com>
32768 * prj-util.adb: Minor reformatting
32770 2001-10-26 Robert Dewar <dewar@gnat.com>
32772 * prj-util.adb: Minor reformatting
32774 2001-10-26 Robert Dewar <dewar@gnat.com>
32776 * prj-attr.adb: Minor reformatting throughout
32778 2001-10-26 Robert Dewar <dewar@gnat.com>
32780 * prj-attr.ads: Minor reformatting
32781 Add ??? comment (this whole spec has almost no comments)
32783 2001-10-26 Vincent Celier <celier@gnat.com>
32785 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
32786 ("//") that precede the drive letter on Interix.
32788 2001-10-26 Geert Bosch <bosch@gnat.com>
32790 * gnat_rm.texi: Add GNAT Reference Manual.
32792 2001-10-25 Robert Dewar <dewar@gnat.com>
32794 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
32795 is Error. Similar change for other renaming cases.
32797 2001-10-25 Robert Dewar <dewar@gnat.com>
32799 * s-atacco.ads: Add pragma Inline_Always for functions.
32800 Fix header format. Add copyright 2001
32802 2001-10-25 Ed Schonberg <schonber@gnat.com>
32804 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
32805 return Error rather than Empty so that analysis can proceed.
32807 2001-10-25 Ed Schonberg <schonber@gnat.com>
32809 * sem_util.adb (Enter_Name): better handling of cascaded error
32810 messages when a unit appears in its own context.
32812 2001-10-25 Ed Schonberg <schonber@gnat.com>
32814 * sem_util.adb (Defining_Entity): in case of error, attach created
32815 entity to specification, so that semantic analysis can proceed.
32817 2001-10-25 Robert Dewar <dewar@gnat.com>
32820 (Defining_Entity): Deal with Error.
32821 (Process_End_Label): Deal with bad end label for.
32823 2001-10-25 Ed Schonberg <schonber@gnat.com>
32825 * sem_elab.adb (Check_A_Call): refine message when call is in an
32826 instance but callee is not declared in the generic unit.
32828 2001-10-25 Ed Schonberg <schonber@gnat.com>
32830 * sem_elab.adb (Check_A_Call): check for renaming before finding the
32831 enclosing unit, which may already be different from the calling unit.
32833 2001-10-25 Geert Bosch <bosch@gnat.com>
32835 * 4gintnam.ads: fix header format.
32837 2001-10-25 Ed Schonberg <schonber@gnat.com>
32839 * sem_res.adb (Resolve_Call): if the call is actually an indexing
32840 operation on the result of a parameterless call, perform elaboration
32841 check after the node has been properly rewritten.
32843 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
32844 inlined within the generic tree, the defining identifier is not a
32847 2001-10-25 Ed Schonberg <schonber@gnat.com>
32849 * sem_res.adb (Resolve): special-case resolution of Null in an
32850 instance or an inlined body to avoid view conflicts.
32852 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
32853 compatibility by retrieving the access type of the generic copy.
32855 2001-10-25 Robert Dewar <dewar@gnat.com>
32858 (Analyze_Number_Declaration): Handle error expression.
32859 (Signed_Integer_Type_Declaration): Handle error bound.
32860 (Analyze_Subtype_Indication): Handle error range.
32862 * sem_util.adb (Get_Index_Bounds): Check for Error.
32864 2001-10-25 Robert Dewar <dewar@gnat.com>
32866 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
32867 in no run time mode.
32869 2001-10-25 Pascal Obry <obry@gnat.com>
32871 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
32872 mode case for ALLOC case.
32874 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
32875 all platforms. Improvement of last change.
32877 2001-10-25 Robert Dewar <dewar@gnat.com>
32879 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
32881 2001-10-25 Geert Bosch <bosch@gnat.com>
32883 * osint.adb (Is_Relative): Remove duplicate.
32885 2001-10-25 Pascal Obry <obry@gnat.com>
32887 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
32888 pathnames in UNIX and DOS style with drive letter.
32889 (Is_Relative): new routine.
32891 * osint.adb: Minor reformatting
32893 * osint.adb (Is_Relative): implementation using
32894 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
32896 2001-10-25 Pascal Obry <obry@gnat.com>
32898 * g-dirope.adb (Basename): correctly compute offset between the
32899 original Path and the translated one.
32901 * g-dirope.adb: (Base_Name): add some comments.
32903 2001-10-25 Robert Dewar <dewar@gnat.com>
32905 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
32906 in HIE mode, avoids compilation abandoned message
32908 * exp_imgv.adb: Correct typo in previous change
32910 * exp_imgv.adb: Correct typo in previous change (not my day!)
32912 2001-10-25 Robert Dewar <dewar@gnat.com>
32914 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
32916 2001-10-25 Pascal Obry <obry@gnat.com>
32918 * g-awk.ads: Move all pragma inlines next to the routine
32919 declarations. This is more uniform with other GNAT spec.
32921 2001-10-22 Geert Bosch <bosch@gnat.com>
32923 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
32925 2001-10-19 Geert Bosch <bosch@gnat.com>
32927 * Makefile.in (tools, gnattools): Remove gnatmem.
32929 2001-10-17 Richard Henderson <rth@redhat.com>
32931 * Makefile.in (misc.o): Depend on langhooks.h.
32932 * misc.c: Include it.
32933 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
32934 (LANG_HOOKS_DECODE_OPTION): New.
32935 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
32937 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
32939 * trans.c (tree_transform): Adjust to recent change in
32940 expand_asm_operands to implement named asm operands.
32942 2001-10-11 Ed Schonberg <schonber@gnat.com>
32944 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
32945 renaming of discriminant for mutable record type.
32947 2001-10-11 Robert Dewar <dewar@gnat.com>
32949 * validsw.adb: Properly save -gnatVn status.
32951 2001-10-11 Robert Dewar <dewar@gnat.com>
32953 * usage.adb: Add lines for V switch.
32955 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
32956 (/VALIDITY_CHECKING).
32958 2001-10-11 Ed Schonberg <schonber@gnat.com>
32960 * sem_type.adb (Add_One_Interp): an operator for a type declared in
32961 an extension of System is known to be visible.
32963 2001-10-11 Ed Schonberg <schonber@gnat.com>
32965 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
32966 properly. Fixes regression on ACATS C34005G.
32968 2001-10-11 Robert Dewar <dewar@gnat.com>
32970 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
32971 loop in generic instance, since this is likely not very useful.
32973 2001-10-11 Robert Dewar <dewar@gnat.com>
32975 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
32976 the error message for high integrity mode.
32978 * rtsfind.adb (RTE): Give message if we try to find an entity that
32979 is not available in high integrity mode.
32982 (OK_To_Use_In_HIE_Mode): New array.
32983 (RTE): May return Empty in high integrity mode.
32985 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
32986 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
32988 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
32989 unit if not inlined always and in no runtime mode. Fixes problem
32990 caused by new Rtsfind changes.
32992 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
32995 * rtsfind.adb (RTE): Make sure we do not try to load unit after
32996 giving message for entity not available in high integrity mode.
32998 2001-10-11 Pascal Obry <obry@gnat.com>
33000 * impunit.adb: Add GNAT.CRC32.
33002 2001-10-11 Ed Schonberg <schonber@gnat.com>
33004 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
33005 properly the case where one universal operand in a non-static
33006 exponentiation of a real literal.
33008 2001-10-11 Ed Schonberg <schonber@gnat.com>
33010 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
33011 clause, return the gobal finalization list, for lack of anthing else.
33013 2001-10-11 Ed Schonberg <schonber@gnat.com>
33015 * exp_ch7.adb (Make_Transient_Block): if statement is within
33016 exception handler, always use new transient scope to place Clean
33019 2001-10-11 Pascal Obry <obry@gnat.com>
33022 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
33023 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
33024 (GNATLS_RTL_OBJS): add g-crc32.o
33025 (GNATMAKE_RTL_OBJS): add g-crc32.o
33028 (CRC_Match): new function.
33029 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
33030 instead of the previous simple checksum algorithm.
33031 (Time_Stamp_Mismatch): use CRC_Match for comparison.
33032 (Set_Source_Table): idem.
33035 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
33036 instead of simple checksum.
33037 (CRC_Match): new function.
33038 (CRC_Error): new constant.
33040 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
33041 a CRC now and not a simple checksum. A CRC uses lower-case hex
33042 letters, fixes ambiguity in parsing.
33044 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
33045 is what this variable will store.
33047 * bcheck.adb: Change reference to chechsum in comments by CRC.
33048 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
33049 rename All_Checksum_Match to All_CRC_Match. Change due to API
33050 renaming since now GNAT does not use a simple checksum but a
33051 CRC using GNAT.CRC32.
33053 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
33054 now and not anymore a simple checksum.
33056 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
33059 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
33062 (Restore_Scan_State): rename Checksum to CRC.
33063 (Save_Scan_State): idem.
33067 (Checksum): rename to CRC.
33068 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
33070 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
33071 GNAT.CRC32). Update copyright notice.
33073 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
33074 GNAT.CRC32). Update copyright notice.
33077 (Accumulate_Checksum): removed.
33078 (Update): new procedure. Add a wide-character into the CRC.
33081 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
33082 (Load_File): fix initialization of S (change Source_Checksum to
33085 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
33086 Source_CRC in S initialization.
33088 * sinput.adb (Source_Checksum): renamed to Source_CRC.
33090 * sinput.ads (Source_Checksum): renamed to Source_CRC.
33091 Update comments for the CRC.
33093 * types.adb (Hex): Use lowercase for the letter part.
33095 * types.ads (Get_Hex_String): Returns the hexadecimal representation
33096 for a word. This is currently used only for CRC. In previous version,
33097 the checksum was using a representation with all letter being
33098 upper-case. With the new implementation (using CRC) we do not remove
33099 the 32th bit of the CRC, so we can have an upper-case starting letter
33100 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
33101 It is ambigous since the CRC was optional and could be followed by
33102 options like EB, EE. So now this routines uses lower-case letter for
33103 the hexadecimal representation. Strange enough only lower case letters
33104 where checked in Scan_ALI (even if this was not a possible case).
33106 * gnatvsn.ads (Library_Version): changed to 3.15a.
33108 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
33111 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
33114 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
33115 Add 2001 to copyright notice
33116 (Accumulate_Checksum): Modify to use System.CRC32.
33118 * ali-util.ads: Redo changes of previous revision to continue to use
33119 the word Checksum. Add 2001 to copyright notice.
33121 * ali.adb: Undo some of previous changes, not needed.
33122 Keep the change for lower case letters in the checksum.
33124 * ali.ads: Undo previous change not needed.
33126 * bcheck.adb: Undo most of previous change, not needed.
33127 But do use Checksums_Match for checksum comparison.
33129 * gnatls.adb: Undo most of previous change, not needed.
33130 But do use Checksums_Match for comparing checksums.
33132 * lib-load.adb: Undo previous change, not needed.
33134 * lib-writ.adb: Undo previous change, not needed.
33136 * lib-writ.ads: Document that checksums use lower case,
33137 not upper case letters.
33139 * scans.adb: Undo previous change, not needed
33141 * scans.ads: Undo previous change, not needed.
33143 * scn-nlit.adb: Undo previous changes, not needed.
33145 * scn-slit.adb: Undo previous change, not needed. Fix header format.
33148 (Accumulate_Checksum): Use System.CRC32.
33149 (Initialize_Checksum): New procedure.
33150 Remove other changes of previous revision.
33152 * sinput-p.adb: Undo previous change, not needed.
33154 * sinput.adb: Undo previous change, not needed.
33156 * sinput-l.adb: Undo previous change, not needed.
33158 * sinput.ads: Undo previous change, not needed. Keep only comment
33159 on new checksum algorithm
33161 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
33162 Also remove a-tags and a-stream from GNAT sources.
33164 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
33166 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
33168 2001-10-11 Geert Bosch <bosch@gnat.com>
33170 * einfo.h: Regenerate.
33172 * nmake.ads: Regenerate.
33174 * nmake.adb: Regenerate.
33176 * sinfo.h: Regenerate.
33178 * treeprs.adb: Regenerate.
33180 2001-10-10 Geert Bosch <bosch@gnat.com>
33182 * gnat-style.texi: New file describing coding guidelines for Ada.
33184 2001-10-10 Ed Schonberg <schonber@gnat.com>
33186 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
33189 2001-10-10 Geert Bosch <bosch@gnat.com>
33191 * snames.ads: Add new names for project facility.
33193 * snames.adb: Update to reflect snames.ads changes.
33195 * snames.h: Update to reflect snames.ads changes.
33197 2001-10-10 Vincent Celier <celier@gnat.com>
33200 (Add_Switches): reflect the changes for the switches attributes
33201 Default_Switches indexed by the programming language,
33202 Switches indexed by the file name.
33203 (Collect_Arguments_And_Compile): Idem.
33204 Reflect the attribute name changes.
33207 (Initialisation_Data): Change the names of some packages and
33209 (Initialize): process case insensitive associative arrays.
33212 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
33215 (Parse_Attribute_Declaration): For case insensitive associative
33216 arrays, set the index string to lower case.
33219 Reflect the changes of the project attributes.
33222 Replace Check_Naming_Scheme by Ada_Check and
33223 Language_Independent_Check.
33226 Replaced Check_Naming_Scheme by 2 procedures:
33227 Ada_Check and Language_Independent_Check.
33230 (Process_Declarative_Items): For case-insensitive associative
33231 arrays, set the index string to lower case.
33232 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
33233 Prj.Nmsc.Check_Naming_Scheme.
33236 (Case_Insensitive): New function
33237 (Set_Case_Insensitive): New procedure
33240 (Case_Insensitive): New function
33241 (Set_Case_Insensitive): New procedure
33242 (Project_Node_Record): New flag Case_Insensitive.
33245 (Value_Of): new function to get the string value of a single
33246 string variable or attribute.
33249 (Value_Of): new function to get the string value of a single
33250 string variable or attribute.
33253 (Ada_Default_Spec_Suffix): New function
33254 (Ada_Default_Impl_Suffix): New function
33255 Change definitions of several constants to reflect
33256 new components of record types.
33259 (Naming_Data): Change several components to reflect new
33260 elements of naming schemes.
33261 (Project_Data): New flags Sources_Present and
33262 Language_Independent_Checked.
33263 (Ada_Default_Spec_Suffix): New function.
33264 (Ada_Default_Impl_Suffix): New function.
33267 Modification of predefined names for project manager: added
33268 Implementation, Specification_Exceptions, Implementation_Exceptions,
33269 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
33270 Default_Switches, _Languages, Builder, Cross_Reference,
33271 Finder. Removed Body_Part, Specification_Append, Body_Append,
33272 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
33275 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
33278 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
33279 not that it is Nil_Variable_Value.
33281 * prj.ads: Add ??? for uncommented declarations
33283 2001-10-10 Ed Schonberg <schonber@gnat.com>
33285 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
33286 constant, do not indicate possible modification, so that gigi can
33287 treat it as a bona fide constant.
33289 2001-10-10 Robert Dewar <dewar@gnat.com>
33291 * sem_prag.adb: Add processing for pragma External.
33293 * snames.ads: Add entry for pragma External.
33295 * par-prag.adb: Add pragma External.
33297 * snames.adb: Updated to match snames.ads.
33299 2001-10-10 Ed Schonberg <schonber@gnat.com>
33301 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
33302 a dynamic task if the allocator appears in an indexed assignment
33303 or selected component assignment.
33305 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
33306 For a dynamic task in an assignment statement, use target of
33307 assignment to generate meaningful name.
33309 2001-10-10 Ed Schonberg <schonber@gnat.com>
33311 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
33314 * einfo.ads: Body_Entity is also defined for generic package.
33315 Documentation change only
33317 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
33318 others_choice for a discriminated component initialization,
33319 convert discriminant references into the corresponding discriminals.
33321 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
33322 only if original type is private and expression has to be wrapped
33326 (Apply_Constraint_Check): Do not perform length check
33327 if expression is an aggregate with only an others_choice.
33328 (Length_N_Cond): two references to the same in_parameter
33329 (typically the discriminal in an init_proc) denote the same value.
33330 Two useful optimization uncovered by bugfixes above.
33332 2001-10-10 Robert Dewar <dewar@gnat.com>
33334 * xeinfo.adb: Change int to char in translation of enumeration types.
33335 This fixes a problem in the C representation of component alignment.
33336 Add 2001 to copyright notice
33338 2001-10-10 Richard Kenner <kenner@gnat.com>
33340 * decl.c: (validate_size): Do check size of object of integral type
33341 if it is a packed array type.
33343 2001-10-10 Richard Kenner <kenner@gnat.com>
33345 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
33346 VAR_DECL for constant if not Is_Public but -O0.
33348 2001-10-10 Richard Kenner <kenner@gnat.com>
33350 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
33352 2001-10-10 Geert Bosch <bosch@gnat.com>
33354 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
33355 use '/' as switch character, allowing for absolute file names.
33357 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
33359 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
33362 2001-10-08 Geert Bosch <bosch@gnat.com>
33364 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
33365 Automatically build utilities when files need to be regenerated.
33367 2001-10-08 Geert Bosch <bosch@gnat.com>
33369 * xsnames.adb: New utility for updating snames.ads and snames.adb
33371 2001-10-08 Zack Weinberg <zack@codesourcery.com>
33373 * Make-lang.in (ADAFLAGS): Add -W -Wall.
33374 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
33375 (gnat1): Also depend on attribs.o.
33376 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
33377 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
33378 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
33379 (ADAFLAGS): Add -W -Wall.
33380 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
33383 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
33384 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
33385 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
33386 Use $(ADAC), not $(CC), as compilation command.
33388 (gnattools): Depend directly on tools to build, don't use
33390 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
33392 * einfo.h, sinfo.h: New files (autogenerated).
33394 2001-10-08 Richard Henderson <rth@redhat.com>
33396 * comperr.adb (Abort_In_Progress): New.
33397 (Compiler_Abort): Use it to prevent recursion.
33399 2001-10-08 Robert Dewar <dewar@gnat.com>
33401 * atree.adb: Set Error_Posted in Error node, helps error recovery.
33403 * par-endh.adb (Output_End_Expected): We should also not test
33404 Error_Posted on the Error node, since now it is always set.
33406 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
33407 to help error recovery. Part of general work on 9407-004.
33409 * par.adb: Add ??? for misuse of error
33412 (Resolve): Defend against Error, fixes 9407-003.
33413 (Resolve_Discrete_Subtype_Indication): Defend against Error.
33415 * sinfo.ads (N_Error): Now has Etype field (which will be set
33416 to Any_Type to help error recovery).
33418 2001-10-08 Richard Kenner (kenner@gnat.com)
33420 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
33421 Consistently set MEM attributes from expression; fixes
33422 bootstrap failure on x86.
33424 2001-10-08 Geert Bosch (bosch@gnat.com)
33426 * 5oosinte.adb: Add 2001 to copyright notice.
33428 2001-10-08 Geert Bosch (bosch@gnat.com)
33430 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
33432 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
33434 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
33436 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
33438 2001-10-05 Geert Bosch (bosch@gnat.com)
33440 * adaint.h: Small formatting fix.
33442 2001-10-04 Geert Bosch <bosch@gnat.com>
33444 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
33445 Arg is int, not FILE *, in dummy version of functions.
33447 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
33448 Arg is int, not FILE *.
33450 2001-10-04 Geert Bosch <bosch@gnat.com>
33452 * 3lsoccon.ads: Added file, missed with initial check ins.
33454 * 4lintnam.ads: Fix header format.
33455 Change Linux to GNU/Linux.
33457 * 5iosinte.adb: Change Linux to GNU/Linux.
33459 * 5iosinte.ads: Change Linux to GNU/Linux.
33461 * 5itaprop.adb: Change Linux to GNU/Linux.
33463 * 5itaspri.ads: Change Linux to GNU/Linux.
33464 Update copyright notice.
33466 * 5lintman.adb: Change Linux to GNU/Linux.
33468 * 5lml-tgt.adb: Change Linux to GNU/Linux.
33470 * 5losinte.ads: Change Linux to GNU/Linux.
33472 * 5lsystem.ads: Change Linux to GNU/Linux.
33474 * 5qosinte.adb: Change Linux to GNU/Linux.
33476 * 5qosinte.ads: Change Linux to GNU/Linux.
33478 * 5qparame.ads: Change Linux to GNU/Linux.
33480 * 5qtaprop.adb: Change Linux to GNU/Linux.
33482 * 5qtaspri.ads: Change Linux to GNU/Linux.
33483 Add 2001 to copyright notice.
33485 * 5vintman.ads: Change Linux to GNU/Linux.
33486 Fix header format. Add 2001 to copyright notice.
33488 * g-soccon.ads: Change Linux to GNU/Linux.
33490 * g-trasym.ads: Change Linux to GNU/Linux.
33491 Add 2001 to copyright notice.
33493 * memtrack.adb: Change Linux to GNU/Linux.
33495 * s-intman.ads: Change Linux to GNU/Linux.
33496 Add 2001 to copyright notice. Fix header format.
33498 * s-stache.adb: Change Linux to GNU/Linux.
33500 * adaint.c: Change Linux to GNU/Linux.
33502 * cio.c: Change Linux to GNU/Linux.
33504 * cstreams.c: Change Linux to GNU/Linux.
33506 * init.c: Change Linux to GNU/Linux.
33508 * gmem.c: Change Linux to GNU/Linux.
33510 * tracebak.c: Change Linux to GNU/Linux.
33513 2001-10-02 Geert Bosch <bosch@gnat.com>
33515 * misc.c (insert_default_attributes): Add dummy version.