1 2007-09-06 Janis Johnson <janis187@us.ibm.com>
5 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
7 * trans.c (convert_with_check): Update call to real_2expN.
9 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
11 * trans.c (convert_with_check): Update call to real_2expN.
13 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
15 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
16 * utils.c (end_subprog_body): Likewise.
18 2007-09-03 Nick Clifton <nickc@redhat.com>
20 * Make-lang.in: Change copyright header to refer to version 3 of
21 the GNU General Public License and to point readers at the
22 COPYING3 file and the FSF's license web page.
23 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
24 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
25 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
26 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
29 2007-08-31 Vincent Celier <celier@adacore.com>
33 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
34 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
35 (Check_Version_And_Help): New procedure in package Switch to process
36 switches --version and --help.
37 Use Check_Version_And_Help in GNAT tools
40 (Compile_Sources): Make sure that sources that are "excluded" are not
42 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
44 (Version_Switch): Remove, moved to Switch
45 (Help_Switch): Remove, moved to Switch
46 (Display_Version): Remove, moved to Switch
48 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
49 package Switch to process switches --version and --help.
50 (Display_Version): New procedure
52 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
54 2007-08-31 Javier Miranda <miranda@adacore.com>
56 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
59 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
61 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
62 (Mark_Non_Null): If the node for which we just generated an access check
63 is a reference to an *in* parameter and the reference appears in the
64 declarative part of a subprogram body, mark the node as known non null.
66 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
68 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
69 structure of E_Exception to reflect the new flag.
70 (Is_Raised, Set_Is_Raised): New inlined routines.
71 Update the usage of available flag to reflect the addition of Is_Raised.
72 (Is_Raised, Set_Is_Raised): Bodies of new routines.
73 (Write_Entity_Flags): Write the status of flag Is_Raised.
74 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
75 spurious ambiguities when integer literals appear in the context of an
76 address type that is a visible integer type.
78 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
79 exceptions never being raised.
80 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
83 2007-08-31 Javier Miranda <miranda@adacore.com>
85 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
86 statement when compiling under restriction No_Exceptions_Proparation.
88 2007-08-31 Ed Schonberg <schonberg@adacore.com>
90 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
91 initialization aggregate for the type, generate itype references for
92 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
94 2007-08-31 Gary Dismukes <dismukes@adacore.com>
96 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
97 library-level package renaming, pass the declaration associated with
98 the renaming's special debug variable to Qualify_Entity_Names to ensure
99 that its encoded name is properly qualified.
101 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
102 occurring in the list of entities to qualify, and do not attempt to
103 traverse an entity list in that case. Variables associated with
104 ` library-level package renamings can now occur in the table.
106 * exp_dbug.ads: Revise documentation of the encoding for renaming
109 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
111 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
112 access type points to an unconstrained array.
114 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
116 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
119 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
120 simple redundant qualifications. The check is performed whenever the
121 expression is a non-overloaded identifier.
122 (Resolve_Type_Conversion): Enchance the redundant type conversion check
123 to include loop parameters.
124 (Valid_Conversion): Avoid generation of spurious error message.
126 2007-08-31 Bob Duff <duff@adacore.com>
128 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
129 concatenations of string literals into a single literal, in order to
130 avoid very deep recursion in the front end, which was causing stack
133 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
134 string, and the right operand is a string literal (the case of "" &
135 "..."), optimize by avoiding copying the right operand -- just use the
136 value of the right operand directly.
138 * stringt.adb (Store_String_Chars): Optimize by growing the
139 String_Chars table all at once, rather than appending characters one by
141 (Write_String_Table_Entry): If the string to be printed is very long,
142 just print the first few characters, followed by the length. Otherwise,
143 doing "pn(n)" in the debugger can take an extremely long time.
145 * sem_prag.adb (Process_Interface_Name): Replace loop doing
146 Store_String_Char with Store_String_Chars.
148 2007-08-31 Vincent Celier <celier@adacore.com>
150 * prj-attr.adb: Add new attribute Excluded_Source_Files
152 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
153 Locally_Removed_Files.
155 * snames.ads, snames.adb: New standard name Excluded_Source_Files
157 2007-08-31 Ed Schonberg <schonberg@adacore.com>
159 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
160 clauses of subunits, ignore limited_with_clauses that are illegal and
161 have not been fully analyzed.
163 2007-08-31 Ed Schonberg <schonberg@adacore.com>
165 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
166 flag, for effiency. It is called when analyzing arithmetic operators
167 and also for actuals in calls that are universal_integers. The flag is
168 set for the predefined type address, and for any type or subtype
171 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
172 Universal_Integer, when the formal is a descendent of address and the
173 call appears in user code.
174 (Analyze_Selected_Component): if the prefix is a private extension, the
175 tag component is visible.
177 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
180 2007-08-31 Robert Dewar <dewar@adacore.com>
182 * s-fileio.adb (Open): Normalize file name to lower case in non-case
183 sensitive file name systems to avoid unexpected mismatch in Vista.
185 2007-08-31 Vincent Celier <celier@adacore.com>
187 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
189 2007-08-31 Vincent Celier <celier@adacore.com>
191 * symbols-vms.adb (Initialize): Read symbol files with continuation
193 (Finalize): If symbol is long, split the line
195 2007-08-31 Vincent Celier <celier@adacore.com>
197 * fmap.ads: Minor comment updates
199 2007-08-31 GNAT Script <nobody@adacore.com>
201 * Make-lang.in: Makefile automatically updated
203 2007-08-31 Bob Duff <duff@adacore.com>
205 * sinfo.ads: Minor comment fix.
207 2007-08-31 Thomas Quinot <quinot@adacore.com>
209 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
211 Documentation cleanup only.
213 2007-08-31 Sergey Rybin <rybin@adacore.com>
215 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
216 gnatpp '--separate-stmt-name' option.
217 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
220 * gnat_ugn.texi: Add description for the new gnatpp
221 '--separate-stmt-name' and '--use-on-new-line' options.
223 2007-08-31 Ben Elliston <bje@au.ibm.com>
225 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
226 when compiling for powerpc64-*-linux.
227 * system-linux-ppc64.ads: New file.
229 2007-08-22 Krister Walfridsson <cato@df.lth.se>
231 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
234 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
236 * misc.c (gnat_type_max_size): Constify.
238 2007-08-16 Gary Dismukes <dismukes@adacore.com>
240 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
241 associated with Standard_Debug_Renaming_Type, to be used as the type of
242 the special variables whose names provide debugger encodings for
243 renaming declarations.
245 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
246 (Set_Debug_Renaming_Link): Change to set Node25.
247 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
248 (Write_Field25_Name): Add case for E_Variable to output
249 "Debug_Renaming_Link".
250 (Write_Field23_Name): Correct the output string for "Limited_View".
252 * exp_dbug.adb: Add with and use of Tbuild.
253 (Debug_Renaming_Declaration): Replace creation of an enumeration type
254 and literal with creation of a variable of type
255 Standard_Debug_Renaming_Type whose name encodes both the renamed object
256 and the entity of the renaming declaration.
257 (Qualify_Entity_Name): Add the delayed qualification of the entity name
258 part of the name of a variable that has a Debug_Renaming_Link.
260 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
261 special type to be associated with variables that provide debugger
262 encodings for renaming declarations.
264 2007-08-16 Gary Dismukes <dismukes@adacore.com>
265 Ed Schonberg <schonberg@adacore.com>
266 Javier Miranda <miranda@adacore.com>
268 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
269 ancestor part given by an aggregate to test for an unchecked conversion,
270 since this can occur in some cases when the ancestor part is a function
271 call, and we don't want to fall into the recursive call to this
272 procedure in that case.
274 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
275 stream attributes on limited types to account for user-specified
276 attributes as well as whether Input (resp. Output) becomes available
277 due to Read (resp. Write) being available for the type. Change Boolean
278 variable to the more accurate name
279 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
280 double-"not" predicate at beginning of return statement to more
283 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
284 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
285 in a block statement and use that as the first statement of the
286 expanded return rather than incorrectly using the handled sequence as
289 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
290 operation, generate an explicit freeze node for it rather than
291 generating extra formals, to ensure that gigi has the proper order of
292 elaboration for anonymous subtypes in the signature of the subprograms.
293 (Build_In_Place_Formal): Move assertion to beginning of loop.
294 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
295 applied to a function call (occurs for some cases of 'Input).
296 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
297 applied to a function call (occurs for some cases of 'Input).
299 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
300 2005, generate an extended return statement enclosing the result object
303 * freeze.adb (Freeze_Record_Type): Extend the current management of
304 components that are access type with an allocator as default value: add
305 missing support to the use of qualified expressions of the
306 allocator (which also cause freezing of the designated type!)
307 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
308 dispatching operation, since extra formals may be needed by calls to
309 build-in-place functions (such as stream 'Input).
311 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
312 formals for 'Constrained and accessibility level in the case of a
313 predefined dispatching operation.
315 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
316 point, no need to find the parent node.
318 2007-08-16 Javier Miranda <miranda@adacore.com>
320 * exp_attr.adb (Attribute_Priority): Add missing support for entries
323 2007-08-16 Javier Miranda <miranda@adacore.com>
325 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
326 is not really required and can introduce regression with the debugger.
327 The original problem is fixed with the patch written for checks.adb.
329 2007-08-16 Thomas Quinot <quinot@adacore.com>
331 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
332 Range_Check on Allocated_Table.
334 2007-08-16 Vincent Celier <celier@adacore.com>
336 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
337 Including_Non_Switch set to False.
338 (Gnatmake): For the compiler, call Test_If_Relative_Path with
339 Including_Non_Switch set to False.
341 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
342 parameter Including_Non_Switch, defaulted to True. When
343 Including_Non_Switch is False, options that are not switches and
344 appear as relative path are not converted to absolute paths.
346 2007-08-16 Nicolas Roche <roche@adacore.com>
348 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
351 * Make-lang.in: Update dependencies
353 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
355 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
356 currently inspected is a selected component, retrieve the entity of
358 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
359 from the immediate ancestor of Main_Unit_Entity.
360 (Install_Limited_Withed_Unit): Do not install the limited view of
361 package P if P is reachable through an ancestor chain from package C
362 and C also has a with clause for P in its body.
363 (Has_Limited_With_Clause): New routine.
364 (Has_With_Clause): New routine.
366 2007-08-16 Ed Schonberg <schonberg@adacore.com>
368 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
369 generic for an enclosing instance is a global reference, even though
370 its scope is the enclosing instance.
372 2007-08-16 Gary Dismukes <dismukes@adacore.com>
373 Javier Miranda <miranda@adacore.com>
375 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
376 initialize a limited object.
377 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
379 Make sure Has_Complex_Representation is inherited by derived type.
381 2007-08-16 Robert Dewar <dewar@adacore.com>
383 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
386 2007-08-16 Ed Schonberg <schonberg@adacore.com>
388 * sem_disp.adb (Check_Dispatching_Operation): If the operation
389 implements an operation inherited from a progenitor interface, verify
390 that they are subtype-conformant.
392 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
393 Bob Duff <duff@adacore.com>
394 Nicolas Setton <setton@adacore.com>
396 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
397 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
398 the statement which is being resolved comes from a predefined library
399 unit, all non-predefined library interpretations are skipped.
400 (Resolve_Op_Concat): If string concatenation was folded in the parser,
401 but the "&" is user defined, give an error, because the folding would
404 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
405 the parser has folded a long sequence of concatenations of string
408 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
409 and "JMP_BUF" variables as artificial.
410 (N_String_Literal): Do not use alloca for very long string literals. Use
411 xmalloc/free instead. Otherwise the stack might overflow.
413 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
416 2007-08-16 Vincent Celier <celier@adacore.com>
418 * vms_conv.adb (Process_Argument): Ensure that project related options
419 are not put in the -cargs section when using GNAT COMPILE.
421 2007-08-16 Robert Dewar <dewar@adacore.com>
423 * gnat_ugn.texi: Add note on preprocessing (output file not written)
425 2007-08-16 Thomas Quinot <quinot@adacore.com>
427 * a-tags.adb: Minor reformatting.
429 2007-08-16 Bob Duff <duff@adacore.com>
431 * sem_type.ads, sem_ch4.adb: Minor reformatting.
433 2007-08-14 Thomas Quinot <quinot@adacore.com>
435 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
436 s-osinte-interix.ads, system-interix.ads: Removed.
438 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
440 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
441 calls to Check_Within_Time_Bounds.
442 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
443 (Difference): Account for possible rounding of the resulting difference
445 2007-08-14 Robert Dewar <dewar@adacore.com>
447 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
448 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
449 s-osinte-solaris.adb, s-osinte-solaris.ads,
450 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
452 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
453 switch -gnatyS. Enable -gnatyS in GNAT style check mode
455 2007-08-14 Robert Dewar <dewar@adacore.com>
456 Ed Schonberg <schonberg@adacore.com>
458 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
459 Suppress unmodified in-out parameter warning in some cases
460 This patch is a also fairly significant change to the way suppressible
463 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
464 needed for access to concurrent record types generated by the expander.
465 (Generate_Range_Check): When generating a temporary to capture the
466 value of a conversion that requires a range check, set the type of the
467 temporary before rewriting the node, so that the type is always
468 properly placed for back-end use.
469 (Apply_Float_Conversion_Check): Handle case where the conversion is
471 (Get_Discriminal): Code reformatting. Climb the scope stack looking
472 for a protected type in order to examine its discriminants.
474 2007-08-14 Robert Dewar <dewar@adacore.com>
475 Gary Dismukes <dismukes@adacore.com>
476 Ed Schonberg <schonberg@adacore.com>
477 Thomas Quinot <quinot@adacore.com>
479 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
480 a-stwisu.adb, a-strsup.adb: Fix warnings for range
483 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
484 (Get_Allocator_Final_List): For the case of an anonymous access type
485 that has a specified Associated_Final_Chain, do not go up to the
487 (Expand_N_Type_Conversion): Test for the case of renamings of access
488 parameters when deciding whether to apply a run-time accessibility
490 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
491 aggregate code before allocator, and ahead of declaration for
492 temporary, to prevent access before elaboration when the allocator is
493 an actual for an access parameter.
494 (Expand_N_Type_Conversion): On an access type conversion involving an
495 access parameter, do not apply an accessibility check when the
496 operand's original node was an attribute other than 'Access. We now
497 create access conversions for the expansion of 'Unchecked_Access and
498 'Unrestricted_Access in certain cases and clearly accessibility should
499 not be checked for those.
501 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
502 includes a type conversion of a packed component that has been expanded,
503 recover the original expression for the object, and use this expression
504 in the post-call assignment statement, so that the assignment is made
505 to the object and not to a back-end temporary.
506 (Freeze_Subprogram): In case of primitives of tagged types not defined
507 at the library level force generation of code to register the primitive
508 in the dispatch table. In addition some code reorganization has been
509 done to leave the implementation clear.
510 (Expand_Call): When expanding an inherited implicit conversion,
511 preserve the type of the inherited function after the intrinsic
512 operation has been expanded.
514 * exp_ch2.ads, exp_ch2.adb
515 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
516 of an entry formal appearing in an assignment statement does not assign
518 (Expand_Current_Value): Instead of calling a routine to determine
519 whether the prefix of an attribute reference should be optimized or
520 not, prevent the optimization of such prefixes all together.
522 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
523 component whose prefix is known to be of an access type is an implicit
524 dereference and does not assign to the prefix.
526 2007-08-14 Ed Schonberg <schonberg@adacore.com>
527 Robert Dewar <dewar@adacore.com>
529 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
530 itype is visited, make an entry into table to link associated node and
532 Add comments and correct harmless error in Build_NCT_Hash_Tables
533 (Array_Aggr_Subtype): Associate each itype created for an index type to
534 the corresponding range construct, and not to the aggregate itself. to
535 maintain a one-to-one correspondence between itype and its associated
536 node, to prevent errors when complex expression is copied.
537 Fix mishandling of multiple levels of parens
539 * sem_aggr.adb: Create a limited view of an incomplete type, to make
540 treatment of limited views uniform for all visible declarations in a
541 limited_withed package.
542 (New_Copy_Tree): If hash table is being used and itype is visited,
543 make an entry into table to link associated node and new itype.
544 (Resolve_Record_Aggregate): Do not add an others box association for a
545 discriminated record component that has only discriminants, when there
546 is a box association for the component itself.
548 * par-ch4.adb: Fix mishandling of multiple levels of parens
550 2007-08-14 Robert Dewar <dewar@adacore.com>
552 * comperr.adb: Fix problem with suppressing warning messages from gigi
554 * erroutc.ads, erroutc.adb, errout.ads,
555 errout.adb (Write_Eol): Remove trailing spaces before writing the line
556 (Write_Eol_Keep_Blanks): New procedure to write a line, including
557 possible trailing spaces.
558 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
559 Fix problem with suppressing warning messages from back end
560 Improve handling of deleted warnings
563 Fix problem with suppressing warning messages from back end
564 Handle setting of Static_Dispatch_Tables flag.
567 Fix problem with suppressing warning messages from back end
569 * exp_intr.adb: Improve handling of deleted warnings
571 2007-08-14 Robert Dewar <dewar@adacore.com>
573 * debug.adb: Improve -gnatdI to cover all cases of serialization
574 Add documentation of dZ, d.t
576 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
578 (Sprint_Node_Actual): Generate new output associated with implicit
579 importation and implicit exportation of object declarations.
581 2007-08-14 Ed Schonberg <schonberg@adacore.com>
582 Robert Dewar <dewar@adacore.com>
583 Javier Miranda <miranda@adacore.com>
584 Gary Dismukes <dismukes@adacore.com>
586 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
587 to make treatment of limited views uniform for all visible declarations
588 in a limited_withed package.
589 Improve warnings for in out parameters
590 (Set_Related_Interaface/Related_Interface): Allow the use of this
591 attribute with constants.
592 (Write_Field26_Name): Handle attribute Related_Interface in constants.
593 Warn on duplicate pragma Preelaborable_Initialialization
595 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
596 generation of a freezing node to ensure proper management of null
597 excluding access types in the backend.
598 (Create_Extra_Formals): Test base type of the formal when checking for
599 the need to add an extra accessibility-level formal. Pass the entity E
600 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
601 originally being done in a couple of cases), to ensure that the
602 Extra_Formals list gets set on the entity E when the first entity is
604 (Conforming_Types): Add missing calls to Base_Type to the code that
605 handles anonymous access types. This is required to handle the
606 general case because Process_Formals builds internal subtype entities
607 to handle null-excluding access types.
608 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
609 functions that need it, even when not marked Requires_Overriding.
610 Improve warnings for in out parameters
611 (Analyze_Function_Return): Warn for disallowed null return
612 Warn on return from procedure with unset out parameter
613 Ensure consistent use of # in error messages
614 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
615 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
616 the implicit conversion of the expression done for anonymous access
617 types. This is required to generate the code of the null excluding
620 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
621 A formal parameter is never publicly referenceable outside of its body.
622 (Check_References): For an unreferenced formal parameter in an accept
623 statement, use the same warning circuitry as for subprogram formal
625 (Warn_On_Unreferenced_Entity): New subprogram, taken from
626 Output_Unreferenced_Messages, containing the part of that routine that
627 is now reused for entry formals as described above.
628 (Goto_Spec_Entity): New function
629 (Check_References): Do not give IN OUT warning for dispatching operation
630 Improve warnings for in out parameters
631 (Test_Ref): Check that the entity is not undefinite before calling
632 Scope_Within, in order to avoid infinite loops.
633 Warn on return from procedure with unset out parameter
634 Improved warnings for unused variables
636 2007-08-14 Robert Dewar <dewar@adacore.com>
637 Javier Miranda <miranda@adacore.com>
638 Gary Dismukes <dismukes@adacore.com>
640 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
641 (Expand_N_Attribute_Reference): Further unify the handling of the
642 three forms of access attributes, using common code now for all three
643 cases. Add a test for the case of applying an access attribute to
644 an explicit dereference when the context is an access-to-interface
645 type. In that case we need to apply the conversion to the prefix
646 of the explicit dereference rather than the prefix of the attribute.
647 (Attribute_Version, UET_Address): Set entity as internal to ensure
648 proper dg output of implicit importation.
649 (Expand_Access_To_Type): Removed.
650 (Expand_N_Attribute_Reference): Merge the code from the three cases
651 of access attributes, since the processing is largely identical for
652 these cases. The substantive fix here is to process the case of a
653 type name prefix (current instance case) before handling the case
654 of interface prefixes.
656 2007-08-14 Thomas Quinot <quinot@adacore.com>
657 Ed Schonberg <schonberg@adacore.com>
658 Javier Miranda <miranda@adacore.com>
659 Robert Dewar <dewar@adacore.com>
661 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
662 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
663 type that is an anonymous access to controlled object, establish
664 an associated finalization chain to avoid corrupting the global
665 finalization list when a dynamically allocated object designated
666 by such a component is deallocated.
667 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
668 functions that need it, even when not marked Requires_Overriding.
669 (Initialize_Tag): Replace call to has_discriminants by call to
670 Is_Variable_Size_Record in the circuitry that handles the
671 initialization of secondary tags.
672 (Is_Variable_Size_Record): New implementation.
673 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
674 Suppress_Initialization pragma for a derived type.
675 (Is_Variable_Size_Record): New subprogram.
676 (Build_Offset_To_Top_Functions): New implementation that simplifies the
677 initial version of this routine and also fixes problems causing
678 incomplete initialization of the table of interfaces.
679 (Build_Init_Procedure): Improve the generation of code to initialize the
680 the tag components of secondary dispatch tables.
681 (Init_Secondary_Tags): New implementation that simplifies the previous
682 version of this routine.
683 (Make_DT): Add parameter to indicate when type has been frozen by an
684 object declaration, for diagnostic purposes.
685 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
686 diagnose attemps to freeze a subprogram when some untagged type of its
687 profile is a private type whose full view has not been analyzed yet.
688 (Freeze_Array_Type): Generate init proc for packed array if either
689 Initialize or Normalize_Scalars is set.
690 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
691 constructing the new profile, copy the null_exclusion indicator for each
692 parameter, to ensure full conformance of the new body with the spec.
694 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
695 Create wrappers for constructor functions that need it, even when not
696 marked Requires_Overriding.
697 (Covers): Handle properly designated types of anonymous access types,
698 whose non-limited views are themselves incomplete types.
699 (Add_Entry): Use an entity to store the abstract operation which hides
701 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
702 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
703 initialization aggregate.
704 (Function_Interp_May_Be_Hidden): Rename to
705 Function_Interp_Has_Abstract_Op.
706 (Has_Compatible_Type): Remove machinery that skips interpretations if
707 they are labeled as potentially hidden by an abstract operator.
708 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
709 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
710 (Write_Overloads): Output the abstract operator if present.
711 (Add_Entry): Before inserting a new entry into the interpretation table
712 for a node, determine whether the entry will be disabled by an abstract
714 (Binary_Op_Interp_May_Be_Hidden): New routine.
715 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
717 (Function_Interp_May_Be_Hidden): New routine.
718 (Has_Compatible_Type): Do not consider interpretations hidden by
719 abstract operators when trying to determine whether two types are
721 (Has_Hidden_Interp): New routine.
722 (Set_May_Be_Hidden_Interp): New routine.
723 (Write_Overloads): Write the status of flag May_Be_Hidden.
725 2007-08-14 Ed Schonberg <schonberg@adacore.com>
726 Javier Miranda <miranda@adacore.com>
728 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
729 types declared in the declarative part of a nested package body or in
730 the proper body of a stub.
731 (Set_All_DT_Position): Add missing check to avoid wrong assignation
732 of the same dispatch table slot to renamed primitives.
733 (Make_Select_Specific_Data_Table): Handle private types.
734 (Tagged_Kind): Handle private types.
735 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
736 output of implicit importation and exportation.
737 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
738 first formal of the thunk is always associated with the controlling
739 type. In addition perform the following code cleanup: remove formal
740 Thunk_Alias which is no longer required, cleanup evaluation of the
741 the controlling type, and update the documentation.
742 Replace occurrence of Default_Prim_Op_Count by
743 Max_Predef_Prims. Addition of compile-time check to verify
744 that the value of Max_Predef_Prims is correct.
745 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
746 (Make_DT): Add parameter to indicate when type has been frozen by an
747 object declaration, for diagnostic purposes.
748 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
749 construction of statically allocated dispatch tables.
750 (Make_DT): In case of library-level tagged types export the declaration
751 of the primary tag. Remove generation of tags (now done by Make_Tags).
752 Additional modifications to handle non-static generation of dispatch
753 tables. Take care of building tables for asynchronous interface types
754 (Make_Tags): New subprogram that generates the entities associated with
755 the primary and secondary tags of Typ and fills the contents of Access_
756 Disp_Table. In case of library-level tagged types imports the forward
757 declaration of the primary tag that will be declared later by Make_DT.
758 (Expand_Interface_Conversion): In case of access types to interfaces
759 replace an itype declaration by an explicit type declaration to avoid
760 problems associated with the scope of such itype in transient blocks.
762 2007-08-14 Robert Dewar <dewar@adacore.com>
763 Ed Schonberg <schonberg@adacore.com>
764 Javier Miranda <miranda@adacore.com>
766 * exp_util.ads, exp_util.adb:
767 This patch replaces a number of occurrences of explicit tests for N_Null
768 with calls to Known_Null. This improves tracking of null values, since
769 Known_Null also catches null constants, and variables currently known to
770 be null, so we get better tracking.
771 (Ensure_Defined): create an itype reference only in the scope of the
773 (Side_Effect_Free): A selected component of an access type that
774 denotes a component with a rep clause must be treated as not
775 side-effect free, because if it is part of a linked structure its
776 value may be affected by a renaming.
777 (Expand_Subtype_From_Expr): For limited objects initialized with build
778 in place function calls, do nothing; otherwise we prematurely introduce
779 an N_Reference node in the expression initializing the object, which
780 breaks the circuitry that detects and adds the additional arguments to
781 the called function. Bug found working in the new patch for statically
782 allocated dispatch tables.
783 (Is_Library_Level_Tagged_Type): New subprogram.
784 (Remove_Side_Effects): If the expression of an elementary type is an
785 operator treat as a function call.
786 (Make_Literal_Range): If the index type of the array is not integer, use
787 attributes properly to compute the constraint on the resulting aggregate
790 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
791 class-wide type whose base type is an incomplete private type, leave
792 class-wide type unfrozen so that freeze nodes can be generated
793 properly at a later point.
794 (Freeze_Entity, array case): Handle case of pragma Pack and component
795 size attributre clause for same array.
797 2007-08-14 Vincent Celier <celier@adacore.com>
799 * prj.ads, prj.adb: Update Project Manager to new attribute names for
801 Allow all valid declarations in configuration project files
802 (Reset): Initialize all tables and hash tables in the project tree data
803 Major update of the Project Manager and of the project aware tools,
804 including gprmake, so that the same sources in the GNAT repository
805 can be used by gprbuild.
806 (Slash_Id): Change type to be Path_Name_Type
807 (Slash): Return a Path_Name_Type instead of a File_Name_Type
809 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
811 Update Project Manager to new attribute names for ghprbuild
812 Allow all valid declarations in configuration project files
813 Major update of the Project Manager and of the project aware tools,
814 including gprmake, so that the same sources in the GNAT repository
815 can be used by gprbuild.
818 Major update of the Project Manager and of the project aware tools,
819 including gprmake, so that the same sources in the GNAT repository
820 can be used by gprbuild.
822 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
823 insensitive flag for attributes with optional index.
824 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
825 array attribute, put the index in lower case.
826 Update Project Manager to new attribute names for ghprbuild
827 Allow all valid declarations in configuration project files
828 Major update of the Project Manager and of the project aware tools,
829 including gprmake, so that the same sources in the GNAT repository
830 can be used by gprbuild.
832 * prj-env.ads, prj-env.adb:
833 Major update of the Project Manager and of the project aware tools,
834 including gprmake, so that the same sources in the GNAT repository
835 can be used by gprbuild.
836 (Get_Reference): Change type of parameter Path to Path_Name_Type
838 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
839 removing '-' from the path to start with the first character of the
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 Major update of the Project Manager and of the project aware tools,
845 including gprmake, so that the same sources in the GNAT repository
846 can be used by gprbuild.
848 * prj-nmsc.ads, prj-nmsc.adb:
849 Update Project Manager to new attribute names for ghprbuild
850 Allow all valid declarations in configuration project files
851 (Search_Directories): Detect subunits that are specified with an
852 attribute Body in package Naming. Do not replace a source/unit in the
853 same project when the order of the source dirs are known. Detect
854 duplicate sources/units in the same project when the order of the
855 source dirs are not known.
856 (Check_Ada_Name): Allow all identifiers that are not reserved words
858 Major update of the Project Manager and of the project aware tools,
859 including gprmake, so that the same sources in the GNAT repository
860 can be used by gprbuild.
861 (Look_For_Sources): If the list of sources is empty, set the object
862 directory of non extending project to nil.
863 Change type of path name variables to be Path_Name_Type
864 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
865 otherwise creating missing directories will fail.
867 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
868 prj-part.ads, prj-part.adb:
869 Major update of the Project Manager and of the project aware tools,
870 including gprmake, so that the same sources in the GNAT repository
871 can be used by gprbuild.
873 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
874 insensitive flag for attributes with optional index.
875 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
876 array attribute, put the index in lower case.
877 (Parse_Variable_Reference): Allow the current project name to be used in
878 the prefix of an attribute reference.
880 * prj-util.ads, prj-util.adb
881 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
882 defaulted to False. When True, always check against indexes in lower
885 * snames.ads, snames.h, snames.adb:
886 Update Project Manager to new attribute names for gprbuild
887 Allow all valid declarations in configuration project files
889 2007-08-14 Robert Dewar <dewar@adacore.com>
890 Ed Schonberg <schonberg@adacore.com>
892 * opt.ads: Warning for non-local exception propagation now off by
894 New switch -gnatI to disable representation clauses
895 Implement new pragma Implicit_Packing
898 Warning for non-local exception propagation now off by default
899 Add warning for unchecked conversion of pointers wi different
901 New switch -gnatI to disable representation clauses
903 * usage.adb: new switch -gnatyS
905 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
906 note that aggregates of anonymous array types are not flagged.
907 -gnatwc now includes membership tests optimized away
908 -gnatw.x warnings are now off by default
909 Added conditional compilation Appendix
910 Add documentation of -gnatI
911 Add documentation for new -gnatyS style check
912 Update documentation about SAL and auto-init on Windows.
915 Add documentation for pragma Check_Name and 'Enabled attribute
916 Document that Eliminate on dispatching operation is ignored
917 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
919 Document pragma Implicit_Packing
921 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
922 different conventions
923 New switch -gnatI to disable representation clauses
925 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
926 recognized, report the invalid characters including "-gnat" instead of
927 just the first character in the switch.
928 New switch -gnatI to disable representation clauses
929 Set Warn_On_Object_Renames_Function true for -gnatg
931 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
932 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
933 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
934 to switch -aP (add directory to project search dir).
936 * par-prag.adb: Implement new pragma Implicit_Packing
938 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
939 type as having a non-standard representation, to force expansion on
940 conversion to related types.
941 (Analyze_Pragma): Warn on misspelled pragma
942 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
943 Ensure consistent use of # in error messages
944 Implement pragma Implicit_Packing
946 2007-08-14 Olivier Hainque <hainque@adacore.com>
947 Eric Botcazou <ebotcazou@adacore.com>
949 * targtyps.c (get_target_maximum_default_alignment): New function.
951 that the compiler might choose by default for a type or object.
952 (get_target_default_allocator_alignment): New function. Alignment known
953 to be honored by the target default allocator.
954 (get_target_maximum_allowed_alignment): New function. Maximum alignment
955 we might accept for any type or object on the target.
956 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
958 * gigi.h (get_target_maximum_default_alignment): Declare new function.
959 (get_target_default_allocator_alignment): Likewise.
960 (get_target_maximum_allowed_alignment): Likewise.
963 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
964 result of a function call, first try to use a stabilized reference for
965 a constant renaming too.
966 (validate_alignment): Use target_maximum_allowed_alignment instead of
967 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
968 (gnat_to_gnu_entity): Use common nodes directly.
969 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
970 alignment and size for the object.
971 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
972 and N_Procedure_Call_Statement.
973 (takes_address): Rename to lvalue_required_p, add third parameter
974 'aliased' and adjust recursive calls.
975 <N_Indexed_Component>: Update 'aliased' from the array type.
976 <N_Selected_Component>: New case.
977 <N_Object_Renaming_Declaration>: New Likewise.
978 (Identifier_to_gnu): Adjust for above changes.
979 (maybe_stabilize_reference) <CONST_DECL>: New case.
981 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
982 between type variants.
983 (build_simple_component_ref): Likewise.
984 (build_call_alloc_dealloc): Use target_default_allocator_alignment
985 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
986 aligning type circuitry for allocations from the default storage pool.
987 (build_allocator): Likewise.
988 (build_simple_component_ref): Manually fold the reference for a
989 constructor if the record type contains a template.
991 * utils.c (value_zerop): Delete.
992 (gnat_init_decl_processing): Emit debug info for common types.
993 (rest_of_record_type_compilation): If a union contains a field
994 with a non-constant qualifier, treat it as variable-sized.
995 (finish_record_type): Give the stub TYPE_DECL a name.
996 (rest_of_record_type_compilation): Likewise.
997 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
998 types are equivalent array types.
999 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
1000 even if the type is not passed by reference.
1001 (static_ctors, static_dtors): Delete.
1002 (end_subprog_body): Do not record constructors and destructors.
1003 (build_global_cdtor): Delete.
1004 (gnat_write_global_declarations): Do not call build_global_cdtor.
1006 * lang-specs.h: If TARGET_VXWORKS_RTP is defined, append -mrtp when
1007 -fRTS=rtp is specified.
1008 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
1011 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
1012 of the personality function with SJLJ exceptions.
1014 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
1015 the name of the personality function with SJLJ exceptions.
1017 2007-08-14 Robert Dewar <dewar@adacore.com>
1018 Ed Schonberg <schonberg@adacore.com>
1020 * par.ads, par.adb: Improve handling of extra right parens.
1021 (Par): Remove flag From_Limited_With_Clause.
1023 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
1024 Improve handling of extra right parens.
1026 2007-08-14 Robert Dewar <dewar@adacore.com>
1028 * par-tchk.adb (TF_Semicolon): Improve error recovery
1030 2007-08-14 Robert Dewar <dewar@adacore.com>
1031 Ed Schonberg <schonberg@adacore.com>
1033 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
1034 enumeration type, mark all literals as referenced.
1035 (Eval_Attribute, case 'Image): If the argument is an enumeration
1036 literal and names are available, constant-fold but mark nevertheless as
1038 Clean up function names.
1039 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
1041 (Requires_Simple_Name_Prefix): Removed.
1043 2007-08-14 Robert Dewar <dewar@adacore.com>
1044 Ed Schonberg <schonberg@adacore.com>
1046 * sem_ch11.adb: Improved warnings for unused variables
1048 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
1049 is a synchronized interface, the derived type is limited.
1050 (Analyze_Object_Declaration): Mark the potential coextensions in the
1051 definition and expression of an object declaration node.
1052 (Build_Derived_Type): For the completion of a private type declaration
1053 with a derived type declaration, chain the parent type's representation
1054 items to the last representation item of the derived type (not the
1055 first one) if they are not present already.
1056 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
1057 object declaration of forward references to tags.
1058 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
1059 subprogram types can appear as access discriminants of synchronized
1061 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
1062 given in prefixed form as a selected component.
1063 (Process_Discriminants): If not all discriminants have defaults, place
1064 error message on a default that is present.
1065 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
1066 extend a synchronized tagged type.
1067 Improved warnings for unused variables
1068 (Is_Visible_Component): Fix a visibility hole on a component inherited
1069 by a private extension when parent is itself declared as a private
1070 extension, and the derivation is in a child unit.
1071 (Find_Hidden_Interface): Move spec from the package body.
1073 2007-08-14 Robert Dewar <dewar@adacore.com>
1074 Ed Schonberg <schonberg@adacore.com>
1076 * sem_ch5.adb: Improve warnings on redundant assignments
1078 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
1080 (Is_Synchronized_Tagged_Type): New subprogram that returns true
1081 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
1082 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
1083 is set to False. Improves handling of Known_[Not_]Null.
1084 (Wrong_Type): Special case address arithmetic attempt
1085 (Collect_Abstract_Interfaces): Add new formal to allow collecting
1086 abstract interfaces just using the partial view of private types.
1087 (Has_Abstract_Interfaces): Add new formal to allow checking types
1088 covering interfaces using the partial view of private types.
1089 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
1090 component still needs to be defined in this case, but is never
1091 initialized as VMs are using other dispatching mechanisms.
1092 (Abstract_Interface_List): For a protected type, use base type to get
1094 Improve warnings on redundant assignments
1095 (Is_Variable): Handle properly an implicit dereference of a prefixed
1097 (Build_Actual_Subtype): If this is an actual subtype for an
1098 unconstrained formal parameter, use the sloc of the body for the new
1099 declaration, to prevent anomalises in the debugger.
1101 2007-08-14 Robert Dewar <dewar@adacore.com>
1103 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
1104 dispatching operation
1106 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1107 Gary Dismukes <dismukes@adacore.com>
1110 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
1111 expanded aggregate code before allocator, and ahead of declaration for
1112 temporary, to prevent access before elaboration when the allocator is
1113 an actual for an access parameter.
1114 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
1115 the TSD and the table of interfaces.
1116 (Convert_To_Assignments): Augment the test for delaying aggregate
1117 expansion for limited return statements to include the case of extended
1118 returns, to prevent creation of an unwanted transient scope.
1119 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
1120 (Expand_Array_Aggregate): Handle aggregates associated with
1121 statically allocated dispatch tables.
1122 (Expand_Record_Aggregate): Handle aggregates associated with
1123 statically allocated dispatch tables.
1124 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
1125 of anonymous access type.
1127 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1129 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
1130 is a variable that renames a slice, use the variable itself in the
1131 expannsion when the renamed expression itself may be modified between
1132 the declaration of the renaming and the array assignment.
1134 2007-08-14 Jerome Guitton <guitton@adacore.com>
1136 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
1137 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
1138 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
1139 New functions; dummy implementations.
1141 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
1142 functions, used to implement the multi-tasks mode routines on VxWorks.
1144 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
1146 binding to the VxWorks routines which have changed between VxWorks 5
1148 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
1149 which are not callable from a RTP.
1151 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
1152 implemented for the multi-tasks mode on VxWorks 5 and 6.
1154 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
1156 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
1159 2007-08-14 Vincent Celier <celier@adacore.com>
1161 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
1162 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
1163 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
1164 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
1165 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1166 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
1167 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
1169 (Major_Id_Name): New function.
1170 mlib-tgt.ads/mlib.tgt.adb:
1171 (Library_Major_Minor_Id_Supported): New function, default returns True
1172 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
1173 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
1174 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
1175 Implementation of Library_Major_Minor_Id_Supported returns False
1177 (Clean_Library_Directory): If major/minor ids are supported, clean all
1179 Major update of the Project Manager and of the project aware tools,
1180 including gprmake, so that the same sources in the GNAT repository
1181 can be used by gprbuild.
1183 2007-08-14 Olivier Hainque <hainque@adacore.com>
1185 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
1186 (GCC_ZCX_Support): Switch to True.
1188 * s-intman-solaris.adb (Notify_Exception): Call
1189 Adjust_Context_For_Raise before raising, as expected for signal
1190 handlers in general.
1192 * s-intman-posix.adb (Notify_Exception): Remove declaration of
1193 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
1194 to other implementation bodies.
1196 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
1197 be visible by multiple implementation bodies.
1199 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
1200 only for conditions coming from hardware.
1201 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
1202 adjustments to signal context prior to exception raise from signal
1204 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
1206 Solaris section: (__gnat_adjust_context_for_raise): New function.
1207 Implementation of the machine context adjustments to perform prior to
1208 raise from a signal handler. Version for both sparc and x86.
1209 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
1210 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
1211 prior to raising as expected for any handler, before possible nested
1212 faults to make sure all the contexts in a chain have been adjusted by
1213 the time we propagate.
1215 2007-08-14 Pascal Obry <obry@adacore.com>
1217 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
1218 (SYSTEM_INFO): New record.
1219 (SetThreadIdealProcessor): New imported routine needed for supporting
1220 task_info pragma on Windows.
1222 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
1223 info can be applied to the current host.
1224 (Create_Task): Set the ideal processor if information is present.
1226 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
1227 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
1229 2007-08-14 Olivier Hainque <hainque@adacore.com>
1231 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
1232 stack size and initial stack pointer value for a given task.
1233 (Enter_Task): Get the stack attributes of the task we are entering and
1234 let the stack checking engine know about them.
1236 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
1237 Let the stack-checking engine know about the initial sp value and stack
1238 size associated with the current task.
1239 (Set_Stack_Info): If a stack base has been notified for the current
1240 task, honor it. Fallback to the previous less accurate method otherwise.
1242 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
1244 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1246 * sem_ch10.adb: Create a limited view of an incomplete type, to make
1247 treatment of limited views uniform for all visible declarations in a
1248 limited_withed package.
1249 Set flag indicating that a subprogram body for a child unit has a
1251 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
1252 separate declaration, remove the unit name from visibility after
1253 compilation, so that environment is clean for subsequent compilations.
1254 (Install_Limited_Context_Clauses): Do not install a
1255 limited_private_with_clause unless the current unit is a body or a
1257 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
1258 in the same fashion.
1259 (Install_Limited_Withed_Unit): Do not install a limited with clause if
1260 it applies to the declaration of the current package body.
1261 (Remove_Private_With_Clauses): If there is a regular with_clause for
1262 the unit, delete Private_With_Clause from context, to prevent improper
1263 hiding when processing subsequent nested packages and instantiations.
1265 2007-08-14 Jose Ruiz <ruiz@adacore.com>
1267 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
1268 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
1269 representing absolute path names.
1270 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
1272 * cstreams.c (__gnat_full_name for VxWorks): Use
1273 __gnat_is_absolute_path to detect whether we need to add the current
1274 directory to normalize the path.
1276 2007-08-14 Javier Miranda <miranda@adacore.com>
1279 a-tags.adb (Displace): Associate a message with the raised CE
1281 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
1282 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
1283 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
1285 (Default_Prim_Op_Count): Removed.
1286 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
1287 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
1288 Remove pragma Inline_Always.
1290 * rtsfind.ads (Default_Prim_Op_Count): Removed
1291 (Max_Predef_Prims): New entity
1292 (RE_Expanded_Name): Removed
1293 (RE_HT_Link): Removed
1294 (RE_Iface_Tag): Remmoved
1295 (RE_Ifaces_Table): Removed
1296 (RE_Interfaces_Array): Removed
1297 (RE_Interface_Data_Element): Removed
1298 (RE_Nb_Ifaces): Removed
1299 (RE_RC_Offset): Removed
1300 (RE_Static_Offset_To_Top): Removed
1302 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
1304 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
1305 Prim_Op_Count by Max_Predef_Prims.
1307 2007-08-14 Thomas Quinot <quinot@adacore.com>
1308 Vincent Celier <celier@adacore.com>
1310 * binde.adb (Elab_All_Links): Remove unnecessary call to
1311 Generic_Separately_Compiled (if a unit satisfies this predicate, there
1312 won't be an associated Afile).
1313 (Elab_All_Links): Fail if a referenced unit cannot be found
1316 Fix comments in bindgen regarding consistency checks done in Bcheck:
1317 the checks are made across units within a partition, not across several
1319 Fix generation of C binder file for VxWorks.
1321 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
1322 Generic_May_Lack_ALI, more descriptive of the current use of the
1323 predicate, and update documentation.
1325 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
1326 reorganization and documentation update for the case of predefined
1327 library generics (for which we do not reference an Afile).
1329 2007-08-14 Robert Dewar <dewar@adacore.com>
1331 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
1332 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
1333 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
1334 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
1335 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
1336 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
1337 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
1338 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
1339 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
1340 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
1341 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
1342 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
1343 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
1344 g-altcon.adb: Minor reformatting
1346 ada-tree.h: Delete empty line.
1348 ali.ads: Minor reformatting
1349 Clarification of comments.
1350 Minor spelling correction
1352 * exp_dbug.adb: Add Warnings Off to suppress new warning
1354 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
1357 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
1360 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
1362 * a-textio.ads: Reorder the standard input/output/error declarations
1365 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
1367 * par-ch2.adb: Recognize RM specially in errout
1368 Change 'R'M to RM in all error messages
1370 * scng.adb: Recognize RM specially in errout
1372 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
1373 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
1375 * s-direio.adb: Add missing routine header box.
1377 * sem_attr.ads: Add ??? comments
1379 * sem_eval.adb: Recognize RM specially in errout
1380 Change 'R'M to RM in all error messages
1382 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
1384 * s-tasinf.ads: Fix minor comment typo.
1386 * a-cihama.adb: Minor comment addition
1388 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
1391 * s-tasinf-tru64.ads: Fix minor comment typo.
1393 * itypes.ads: Comment update.
1395 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
1398 * argv.c: Added protection against null gnat_argv and gnat_envp.
1400 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
1401 warning message when Tolerate_Consistency_Errors is True.
1403 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
1404 Any_Id, as this subprogram is only applicable to *type* entities (it
1405 sets RM_Size). Instead initialize just Esize and Alignment.
1407 2007-08-14 Bob Duff <duff@adacore.com>
1409 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
1410 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
1411 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
1412 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
1413 a-coorse.ads (Next): Applied pragma Inline.
1414 Make all Containers packages Remote_Types (unless they are already
1416 (Previous): applied pragma Inline
1417 (Elements_Type): is now a record instead of an array
1419 2007-08-14 Thomas Quinot <quinot@adacore.com>
1421 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
1423 (Set_Item): When the new item is an element of the currently allocated
1424 table passed by reference, save a copy on the stack if we're going
1425 to reallocate. Also, in Table.Set_Item, make sure we test the proper
1426 variable to determine whether to call Set_Last.
1428 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
1429 symbols-vms.adb, symbols-processing-vms-alpha.adb,
1430 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
1431 some occurrences of the pattern
1433 T.Table (T.Last) := Value;
1434 with a cleaner call to
1437 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1438 Gary Dismukes <dismukes@adacore.com>
1439 Thomas Quinot <quinot@adacore.com>
1441 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
1442 derived type with interface progenitors use the analyzed formal as the
1443 parent of the actual, to create renamings for all the inherited
1444 operations in Derive_Subprograms.
1445 (Collect_Previous_Instances): new procedure within of
1446 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
1447 unit being loaded, to ensure that the generation of global symbols is
1448 consistent in different compilation modes.
1449 (Is_Tagged_Ancestor): New function testing the ancestor relation that
1450 takes progenitor types into account.
1451 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
1452 traversing over the primitives of the formal and actual types to locate
1453 any abstract subprograms of the actual type that correspond to a
1454 nonabstract subprogram of the formal type's ancestor type(s), and issue
1455 an error if such is found.
1456 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
1457 Instantiate_Package_Body, Instantiate_Subprogram_Body):
1458 Remove bogus guard around calls to Inherit_Context.
1459 (Reset_Entity): If the entity is the selector of a selected component
1460 that denotes a named number, propagate constant-folding to the generic
1461 template only if the named number is global to the generic unit.
1462 (Set_Instance_Env): Only reset the compilation switches when compiling
1463 a predefined or internal unit.
1465 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1467 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
1468 parameter to determine whether operation applies to the prefix.
1469 (Complete_Object_Operation): If actual has an access type and
1470 controlling formal is not an in_parameter, reject the actual if it is
1471 an access_to_constant type.
1472 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
1473 type, the candidate operations are found in the scope of declaration of
1474 the type, because the type has no primitive subprograms.
1475 (Analyze_Selected_Component): If prefix is class-wide, and root type is
1476 a private extension, only examine visible components before trying to
1477 analyze as a prefixed call.
1478 Change Entity_List to Type_To_Use, for better readability.
1479 (Has_Fixed_Op): Use base type when checking whether the type of an
1480 operator has a user-defined multiplication/division
1481 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
1482 user-defined operators are available for fixed-point types.
1484 2007-08-14 Thomas Quinot <quinot@adacore.com>
1485 Ed Schonberg <schonberg@adacore.com>
1487 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
1488 formal At_Any_Place indicating, when True, that we want to test for
1489 availability of the stream attribute at any place (as opposed to the
1490 current visibility context only).
1491 (Missing_Read_Write_Attributes): A stream attribute is missing for the
1492 purpose of enforcing E.2.2(8) only if it is not available at any place.
1493 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
1494 when checking the legality of an extension aggregate in a preelaborable
1495 package. Treat the literal null as a valid default expression in a
1496 component declaration for a type with preelaborable initialization.
1497 A limited interface is a legal progenitor for the designated type of a
1498 remote access to class-wide type.
1500 2007-08-14 Thomas Quinot <quinot@adacore.com>
1501 Ed Schonberg <schonberg@adacore.com>
1503 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
1504 reference): Use correct entity as denoted entity for the selector of
1506 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
1507 setting the Referenced_As_LHS flag for entities that are implicitly
1509 (Find_Type): If the type is an internally generated incomplete type,
1510 mark the full view as referenced, to prevent spurious warnings.
1511 (Find_Selected_Component, Has_Components): Handle properly non-limited
1512 views that are themselves incomplete types.
1513 Handle interfaces visible through limited-with clauses.
1514 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
1515 subprogram generic actual for which we have generated a renaming.
1516 Warn when the renaming introduces a homonym of
1517 the renamed entity, and the renamed entity is directly visible.
1519 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1520 Hristian Kirtchev <kirtchev@adacore.com>
1522 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
1523 appear in the subtree to the current allocator if it is not a static
1525 (Resolve_Allocator): Perform cleanup if resolution has determined that
1526 the allocator is not a coextension.
1527 (Resolve): Skip an interpretation hidden by an abstract operator only
1528 when the type of the interpretation matches that of the context.
1529 (Resolve): When looping through all possible interpretations of a node,
1530 do not consider those that are hidden by abstract operators.
1531 (Resolve_Actuals): When verifying that an access to class-wide object
1532 is an actual for a controlling formal, ignore anonymous access to
1533 subprograms whose return type is an access to class_wide type.
1534 (Resolve_Slice): If the prefix of the slice is a selected component
1535 whose type depends on discriminants, build its actual subtype before
1536 applying range checks on the bounds of the slice.
1537 (Valid_Conversion): In an instance or inlined body, compare root types,
1538 to prevent anomalies between private and public views.
1539 (Resolve): Improve error message for ambiguous fixed multiplication
1540 expressions that involve universal_fixed multiplying operations.
1542 2007-08-14 Javier Miranda <miranda@adacore.com>
1543 Hristian Kirtchev <kirtchev@adacore.com>
1545 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
1546 location to allow the correct generation of errors in case of
1547 restrictions applied to the expanded code.
1548 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
1549 function if the condition does not reference them.
1550 (Expand_Entry_Body_Declarations): Mark the index constant as having a
1553 2007-08-14 Thomas Quinot <quinot@adacore.com>
1555 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
1556 typecode parameters for a union (in a variant record), remove
1557 extraneous layer of Any wrapping for member label.
1558 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
1559 elabration statements, register the package with the name server
1560 at the beginning, not at the end, of the elaboration statements so
1561 that they can create remote access to subprogram values that designate
1562 remote subprograms from the package.
1564 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
1566 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
1567 values to compute the number of seconds since the Unix Epoc in order to
1568 account for Daylight Savings Time. Perform special processing for dates
1569 that are earlier than the Unix Epoc to obtain a negative number.
1571 2007-08-14 Emmanuel Briot <briot@adacore.com>
1573 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
1576 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
1578 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
1579 binder-generated file is not in Ada.
1580 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
1581 recorded in the ALI file.
1582 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
1584 2007-08-14 Vincent Celier <celier@adacore.com>
1586 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
1587 (Output_Source): Do nothing if parameter is No_Sdep_Id
1589 * make.adb (Gnatmake): Do not rebuild an archive simply because a
1590 shared library it imports has a later time stamp.
1591 (Check): Resolve the symbolic links in the path name of the object
1593 Check that the ALI file is in the correct object directory
1594 Check if a file name does not correspond to the mapping of units
1596 (Display_Version): New procedure
1597 (Initialize): Process switches --version and --help
1598 Use type Path_Name_Type for path name
1600 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
1602 * impunit.adb: Re-organize System.Random_Numbers and
1603 GNAT.Random_Numbers and add to builds.
1605 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
1607 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
1609 * a-assert.ads, a-assert.adb: New files.
1611 2007-08-14 Gary Dismukes <dismukes@adacore.com>
1613 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
1614 if AAMP_On_Target is True, then the size of the type encompasses two
1615 addresses (a static link and a subprogram address), except in the case
1616 of library-level access types.
1618 2007-08-14 Vincent Celier <celier@adacore.com>
1620 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
1622 (Write_Eol_Keep_Blanks): New procedure to write a line, including
1623 possible trailing spaces.
1624 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
1626 2007-08-14 Javier Miranda <miranda@adacore.com>
1628 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
1629 null-excluding access types.
1631 2007-08-14 Javier Miranda <miranda@adacore.com>
1633 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
1634 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
1635 of private types add missing check on matching interfaces in the
1636 partial and full declarations.
1637 (Analyze_Protected_Type): Code cleanup.
1638 (Analyze_Task_Type): Code cleanup.
1640 2007-08-14 Javier Miranda <miranda@adacore.com>
1642 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
1643 generated interface thunk.
1645 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1647 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
1648 obsolescent warning on application of 'Class to an incomplete type.
1650 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
1651 prevent obsolescent warning on application of 'Class to an incomplete
1654 2007-08-14 Pascal Obry <obry@adacore.com>
1656 * s-fileio.adb (Is_Open): Add check for usability of the underlying
1659 2007-08-14 Cyrille Comar <comar@adacore.com>
1661 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
1662 since it is potentially used in cases implying double finalization of
1665 2007-08-14 Jose Ruiz <ruiz@adacore.com>
1667 * s-tasini.adb (Get_Stack_Info): Move this function to
1668 System.Soft_Links.Tasking because it is common to the full and the
1669 restricted run times.
1670 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
1671 in SSL.Tasking.Init_Tasking_Soft_Links.
1673 * s-solita.adb (Get_Stack_Info): Function moved from
1674 System.Tasking.Initialization because it is common to the full and the
1675 restricted run times.
1676 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
1678 2007-08-14 Arnaud Charlet <charlet@adacore.com>
1680 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
1681 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
1682 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
1685 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
1688 2007-08-14 Gary Dismukes <dismukes@adacore.com>
1690 * s-veboop.adb (SU): New named number initialized to
1691 System.Storage_Unit.
1692 (True_Val): The initialization expression is revised to use SU (=
1693 Storage_Unit) rather than assuming 8 for the component size of an
1694 unpacked Boolean array.
1696 2007-08-14 Tristan Gingold <gingold@adacore.com>
1698 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
1700 * tb-ivms.c: New file.
1702 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
1704 2007-08-14 Geert Bosch <bosch@adacore.com>
1706 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
1707 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
1708 Add required linker pragmas for automatically linking with the gnalasup
1709 linear algebra support library, and the systems math library.
1710 Rename cdot to cdotu and zdot to zdotu.
1711 Update header comment to describe purpose of package.
1713 2007-08-14 Thomas Quinot <quinot@adacore.com>
1715 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
1716 an explicitly specified Associated_Final_Chain, use that list.
1717 (Expand_N_Package_Body): Build dispatch tables of library level tagged
1719 (Expand_N_Package_Declaration): Build dispatch tables of library level
1720 tagged types. Minor code cleanup.
1722 2007-08-14 Vincent Celier <celier@adacore.com>
1724 * gnatchop.adb (Terminate_Program): Remove exception and use
1725 Types.Terminate_Program instead.
1727 * osint.ads, osint.adb (Current_Exit_Status): New global variable
1728 (Find_Program_Name): Added protection against empty name.
1729 (OS_Exit_Through_Exception): New procedure
1731 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
1732 (OS_Exit_Default): New procedure that contains the previous
1733 implementation of procedure OS_Exit.
1734 (Final_Value): Remove obsolete Interix stuff.
1736 2007-08-14 Thomas Quinot <quinot@adacore.com>
1738 * g-socket.ads: Reorganize example code so that it also works on
1741 2007-08-14 Tristan Gingold <gingold@adacore.com>
1743 * g-trasym.ads: AIX now supports symbolic backtraces.
1745 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1747 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
1748 units being loaded to detect circularities. A circularity may be
1749 present even if the current chain of pending units to load starts from
1750 a limited_with_clause.
1752 * lib-load.ads: Change profile of Load_Unit to use a with_clause
1753 rather than a boolean flag, in order to detect circularities in
1756 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
1757 than propagating the From_Limited_With flag, in order to handle
1758 properly circularities involving with_clauses.
1760 2007-08-14 Nicolas Setton <setton@adacore.com>
1762 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
1765 2007-08-14 Arnaud Charlet <charlet@adacore.com>
1767 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
1768 to build for libgnala.
1769 libgnat: Add rules to build libgnala.a
1770 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
1771 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
1772 Add s-osinte-vxworks-kernel.adb to the target pairs of the
1773 kernel run-time lib for VxWorks 6, which would provide a different
1774 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
1775 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
1776 running ZCX by default.
1777 Add g-sttsne-locking to LynxOS version.
1778 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
1779 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
1781 * system-darwin-x86.ads: New file.
1783 * Make-lang.in: Delete files before copying onto them, so if they are
1784 read-only, the copy won't fail.
1787 2007-08-14 Pascal Obry <obry@adacore.com>
1789 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
1792 2007-08-14 Vincent Celier <celier@adacore.com>
1794 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
1795 (Gcc): Initialize Gcc_Name at the first call
1797 2007-08-14 Ed Schonberg <schonberg@adacore.com>
1799 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
1800 with_clauses of the enclosing unit when analyzing the package
1801 specification of a nested instance.
1803 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
1805 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
1806 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
1807 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
1808 layout of N_Allocator.
1810 2007-08-14 Thomas Quinot <quinot@adacore.com>
1812 * rtsfind.adb (Check_RPC): Add PCS version check.
1814 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
1815 (Gnat_Free_Software): New function.
1817 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
1818 the PCS_Version value from s-parint, used to check that it is consistent
1819 with what exp_dist expects.
1821 * s-parint.ads (PCS_Version): New entity for checking consistency
1822 between exp_dist and PCS.
1824 * gen-soccon.c: (SO_REUSEPORT): New constant.
1826 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
1828 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
1829 variable Sub_Second to Duration in order to accomodate a larger range
1830 of arithmetic operations.
1832 2007-08-14 Bob Duff <duff@adacore.com>
1834 * g-sttsne-locking.ads: Move comments from spec to body.
1835 * g-sttsne-locking.adb: Move comments from spec to body.
1836 * g-sttsne-vxworks.ads: Removed.
1837 * g-sttsne-vxworks.adb: Removed.
1839 2007-08-11 Ian Lance Taylor <iant@google.com>
1841 * misc.c (gnat_get_alias_set): Change return type to
1844 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1846 * decl.c, utils2.c: Fix whitespace in last change.
1848 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1850 * decl.c (compare_field_bitpos): Constify.
1851 * utils2.c (compare_elmt_bitpos): Likewise.
1853 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
1855 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
1856 anonymous access type.
1857 (pthread_sigmask): Now take an access sigset_t.
1859 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
1861 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
1863 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
1865 PR tree-optimization/25737
1866 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
1868 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1870 * trans.c (Attribute_to_gnu): When subtracting an
1871 offset from a pointer, use POINTER_PLUS_EXPR with
1872 NEGATE_EXPR instead of MINUS_EXPR.
1873 (gnat_to_gnu): Likewise.
1874 * utils.c (convert): When converting between
1875 thin pointers, use POINTER_PLUS_EXPR and sizetype
1877 * utils2.c (known_alignment): POINTER_PLUS_EXPR
1878 have the same semantics as PLUS_EXPR for alignment.
1879 (build_binary_op): Add support for the semantics of
1880 POINTER_PLUS_EXPR's operands.
1881 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
1883 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
1885 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
1886 of get_signed_or_unsigned_type.
1887 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
1889 2007-06-11 Bob Duff <duff@adacore.com>
1890 Thomas Quinot <quinot@adacore.com>
1892 * g-stsifd-sockets.adb (Create): Work around strange behavior of
1893 'bind' on windows that causes 'connect' to fail intermittently, by
1894 retrying the 'bind'.
1895 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
1897 2007-06-10 Duncan Sands <baldrick@free.fr>
1899 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
1900 than to void, for the fields when making a new fat pointer type.
1901 (gnat_substitute_in_type): Now substitute_in_type.
1902 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
1903 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
1904 * utils.c (update_pointer_to): Update fat pointers by updating the
1905 dummy node pointers used for the fields.
1907 2007-06-06 Thomas Quinot <quinot@adacore.com>
1908 Bob Duff <duff@adacore.com>
1910 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
1911 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1912 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
1913 constant Thread_Blocking_IO, always True by default, set False
1914 on a per-runtime basis.
1915 (Need_Netdb_Buffer): New constant.
1917 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
1918 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
1921 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
1922 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
1923 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
1924 child package Task_Safe_NetDB
1925 (Host_Error_Messages): Add stub body.
1926 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
1928 * g-soccon-mingw.ads: Add Windows-specific constants.
1929 (Need_Netdb_Buffer): New constant.
1930 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
1931 wrapper and import inet_addr(3) from the standard sockets library
1933 (In_Addr): Add alignment clause.
1934 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
1936 2007-06-06 Robert Dewar <dewar@adacore.com>
1938 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
1939 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
1940 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
1941 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
1942 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
1943 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
1944 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
1945 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
1946 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
1947 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
1948 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
1949 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
1950 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
1951 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
1952 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
1953 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
1954 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
1955 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
1956 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
1957 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
1958 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
1959 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
1960 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
1961 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
1962 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
1963 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
1964 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
1965 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
1966 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
1967 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
1968 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
1969 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
1970 Unchecked_* by Ada.Unchecked_*
1972 2007-06-06 Robert Dewar <dewar@adacore.com>
1974 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
1975 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
1976 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
1977 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
1978 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
1979 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
1981 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
1982 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
1983 s-tasloc.adb, s-tasloc.ads: New files.
1985 2007-06-06 Bob Duff <duff@adacore.com>
1988 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
1989 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
1990 (Send_Signal, Close): Raise Invalid_Process if the process id is
1992 (Pattern_Matcher_Access): Is now a general access type to be able to
1995 2007-06-06 Thomas Quinot <quinot@adacore.com>
1996 Arnaud Charlet <charlet@adacore.com>
1998 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
1999 (SIGEMT is now used instead of SIGTERM on AIX).
2001 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
2002 (Time_Slice_Supported): Set to True.
2003 Use SIGEMT instead of SIGTERM as SIGADAABORT.
2005 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2007 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
2008 (Time, Time)): Use To_Relative_Time rather than manual calculation to
2009 express the bounds of Duration as Time. Raise Time_Error when the
2010 result is greater or equal to the higher bound of Duration (on the
2012 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
2014 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
2016 ("-" (Time, Time)): Reorder code.
2017 (All_Leap_Seconds): Removed.
2018 (Arithmetic_Operations.Add): Remove sign related kludge.
2019 (Arithmetic_Operations.Difference): Control the leaps seconds processing
2020 with flag Leap_Support.
2021 (Arithmetic_Operations.Subtract): Remove sign related kludge.
2022 (Check_Within_Time_Bounds): New procedure.
2023 (Clock): Control the leap seconds processing with flag Leap_Support.
2024 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
2025 (Formatting_Operations.Split): Control the leap seconds processing with
2027 (Formatting_Operations.Time_Of): Control the leaps seconds processing
2028 with flag Leap_Support. Adjust the year, month and day (if applicable)
2029 when the value of day seconds designates a new day.
2030 (Split): Use parameter associations for better readability. Integrate
2032 (Time_Of): Use parameter associations for better readability. Integrate
2035 * a-calfor.adb (Split): Use parameter associations for better
2036 readability. Integrate flag Is_Ada_05.
2037 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
2038 better readability. Integrate flag Is_Ada_05.
2040 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2042 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
2043 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
2044 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
2045 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
2046 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
2047 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
2048 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
2049 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
2050 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
2051 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
2052 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
2053 time when entering this routine to detect a backward clock setting
2054 (manual setting or DST adjustment), to avoid waiting for a longer delay
2056 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
2057 Remove handling of deferred priority change, and replace by setting the
2058 task priority directly, as required by AI-188.
2060 (Max_Task_Image_Length): New constant.
2061 Replace Warnings (Off) by Unreferenced pragma, cleaner.
2062 (Dynamic_Priority_Support): Removed, no longer needed.
2063 (Poll_Base_Priority_Change): Ditto.
2064 (Set_Ceiling): Add this procedure to change the ceiling priority
2065 associated to a lock. This is a dummy implementation because dynamic
2066 priority ceilings are not supported by the underlying system.
2068 * a-dynpri.adb (Set_Priority): Take into account case where Target is
2069 accepting a RV with its priority boosted.
2070 Remove handling of deferred priority change, and replace by setting the
2071 task priority directly, as required by AI-188.
2073 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
2075 Remove handling of deferred priority change, and replace by setting the
2076 task priority directly, as required by AI-188.
2077 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
2080 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
2081 (Poll_Base_Priority_Change): Removed.
2082 Code clean up: use SSL.Current_Target_Exception.
2084 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
2085 to run as this is a potentially dispatching point.
2086 (Call_Synchronous): Use Local_Defer_Abort.
2087 (Callable): Relax assertion.
2088 (Selective_Wait): Relax assertion in case abort is not allowed.
2089 Remove handling of deferred priority change, and replace by setting the
2090 task priority directly, as required by AI-188.
2092 * s-tasuti.adb (Make_Passive): Adjust assertions.
2093 Remove handling of deferred priority change, and replace by setting the
2094 task priority directly, as required by AI-188.
2096 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2098 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
2099 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
2100 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
2101 system-vxworks-mips.ads, system-vxworks-alpha.ads,
2102 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
2103 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
2104 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
2105 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
2106 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
2107 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
2108 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
2109 This patch changes the largest non-binary modulus from 2**31-1 to
2111 (Compiler_System_Version): Removed, no longer used.
2112 Clean up system files by removing flags only used on a single target.
2113 Also remove obsolete flags, only used during bootstrap from system.ads
2114 (Address): Add a pragma Preelaborable_Initialization.
2116 * system-aix.ads: Ditto.
2117 (GCC_ZCX_Support): Set to true.
2118 Update priority range on AIX and map Ada priorities to target
2119 priorities appropriately for different scheduling policies.
2121 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
2123 2007-06-06 Vincent Celier <celier@adacore.com>
2125 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
2126 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
2128 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
2129 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
2130 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
2131 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2132 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
2133 MLib.Tgt, containing the default versions of the exported subprograms.
2134 For each platform, create a specific version of the body of new child
2135 package MLib.Tgt.Specific that contains only the body of subprograms
2136 that are different from the default.
2137 (Archive_Builder_Append_Options): New function.
2139 2007-06-06 Matthew Gingell <gingell@adacore.com>
2141 * s-osinte-aix.adb: Map Ada priorities to target priorities
2142 appropriately for different scheduling policies.
2144 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2146 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
2148 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
2149 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
2151 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
2153 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
2154 Noop on VMS, added for interface commonality.
2156 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
2157 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2158 Olivier Hainque <hainque@adacore.com>
2160 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
2161 renamed expression of a full renaming at toplevel.
2162 (gnat_to_gnu_entity, case object): If not defining, do not look inside
2163 the values the constant is initialized to if it is an N_Allocator.
2164 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
2165 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
2166 (make_aligning_type): Accept an extra ROOM argument for storage to be
2167 made available before the aligned field, and an extra BASE_ALIGN
2168 argument for callers to pass the alignment guaranteed to be honored for
2169 the whole aligning object. Avoid call to finish_record_type, which only
2170 interferes with the sizes we want to set.
2171 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
2172 make_aligning_type for super-aligned objects on stack.
2173 (components_to_record): Pass the adjusted size of the type when creating
2174 fields in the qualified union for the variant part.
2175 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
2176 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
2178 (maybe_pad_type): Set TYPE_USER_ALIGN.
2179 (make_aligning_type): Likewise.
2180 ALIGN argument is unsigned int.
2181 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
2182 (gnat_to_gnu_param): Likewise, for parameters.
2183 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
2184 if it is constant and stems from a function call.
2185 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
2186 of the record is specified. Adjust accordingly.
2187 (adjust_packed): New static function.
2188 (gnat_to_gnu_field): Use it to adjust the packedness setting.
2189 (components_to_record): Likewise.
2190 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
2191 side-effects if the object is deemed constant.
2192 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
2193 type instead of merely finalizing it. Tidy.
2194 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
2195 <E_Access_Type>: Likewise.
2196 (defer_debug_incomplete_list): Rename to defer_finalize_list.
2197 (defer_debug_level): Delete.
2198 (gnat_to_gnu_entity) <debug_deferred>: Likewise
2199 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
2201 <E_Record_Type>: Do not explicitly defer finalizing the type.
2202 Adjust for write_record_type_debug_info renaming.
2203 <E_Subprogram_Type>: Likewise.
2204 Finalize deferred types right after deferred incomplete types are
2206 (rest_of_type_decl_compilation): New global function.
2207 (components_to_record): Rename defer_debug parameter to do_not_finalize.
2208 (components_to_record): Propagate the packedness to the fields of the
2209 qualified union type if there is a variant part.
2210 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
2211 instead of inline code to adjust the XUT field offsets.
2212 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
2213 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
2214 and write the debug info if the type derives from a discriminated one.
2215 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
2216 <E_Array_Subtype>: Likewise.
2217 <E_String_Literal_Subtype>: Likewise.
2218 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
2219 an alignment clause.
2220 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
2221 before giving warning.
2222 (prepend_one_attribute_to): New function, helper to prepend an attribute
2223 to an attribute list.
2224 (gnat_to_gnu_entity) <E_Procedure>: Use it.
2225 (prepend_attributes): Likewise.
2226 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
2227 <E_Array_Type>: Declare the padding type for the element type, if any.
2228 <E_Array_Subtype>: Likewise.
2229 (defer_limited_with): New variable.
2230 (Gigi_Equivalent_Type): New function.
2231 (gnat_to_gnu_entity): Use it at start and use result throughout.
2232 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
2233 Gigi_Equivalent_Type, support Limited_With, allow two levels of
2234 indirection, precompute if unconstrained array to simplify logic, and
2235 use defer_limited_with to defer elaboration of some types from limited
2237 (finalize_from_with_types): New function.
2239 2007-06-06 Gary Dismukes <dismukes@adacore.com>
2240 Eric Botcazou <ebotcazou@adacore.com>
2241 Tristan Gingold <gingold@adacore.com>
2242 Olivier Hainque <hainque@adacore.com>
2244 * trans.c (Identifier_to_gnu): Change test for deferred constant by
2245 adding guard that the entity is an E_Constant before testing presence
2246 of Full_view (and remove unnecessary test that entity is not a type).
2247 For a CONST_DECL used by reference, manually retrieve
2248 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
2249 (struct language_function): Move from utils.c to here.
2250 (struct parm_attr): New structure.
2251 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
2252 (f_parm_attr_cache): New macro.
2253 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
2254 expressions for the 'First, 'Last and 'Length attributes of the
2255 unconstrained array IN parameters.
2256 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
2257 Allocate the information structure for the function earlier, as well
2258 as the language-specific part.
2259 If the parameter attributes cache has been populated, evaluate the
2260 cached expressions on entry.
2261 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
2262 N_Procedure_Call_Statement and N_Indexed_Component.
2263 (Pragma_to_gnu): Translate inspection_point to an asm statement
2264 containaing a comment and a reference to the object (either its address
2265 for BLKmode or its value).
2266 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
2267 to go to DECL_INITIAL. Together with the size constraint relaxation
2268 in create_var_decl, enlarges the set of situations in which an
2269 identifier may be used as an initializer without implying elaboration
2271 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
2272 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
2274 (maybe_stabilize_reference): Remove lvalues_only parameter.
2275 (gnat_stabilize_reference): Adjust for above change.
2276 (gnat_to_gnu): Do not set location information on the result
2277 if it is a reference.
2278 (add_cleanup): Add gnat_node parameter and set the location of the
2280 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
2281 (Exception_Handler_to_gnu_zcx): Likewise.
2282 (gigi): Remove the cgraph node if the elaboration procedure is empty.
2283 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
2284 the former right after the latter.
2285 (start_stmt_group): Make global.
2286 (end_stmt_group): Likewise.
2287 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
2289 (gnu_program_error_label_stack): Likewise.
2290 (gigi): Initialize them.
2291 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
2292 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
2294 (push_exception_label_stack): New function.
2295 (takes_address): New function.
2297 * utils.c (struct language_function): Move to trans.c from here.
2298 (unchecked_convert): Do not wrap up integer constants in
2300 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
2301 the latter for aggregate types, unexpected by later passes, and relax an
2302 arbitrary size constraint on the former.
2303 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
2304 to compare the sizes.
2305 (convert_vms_descriptor): When converting to a fat pointer type, be
2306 prepared for a S descriptor at runtime in spite of a SB specification.
2307 (shift_unc_components_for_thin_pointers): New function.
2308 (write_record_type_debug_info): For variable-sized fields, cap the
2309 alignment of the pointer to the computed alignment.
2310 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
2311 If REP_LEVEL is 2, do not compute the sizes.
2312 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
2313 (build_unc_object_type): Likewise.
2314 (declare_debug_type): New function.
2316 * ada-tree.def: USE_STMT: removed (not emitted anymore).
2318 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
2319 no statement is expandable anymore.
2320 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
2321 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
2322 when the user requested it explicitely.
2323 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
2325 (get_alias_set): Return alias set 0 for a type if
2326 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
2328 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
2329 (DECL_FUNCTION_STUB): New accessor macro.
2330 (SET_DECL_FUNCTION_STUB): New setter macro.
2332 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
2334 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
2337 2007-06-06 Jose Ruiz <ruiz@adacore.com>
2339 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
2340 Rename to Abort_Task_Interrupt to be able to keep the same interface
2341 as the rest of the targets.
2343 * s-osinte-vxworks.ads s-osinte-vxworks.adb
2344 (To_VxWorks_Priority): Remove explicit "in" mode indicator
2346 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
2349 2007-06-06 Robert Dewar <dewar@adacore.com>
2351 * a-chahan.ads: Remove obsolescent pragmas
2353 * a-chlat1.ads: Minor reformatting
2355 2007-06-06 Robert Dewar <dewar@adacore.com>
2357 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
2360 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
2363 * errout.ads (Finalize): Changed interface
2364 (Output_Messages): New procedure
2365 (Compilation_Errors): New Interface
2367 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
2368 Finalize/Output_Messages interface for Errout
2369 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
2372 2007-06-06 Thomas Quinot <quinot@adacore.com>
2373 Olivier Hainque <hainque@adacore.com>
2374 Robert Dewar <dewar@adacore.com>
2376 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
2378 (Raise_Current_Excep): Call Debug_Raise_Exception just before
2379 propagation starts, to let debuggers know about the event in a reliable
2381 (Local_Raise): Moved to System.Exceptions
2382 More convenient to have this as a separate unit
2384 * s-except.adb, s-except.ads: New files.
2386 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
2387 Debug_Unhandled_Exception in System.Exceptions where it belongs
2388 together with a couple of other debug helpers.
2389 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
2390 the former Unhandled_Exception.
2392 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
2393 (Warn_No_Exception_Propagation): New procedure
2394 (Warn_If_No_Propagation): Rewritten for new warning generation
2395 (Expand_Exception_Handlers): New warning generation
2396 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
2397 (Add_Exception_Label): Use Special_Exception_Package_Used for test
2398 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
2399 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
2400 even if restriction is set (makes life easier in Check_Returns)
2401 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
2402 checking exception identities.
2403 (Expand_Local_Exception_Handlers): Do not optimize when all others case
2404 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
2405 block for handler (used by Check_Returns)
2406 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
2407 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
2408 remove all exception handlers when optimizing local raise statements.
2409 (Find_Local_Handler): Use Get_Renamed_Entity
2410 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
2411 marked analyzed after expanding exception handlers, do not generate
2412 redundant cleanup actions, because they have been constructed already.
2414 2007-06-06 Thomas Quinot <quinot@adacore.com>
2416 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
2417 presence of this categorization pragma is mandated by the language.
2418 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
2421 2007-06-06 Vincent Celier <celier@adacore.com>
2422 Robert Dewar <dewar@adacore.com>
2424 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
2425 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
2426 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
2427 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
2428 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
2429 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
2430 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
2431 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
2432 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
2433 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
2434 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
2436 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
2437 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
2438 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
2439 Use variables of types File_Name_Type and Unit_Name_Type in error
2441 (Get_Name): Add parameter Ignore_Special, and set it reading file name
2442 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
2444 Define flags Flag217-Flag230 with associated subprograms
2445 (Flag_Word5): New record type.
2446 (Flag_Word5_Ptr): New access type.
2447 (To_Flag_Word5): New unchecked conversion.
2448 (To_Flag_Word5_Ptr): Likewise.
2449 (Flag216): New function.
2450 (Set_Flag216): New procedure.
2452 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2454 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
2457 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
2459 2007-06-06 Javier Miranda <miranda@adacore.com>
2461 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
2463 (Object_Specific_Data_Array): This is now internal to the package.
2464 (Object_Specific_Data): This is now internal to the package.
2465 (Select_Specific_Data_Element): This is now internal to the package.
2466 (Select_Specific_Data_Array): This is now internal to the package.
2467 (Select_Specific_Data): This is now internal to the package.
2468 (Offset_To_Top_Function_Ptr): This is now public.
2469 (To_Offset_To_Top_Function_Ptr): Removed.
2470 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
2471 local to subprogram Offset_To_Top.
2472 (Predefined_DT): Removed.
2473 (Typeinfo_Ptr): Removed.
2474 (OSD): This function is now internal to this package.
2475 (SSD): This function is now internal to this package.
2476 (DT): New function that displaces the pointer to the table of primitives
2477 to get access to the enclosing wrapper record.
2478 (IW_Membership): Code cleanup.
2479 (Offset_To_Top): Code cleanup.
2480 (Predefined_DT): Removed.
2481 (Register_Interface_Tag): Removed.
2482 (Set_Interface_Table): Removed.
2483 (Set_Offset_Index): Removed.
2484 (Set_Offset_To_Top): Code cleanup.
2486 (Set_Signature): Removed.
2488 (Set_Tagged_Kind): Removed.
2489 (Typeinfo_Ptr): Removed.
2491 (Displace): Add missing check on null actual.
2493 * exp_disp.ads, exp_disp.adb
2494 (Select_Expansion_Utilities): Removed.
2495 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
2496 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
2497 the interface requires a new parameter.
2498 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
2499 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
2500 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
2501 Done to remove package Select_Expansion_Utilities.
2502 (Make_DT): New implementation for statically allocated dispatch tables.
2503 (Make_Secondary_DT): Moved to the scope of Make_DT.
2504 (Register_Primitive): Code cleanup plus incoporate the use of the new
2505 function DT_Address_Attribute.
2506 (Expand_Interface_Thunk): The profile of this subprogram has been
2507 changed to return the Thunk_Id and the corresponding code.
2508 (Fill_DT_Entry): Removed. Its functionality is now provided by
2509 subprogram Register_Primitive.
2510 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
2511 subprogram Register_Primitive.
2512 (Register_Primitive): New subprogram that incorporates the previous
2513 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
2514 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
2515 was only required to call Make_DT_Access_Action, which is now removed.
2516 (Ada_Actions): Removed
2517 (Action_Is_Proc): Removed
2518 (Action_Nb_Arg): Removed
2519 Replace all the calls to Make_DT_Access_Action by direct calls to
2520 Make_Procedure_Call_Statement or Make_Function_Call.
2521 (Set_DTC_Entity_Value): New subprogram.
2522 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
2523 (Expand_Interface_Thunk): Add missing support for primitives that are
2524 functions with a controlling result (case in which there is no need
2525 to generate the thunk).
2527 * exp_atag.ads, exp_atag.adb
2528 (Build_DT): New subprogram that displaces the pointer to reference the
2529 base of the wrapper record.
2530 (Build_Typeinfo_Offset): Removed.
2531 (RTE_Tag_Node): Removed.
2532 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
2533 (Build_Get_RC_Offset): Removed.
2534 (Build_Inherit_Predefined_Prims): Removed.
2535 (Build_Inherit_TSD: Removed.
2536 (Build_New_TSD): Removed.
2537 (Build_Set_External_Tag): Removed.
2538 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
2539 (Build_Set_Prim_Op_Address): Add documentation.
2540 (Build_Set_TSD): Removed.
2542 * rtsfind.ads, rtsfind.adb
2543 (Load_Fail): If load fails and we are not in configurable run-time
2544 mode, then raise Unrecoverable_Error.
2545 (Text_IO_Kludge): Generate an error message if a run-time library is
2546 not available in a given run-time (ie. zfp run-time).
2547 (RTE_Record_Component): Add code to check that the component we search
2548 for is not found in two records in the given run-time package.
2549 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
2550 (RE_DT_Predef_Prims_Offset): New entity
2551 (RE_Static_Offset_To_Top): New entity
2552 (RE_HT_Link): New entity.
2553 (System_Address_Image): Addition of this run-time package.
2554 (RE_Address_Image): New entity.
2555 (RE_Abstract_Interface): Removed.
2556 (RE_Default_Prim_Op_Count): Removed.
2557 (RE_DT_Entry_Size): Removed.
2558 (RE_DT_Min_Prologue_Size): Removed.
2559 (RE_DT_Prologue_Size): Removed.
2560 (RE_Ifaces_Table_Ptr): Removed.
2561 (RE_Interface_Data_Ptr): Removed.
2562 (RE_Type_Specific_Data): Removed.
2563 (RE_Primary_DT): Removed.
2564 (RE_Register_Interface_Tag): Removed.
2565 (RE_Set_Offset_Index): Removed.
2566 (RE_Set_OSD): Removed.
2567 (RE_Set_SSD): Removed.
2568 (RE_Set_Signature): Removed.
2569 (RE_Set_Tagged_Kind): Removed.
2570 (RE_Address_Array): New entity.
2571 (RE_DT): New entity.
2572 (RE_Iface_Tag): New entity.
2573 (RE_Interfaces_Table): New entity.
2574 (RE_No_Dispatch_Table): New entity.
2575 (RE_NDT_Prims_Ptr): New entity.
2576 (RE_NDT_TSD): New entity.
2577 (RE_Num_Prims): New entity.
2578 (RE_Offset_To_Top_Function_Ptr): New entity.
2579 (RE_OSD_Table): New entity.
2580 (RE_OSD_Num_Prims): New entity.
2581 (RE_Predef_Prims): New entity
2582 (RE_Predef_Prims_Table_Ptr): New entity.
2583 (RE_Primary_DT): New entity.
2584 (RE_Signature): New entity.
2585 (RE_SSD): New entity.
2586 (RE_TSD): New entity.
2587 (RE_Type_Specific_Data): New entity.
2588 (RE_Tag_Kind): New entity.
2590 2007-06-06 Thomas Quinot <quinot@adacore.com>
2592 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
2593 C imported variable.
2594 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
2597 2007-06-06 Robert Dewar <dewar@adacore.com>
2599 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
2602 2007-06-06 Vincent Celier <celier@adacore.com>
2604 * a-tifiio.adb (Put, internal): For negative numbers, check that there
2605 is room for at least one digit and the minus sign.
2606 (Put.Put_Character): Never put a character outside of the range of
2609 2007-06-06 Olivier Hainque <hainque@adacore.com>
2610 Eric Botcazou <ebotcazou@adacore.com>
2612 * utils2.c (build_allocator): Provide the extra arguments to
2613 make_aligning_type for super-aligned objects allocated from the default
2614 pool. Leave enough room for a pointer before the aligning field, and
2615 store the system's allocator return value there.
2616 (build_call_alloc_dealloc): When releasing a super-aligned object,
2617 retrieve the system's allocator return value from where build_allocator
2618 has stored it, just ahead of the adjusted address we are passed.
2619 (build_call_raise): Handle properly the generation of line numbers when
2620 the node is marked No_Location.
2621 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
2622 by using DECL_UID on ties.
2623 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
2625 (build_call_raise): Handle converting exception into goto; support new
2627 (build_component_ref): Add new arg to build_call_raise.
2629 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2631 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
2632 "." in the case of nnn.xxx when nnn terminates with an underscore.
2633 Parse the remaining "#" or ":" in the case of nnn#.xxx#
2635 2007-06-06 Robert Dewar <dewar@adacore.com>
2637 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
2639 2007-06-06 Arnaud Charlet <charlet@adacore.com>
2640 Vincent Celier <celier@adacore.com>
2641 Robert Dewar <dewar@adacore.com>
2643 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
2645 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
2646 ((destructor)) for adafinal, even when switch -a is used.
2647 Do not issue pragma Linker_Destructor for adafinal when switch -a is
2649 (Gen_Object_Files_Options): Add formatting of Linker Options, when
2650 Output_Linker_Option_List is set. Suppress this formatting when
2651 Zero_Formatting is set.
2652 Add case for CLI_Target.
2653 (System_Restrictions_Used): New flag, used to avoid generating with of
2654 System_Restrictions and initialization of the data unless there is
2655 some use of System.Restrictions in the partition.
2656 (Check_System_Restrictions_Used): New procedure
2658 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
2659 since we only with this unit in the binder file if it is used elsewhere
2662 2007-06-06 Vincent Celier <celier@adacore.com>
2664 * bindusg.adb: Add line for @<response file>
2665 Add lines for new switches -R and -Z
2667 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
2668 hierarchy in the list of files of the closure when -R is used
2669 (Gnatbind): Accept arguments starting with '@' to indicate response
2670 files and take the arguments from the response files.
2671 If List_Closure is set, display the referenced files
2673 2007-06-06 Javier Miranda <miranda@adacore.com>
2674 Robert Dewar <dewar@adacore.com>
2675 Ed Schonberg <schonberg@adacore.com>
2677 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
2678 which the address-clause is applied to in-mode actuals (allowed by
2680 (Apply_Discriminant_Check): Do not generate a check if the type is
2681 constrained by a current instance.
2682 (Activate_Division_Check): New procedure
2683 (Activate_Overflow_Check): New procedure
2684 (Activate_Range_Check): New procedure
2685 Call these new Activate procedures instead of setting flags directly
2686 (Apply_Array_Size_Check): Removed, no longer needed.
2687 Code clean up: remove obsolete code related to GCC 2.
2688 (Get_E_Length): Protect against bomb in case scope is standard
2689 (Selected_Range_Checks): If the node to be checked is a conversion to
2690 an unconstrained array type, and the expression is a slice, use the
2691 bounds of the slice to construct the required constraint checks.
2692 Improve NOT NULL error messages
2693 (Apply_Constraint_Check): If the context is a null-excluding access
2694 type, diagnose properly the literal null.
2696 2007-06-06 Pascal Obry <obry@adacore.com>
2698 * clean.adb (Clean_Archive): Use untouched casing for the archive name
2699 and the corresponding .deps file.
2700 (Clean_Interface_Copy_Directory): Use untouched casing for the library
2701 src directory. Minor code-clean-up. Use untouched casing for files
2702 read into the library src dir.
2703 (Clean_Library_Directory): Idem.
2704 (Parse_Cmd_Line): Accept new switch -aP
2706 2007-06-06 Javier Miranda <miranda@adacore.com>
2707 Ed Schonberg <schonberg@adacore.com>
2708 Robert Dewar <dewar@adacore.com>
2709 Eric Botcazou <ebotcazou@adacore.com>
2710 Arnaud Charlet <charlet@adacore.com>
2712 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
2713 applicable to types that have the With_Type flag set. Returns the
2714 non-limited view of the type, if available, otherwise the type itself.
2715 For class-wide types, there is no direct link in the tree, so we have
2716 to retrieve the class-wide type of the non-limited view of the Etype.
2717 New attributes Static_Initialization and Static_Elaboration_Desired.
2718 Remove the pragma Thread_Body, and the associated flag
2719 Is_Thread_Body in entities, and all related code.
2720 (Suppress_Value_Tracking_On_Call): New flag
2721 E_Exception has Esize and Alignment fields
2722 (Universal_Aliasing): New function.
2723 (Set_Universal_Aliasing): New procedure.
2724 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
2725 (Check_Nested_Access): New procedure.
2726 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
2727 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
2728 (Related_Interface): New attribute. Present in dispatch table pointer
2729 components of records. Set to point to the entity of the corresponding
2731 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
2732 (Original_Access_Type): Remove, not needed.
2733 (Root_Type): Handle properly subtypes of class-wide-types.
2736 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
2737 class-wide types visible through limited-with clauses.
2738 (Try_Primitive_Operation): When examining all primitive operations of a
2739 tagged type, do not consider subprograms labeled as hidden unless they
2740 belong to a private generic type with a tagged parent.
2741 (Try_Object_Operation): Extensive rewriting, to handle properly various
2742 overloading cases, when several ancestors may have class-wide operations
2743 that are possible candidates, and when the overloaded functions return
2744 array types and have defaulted parameters so that the call may be
2745 interpreted as an indexing.
2746 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
2747 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
2748 successive actuals before analyzing the call itself.
2749 (Try_Primitive_Operation): A primitive operation is compatible with the
2750 prefix if the prefix has a synchronized type and the type of the formal
2751 is its corresponding record, as can be the case when the primitive
2752 operation is declared outside of the body of the type.
2753 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
2754 perform homonym traversal, looking for class-wide operation matches
2755 (formerly done in statements of Try_Class_Wide_Operation). Matches on
2756 access parameters are now restricted to anonymous access types.
2757 (Mark_Allocator): An allocator with a discriminant association parent is
2759 (Try_One_Prefix_Interpretation): If the type of the object is
2760 incomplete, as can be happen when it is a limited view obtained through
2761 a limited_with_clause, the selected component is not part of a prefixed
2763 (Complete_Object_Operation): Diagnose properly an object that is not
2764 aliased when the corresponding controlling formal is an access
2766 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
2767 ambiguous calls in prefixed notation, where two primitives differ only
2768 in that the controlling argument of one is an access parameter.
2770 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
2771 whether a function that returns an unconstrained type can be inlined.
2772 (Process_Formals): Diagnose properly the illegal use of an incomplete
2773 type in the profile of an access_to_subprogram declaration.
2774 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
2775 operations are attached to the corresponding record.
2776 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
2777 When processing a primitive of a concurrent type which implements an
2778 interface change the type of all controlling formals to that of the
2779 corresponding record type.
2780 (Check_Synchronized_Overriding): Relax the conditional logic when trying
2781 to determine the tagged type to which a primitive belongs.
2782 (Check_Conventions): Capture condition to ignore a primitive operation
2783 (which is shared between the loop in Check_Conventions and the one in
2784 Check_Convention) in a new local function Skip_Check.
2785 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
2786 confusion with Check_Conventions' own Prim_Op local variable.
2787 (Create_Extra_Formals): Test for a tagged result type rather than a
2788 controlling result when determining whether to add a BIP_Alloc_Form
2789 formal and a BIP_Final_List formal to the function.
2790 (Check_Conformance); For parameters that are anonymous access types,
2791 subtype conformance requires that the not null and the constant
2792 indicators must match
2793 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
2794 to retrieve the appropriate type when processing a concurrent type
2795 declared within a generic. Minor comment reformatting. Change invocation
2796 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
2798 (Analyze_Subprogram_Body): If the return type of a function is an
2799 anonymous access to the limited view of a class-wide type, and the
2800 non-limited view of the type is available, update the type of the
2801 function so that code can be generated.
2802 (Process_Formals): In case of access-subtype itype whose designated
2803 type is also an itype (situation that happens now with access to
2804 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
2805 attribute to avoid backend problems.
2806 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
2807 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
2808 anonymous types' designated types are same before testing
2809 Subtypes_Statically_Match.
2810 (Create_Extra_Formals): Test for a named access parameter that is a
2811 controlling formal as an additional condition for adding an
2812 accessibility level formal. This can occur in the subp type created for
2813 dispatching calls in Expand_Dispatching_Call, and allows calling
2814 Create_Extra_Formals from that procedure rather than special-casing the
2815 extra formals there.
2816 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
2817 when the function has a controlling result.
2818 (Check_Returns): Add much more knowledge of the optimization of local
2819 raise statements to gotos, to retain proper warnings in this case.
2820 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
2821 nodes when looking for last statement.
2823 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
2824 class-wide types visible through limited with clauses.
2825 (Add_One_Interp): If the operands are anonymous access types, the
2826 predefined operator on universal_access is immediately visibles
2827 (Find_Unique_Type): Handle anonymous access to subprogram types just as
2828 other anonymous access types.
2829 (Disambiguate): Take into account CIL convention.
2830 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
2832 2007-06-06 Robert Dewar <dewar@adacore.com>
2834 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
2835 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
2836 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
2837 Fix lower bound of tables.
2840 * nlists.adb: Ditto.
2841 (Prev_Node, Next_Node): Change index type to Int so that it properly
2842 covers the range First_Node_Id - 1 up.
2844 2007-06-06 Javier Miranda <miranda@adacore.com>
2845 Ed Schonberg <schonberg@adacore.com>
2846 Bob Duff <duff@adacore.com>
2847 Hristian Kirtchev <kirtchev@adacore.com>
2849 * exp_aggr.ads, exp_aggr.adb:
2850 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
2851 in extension aggregates.
2852 (Flatten): Other conditions being met, an aggregate is static if the
2853 low bound given by component associations is different from the low
2854 bound of the base index type.
2855 (Packed_Array_Aggregate_Handled): If the component type is itself a
2856 packed array or record, the front-end must expand into assignments.
2857 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
2858 Init_Pr, instead of Ancestor_Is_Expression.
2859 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
2860 coextension chain root, either generate a list controller or use the
2861 already existing one.
2862 (Static_Array_Aggregate): New procedure to construct a positional
2863 aggregate that can be handled by the backend, when all bounds and
2864 components are compile-time known constants.
2865 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
2866 types covering interface types into assignments.
2867 (Replace_Type): move to Build_Record_Aggr_Code.
2868 (Expand_Record_Aggr_Code): if the target of the aggregate is an
2869 interface type, convert to the definite type of the aggregate itself,
2870 so that needed components are visible.
2871 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
2872 components and the context is an extended return statement do not
2873 create a transient block for it, to prevent premature finalization
2874 before the return is executed.
2875 (Gen_Assign): Do not generate a call to deep adjust routine if the
2876 component type is itself an array of controlled (sub)-components
2877 initialized with an inner aggregate.
2878 (Component_Check): New name for Static_Check. This name is now more
2879 appropriate, and documentation is added which was missing.
2880 (Component_Check): Add test for bit aligned component value
2881 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
2882 Tagged_Comps, name is more appropriate given added function below.
2883 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
2885 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2886 Javier Miranda <miranda@adacore.com>
2887 Robert Dewar <dewar@adacore.com>
2889 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
2890 Terminated: Add unchecked type conversion from System.Address to
2891 System.Tasking.Task_Id when calling the predefined primitive
2893 Disable new Ada 05 accessibility check for JVM.NET targets, which
2894 cannot be implemented in a practical way.
2895 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
2896 the sources always references the tag of the actual object. Therefore,
2897 if 'Tag is applied in the sources to class-wide interface objects we
2898 generate code that displaces "this" to reference the base of the object.
2899 (Expand_N_Attribute_Reference, case Size): Return specified size if
2901 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
2902 has code that displaces the pointer of the object to manage interface
2903 types. However this code must not be executed when the prefix is a
2904 subprogram. This bug caused the wrong expansion of the internally
2905 generated assignment that fills the dispatch table when the primitive
2906 is a function returning a class-wide interface type.
2907 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
2908 Set_Attribute_Name for Name_Unaligned_Valid.
2910 2007-06-06 Ed Schonberg <schonberg@adacore.com>
2911 Gary Dismukes <dismukes@adacore.com>
2913 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
2914 If the initialization is the equivalent aggregate of the initialization
2915 procedure of the type, do not remove it.
2916 (Expand_N_Attribute_Definition_Clause): Exclude access variables
2917 initialized to null from having their expression reset to empty and
2918 note this exception in the comment.
2920 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
2921 Robert Dewar <dewar@adacore.com>
2922 Ed Schonberg <schonberg@adacore.com>
2923 Gary Dismukes <dismukes@adacore.com>
2925 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
2926 Add "with" and "use" clauses for Sem_Attr.
2927 (Expand_Current_Value): Do not replace occurences of attribute
2928 references where the prefix must be a simple name.
2930 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
2931 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
2932 Attribute_Requires_Simple_Name_Prefix.
2933 (Name_Modifies_Prefix): Body of new function.
2934 (Requires_Simple_Name_Prefix): Body of new function.
2935 (Resolve_Attribute, case Access): Improve error message for case of
2936 mismatched conventions.
2937 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
2939 (Analyze_Attribute, case 'Access): If the type of the prefix is a
2940 constrained subtype for a nominal unconstrained type, use its base type
2941 to check for conformance with the context.
2942 (Resolve_Attribute): Remove test of the access type being associated
2943 with a return statement from condition for performing accessibility
2944 checks on access attributes, since this case is now captured by
2945 Is_Local_Anonymous_Access.
2946 (Analyze_Access_Attribute): Set Address_Taken on entity
2947 (Analyze_Attribute, case Address): Set Address_Taken on entity
2948 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
2949 validating an access attribute whose prefix is a current instance.
2950 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
2951 applied to dispatching operations, if freezing is required then we set
2952 the attribute Has_Delayed_Freeze in the prefix's entity.
2953 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
2954 current scope if access of local subprogram taken
2955 (Analyze_Access_Attribute): Check legality of self-reference even if the
2956 expression comes from source, as when a single component association in
2957 an aggregate has a box association.
2958 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
2959 the prefix if it is a protected operation and the attribute is
2960 Unrestricted_Access.
2961 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
2962 reference to the base type of the context, to force a constraint check
2963 when the context is an access subtype with an explicit constraint.
2964 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
2965 node is rewritten as an interface conversion. leave unanalyzed after
2966 resolution, to ensure that type checking against the context will take
2969 2007-06-06 Ed Schonberg <schonberg@adacore.com>
2970 Javier Miranda <miranda@adacore.com>
2971 Robert Dewar <dewar@adacore.com>
2973 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
2974 wrapper when the full view of the controlling type of an inherited
2975 function that dispatches on result implements interfaces.
2976 (Expand_N_Object_Declaration): In cases where the type of the
2977 declaration is anonymous access, create finalization list for it.
2978 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
2979 if the object has no explicit initialization, to match description of
2980 functionality of pragam Persistent_BSS.
2981 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
2982 new function to build static aggregates, to replace initialization call
2983 when static initialization is desired.
2984 (Freeze_Type): Generate a list controller for an access type whenever
2985 its designated type has controlled anonymous access discriminants.
2986 (Build_Equivalent_Aggregate): New procedure to compute a static
2987 aggregate to be used as default initialization for composite types,
2988 instead of a generating a call to the initialization procedure for the
2990 (Build_Initialization_Call): When available, replace a call to the
2991 initialization procedure with a copy of the equivalent static aggregate
2993 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
2994 declarations for objects of a class-wide interface type, rather than
2995 just identifiers, to prevent visibility problems.
2996 (Expand_N_Object_Declaration): When expanding the declaration for an
2997 object of a class-wide interface type, preserve the homonym chain of
2998 the original entity before exchanging it with that of the generated
2999 renaming declaration.
3000 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
3001 active, because there is no way to handle the exception.
3002 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
3003 to do a minimum decoration of the Access_Disp_Table list.
3004 (Expand_Record_Controller): Avoid the addition of the controller between
3005 the component containing the tag of a secondary dispatch table and its
3006 adjacent component that stores the offset to the base of the object.
3007 This latter component is only generated when the parent type has
3008 discriminants ---documented in Add_Interface_Tag_Components).
3009 (Apply_Array_Size_Check): Removed, no longer needed.
3010 (Expand_N_Full_Type_Declaration): If the type has anonymous access
3011 components, create a Master_Entity for it only if it contains tasks.
3012 (Build_Init_Procedure): Suppress the tag assignment compiling under
3014 (Freeze_Record_Type): Remove code associated with creation of dispatch
3016 (Init_Secondary_Tags): Update type of actuals when generating calls to
3017 Ada.Tags.Set_Offset_To_Top
3018 (Stream_Operation_OK): Disable use of streams compiling under no
3020 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
3021 if Has_Init_Expression set.
3022 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
3023 Register_Primitive, which provides the same functionality.
3024 (Requires_Init_Proc): Return false in case of interface types.
3025 (Add_Secondary_Tables): Use the new attribute Related_Interface to
3027 (Predefined_Primitive_Freeze): Do not assume that an internal entity
3028 is always associated with a predefined primitive because the internal
3029 entities associated with interface types are not predefined primitives.
3030 Therefore, the call to Is_Internal is replaced by a call to the
3031 function Is_Predefined_Dispatching_Operation.
3032 (Make_Eq_If): When generating the list of comparisons for the
3033 components of a given variant, omit the controller component that is
3034 present if the variant has controlled components.
3036 2007-06-06 Javier Miranda <miranda@adacore.com>
3037 Hristian Kirtchev <kirtchev@adacore.com>
3038 Bob Duff <duff@adacore.com>
3040 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
3041 handle the creation of finalization lists and calls for nested
3042 coextensions when the root of the chains is part of a return statement.
3043 (Inside_A_Return_Statement): New function inside Complete_Coextension_
3045 (Expand_Record_Equality): Skip components that are interface types.
3046 (Displace_Allocator_Pointer): Add missing support for interface subtypes
3047 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
3048 with Rewrite_Coextension. Change the condition for detecting coextension
3050 (Is_Local_Access_Discriminant): Removed.
3051 (Rewrite_Coextension): New routine which rewrites a static coextension
3052 as a temporary and uses its unrestricted access in the construction of
3054 (Complete_Coextension_Finalization): New routine. Generate finalization
3055 attachment calls to all delayed coextensions.
3056 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
3057 the allocator is not a coextension itself and has delayed coextensions.
3058 If the current allocator is controlled, but also a coextension, delay
3059 the generation of the finalization attachment call.
3060 Rename local variable "Node" to "Nod" in order to avoid confusion with
3062 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
3063 limited types that are not inherently limited. Such an allocator is
3064 illegal, but is generated by the expander for a return statement, to
3065 copy the result onto the secondary stack. This is the only case where a
3066 limited object can be copied. Generate code to displace the pointer
3067 to the object if the qualified expression is a class-wide interface
3068 object. Such displacement was missing and hence the copy of the object
3070 (Apply_Accessibility_Check): Handle allocated objects initialized in
3072 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
3073 and Expand_Allocator_Expression. Allocating class-wide interface objects
3074 this routine displaces the pointer to the allocated object to reference
3075 the component referencing the corresponding secondary dispatch table.
3076 Expand_Allocator_Expression): Add missing support to allocate class-wide
3077 interface objects initialized with a qualified expression.
3078 (Get_Allocator_Final_List): Test for an anonymous access type that is a
3079 function result type, and use the finalization list associated with the
3080 function scope in that case (such an anonymous type should not be
3081 treated like an access parameter's type).
3083 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3084 Gary Dismukes <dismukes@adacore.com>
3085 Javier Miranda <miranda@adacore.com>
3087 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
3088 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
3089 required exception handler.
3090 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
3091 properly the case of a function whose return type is a limited
3092 class-wide interface type. Modify the code of the accessibility
3093 check to handle class-wide interface objects. In this case we need to
3094 displace "this" to reference the primary dispatch table to get access
3095 to the TSD of the object (to evaluate its accessibility level).
3096 (Expand_N_Extended_Return_Statement): Test for a tagged result type
3097 rather than a controlling result as one of the conditions for
3098 generating tests of the implicit BIP_Alloc_Form formal. The
3099 initialization assignment is also handled according to whether the
3100 result is tagged instead of controlling.
3101 In the case where the init assignment is inserted in the "then" part of
3102 the allocation conditional, rewrite the target to be a dereference of
3103 the implicit BIP_Object_Access formal.
3104 If the returned value is unconstrained and created on the secondary
3105 stack, mark the enclosing block and function so that the secondary
3106 stack is not reclaimed on return.
3107 Treat returns from functions with controlling results similarly to
3108 returns from functions with unconstrained result subtypes.
3109 If the object returned is unconstrained, and an allocator must be
3110 created for it, analyze the allocator once the block for the extended
3111 return is installed, to ensure that finalizable components
3112 of the expression use the proper finalization list. Guard the call to
3113 Move_Final_List with a check that there is something to finalize.
3114 (Make_Tag_Ctrl_Assignment): Use "old" handling
3115 of controlled type assignment for virtual machines, since new code uses
3116 unsupported features (such as direct access to bytes in memory).
3118 2007-06-06 Gary Dismukes <dismukes@adacore.com>
3119 Ed Schonberg <schonberg@adacore.com>
3121 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
3122 accessibility actual, check for the case of an aliased object that has
3123 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
3124 we fall into processing for the attribute rather than the name of the
3126 (Expand_Inline_Call): If an actual is a literal, and the corresponding
3127 formal has its address taken in the body, create a temporary to capture
3128 value. If the return type is a limited interface, do not treat the
3129 return value as Controlled.
3130 (Is_In_Place_Function): If the return type is a limited interface,
3131 treat as returning in place. The actual returned object may not always
3132 be limited, but the caller has to assume that it is returned in place.
3133 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
3134 context of an allocator, use the correct finalization chain (that is,
3135 the chain belonging to the access type, rather than the chain belonging
3136 to the current scope).
3137 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
3138 result type rather than a controlling result as a precondition for
3139 adding an allocation form actual to a build-in-place call.
3140 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
3141 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
3142 primitive in the dispatch tables. This work is now done by Make_DT when
3144 (Register_Predefined_DT_Entry): Removed.
3145 (Add_Return): If end label is not present, use sloc of last statement
3146 for generated return statement in procedure, for better gdb behavior
3148 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
3149 object address nodes to ensure proper processing by routines like
3151 (Expand_Call): Fix generation of validity check for parameter
3152 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
3153 the allocation form parameter if the result subtype is constrained,
3154 except when the function has a controlling result.
3155 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
3156 rather than Is_Controlled and Has_Controlled_Component, since we want to
3157 include class-wide result types in this treatment. Also test for a
3158 controlling result, since that also requires passing a finalization
3160 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
3161 even when the result subtype is constrained, to handle calls involving
3162 controlling results.
3163 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
3164 is now called even when the result subtype is constrained, to handle
3165 calls involving controlling results.
3166 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
3167 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
3168 now performs the test).
3169 (Make_Build_In_Place_Call_In_Object_Declaration):
3170 Add_Alloc_Form_Actual_* is now called even when the result subtype is
3171 constrained, to handle calls involving controlling results.
3172 (Add_Return): Accomodate rewritten pattern from local raise to goto
3173 transformation, so that we still recognize an transfer statement
3174 and do the right thing here in that case.
3175 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
3176 and end of subprogram code.
3177 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
3178 support for primitives that are functions (without formals) with a
3180 (Inherited_From_Formal): If the actual subtype has not generic parent
3181 type, it is not an actual for a formal derived type, and there is no
3182 operation to inherit from the formal.
3184 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3185 Thomas Quinot <quinot@adacore.com>
3187 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
3188 inserted cleanup code appropriately for GDB use.
3189 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
3190 exception handler for Deep_Adjust or Deep_Finalize.
3191 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
3192 Raise_From_Controlled_Operation is available, use a call to that
3193 subprogram instead of a plain "raise Program_Error" node to raise
3194 Program_Error if an exception is propagated from an Adjust or Finalize
3196 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
3197 appears in the optional statement list of a triggering alternative, the
3198 scope actions can be inserted directly there, and not in the list that
3199 includes the asynchronous select itself.
3201 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3202 Robert Dewar <dewar@adacore.com>
3203 Hristian Kirtchev <kirtchev@adacore.com>
3205 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
3206 generated exception handler appropriately when debugging generated code.
3207 Deal properly with No_Exception_Propagation restriction mode.
3208 (Expand_N_Abort_Statement): Add an unchecked type conversion from
3209 System.Address to System.Tasking.Task_Id when processing the result of
3210 the predefined primitive _disp_get_task_id.
3211 (Expand_N_Asynchronous_Select): Clarify comment.
3212 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
3213 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
3214 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
3215 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
3216 privals and for generated call to Complete_Entry_Body, for better gdb
3218 (Copy_Result_Type): Utility to construct a parameter and result profile
3219 for protected functions whose return type is an anonymous access to
3221 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
3223 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
3224 point when the local-raise-to-goto transformation has taken place.
3226 2007-06-06 Javier Miranda <miranda@adacore.com>
3227 Nicolas Setton <setton@adacore.com>
3229 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
3230 functionality when the backend is generating code.
3231 Otherwise any serious error
3232 reported by the backend calling the frontend routine Error_Msg
3233 changes the Compilation_Mode to Check_Semantics, disables the
3234 functionality of this routine and causes the generation of
3235 spureous additional errors.
3237 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
3238 debugging information now generated by the compiler for fat-pointer
3240 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
3242 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
3244 2007-06-06 Thomas Quinot <quinot@adacore.com>
3246 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
3247 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
3248 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
3249 For a remote call to a function with a classwide return type, apply an
3250 E.4(18) check to the returned value.
3251 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
3252 stream attributes of the designated type of an RACW, as they are not
3253 dispatching primitive operations.
3255 2007-06-06 Geert Bosch <bosch@adacore.com>
3257 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
3259 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
3261 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
3262 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
3264 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
3266 2007-06-06 Javier Miranda <miranda@adacore.com>
3268 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
3269 attribute compiling package Ada.Tags under No_Run_Time_Mode.
3271 2007-06-06 Javier Miranda <miranda@adacore.com>
3273 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
3274 deallocation of class-wide interface objects.
3275 (Expand_Dispatching_Constructor_Call): Take into account that if the
3276 result of the dispatching constructor is an interface type, the
3277 function returns a class-wide interface type; otherwise the returned
3278 object would be actual. The frontend previously accepted returning
3279 interface types because Expand_Interface_Actuals silently performed
3280 the management of the returned type "as if" it were a class-wide
3282 (Expand_Dispatching_Constructor_Call): Replace call to
3283 Make_DT_Access_Action by direct call to Make_Function_Call.
3285 2007-06-06 Robert Dewar <dewar@adacore.com>
3286 Ed Schonberg <schonberg@adacore.com>
3288 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
3289 compute masking constant, since we now set Esize properly to the
3291 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
3292 to match the alignment.
3293 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
3294 packed arrays of 8 bits or less.
3296 * freeze.adb (Freeze_Entity): When freezing the formals of a
3297 subprogram, freeze the designated type of a parameter of an access type
3298 only if it is an access parameter.
3299 Increase size of C convention enumeration object
3300 (Freeze_Entity, array type case): Make sure Esize value is properly
3301 adjusted for the alignment if it is known.
3302 (Freeze_Entity, array type case): When checking bit packed arrays for
3303 the size being incorrect, check RM_Size, not Esize.
3304 (Freeze_Record_Type): Check for bad discriminated record convention
3305 (In_Exp_Body): Return true if the body is generated for a subprogram
3306 renaming, either an attribute renaming or a renaming as body.
3307 (Check_Itype): If the designated type of an anonymous access component
3308 is a non-protected subprogram type, indicate that it is frozen, to
3309 prevent out-of-scope freeze node at some subsequent call.
3310 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
3311 only if the subprogram is neither imported nor exported, as well as the
3312 NCA descriptor class if the subprogram is exported.
3314 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3315 Arnaud Charlet <charlet@adacore.com>
3316 Robert Dewar <dewar@adacore.com>
3317 Gary Dismukes <dismukes@adacore.com>
3319 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
3320 default initialization on an imported object, when there is no
3321 initialization call generated for it.
3322 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
3325 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
3326 Static_Elaboration_Desired.
3327 Remove pragma Thread_Body.
3328 Implement a new pragma No_Body
3329 Removes the Explicit_Overriding pragma
3330 Remove Optional_Overriding pragma
3331 (Prag): Deal with Universal_Aliasing.
3332 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
3333 Pragma_CIL_Constructor): New names.
3335 * sem_cat.adb (Validate_Object_Declaration): An initialization that
3336 uses the equivalent aggregate of a type must be treated as an implicit
3338 (Get_Categorization): Check a unit for pragma Preelaborate only if it
3339 has none of the other categories.
3340 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
3341 to apply Import to an object renaming declaration.
3343 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
3344 from a C++ class should be declared as limited and that it will be
3345 considererd limited.
3346 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
3347 should be declared as limited and that it will be considererd limited.
3348 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
3349 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
3350 (Analyze_Pragma): Deal with Universal_Aliasing.
3351 (Sig_Flags): Likewise.
3352 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
3353 (Overflow_Checks_Unsuppressed): New flag.
3354 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
3355 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
3356 case of JVM or .NET targets, and compiling user code.
3357 Add debugging convenience routine rv
3359 2007-06-06 Robert Dewar <dewar@adacore.com>
3361 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
3363 (Build_Elementary_Input_Call): For floating-point use right type in the
3364 absence of strange size or stream size clauses.
3365 (Build_Elementary_Write_Call): Same fix
3366 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
3367 set to value that does not match base type size.
3369 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3371 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
3372 object of a limited type can be initialized with a call to a function
3373 that returns in place. If the limited type has unknown discriminants,
3374 and the underlying type is a constrained composite type, build an actual
3375 subtype from the function call, as is done for private types.
3376 (Side_Effect_Free): An expression that is the renaming of an object or
3377 whose prefix is the renaming of a object, is not side-effect free
3378 because it may be assigned through the renaming and its value must be
3379 captured in a temporary.
3380 (Has_Controlled_Coextensions): New routine.
3381 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
3382 as is done for other limited types.
3383 (Non_Limited_Designated_Type): new predicate.
3384 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
3386 Remove all handling of with_type clauses.
3388 * par-ch10.adb: Remove all handling of with_type clauses.
3390 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
3391 checksum if the main source could not be parsed.
3392 (Loat_Unit): When processing a child unit, determine properly whether
3393 the parent unit is a renaming when the parent is itself a child unit.
3394 Remove handling of with_type clauses.
3396 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
3397 (Set_Is_Static_Coextension): New procedure.
3398 (Has_Local_Raise): New function
3399 (Set_Has_Local_Raise): New procedure
3400 (Renaming_Exception): New field
3401 (Has_Init_Expression): New flag
3402 (Delay_Finalize_Attach): Remove because flag is obsolete.
3403 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
3404 Remove all handling of with_type clauses.
3405 (Exception_Junk): Can now be set in N_Block_Statement
3407 2007-06-06 Vincent Celier <celier@adacore.com>
3408 Robert Dewar <dewar@adacore.com>
3410 * frontend.adb (Frontend): Return immediately if the main source could
3411 not be parsed, because of preprocessing errors.
3413 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
3414 (Gnat1drv): Exit with errors if the main source could not be parsed,
3415 because of preprocessing errors.
3416 (Check_Rep_Info): New procedure
3418 2007-06-06 Robert Dewar <dewar@adacore.com>
3420 * g-hesorg.ads, g-heasor.ads,
3421 g-busorg.ads, g-bubsor.ads: Update documentation
3422 GNAT.Heap/Bubble_Sort_G is now pure
3424 2007-06-06 Robert Dewar <dewar@adacore.com>
3426 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
3428 2007-06-06 Robert Dewar <dewar@adacore.com>
3429 Ed Schonberg <schonberg@adacore.com>
3431 * g-comlin.ads, g-comlin.adb:
3432 Add new warning for renaming of function return objects
3434 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
3435 (Tree_Read): Use size of object instead of type'object_size, since the
3436 latter is incorrect for packed array types.
3437 (Tree_Write): Same fix
3439 * opt.ads: Add new warning for renaming of function return objects
3440 (Generating_Code): New boolean variable used to indicate that the
3441 frontend as finished its work and has called the backend to process
3442 the tree and generate the object file.
3443 (GCC_Version): Is now private
3444 (Static_Dispatch_Tables): New constant declaration.
3445 (Overflow_Checks_Unsuppressed): New flag.
3446 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
3447 (List_Closure): New flag for gnatbind (-R)
3448 Zero_Formatting: New flag for gnatbind (-Z)
3449 (Special_Exception_Package_Used): New flag.
3450 (Warn_On_Unrepped_Components): New flag.
3452 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
3453 unit is a compilation unit, rather than relying on its scope, so that
3454 Standard can be renamed.
3455 (Analyze_Object_Renaming): Add new warning for renaming of function
3457 Also reject attempt to rename function return object in Ada 83 mode.
3458 (Attribute_Renaming): In case of tagged types, add the body of the
3459 generated function to the freezing actions of the type.
3460 (Find_Type): A protected type is visible right after the reserved word
3461 "is" is encountered in its type declaration. Set the entity and type
3462 rather than emitting an error message.
3463 (New_Scope): Properly propagate Discard_Names to inner scopes
3464 (Check_Nested_Access): New procedure.
3465 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
3466 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
3468 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
3469 Add new warning for renaming of function return objects
3470 (Check_References): Suppress warnings for objects whose type or
3471 base type has Warnings suppressed.
3472 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
3473 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
3475 2007-06-06 Vincent Celier <celier@adacore.com>
3476 Emmanuel Briot <briot@adacore.com>
3477 Olivier Hainque <hainque@adacore.com>
3479 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
3480 absolute value of Header.Block_Size when displaying the freed physical
3482 (Allocate): Compute Storage_Address using Integer_Address, not
3483 Storage_Offset, because the range of Storage_Offset may not be large
3485 (Configure): New parameter Low_Level_Traces
3486 (Allocate, Deallocation, Free_Physically): Added low-level traces
3487 (Configure): new parameter Errors_To_Stdout.
3488 (Output_File): new subprogram
3489 (Deallocate, Dereference): Send error messages to the proper stream
3490 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
3491 documented. Previous code would send it to the current output file
3492 defined in GNAT.IO, which might not be stdout
3493 (Is_Valid): Adjust comment to mention that a positive reply means that
3494 Header_Of may be used to retrieve the allocation header associated with
3495 the subprogram Storage address argument. Return False early if this
3496 address argument is misaligned.
3498 2007-06-06 Vincent Celier <celier@adacore.com>
3500 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
3502 (ASIS_Main): New global variable
3503 (Get_Closure): New procedure
3504 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
3505 check, metric or pretty. Call Get_Closure in this case.
3506 (Check_Files): For GNAT LIST, check all sources of all projects when
3507 All_Projects is True.
3508 (GNATCmd): Accept -U for GNAT LIST
3510 2007-06-06 Vincent Celier <celier@adacore.com>
3512 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
3514 Correct error message when invocation of the linker fails
3515 Add explicit size clause for the C imported variables
3516 Object_List_File_Supported and Using_GNU_Linker to emphasize that
3517 we expect char size.
3518 Read target parameters earlier, since this is needed to set
3519 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
3522 2007-06-06 Vincent Celier <celier@adacore.com>
3525 Add 3 spaces before the default project directory when displaying
3526 the project search path.
3527 Add new command line switch '-l' to display license information.
3529 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
3531 * gmem.c: Add support for timestamps on memory operations.
3533 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
3534 operations (not used currently, just foundation for future
3535 enhancements). Add possibility to perform full dump of gmem.out file.
3536 (Print_Back_Traces): Declare accesses to root arrays constants since
3537 they aren't modified.
3538 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
3540 2007-06-06 Vincent Celier <celier@adacore.com>
3542 * gnatsym.adb: Update Copyright notice
3543 (Parse_Cmd_Line): Accept new switch -D
3544 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
3547 * prj.ads (Policy): New policy Direct
3548 (Yes_No_Unknown): New enumeration type
3549 (Project_Data): New component Libgnarl_Needed
3551 * prj-nmsc.adb (Check_For_Source): When recording a source file make
3552 use the untouched pathname casing.
3553 (Get_Directories): Ensure that the Display_Exec_Directory is using the
3554 proper casing on non case-sensitive platforms like Windows.
3555 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
3556 on all platforms, as it is not possible to know which one is allowed
3557 before processing the project files.
3558 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
3559 specified when symbol policy is Direct. Check that when there is a
3560 symbol file defined (either by default or with attribute
3561 Library_Symbol_File) it is not the same as the reference symbol file.
3562 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
3563 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
3565 (Record_Ada_Source): Record a source that has been locally removed in an
3568 * symbols.ads (Policy): New policy Direct
3570 * symbols-vms.adb (Initialize): Take new policy Direct in case
3573 2007-06-06 Vincent Celier <celier@adacore.com>
3575 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
3576 Correct obvious bug (return Dir; instead of return Directory;).
3577 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
3579 2007-06-06 Thomas Quinot <quinot@adacore.com>
3581 * g-pehage.adb (Produce): Open output files in Binary mode, so that
3582 they have UNIX line endings (LF only) even on Windows, and thus pass
3583 all GNAT style checks.
3585 2007-06-06 Emmanuel Briot <briot@adacore.com>
3587 * g-regpat.adb (Quote): Fix improper quoting of '.'
3589 2007-06-06 Thomas Quinot <quinot@adacore.com>
3591 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
3592 default, set False on a per-runtime basis.
3593 (Need_Netdb_Buffer): New constant.
3595 * g-socket.ads, g-socket.adb: Import new package
3596 GNAT.Sockets.Thin.Task_Safe_NetDB.
3597 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
3598 binding to obtain proper message.
3599 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
3600 Replace various occurrences of Arry (Arry'First)'Address with the
3601 equivalent Arry'Address (GNAT always follows implementation advice from
3603 (Get_Host_By_Address, Get_Host_By_Name,
3604 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
3605 instead, rely on platform-specific task safe netdb operations provided
3608 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
3609 parameter Process_Blocking_IO.
3610 (Host_Error_Messages): Add stub body.
3611 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
3612 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
3613 Safe_Getservbyport): Move functions into new child package
3615 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
3616 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
3617 (In_Addr): Add alignment clause.
3619 2007-06-06 Robert Dewar <dewar@adacore.com>
3621 * g-trasym.ads, g-traceb.ads: Update list of supported targets
3622 Add note about symbolic traceback
3624 2007-06-06 Pascal Obry <obry@adacore.com>
3626 * hostparm.ads (Normalized_CWD): Use the host directory separator
3627 instead of the hardcoded forward slash which is not the proper
3628 character on Windows for example.
3631 2007-06-06 Vincent Celier <celier@adacore.com>
3632 Arnaud Charlet <charlet@adacore.com>
3634 * a-clrefi.adb, a-clrefi.ads: New files
3636 * impunit.adb: Add s-os_lib in the list of user visible units.
3637 (Non_Imp_File_Names_95): Add a-clrefi to this list
3638 Remove obsolete run-time entries.
3639 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
3640 "a-exetim" -- Ada.Execution_Time
3641 "a-extiti" -- Ada.Execution_Time.Timers
3643 * mlib-prj.ads, mlib-prj.adb
3644 (Build_Library): Use untouched object dir and library dir. At the
3645 same time makes sure that the checks are done using the canonical
3646 form. Removes hard-coded directory separator and use the proper host
3648 (Process_Project): Do not look in object directory to check if libgnarl
3649 is needed for a library, if there is no object directory.
3650 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
3652 (Build_Library): When invoking gnatbind, use a response file if the
3653 total size of the arguments is too large.
3655 * Makefile.rtl: (g-sttsne): New object file.
3656 Add entry for a-clrefi, s-utf_32, System.Exceptions
3658 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
3659 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
3660 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
3661 Change g-string to s-string, g-os_lib to s-os_lib
3662 Change all g-utf_32 references to s-utf_32
3664 2007-06-06 Tristan Gingold <gingold@adacore.com>
3665 Olivier Hainque <hainque@adacore.com>
3667 * init.c: Do not adjust IP of an imported VMS exception of ia64.
3668 LIB$STOP is called to raise an exception and the IP of the exception
3669 is the instruction right after the call.
3670 (__gnat_adjust_context_for_raise, AIX): Implement.
3671 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
3672 adjust_context_for_raise before Raise_From_Signal_Hanler.
3673 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
3674 siginfo is passed to the handler, necessary to let the zcx propagation
3675 engine unwind past it.
3677 2007-06-06 Olivier Hainque <hainque@adacore.com>
3679 * initialize.c (__gnat_initialize for vxworks): Update documentation
3680 on the ZCX support, using different sets of crtstuff objects than with
3683 2007-06-06 Robert Dewar <dewar@adacore.com>
3685 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
3687 (Layout_Type): Fix recomputation of size from alignment.
3689 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3690 Javier Miranda <miranda@adacore.com>
3692 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
3693 association in an instance.
3694 (Copy_Generic_Node): If the node is a string literal, no need to copy
3696 (Is_Generic_Formal): For a formal subprogram, the declaration is the
3697 grandparent of the entity.
3698 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
3699 to simplify handling of formal interfaces that derive from other formal
3701 (Instantiate_Subprogram_Body): The defining unit name of the body of
3702 the instance should be a defining identifier.
3703 (Install_Formal_Packages): make global to the package, for use in
3704 instantiations of child units.
3705 (Analyze_Package_Instantiation): Do not attempt to set information on an
3706 enclosing master of an entry when expansion is disabled.
3707 (Instantiate_Type): If the actual is a tagged synchronized type and the
3708 generic ancestor is an interface, create a generic actual for the
3709 corresponding record.
3710 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
3711 declaration, to ensure that the interface list is processed correctly.
3712 (Inline_Instance_Body): If enclosing scope is an instance body, remove
3713 its entities from visibiility as well.
3714 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
3715 given with a named association, analyze the expression only, not the
3716 discriminant association itself.
3717 (Reset_Entity): If the analysis of a selected component is transformed
3718 into an expanded name in the prefix of a call with parameters, do not
3719 transform the original node into an expanded name, to prevent visibility
3720 errors in the case of nested generics.
3721 (Check_Private_View): For an array type, check whether the index types
3722 may need exchanging.
3724 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3725 Vincent Celier <celier@adacore.com>
3727 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
3728 since both are separated.
3729 Add support for imported CIL packages.
3730 Add further special handling of "value_type" for CIL.
3731 Add special handling of pragma Import for CIL.
3733 * make.ads, make.adb: When switch -eS is used, direct all outputs to
3734 standard output instead of standard error, except errors.
3735 (Absolute_Path): Use untouched casing for the parent directory.
3736 (Add_Library_Search_Dir): Use the untouched directory name.
3737 (Add_Source_Search_Dir): Idem.
3738 (Change_To_Object_Directory): Update output to use proper casing.
3739 (Create_Binder_Mapping_File): Use the untouched filename to set
3741 (Gnatmake): Use untouched library and executable directory names.
3742 (Insert_Project_Sources): Use untouched filename for spec and body.
3743 (Is_In_Object_Directory): Use untouched object directory.
3744 (Mark_Directory): Idem.
3745 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
3746 contains the non-canonical filename in all cases.
3747 (Change_To_Object_Directory): In verbose mode, display the name of the
3748 object directory we're changing to.
3749 (Compile_Sources): Make sure, when a project file is used, to compile
3750 the body of the unit, when there is one, even when only the spec is
3751 recorded in an ALI file.
3752 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
3754 (Report_Compilation_Failed): New procedure
3755 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
3756 procedures moved from the spec to the body.
3757 (Extract_Failure): Removed, not used
3758 Replace explicit raises of exception Bind_Failed and Link_Failed with
3759 calls to Make_Failed with the proper message.
3760 Replace explicit raises of exception Compilation_Failed with calls to
3761 procedure Report_Compilation_Failed.
3762 (Initialize): Create mapping files unconditionally when using project
3765 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
3766 Pragma_CIL_Constructor): New names.
3768 * targparm.ads, targparm.adb
3769 (Compiler_System_Version): Removed, no longer used.
3770 (Get_Target_Parameters): Relax checks on system.ads validity. Add
3771 handling of two new system flags: JVM and CLI.
3773 2007-06-06 Jose Ruiz <ruiz@adacore.com>
3774 Arnaud Charlet <charlet@adacore.com>
3776 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
3777 time, use the default s-interr body that provides interrupt support
3779 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
3780 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
3781 g-soccon.ads, and s-taprop.adb for the marte run time.
3782 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
3783 timers are supported on marte.
3784 (EH_MECHANISM for marte): Do not use ZCX.
3785 (THREADSLIB for marte): Use -lmarte.
3786 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
3787 Add mlib-tgt-specific.o to gnatmake objects
3788 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
3790 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
3791 6, either kernel or rtp, use a specialized version of s-osinte.ads.
3793 2007-06-06 Pascal Obry <obry@adacore.com>
3795 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
3797 2007-06-06 Vincent Celier <celier@adacore.com>
3799 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
3800 separator, use instead the proper host directory separator.
3801 (Copy_ALI_Files): Make sure that an already existing ALI file in the
3802 ALI copy dir is writable, before doing the copy.
3804 * mlib-utl.ads, mlib-utl.adb:
3805 (Gcc): If length of command line is too long, put the list of object
3806 files in a response file, if this is supported by the platform.
3807 (Ar): If invocation of the archive builder is allowed to be done in
3808 chunks and building it in one shot would go above an OS dependent
3809 limit on the number of characters on the command line, build the archive
3812 2007-06-06 Vincent Celier <celier@adacore.com>
3814 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
3815 of specified object file is not equal to base name of source.
3817 2007-06-06 Javier Miranda <miranda@adacore.com>
3818 Hristian Kirtchev <kirtchev@adacore.com>
3819 Ed Schonberg <schonberg@adacore.com>
3821 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
3822 the full type declaration.
3823 (Analyze_Component_Declaration): Add local variable E to capture the
3824 initialization expression of the declaration. Replace the occurences of
3825 Expression (N) with E.
3826 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
3827 limited interface object with a function call.
3828 (Array_Type_Declaration): If the declaration lacks subtype marks for
3829 indices, create a simple index list to prevent cascaded errors.
3830 (Is_Null_Extension): Ignore internal components created for secondary
3831 tags when checking whether a record extension is a null extension.
3832 (Check_Abstract_Interfaces): Add missing support for interface subtypes
3833 and generic formals.
3834 (Derived_Type_Declaration): Add missing support for interface subtypes
3835 and generic formals.
3836 (Analyze_Object_Declaration): If an initialization expression is
3837 present, traverse its subtree and mark all allocators as static
3839 (Add_Interface_Tag_Component): When looking for components that may be
3840 secondary tags, ignore pragmas that can appear within a record
3842 (Check_Abstract_Overriding): an inherited function that dispatches on
3843 result does not need to be overriden if the controlling type is a null
3845 (Mentions_T): Handle properly a 'class attribute in an anonymous access
3846 component declaration, when the prefix is an expanded name.
3847 (Inherit_Component): If the derivation is for a private extension,
3848 inherited components remain visible and their ekind should not be set
3850 (Find_Type_Of_Object): In the case of an access definition, always set
3851 Is_Local_Anonymous_Access. We were previously not marking the anonymous
3852 access type of a return object as a local anonymous type.
3853 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
3854 range with character literal bounds.
3855 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
3856 (Access_Subprogram_Declaration): Indicate that the type declaration
3857 depends on an incomplete type only if the incomplete type is declared
3859 (Analyze_Subtype_Declaration): Handle properly subtypes of
3860 synchronized types that are tagged, and that may appear as generic
3862 (Access_Subprogram_Declaration): An anonymous access to subprogram can
3863 appear as an access discriminant in a private type declaration.
3864 (Add_Interface_Tag_Components): Complete decoration of the component
3865 containing the tag of a secondary dispatch table and the component
3866 containing the offset to the base of the object (this latter component
3867 is only generated when the parent type has discriminants --as documented
3869 (Inherit_Components): Use the new decoration of the tag components to
3870 improve the condition that avoids inheriting the components associated
3871 with secondary tags of the parent.
3872 (Build_Discriminanted_Subtype): Indicate to the backend that the
3873 size of record types associated with dispatch tables is known at
3875 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
3876 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
3877 to include task, protected, and synchronized interfaces as limited
3879 (Process_Discriminants): Remove the setting of
3880 Is_Local_Anonymous_Access on the type of (anonymous) access
3881 discriminants of nonlimited types.
3882 (Analyze_Interface_Type_Declaration): Complete the decoration of the
3883 class-wide entity it is is already present. This situation occurs if
3884 the limited-view has been previously built.
3885 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
3887 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
3890 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3892 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
3893 of the type that specify the position of interface tags when the type
3894 inherits discriminated array components from the parent type.
3895 If a component is initialized with a box, check for the presence of a
3896 default expression in its declaration before using its default
3897 initialization procedure.
3898 (Resolve_Record_Aggregate): If a component is box-initialized, and the
3899 component type has a discriminants, create a partial aggregate for it
3900 by copying the discriminants of the component subtype.
3901 Reject attempt to initialize a discriminant with a box.
3902 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
3903 associated with dispatch tables is known at compile time.
3904 (Get_Value): If an association in a record aggregate has a box
3905 association, and the corresponding record component has a default
3906 expression, always copy the default expression, even when the
3907 association has a single choice, in order to create a proper
3908 association for the expanded aggregate.
3910 2007-06-06 Ed Schonberg <schonberg@adacore.com>
3911 Robert Dewar <dewar@adacore.com>
3913 * par-ch12.adb (P_Generic_Associations): The source position of an
3914 Others association is that of the others keyword, not that of the token
3915 that follows the box.
3916 (P_Formal_Type_Definition): Handle formal access types that carry a
3919 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
3920 multiple identifier are present, save Scan_State before scanning the
3921 colon, to ensure that separate trees are constructed for each
3923 (P_Identifier_Declarations): For object declaration, set new flag
3924 Has_Init_Expression if initialization expression present.
3925 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
3926 Improve NOT NULL error messages
3928 2007-06-06 Robert Dewar <dewar@adacore.com>
3930 * par-ch4.adb: (P_Name): Recover from literal used as name
3932 2007-06-06 Vincent Celier <celier@adacore.com>
3934 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
3936 In the "not" case, recursive call with Complemented set to True.
3937 Do not allow "or" or "and" operators when Complemented is True.
3939 2007-06-06 Vincent Celier <celier@adacore.com>
3941 * prj.adb (Project_Empty): Gives default value for new component
3944 * prj-attr.ads: Minor reformatting
3946 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
3947 directory using the untouched casing.
3948 (For_All_Source_Dirs): Idem.
3950 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
3951 directories specified with switches -aP.
3952 (Add_Search_Project_Directory): New procedure
3953 (Initialize_Project_Path): Put the directories in table
3954 Search_Directories in the project search path.
3955 (Initialize_Project_Path): For VMS, transform into canonical form the
3958 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3960 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
3961 true if configurable run-time or No_Run_Time is set.
3962 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
3963 processing an unit which is not the one being compiled.
3965 2007-06-06 Arnaud Charlet <charlet@adacore.com>
3967 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
3968 Replace UC by Ada.UC
3970 * s-bitops.adb: Get rid of System.Pure_Exceptions.
3971 Replace UC by Ada.UC
3973 2007-06-06 Robert Dewar <dewar@adacore.com>
3975 * scng.adb: (Check_End_Of_Line): Deal with very long lines
3977 2007-06-06 Robert Dewar <dewar@adacore.com>
3979 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
3980 Remove no longer used nodes.
3982 2007-06-06 Javier Miranda <miranda@adacore.com>
3983 Ed Schonberg <schonberg@adacore.com>
3984 Robert Dewar <dewar@adacore.com>
3986 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
3987 on obsolescent withed unit in case of limited-withed units.
3988 (Analyze_Compilation_Unit): Add guard to code that removed an
3989 instantiation from visibility, to prevent compiler aborts when
3990 instantiation is abandoned early on.
3991 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
3992 current unit being analyzed, and Distinguish local incomplete types
3993 from limited views of types declared elsewhere.
3994 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
3995 to state that the class-wide entity is shared by the limited-view
3997 (Analyze_With_Clause): Improve placement of flag for case of
3999 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
4000 manner similar to GNAT.Current_Exception. This is a violation of
4001 restriction (No_Exception_Propagation), and also inhibits the
4002 optimization of local raise to goto.
4003 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
4004 and if so set Most_Recent_Exception_Used flag in Opt, and also check
4005 for violation of restriction No_Exception_Propagation.
4007 2007-06-06 Javier Miranda <miranda@adacore.com>
4008 Hristian Kirtchev <kirtchev@adacore.com>
4009 Gary Dismukes <dismukes@adacore.com>
4011 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
4012 use of entity Exception_Occurrence if it is not available in the
4015 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
4016 concurrent types are declared within an Ada 2005 generic, build their
4017 corresponding record types since they are needed for overriding-related
4019 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
4020 protected type does not implement a task interface or a nonlimited
4022 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
4023 type does not implement a protected interface or a nonlimited interface.
4024 (Single_Task_Declaration, Single_Protected_Declaration): use original
4025 entity for variable declaration, to ensure that debugging information
4026 is correcty generated.
4027 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
4028 routines if the expander is not active.
4029 (Analyze_Task_Body): Mark all handlers to stop optimization of local
4030 raise, since special things happen for task exception handlers.
4032 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
4033 concurrent types declared within a generic.
4034 (Check_Dispatching_Operation): Do not emit warning about late interface
4035 operations in the context of an instance.
4036 (Check_Dispatching_Call): Remove restriction against calling a
4037 dispatching operation with a limited controlling result.
4038 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
4039 Register_Interface_DT_Entry by calls to Register_Primitive.
4040 (Check_Dispatching_Formals): Handle properly a function with a
4041 controlling access result.
4043 2007-06-06 Robert Dewar <dewar@adacore.com>
4044 Arnaud Charlet <charlet@adacore.com>
4046 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
4047 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
4048 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
4049 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
4050 message when using a VM, since this attribute is not supported.
4051 (Analyze_Record_Representation_Clause): Give unrepped component warnings
4053 * usage.adb: Add new warning for renaming of function return objects
4054 Indicate that -gnatwp and -gnatwP concern front-end inlining
4055 Add line for -gnatyg
4056 Add usage information for -gnatw.c/C
4058 2007-06-06 Robert Dewar <dewar@adacore.com>
4059 Ed Schonberg <schonberg@adacore.com>
4062 (Find_Var): Do not consider function call in test for infinite loop
4063 warning if warnings set off for function entity.
4064 (One_Bound): Do not create a temporary for a loop bound if it is a
4066 (Analyze_Assignment): Traverse the right hand side of an assignment and
4067 mark all allocators as static coextensions.
4068 (Analyze_Assignment): Exempt assignments involving a dispatching call
4069 to a function with a controlling access result from the check requiring
4070 the target to be class-wide.
4072 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4073 Ed Schonberg <schonberg@adacore.com>
4074 Robert Dewar <dewar@adacore.com>
4075 Javier Miranda <miranda@adacore.com>
4077 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
4078 chain of coextensions when an allocator serves as the root of such a
4080 (Propagate_Coextensions): Remove the test for the root being an
4082 (Resolve_Allocator): Add condition to ensure that all future decoration
4083 occurs on an allocator node. Add processing and cleanup for static
4085 (Valid_Conversion): If the operand type is the limited view of a
4086 class-wide type, use the non-limited view is available to determine
4087 legality of operation.
4088 (Ambiguous_Character): move to spec, for use elsewhere.
4089 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
4090 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
4092 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
4093 Do_Division_Check flag explicitly.
4094 (Resolve_Actuals): If the actual is of a synchronized type, and the
4095 formal is of the corresponding record type, this is a call to a
4096 primitive operation of the type, that is declared outside of the type;
4097 the actual must be unchecked-converted to the type of the actual
4098 (Resolve_Call): Kill all current values for any subprogram call if
4099 flag Suppress_Value_Tracking_On_Call is set.
4100 (Resolve_Type_Conversion): Generate error message the the operand
4101 or target of interface conversions come from a limited view.
4102 (Check_Infinite_Recursion): Ignore generated calls
4103 (Check_Allocator_Discrim_Accessibility): New procedure for checking
4104 that an expression that constrains an access discriminant in an
4105 allocator does not denote an object with a deeper level than the
4106 allocator's access type.
4107 (Resolve_Allocator): In the case of an allocator initialized by an
4108 aggregate of a discriminated type, check that associations for any
4109 access discriminants satisfy accessibility requirements by calling
4110 Check_Allocator_Discrim_Accessibility.
4111 (Resolve_Equality_Op): Handle comparisons of anonymous access to
4112 subprogram types in the same fashion as other anonymous access types.
4113 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
4114 message that is not a continuation message.
4115 (Resolve_Type_Conversion): Add missing support for conversion to
4117 (Resolve_Actuals): Introduce a transient scope around the call if an
4118 actual is a call to a function returning a limited type, because the
4119 resulting value must be finalized after the call.
4120 (Resolve_Actuals): If the call was given in prefix notations, check
4121 whether an implicit 'Access reference or implicit dereference must be
4122 added to make the actual conform to the controlling formal.
4124 2007-06-06 Robert Dewar <dewar@adacore.com>
4125 Javier Miranda <miranda@adacore.com>
4127 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
4128 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
4129 overriding of an inherited private subprogram now there is no need to
4130 inherit its dispatching slot and reduce the size of the dispatch table.
4131 Set_All_DT_Position now ensures that the same slot is now assigned to
4132 both entities. This is required to statically build the dispatch table.
4133 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
4134 of calling Set_All_DT_Position to re-evaluate the position of the
4135 entries in the dispatch table. Such reevaluation is not desired if
4136 the tagged type is already frozen.
4138 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
4139 Gary Dismukes <dismukes@adacore.com>
4140 Robert Dewar <dewar@adacore.com>
4141 Javier Miranda <miranda@adacore.com>
4143 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
4144 reference acts as an lvalue when the attribute name modifies the prefix
4145 (Is_Coextension_Root): New routine.
4146 (Mark_Static_Coextensions): New routine.
4147 (Type_Access_Level): Revise code for checking the level of the
4148 anonymous access type of a return object.
4149 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
4150 (Matches_Prefixed_View_Profile): Remove the no longer necessary
4151 retrieval of the corresponding controlling record type.
4152 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
4153 concurrent types declared within a generic as well as class wide types.
4154 Emit a mode incompatibility error whenever a protected entry or routine
4155 override an interface routine whose first parameter is not of mode
4156 "out", "in out" or access to variable.
4157 (Overrides_Synchronized_Primitive): Rename to
4158 Find_Overridden_Synchronized_Primitive.
4159 (Collect_Interface_Components): New subprogram that collects all the
4160 components of a tagged record containing tags of secondary dispatch
4162 (Add_Global_Declaration): New procedure
4163 (Abstract_Interface_List): Handle properly the case of a subtype of a
4165 (Type_Access_Level): In the case of a type whose parent scope is a
4166 return statement, call Type_Access_Level recursively on the enclosing
4167 function's result type to determine the level of the return object's
4169 (Build_Elaboration_Entity): Build name of elaboration entity from the
4170 scope chain of the entity, rather than the unit name of the file name.
4171 (Check_Nested_Access): New procedure.
4172 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
4173 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
4174 (Get_Renamed_Entity): Utility routine for performing common operation
4175 of chasing the Renamed_Entity field of an entity.
4177 2007-06-06 Robert Dewar <dewar@adacore.com>
4179 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
4181 (Check_A_Call): Add check for entry call which was causing blowup
4183 2007-06-06 Olivier Hainque <hainque@adacore.com>
4185 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
4186 special code on ia64-vms to handle major incompatibilities between the
4187 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
4188 this routine with a very different set of arguments and expectations on
4191 2007-06-06 Thomas Quinot <quinot@adacore.com>
4193 * socket.c (__gnat_close_signalling_fd): New function.
4194 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
4195 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
4196 New supporting functions for task safe Netdb operations.
4198 2007-06-06 Thomas Quinot <quinot@adacore.com>
4199 Olivier Hainque <hainque@adacore.com>
4201 * a-except-2005.ads, a-except-2005.adb
4202 (Raise_From_Controlled_Operation): New procedure in
4203 (private part of) Ada.Exceptions (standard runtime version). Used to
4204 provide informational exception message when Program_Error is raised as
4205 a result of an Adjust or Finalize operation propagating an exception.
4206 (Rmsg_28): Fix description for E.4(18) check.
4207 (Raise_Current_Excep): Call Debug_Raise_Exception just before
4208 propagation starts, to let debuggers know about the event in a reliable
4210 Take the address of E and dereference to make sure it is homed on stack
4211 and prevent the stores from being deleted, necessary for proper
4212 debugger behavior on "break exception" hits.
4213 (Local_Raise): Moved to System.Exceptions
4215 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
4216 exception message from the current occurrence and raise Program_Error
4217 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
4219 2007-06-06 Jose Ruiz <ruiz@adacore.com>
4220 Arnaud Charlet <charlet@adacore.com>
4222 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
4225 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
4226 priority associated to a lock.
4228 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
4229 assertion to take into account case of no abort restriction.
4230 (Initialize_Protection_Entries): Add initialization for the field
4231 New_Ceiling associated to the protected object.
4232 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
4235 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
4236 since this function needs to be set consistently with Update_Exception.
4238 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
4239 since this function needs to be set consistently with Update_Exception.
4241 * s-taskin.ads: Update comments on
4242 Interrupt_Server_Blocked_On_Event_Flag.
4243 (Unbind_Handler): Fix handling of server_task wakeup
4244 (Server_Task): Set self's state so that Unbind_Handler can take
4245 appropriate actions.
4246 (Common_ATCB): Now use a constant from System.Parameters to determine
4247 the max size of the Task_Image field.
4249 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
4250 Initialize_Analyzer function.
4251 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
4252 take into account case of no abort restriction.
4253 ([Vulnerable_]Complete_Master): Modify assertion.
4255 * s-tataat.adb (Finalize): Use the nestable versions of
4256 Defer/Undefer_Abort.
4258 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
4260 * s-tpobop.ads: Update comments.
4262 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
4263 of locking the object manually, to avoid inconsistencies between
4264 Lock/Unlock_Entry assertions.
4266 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
4268 application and System.Parameters.No_Abort is True.
4269 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
4270 (Unbind_Handler): Fix handling of server_task wakeup
4271 (Server_Task): Set self's state so that Unbind_Handler can take
4272 appropriate actions.
4274 2007-06-06 Thomas Quinot <quinot@adacore.com>
4276 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
4277 declarations instead of an explicit null body, for conciseness.
4279 2007-06-06 Robert Dewar <dewar@adacore.com>
4281 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
4282 illegal aggregate and the type is still Any_Composite.
4283 (Subtypes_Statically_Match): Fix problem of empty discriminant list
4285 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4287 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
4288 to prevent subsequent expansion.
4290 2007-06-06 Robert Dewar <dewar@adacore.com>
4292 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
4294 2007-06-06 Ed Schonberg <schonberg@adacore.com>
4295 Robert Dewar <dewar@adacore.com>
4297 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
4299 (Write_Itype): Handle case of string literal subtype, which
4300 comes up in this context.
4301 (Update_Itype): when debugging expanded code, update sloc of itypes
4302 associated with defining_identifiers and ranges, for gdb use.
4303 (Sprint_Node_Actual): Add static keyword to object or exception
4304 declaration output if Is_Statically_Allocated is True.
4305 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
4306 or task body, so that the tree carries the proper Sloc information for
4308 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
4310 2007-06-06 Arnaud Charlet <charlet@adacore.com>
4312 * s-secsta.adb (Chunk): Ensure this object has a static size known at
4313 compile time, to avoid dynamic memory allocation
4314 (Elaboration code): Only use dynamic memory allocation when needed.
4316 2007-06-06 Quentin Ochem <ochem@adacore.com>
4318 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
4320 (Stack_Analyzer): Added field "Overflow_Guard"
4321 (Task_Result): Added field "Overflow_Guard".
4322 (Index_Str): New constant.
4323 (Task_Name_Str): New constant.
4324 (Actual_Size_Str): New constant.
4325 (Pattern_Array_Element_Size): New constant.
4326 (Get_Usage_Range): New subprogram.
4327 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
4328 Now align the output.
4330 (Initialize): Added value for Overflow_Guard.
4331 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
4332 Update the value of the overflow guard according to the actual
4333 beginning of the pattern array.
4334 (Initialize_Analyzer): Added parameter Overflow_Guard.
4335 Take this parameter into accound when computing the max size.
4336 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
4337 (Report_Result): Removed extra useless procedure.
4338 Updated call to Output_Result.
4339 Moved full computation of the Task_Result here.
4341 2007-06-06 Thomas Quinot <quinot@adacore.com>
4343 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
4344 Thread_Blocking_IO, always True by default, set False on a per-runtime
4346 Add Windows-specific constants
4347 Add new constant Need_Netdb_Buffer.
4348 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
4349 not, whether to use getXXXbyYYY_r.
4351 * gsocket.h: Add new constant Need_Netdb_Buffer.
4352 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
4353 not, whether to use getXXXbyYYY_r.
4355 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
4357 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
4358 than their first call.
4359 Add type Dummy_Communication_Block used in the generation of the pre-
4360 defined dispatching primitive _disp_asynchronous_select.
4361 (Storage_Element): Put Pragma Universal_Aliasing on it.
4363 2007-06-06 Vincent Celier <celier@adacore.com>
4365 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
4368 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
4369 letter if it is not followed by a '/' or a '\'.
4370 (Windows): New Boolean function
4372 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
4374 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
4376 (Containing_Directory): Raise Use_Error when the directory is a root
4378 (Extension): When returning the result, use a conversion to Result_Type,
4379 not a qualification.
4381 2007-06-06 Robert Dewar <dewar@adacore.com>
4383 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
4384 (Set_Style_Check_Options): Recognize new -gnatyg style switch
4386 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
4387 Warn_On_Non_Local_Exception to False, to turn off warnings for
4388 No_Exception_Propagation in ZFP runtime.
4389 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
4391 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
4393 2007-06-06 Vincent Celier <celier@adacore.com>
4395 * switch-b.adb (Scan_Binder_Switches): Add processing for new
4398 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
4399 (Scan_Make_Switches): Recognize new switch -aP
4401 2007-06-06 Matthew Gingell <gingell@adacore.com>
4402 Jose Ruiz <ruiz@adacore.com>
4404 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
4405 VxWorks task descriptor in the Ada run time, call a C subprogram
4406 (__gnat_get_stack_info) that extracts the required information.
4408 * sysdep.c: Back out temporary lynxos workaround.
4409 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
4410 time the stack information associated to the currently executing task.
4411 Only VxWorks systems require this function.
4413 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
4415 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
4416 add the stack bias if the offset is computed from a frame address.
4417 (__gnat_backtrace): Adjust for above change.
4419 2007-06-06 Thomas Quinot <quinot@adacore.com>
4421 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
4422 PE_Non_Transportable_Actual.
4423 (By_Descriptor_Last): New constant.
4424 (By_Copy_Return): Likewise.
4426 2007-06-06 Vincent Celier <celier@adacore.com>
4428 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
4431 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
4432 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
4433 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
4434 Add missing comment for /OPTIMIZE=SPACE
4435 Add entry for OPTIMIZE=SPACE
4436 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
4437 Add documentation for new qualifiers corresponding to -gnatw.c/.C
4439 2007-06-06 Vincent Celier <celier@adacore.com>
4440 Robert Dewar <dewar@adacore.com>
4442 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
4445 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
4446 Document gnatbind switch -a
4447 (case Constructions): Document that variables declarations are allowed
4448 for previously declared variables.
4449 Fix external lib project example
4450 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
4451 Indicate that "#if not X or Y then" is not allowed in input files to
4453 Document gnatw.x and gnatw.X warning flags
4454 Mention -Winline switch to activate warnings when back-end inlining is
4456 Add gnatcheck rule descriptions
4457 Describe how to use the GNAT driver to call a tool on a closure.
4458 Describe how to run project-wide checks or metrics.
4459 Document gnatbind's -R option
4460 Updated to account for Ada 2005 support
4462 * gnat_rm.texi (Case Construction): Allow variable declarations for
4463 previously declared variables.
4464 (Representation Clauses and Pragmas): Lift restriction on alignment
4465 clauses for record types.
4466 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
4467 Document No_Exception_Propagation restriction
4468 Document No_Body pragma
4469 Updated to account for Ada 2005 support; corrected some typos
4470 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
4472 * gnat-style.texi: Make it clear that we never use mode IN for
4473 procedures or functions
4475 * ug_words: Add entries for -gnatw.x and -gnatw.X
4476 Add entries for -gnatw.c/.C
4478 2007-06-06 Pascal Obry <obry@adacore.com>
4479 Vincent Celier <celier@adacore.com>
4481 * makegpr.adb (Add_Archive_Path): Use untouched object and library
4482 dirs and library name.
4483 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
4485 (Build_Library): Idem.
4486 (Compile_Individual_Sources): Idem.
4487 (Compile_Link_With_Gnatmake): Idem.
4488 (Compile_Sources): Idem.
4489 (Get_Imported_Directories): Idem.
4490 (Link_Executables): Idem. Same change for the executable dir.
4491 (Check_Compilation_Needed): C_Source_Path new variable containing
4492 the canonical form of Source_Path to check against the source names
4493 in the dependency file.
4494 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
4495 verbose mode, display the name of the object directory we're changing
4497 (Saved_Switches): New name of table X_Switches
4498 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
4499 (Usage): New line for switch -aP
4500 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
4501 testing if a directory should be added to the search path.
4503 2007-06-06 Javier Miranda <miranda@adacore.com>
4505 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
4506 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
4507 declaration after freezing point of all its associated tagged types;
4508 otherwise such types are frozen too early.
4510 2007-06-06 Robert Dewar <dewar@adacore.com>
4512 * a-reatim.adb: Documentation addition
4514 * g-cgideb.adb: Minor code reorganization
4516 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
4517 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
4518 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
4520 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
4521 function. Change name New_Scope to Push_Scope
4522 (Get_Debug_Flag_K): Remove unused obsolete function.
4524 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
4527 * makeusg.adb: Update Copyright notice
4528 Add line for switch -aP
4530 * makeusg.adb: Fix wording of some usage messages
4532 * s-assert.adb (Raise_Assert_Failure): Add call to
4533 Debug_Raise_Assert_Failure.
4535 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
4536 (2, Standard'Alignment) for compatibility with AAMP (where alignment
4537 is restricted to 1).
4539 * s-wchjis.adb: Remove use of System.Pure_Exceptions
4541 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
4542 node location to No_Location when we're not debugging the expanded
4545 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
4547 * misc.c (enumerate_modes): Consider log2_b to always be one.
4549 2007-05-14 Rafael Avila de Espindola <espindola@google.com>
4551 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
4553 2007-05-02 Pascal Obry <obry@adacore.com>
4555 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
4556 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
4557 encoding support of Stream_IO.
4560 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
4561 filename and corresponding encoding to match the OS requirement.
4562 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
4563 routine will fail on specific devices like CON: AUX: ...
4565 PR ada/29856: Add missing braces
4567 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
4570 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
4572 2007-04-21 Jan Hubicka <jh@suse.cz>
4574 * misc.c (gnat_expand_body): Don't call target for destructors,
4575 avoid redundant check on syntax errors.
4577 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
4579 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
4580 instead of checking GIMPLE_STMT_P in chain_next.
4582 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
4585 * system-linux-alpha.ads: Disable constant condition warning for the
4586 Default_Bit_Order variable.
4587 * system-linux-s390.ads: Likewise.
4588 * system-linux-s390x.ads: Likewise.
4589 * system-linux-sparc.ads: Likewise.
4591 2007-04-06 Javier Miranda <miranda@adacore.com>
4592 Matt Heaney <heaney@adacore.com>
4593 Robert Dewar <dewar@adacore.com>
4595 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
4596 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
4597 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
4598 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
4599 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
4600 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
4601 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
4602 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
4603 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
4604 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
4605 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
4606 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
4607 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
4608 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
4609 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
4610 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
4611 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
4612 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
4613 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
4614 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
4615 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
4616 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
4617 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
4618 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
4619 s-taprop-tru64.adb, s-taprop-irix.adb,
4620 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
4621 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
4622 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
4623 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
4624 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
4625 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
4626 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
4627 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
4628 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
4629 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
4630 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
4631 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
4632 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
4633 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
4634 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
4635 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
4636 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
4637 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
4638 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
4639 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
4641 Update documentation.
4644 2007-04-06 Robert Dewar <dewar@adacore.com>
4646 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
4647 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
4648 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
4649 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
4650 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
4651 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
4652 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
4653 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
4654 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
4655 system-hpux-ia64.ads, targparm.adb,
4656 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
4658 * system.ads: Move Functions_Return_By_DSP to obsolete section,
4659 kept for bootstrap purposes only.
4661 2007-04-06 Arnaud Charlet <charlet@adacore.com>
4663 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
4664 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
4665 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
4666 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
4668 2007-04-06 Robert Dewar <dewar@adacore.com>
4670 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
4671 (Local_Raise): New dummy procedure called when a raise is converted
4672 to a local goto. Used for debugger to detect that the exception
4675 * debug.adb: Document new d.g flag (expand local raise statements to
4676 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
4678 * exp_sel.adb: Use Make_Implicit_Exception_Handler
4680 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
4681 suppress warnings for unused handlers.
4682 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
4683 warnings for raise statements not handled locally.
4684 (Get_RT_Exception_Entity): New function
4685 (Get_Local_Call_Entity): New function
4686 (Find_Local_Handler): New function
4687 (Warn_If_No_Propagation): New procedure
4688 (Expand_At_End_Handler): Call Make_Implicit_Handler
4689 (Expand_Exception_Handlers): Major additions to deal with local handlers
4690 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
4691 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
4694 * exp_ch11.ads (Get_RT_Exception_Entity): New function
4695 (Get_Local_Call_Entity): New function
4697 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
4698 of restrictions that the binder will never suggest adding.
4700 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
4703 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
4704 be with'ed in the presence of pragma Restriction
4705 (No_Exception_Propagation).
4707 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
4709 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
4710 parameter, then the handler is not a suitable target for a local raise,
4711 and this is a violation of restriction No_Exception_Propagation.
4712 (Analyze_Handled_Statements): Analyze choice parameters in exception
4713 handlers before analyzing statement sequence (needed for proper
4714 detection of local raise statements).
4715 (Analyze_Raise_Statement): Reraise statement is a violation of the
4716 No_Exception_Propagation restriction.
4718 * s-rident.ads: Add new restriction No_Exception_Propagation
4720 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
4721 function, like Make_Exception_Handler but sets Local_Raise_Statements
4723 (Add_Unique_Serial_Number): Deal with case where this is called during
4724 processing of configuration pragmas.
4726 2007-04-06 Thomas Quinot <quinot@adacore.com>
4727 Pat Rogers <rogers@adacore.com>
4728 Pascal Obry <obry@adacore.com>
4730 * g-stsifd-sockets.adb: New file.
4732 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
4733 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
4734 g-socthi-vms.adb: Move signalling
4735 fd management to a nested package, so that they can conveniently be
4736 moved to a subunit that is shared across Windows, VMS, and VxWorks
4737 (Ada implementation) or completed with imported bodies from socket.c
4739 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
4741 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
4742 the signalling file descriptor.
4743 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
4744 signalling file descriptor.
4745 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
4746 instead of creating a pair of sockets for signalling here.
4748 * g-socthi.adb: Ditto.
4749 Set the runtime process to ignore SIGPIPEs on platforms that support
4750 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
4752 * g-socthi-mingw.adb: Ditto.
4753 (WS_Version): Use Windows 2.2.
4754 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
4756 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
4757 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
4759 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
4760 added GNAT byte swapping facility
4761 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
4763 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
4765 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
4767 (__gnat_create_signalling_fds): New subprogram.
4768 Set the runtime process to ignore SIGPIPEs on platforms that support
4769 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
4771 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
4772 Vincent Celier <celier@adacore.com>
4774 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
4775 New version of Ada.Calendar which supports the new upper bound of Ada
4776 time (2399-12-31 86_399.999999999).
4777 The following modifications have been made to the package:
4778 - New representation of time as count of nanoseconds since the start of
4779 Ada time (1901-1-1 0.0).
4780 - Target independent Split and Time_Of routines which service both
4781 Ada 95 and Ada 2005 code.
4782 - Target independent interface to the Ada 2005 children of Calendar.
4783 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
4784 - Handling of non-leap centenial years.
4785 - Updated clock function.
4786 - Updated arithmetic and comparison operators.
4788 * a-caldel.adb (To_Duration): Add call to target independent routine in
4789 Ada.Calendar to handle the conversion of time to duration.
4791 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
4793 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
4795 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
4796 targets do not have a natural time zone, GMT is used as a default.
4797 (__gnat_get_task_options): New.
4799 * a-direct.adb (Modification_Time): Add with and use clauses for
4800 Ada.Calendar and Ada.
4801 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
4802 since it is no longer needed.
4803 (Duration_To_Time): Removed.
4804 (OS_Time_To_Long_Integer): Removed.
4805 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
4806 Formatting Time_Of routines which automatically handle time zones,
4807 buffer periods and leap seconds.
4809 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
4810 target independent routines in Ada.Calendar.
4812 * a-calfor.ads, a-calfor.adb:
4813 Code cleanup and addition of validity checks in various routines.
4814 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
4817 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
4818 independent routine in Ada.Calendar.
4820 2007-04-06 Olivier Hainque <hainque@adacore.com>
4823 (convert_addresses): Adjust prototype and dummy definition to expect an
4824 extra file_name argument.
4826 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
4827 filling the now expected file_name argument with the appropriate
4829 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
4830 (tracebk): Array of void * instead of char *, corresponding to what
4831 convert_addresses expects.
4832 (exename): New static global, to hold the executable file name to be
4833 used in all convert_addresses invocations.
4834 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
4836 (__gnat_gmem_a2l_initialize): Resolve exename.
4837 (__gnat_convert_addresses): Use exename as the convert_addresses
4840 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
4841 "convert_addresses", now expecting a filename argument. Import the
4842 necessary entities to compute the filename to use and pass it to
4845 2007-04-06 Matt Gingell <gingell@adacore.com>
4847 * system-aix.ads: Back out previous change.
4848 (Functions_Return_By_DSP): Removed
4850 2007-04-06 Pascal Obry <obry@adacore.com>
4852 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
4853 or the monotonic used by Ada.Real_Time) to compute the sleep duration
4856 2007-04-06 Jose Ruiz <ruiz@adacore.com>
4858 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
4859 function. Its value changes in different VxWorks versions, and it is
4860 now handled by the function __gnat_get_task_options.
4862 * s-taprop-vxworks.adb (Create_Task): Call the function
4863 __gnat_get_task_options to get the required options for creating a task.
4865 2007-04-06 Pascal Obry <obry@adacore.com>
4866 Thomas Quinot <quinot@adacore.com>
4868 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
4869 dealing with filename.
4870 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
4871 filename from a standard string to a wide-string depending on the
4873 (__gnat_freopen): Idem.
4874 (__gnat_current_time): New function (wrapper for time(3) standard C
4877 * g-os_lib.ads (Current_Time): New function. Returns the current
4878 system time as an OS_Time value.
4880 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
4881 (Monotonic_Clock): Same.
4883 2007-04-06 Quentin Ochem <ochem@adacore.com>
4885 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
4887 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
4889 2007-04-06 Jose Ruiz <ruiz@adacore.com>
4891 * a-retide.adb: Add elaboration code to ensure that the tasking run
4892 time is initialized when using delay operations even when no task is
4895 2007-04-06 Javier Miranda <miranda@adacore.com>
4897 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
4898 component Num_Prim_Ops.
4899 (Set_Num_Prim_Ops): Removed.
4900 Remove all the assertions because all the routines of this
4901 package are inline always.
4902 (Get_Offset_Index): Add support to primary dispatch tables.
4903 Move the documentation about the dispatch table to a-tags.ads
4904 (Set_External_Tag): Removed
4905 (Inherit_TSD): Removed.
4906 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
4908 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
4909 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
4910 of the TSD field "Table" because this field has been renamed to
4912 (Inherit_CPP_DT): Removed.
4913 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
4914 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
4915 declarations have been moved to a-tags.ads
4916 (Check_Size): Removed.
4917 (Expanded_Name): Updated to get access to the new field of TSD
4918 containing the address of the expanded name.
4919 (Get_Access_Level/Set_Access_Level): Removed.
4920 (Get_Predefined_Prim_Op_Address): Removed.
4921 (Set_Predefined_Prim_Op_Address): Removed.
4922 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
4923 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
4924 (Set_Expanded_Name): Removed.
4925 (Inherit_DT): Removed.
4926 (Inherit_CPP_DT): Removed.
4927 (Set_RC_Offset): Removed.
4929 (Base_Address): New function that displaces "this" to point to the base
4930 of the object (that is, to point to the primary tag of the object).
4932 2007-04-06 Ed Schonberg <schonberg@adacore.com>
4933 Javier Miranda <miranda@adacore.com>
4935 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
4936 anonymous access component, do not create a master_id if type already
4937 has one, as may happen if the type is a subcomponent of a packed array
4939 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
4940 Initialize_Tag): Remove code associated with the old CPP pragmas.
4941 CPP_Virtual and CPP_Vtable are no longer supported.
4942 (Build_Offset_To_Top_Internal): Add support for concurrent record types
4943 (Build_Offset_To_Top_Functions): Add support for concurrent record types
4944 (Freeze_Record_Type): Remove call to
4945 Init_Predefined_Interface_Primitives.
4946 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
4947 code required to initialize the tags of the secondary dispatch tables.
4948 This leaves the algoritm more clear.
4949 (Init_Secondary_Tags): Add support for concurrent record types
4950 (Make_Predefined_Primitive_Specs): Code cleanup.
4951 (Predefined_Primitive_Bodies): Code cleanup.
4952 (Build_Master_Renaming): New local subprogram.
4953 (Expand_N_Full_Type_Declaration): Build the master_id associated with
4954 anonymous access to task type components.
4955 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
4956 subtype indication are resolved during analysis, and must not be done
4958 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
4960 2007-04-06 Geert Bosch <bosch@adacore.com>
4961 Ed Schonberg <schonberg@adacore.com>
4962 Javier Miranda <miranda@adacore.com>
4963 Bob Duff <duff@adacore.com>
4965 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
4966 for conversion of a Float_Type'Truncation to integer.
4968 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
4969 check if a node is an attribute that can be handled directly by the
4971 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
4972 attributes that can be handled directly by the back end.
4973 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
4974 use new predicate Is_Access_Protected_Subprogram_Type.
4975 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
4976 and Unchecked_Union if it is generated as part of the default Output
4977 procedure for a type with default discriminants.
4978 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
4979 if we are compiling under restriction No_Dispatching_Calls.
4980 (Constrained): Use Underlying_Type, in case the type is private without
4981 discriminants, but the full type has discriminants.
4982 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
4983 call to Build_Get_Access_Level.
4984 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
4985 interface objects requires a call to the run-time subprogram that
4986 returns the base address of the object.
4987 (Valid_Conversion): Improve error message on illegal attempt to store
4988 an anonymous access to subprogram value into a record component.
4990 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
4992 (Simplify_Type_Conversion): New procedure that performs simplification
4993 of Int_Type (Float_Type'Truncation (X)).
4994 (Resolve_Type_Conversion): Call above procedure after resolving operand
4995 and before performing checks. This replaces the existing ineffective
4997 (Set_String_Literal_Subtype): When creating the internal static lower
4998 bound subtype for a string literal, use a newly created copy of the
4999 subtree representing the lower bound.
5000 (Resolve_Call): Exclude build-in-place function calls from transient
5001 scope treatment. Update comments to describe this exception.
5002 (Resolve_Equality_Op): In case of dispatching call check violation of
5003 restriction No_Dispatching_Calls.
5004 (Resolve_Call): If the call returns an array, the context imposes the
5005 component type of the array, and the function has one non-defaulted
5006 parameter, rewrite the call as the indexing of a call with a single
5007 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
5009 (Resolve_Actuals): If an actual is an allocator for an access parameter,
5010 the master of the created object is the innermost enclosing statement.
5011 (Remove_Conversions): For a binary operator, check if type of second
5012 formal is numeric, to check if an abstract interpretation is present
5013 in the case of exponentiation as well.
5015 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5016 Bob Duff <duff@adacore.com>
5018 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
5019 copying a parameter list in a call, set properly the First_Named_Formal
5020 and Next_Named_Formal fields in the new list and in the enclosing call.
5021 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
5022 names, to ease typing in the debugger. Improve comments.
5023 (Watch_Node): New variable, intended to be set in the debugger.
5024 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
5025 called when the watched node is created.
5026 (New_Node_Debugging_Output): Combined version of local procedures
5027 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
5028 with a parameter so that conditional breakpoints like "if Node = 12345"
5030 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
5033 2007-04-06 Thomas Quinot <quinot@adacore.com>
5034 Ed Schonberg <schonberg@adacore.com>
5035 Gary Dismukes <dismukes@adacore.com>
5037 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
5038 required for a conversion between two access-to-unconstrained-array
5040 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
5041 to discriminant constraints on discriminant objects. This rule must
5042 apply as well to discriminants of protected types in private components.
5043 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
5044 object of a null-excluding access type then don't require the
5045 the object declaration to have an expression and don't emit a
5048 2007-04-06 Arnaud Charlet <charlet@adacore.com>
5049 Eric Botcazou <botcazou@adacore.com>
5051 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
5054 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
5055 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
5058 * fe.h (Compiler_Abort): Add third parameter.
5060 * misc.c (internal_error_function): Build third argument from current
5061 input location and pass it to Compiler_Abort.
5063 2007-04-06 Gary Dismukes <dismukes@adacore.com>
5065 * cstand.adb (Create_Standard): When the target's storage unit size is
5066 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
5069 2007-04-06 Nicolas Roche <roche@adacore.com>
5071 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
5072 absolute path can have the following form: device:/a/b. In this case
5073 '/' should be inserted between the path and the filename.
5075 2007-04-06 Olivier Hainque <hainque@adacore.com>
5076 Eric Botcazou <botcazou@adacore.com>
5078 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
5079 VAR_DECL to a CONST_DECL we make for a public constant when we know the
5080 corresponding definition has created the so made visible variable.
5081 Handle anonymous access to protected subprogram.
5082 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
5083 object with an address clause volatile. Re-enable original fix.
5084 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
5086 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
5087 associated with either the Equivalent or Root type, instead of the
5089 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
5090 subtree for every field of a global record type.
5091 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
5092 discriminants, invoke again variable_size on its newly computed sizes.
5094 2007-04-06 Robert Dewar <dewar@adacore.com>
5095 Thomas Quinot <quinot@adacore.com>
5096 Ed Schonberg <schonberg@adacore.com>
5097 Bob Duff <duff@adacore.com>
5099 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
5100 (Next_Component_Or_Discriminant): New function and procedure
5101 (First_Index, First_Literal, Master_Id,
5102 Set_First_Index, Set_First_Literal, Set_Master_Id):
5103 Add missing Ekind assertions.
5104 (Is_Access_Protected_Subprogram_Type): New predicate.
5105 (Has_RACW): New entity flag, set on package entities to indicate that
5106 the package contains the declaration of a remote accecss-to-classwide
5108 (E_Return_Statement): This node type has the Finalization_Chain_Entity
5109 attribute, in case the result type has controlled parts.
5110 (Requires_Overriding): Add this new flag, because "requires
5111 overriding" is subtly different from "is abstract" (see AI-228).
5112 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
5113 Is_Abstract_Type. Make sure these are called only when appropriate.
5114 (Has_Pragma_Unreferenced_Objects): New flag
5116 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
5117 class-wide, the tag of the right-hand side must be an exact match, not
5118 an ancestor of that of the object on left-hand side.
5119 (Move_Activation_Chain): New procedure to create the call to
5120 System.Tasking.Stages.Move_Activation_Chain.
5121 (Expand_N_Extended_Return_Statement): Generate code to call
5122 System.Finalization_Implementation.Move_Final_List at the end of a
5123 return statement if the function's result type has controlled parts.
5124 Move asserts to Build_In_Place_Formal.
5125 (Move_Final_List): New function to create the call statement.
5126 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
5127 tagged type, replace generation of call to the run-time subprogram
5128 CW_Membership by call to Build_CW_Membership.
5129 (Expand_N_Return_Statement): Replace generation of call to the run-time
5130 subprogram Get_Access_Level by call to Build_Get_Access_Level.
5131 (Expand_N_Simple_Function_Return): Replace generation of call to the
5132 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
5134 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
5135 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
5136 access to protected operations.
5137 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
5138 master and chain actual parameters to a build-in-place function call
5140 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
5142 (Make_Build_In_Place_Call_In_Allocator,
5143 Make_Build_In_Place_Call_In_Anonymous_Context,
5144 Make_Build_In_Place_Call_In_Assignment,
5145 Make_Build_In_Place_Call_In_Object_Declaration): Call
5146 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
5147 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
5148 stubbed procedure with a null body, replace the call with a null
5149 statement without using the full inlining machinery, for efficiency
5150 and to avoid invalid values in source file table entries.
5152 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
5153 renamings of calls to build-in-place functions.
5155 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
5156 provides the functionality of RTE_Available to record components.
5157 (RTU_Entity): The function Entity has been renamed to RTU_Entity
5158 to avoid undesired overloading.
5159 (Entity): New subprogram that returns the entity for the referened
5160 unit. If this unit has not been loaded, it returns Empty.
5161 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
5162 Remove no longer used entities.
5163 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
5164 (RE_Type_Specific_Data): New entity.
5165 (RE_Move_Any_Value): New entity.
5166 (RE_TA_A, RE_Get_Any_Type): New entities.
5167 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
5168 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
5169 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
5170 (Entity): New subprogram that returns the entity for the referened
5171 unit. If this unit has not been loaded, it returns Empty.
5172 (RTE): Addition of a new formal that extends the search to the scopes
5173 of the record types found in the chain of the package.
5175 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
5176 "abstract subprograms must be visible" message, whether or not the type
5177 is an interface; that is, remove the special case for interface types.
5178 (Analyze_Function_Return): Remove error message "return of task objects
5179 is not yet implemented" because this is now implemented.
5180 (Create_Extra_Formals): Add the extra master and activation chain
5181 formals in case the result type has tasks.
5182 Remove error message "return of limited controlled objects is not yet
5184 (Create_Extra_Formals): Add the extra caller's finalization list formal
5185 in case the result type has controlled parts.
5186 (Process_Formals): In case of access formal types there is no need
5187 to continue with the analysis of the formals if we already notified
5189 (Check_Overriding_Indicator): Add code to check overriding of predefined
5191 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
5192 flags for formals that do not require them,.
5193 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
5194 hidden entity is use visible or directly visible.
5195 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
5196 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
5197 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
5198 New_Overloaded_Entity): Split Is_Abstract flag into
5199 Is_Abstract_Subprogram and Is_Abstract_Type.
5201 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
5202 a return statement's finalization list to the caller's list, used for
5203 build-in-place functions with result type with controlled parts.
5204 Remove no longer used entities.
5206 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
5207 longer needed, because the full type is now limited, and therefore a
5208 pass-by-reference type.
5209 (Foreign_Task_Level): New constant.
5211 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
5212 move tasks from the activation chain belonging to a return statement to
5213 the one passed in by the caller, and update the master to the one
5214 passed in by the caller.
5215 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
5216 of unactivated tasks, so we don't kill the ones that are being returned
5217 by a build-in-place function.
5218 (Create_Task): Ignore AI-280 for foreign threads.
5220 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5221 Robert Dewar <dewar@adacore.com>
5222 Bob Duff <duff@adacore.com>
5223 Gary Dismukes <dismukes@adacore.com>
5225 * errout.adb (Unwind_Internal_Type): Use predicate
5226 Is_Access__Protected_Subprogram_Type.
5228 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
5229 (Freeze_Entity, packed array case): Do not override explicitly set
5230 alignment and size clauses.
5231 (Freeze_Entity): An entity declared in an outer scope can be frozen if
5232 the enclosing subprogram is a child unit body that acts as a spec.
5233 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
5234 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
5235 Remove all code for DSP option
5237 * layout.adb (Layout_Record_Type): Use First/
5238 Next_Component_Or_Discriminant
5239 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
5240 to handle properly the anonymous access case.
5242 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
5243 for all access attributes, because overload resolution should work the
5244 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
5245 causes the error message for the ambiguous "X'Access = Y'Access" and
5246 "X'Unrestricted_Access = Y'Access" and so forth to match.
5247 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
5248 now that anonymous access to protected operations have their own kind.
5249 (Resolve_Attribute): In case of dispatching call check the violation of
5250 restriction No_Dispatching_Calls.
5251 (Check_Array_Type): Check new -gnatyA array index style option
5253 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
5254 attempt to derive from a synchronized tagged type.
5255 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
5256 type, inherit the class-wide type already created, because it may
5257 already have been used in a self-referential anonymous access component.
5258 (Mentions_T): Recognize self-referential anonymous access components
5259 that use (a subtype of) the class-wide type of the enclosing type.
5260 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
5261 Derived_Type for Prev formal on call to
5262 Check_Anonymous_Access_Components rather than Empty.
5263 (Make_Incomplete_Type_Declaration): Add test for case where the type has
5264 a record extension in deciding whether to create a class-wide type,
5265 rather than just checking Tagged_Present.
5266 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
5267 to stand-alone object declarations as well as component declarations.
5268 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
5269 prevent accidental overwriting when enclosing package appears in
5270 a limited_with_clause.
5271 (Array_Type_Declaration): If the component type is an anonymous access,
5272 the associated_node for the itype is the type declaration itself.
5273 (Add_Interface_Tag_Components): Modified to support concurrent
5274 types with abstract interfaces.
5275 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
5276 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
5277 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
5278 to complete the decoration of synchronized interface types. Add also
5279 a call to Check_Abstract_Interfaces to verify the ARM rules.
5280 (Derive_Interface_Subprograms): Modified to support concurrent types
5281 with abstract interfaces.
5282 (Analyze_Subtype_Indication): Resolve the range with the given subtype
5283 mark, rather than delaying the full resolution depending on context.
5284 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
5285 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
5286 Array_Type_Declaration,Build_Derived_Record_Type,
5287 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
5288 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
5289 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
5290 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
5291 called only when appropriate.
5292 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
5294 (Analyze_Subtype_Declaration): For an access subtype declaration, create
5295 an itype reference for the anonymous designated subtype, to prevent
5296 scope anonmalies in gigi.
5297 (Build_Itype_Reference): New utility, to simplify construction of such
5300 2007-04-06 Vincent Celier <celier@adacore.com>
5302 * errutil.adb (Initialize): Initialize warnings table, if all warnings
5303 are suppressed, supply an initial dummy entry covering all possible
5306 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
5307 and start with only one, such as "-RTS=none".
5308 (Collect_Arguments): Do not check for sources outside of projects.
5309 Do not collect arguments if project is externally built.
5310 (Compile_Sources): Do nothing, not even check if the source is up to
5311 date, if its project is externally built.
5312 (Compile): When compiling a predefined source, add -gnatpg
5313 as the second switch, after -c.
5314 (Compile_Sources): Allow compilation of Annex J renames without -a
5315 (Is_In_Object_Directory): Check if the ALI file is in the object
5316 even if there is no project extension.
5317 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
5318 gnatbind if the ALI file effectively exists.
5319 (Initialize): Add the directory where gnatmake is invoked in front of
5320 the path if it is invoked from a bin directory, even without directory
5321 information, so that the correct GNAT tools will be used when spawned
5322 without directory information.
5324 * makeusg.adb: Change switch -S to -eS
5325 Add lines for new switches -we, -wn and -ws
5326 Add line for new switch -p
5328 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
5329 Treat_As_Error and there are warnings.
5331 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
5332 -gnatww Change gnatmake switch -S to -eS
5333 (Scan_Make_Switches): Code reorganisation. Process separately multi
5334 character switches and single character switches.
5335 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
5336 False when switch is not recognized by gnatmake.
5337 (Scan_Make_Switches): Set Setup_Projects True when -p or
5338 --create-missing-dirs is specified.
5340 * fname.adb (Is_Predefined_File_Name): Return True for annex J
5341 renamings Calendar, Machine_Code, Unchecked_Conversion and
5342 Unchecked_Deallocation only when Renamings_Included is True.
5344 * par.adb: Allow library units Calendar, Machine_Code,
5345 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
5346 when -gnatg is not specified.
5347 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
5348 there is no need to generate always a record_definition_node in case
5349 of synchronized interface types.
5350 (SIS_Entry_Active): Initialize global variable to False
5351 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
5352 indicate cases where AI-447 says "not null" is legal.
5354 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
5356 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
5357 files with with several lines starting with the object fileb name.
5358 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
5360 (Initialize): Add the directory where gprmake is invoked in front of the
5361 path, if it is invoked from a bin directory or with directory
5362 information, so that the correct GNAT tools will be used when invoked
5364 (Check_Compilation_Needed): Process correctly backslashes on Windows.
5366 * vms_data.ads: Update switches/qualifiers
5368 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5369 Thomas Quinot <quinot@adacore.com>
5372 If the array component is a discriminated record, the array aggregate
5373 is non-static even if the component is given by an aggregate with
5375 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
5376 (Convert_Aggr_In_Allocator): If the allocator is for an access
5377 discriminant and the type is controlled. do not place on a finalization
5378 list at this point. The proper list will be determined from the
5380 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
5381 initialize record controller if needed, before the components, to ensure
5382 that they are properly finalized.
5383 (Build_Record_Aggr_Code): For the case of an array component that has a
5384 corresponding array aggregate in the record aggregate, perform sliding
5387 2007-04-06 Javier Miranda <miranda@adacore.com>
5388 Gary Dismukes <dismukes@adacore.com>
5389 Ed Schonberg <schonberg@adacore.com>
5391 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
5392 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
5394 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
5395 accessibility on class-wide allocators if the allocator occurs at the
5396 same scope level as the allocator's type. The check is guaranteed to
5397 succeed in that case, even when the expression originates from a
5398 parameter of the containing subprogram.
5399 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
5400 under No_Dispatching_Calls restriction. During the semantic analysis
5401 we already notified such violation.
5402 (Tagged_Membership): Constant folding. There is no need to check
5403 the tag at run-time if the type of the right operand is non
5404 class-wide abstract.
5405 Replace call to Is_Ancestor by call to Is_Parent
5406 to support concurrent types with interface types.
5407 (Expand_N_Allocator): Add an assertion associated with the generation
5409 (Expand_N_Slice): Do not enable range check to nodes associated
5410 with the frontend expansion of the dispatch table.
5411 (Is_Local_Access_Discriminant): Subsidiary function to
5413 (Tagged_Membership): Replace generation of call to the run-time
5414 subprogram CW_Membership by call to Build_CW_Membership.
5415 (Expand_Allocator_Expression): Replace generation of call to the
5416 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
5418 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
5419 initialize most the TSD components by means of an aggregate.
5420 Modify the declaration of the object containing the TSD
5421 because we now expand code that has a higher level of abstraction.
5422 The TSD has a discriminant containing the Inheritance Depth Level,
5423 value that is used in the membership test but also to fix the size
5424 of the table of ancestors.
5425 (Expand_Interface_Conversion): Insert function body at the closest place
5426 to the conversion expression, to prevent access-before-elaboration
5427 errors in the backend.
5428 Code improved to reduce the size of the dispatch table if
5429 compiling under restriction No_Dispatching_Calls plus code cleanup.
5430 Code reorganization plus removal of calls to Set_Num_Prim_Ops
5431 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
5432 (Expand_Dispatching_Call): Minor code reorganization plus addition of
5433 code to return immediately if compiling under No_Dispatching_Calls
5435 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
5436 CPP_Virtual and CPP_Vtable are no longer supported.
5437 (Expand_Interface_Conversion): Add missing support for interface type
5439 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
5440 Is_Parent to support concurrent types with interfaces.
5441 (Init_Predefined_Interface_Primitives): Removed.
5442 (Make_Secondary_DT): Modified to support concurrent record types.
5443 (Set_All_DT_Position): Modified to support concurrent record types.
5444 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
5445 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
5446 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
5448 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
5449 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
5450 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
5451 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
5452 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
5453 (Expand_Dispatching_Call): Replace generation of call to the run-time
5454 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
5455 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
5457 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
5458 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
5459 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
5460 Build_Set_Prim_Op_Address.
5461 (Get_Remotely_Callable): Subprogram removed.
5462 (Init_Predefined_Interface_Primitives): Replace generation of call to
5463 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
5466 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
5467 First (Parameter_Associations ()) with the call to First_Actual that
5468 returns an actual parameter expression for both named and positional
5471 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
5472 check violation of restriction No_Dispatching_Calls.
5473 (Check_Controlling_Type): A formal of a tagged incomplete type is a
5474 controlling argument.
5476 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
5477 First/Next_Component_Or_Discriminant
5478 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
5479 (Find_Implemented_Interface): Removed. All the calls to this subprogram
5480 specify Any_Limited_Interface, and this functionality is already
5481 provided by the function Has_Abstract_Interfaces.
5482 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
5483 support concurrent types implementing interfaces.
5484 (Find_Implemented_Interface): Removed. All the calls to this subprogram
5485 specify kind Any_Limited_Interface, and this functionality is already
5486 provided by the function Has_Abstract_Interfaces.
5487 (Remove_Side_Effects): replace Controlled_Type by
5488 CW_Or_Controlled_Type whenever the issue is related to
5489 using or not the secondary stack.
5491 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
5492 P_Interface_Type_Definition to fulfill the new interface (the formal
5493 Is_Synchronized is no longer required).
5495 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
5496 Update dependencies.
5498 * exp_atag.ads, exp_atag.adb: New file
5500 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5501 Bob Duff <duff@adacore.com>
5502 Cyrille Comar <comar@adacore.com>
5504 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
5505 anonymous, use finalization list of enclosing dynamic scope.
5506 (Expand_N_Package_Declaration): For a library package declaration
5507 without a corresponding body, generate RACW subprogram bodies in the
5508 spec (just as we do for the task activation call).
5509 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
5510 Is_Abstract_Type. Make sure these are called only when appropriate.
5511 Remove all code for DSP option
5512 (CW_Or_Controlled_Type): new subprogram.
5514 2007-04-06 Eric Botcazou <botcazou@adacore.com>
5515 Ed Schonberg <schonberg@adacore.com>
5516 Gary Dismukes <dismukes@adacore.com>
5518 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
5519 parameter. If it is set to true, return a result capped according to
5520 the global upper bound for the index of an entry family.
5521 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
5522 (Build_Find_Body_Index): Adjust for above change.
5523 (Entry_Index_Expression): Likewise.
5524 (Is_Potentially_Large_Family): New function extracted from...
5525 (Collect_Entry_Families): ...here. Call it to detect whether the family
5526 is potentially large.
5527 (Build_Entry_Count_Expression): If the family is potentially large, call
5528 Family_Size with 'Cap' set to true.
5529 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
5530 a protected version of an operation declared in the private part of
5531 a protected object, because they may be invoked through a callback.
5532 (Set_Privals): If the type of a private component is an anonymous access
5533 type, do not create a new itype for each protected body.
5534 If the body of a protected operation creates
5535 controlled types (including allocators for class-widetypes), the
5536 body of the corresponding protected subprogram must include a
5538 (Build_Activation_Chain_Entity): Build the chain entity for extended
5540 (Type_Conformant_Parameters): Use common predicate Conforming_Types
5541 to determine whether operation overrides an inherited primitive.
5542 (Build_Wrapper_Spec): Add code to examine the parents while looking
5543 for a possible overriding candidate.
5544 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
5545 hold an actual parameter value since its initialization is separated
5546 from the the declaration. Prevents errors on null-excluding access
5549 2007-04-06 Thomas Quinot <quinot@adacore.com>
5551 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
5552 Do an Unchecked_Conversion to handle the passage from the Underlying
5553 Type to the Base Type when calling Build_To_Any_Call and
5554 Build_From_Any_Call.
5555 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
5556 E_Constant, depending upon Variable formal.
5557 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
5558 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
5559 parameter that requires an extra constrained parameter, declare
5560 temporary for actual as a variable, not a constant.
5561 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
5562 the unit being compiled is the one that contains the stub type.
5563 Change primitive operation name for the RACW associated with a RAS
5564 from Call to _Call so it cannot clash with any legal identifier.
5565 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
5567 (Append_RACW_Bodies): New subprogram.
5568 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
5569 Add_Receiving_Stubs_To_Declarations functions.
5570 When expanding a package body, this list correspond to the
5571 statements in the HSS at the end of the pacakge.
5572 When expanding a package spec, this list correspond to the
5574 (Add_Receiving_Stubs_To_Declarations): Append the function
5575 registering the receiving stubs at the end of the 'Stmts' list.
5576 (RCI_Package_Locator): Pass the new Version generic formal when
5577 instantiating a RCI_Locator package.
5578 (Build_From_Any_Function): To compute the High bound for an
5579 unconstrained array actual, we add the Low bound with the length.
5580 Thus we must convert the low bound and the length to an appropriate
5581 type before doing the sum.
5582 (Build_Subprogram_Receiving_Stubs, PolyORB):
5583 * Retrieve the extra formals parameters at the
5584 end of the parameter stream.
5585 * Use Move_Any_Value to write back out parameters
5586 after executing the request as it is more efficient
5587 than Copy_Any_Value.
5588 * Build the any containing Extra Formals with the
5589 appropriate typecode.
5590 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
5591 empty Component_List.
5592 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
5593 the tree the declaration for an object that serves as actual parameter
5594 in server-side stubs.
5595 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
5596 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
5597 Use Build_Actual_Object_Declaration to prepare the actuals.
5598 (Add_Parameter_To_NVList): Set the parameter mode to In for
5599 Extra Constrained Parameters.
5600 (Build_General_Calling_Stubs): Set the parameter type to boolean for
5601 Extra Constrained parameters.
5602 (Build_To_Any_Function, Build_From_Any_Function,
5603 Built_TypeCode_Function): When Typ is implicit, call the correct
5604 function with the first not implicit parent type.
5605 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
5606 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
5607 typecode from the Etype. Therefore we retrieve the correct typecode
5608 with a call to Get_Any_Type.
5609 (Copy_Specification): Do controlling formal type substitution based on
5610 Is_Controlling_Formal flag, instead of caller-provided object type.
5611 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
5612 a RACW primitive operation, we might get a subprogram declaration for an
5613 ancestor of the RACW designated type (not for the designated type
5614 itself), in the case where this operation is inherited. In this case we
5615 have no easy means of determining the original tagged type for which
5616 the primitive was declared, so instead we now rely on
5617 Copy_Specification to use the Is_Controlling_Formal flag to determine
5618 which formals require type substitution.
5620 2007-04-06 Robert Dewar <dewar@adacore.com>
5621 Ed Schonberg <schonberg@adacore.com>
5623 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
5624 GNAT.Current_Exception are not allowed if pragma Restrictions
5625 (No_Exception_Propagation) is set and in any case make the associated
5626 handler unsuitable as a target for a local raise statement.
5627 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
5628 run-time subprogram CW_Membership by call to Build_CW_Membership.
5629 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
5630 by a function call, a temporary must be created before expanding the
5631 Constructor_Call itself, to prevent out-of-order elaboration in the
5632 back-end when stack checking is enabled..
5634 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5636 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
5637 result are the bounds of the left operand, not the right.
5639 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5642 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
5643 discriminant defaults.
5644 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
5645 (Make_Component_List_Attributes): Ditto.
5647 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5648 Bob Duff <duff@adacore.com>
5650 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
5651 an association with a box as providing a value even though the
5652 initialization procedure for the type is not available.
5653 (Resolve_Record_Aggregate): Check that a choice of an association with a
5654 box corresponds to a component of the type.
5655 (Resolve_Record_Aggregate): Split Is_Abstract flag into
5656 Is_Abstract_Subprogram and Is_Abstract_Type.
5658 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
5661 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
5662 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
5663 called only when appropriate.
5665 2007-04-06 Olivier Hainque <hainque@adacore.com>
5667 * g-alleve.ads (Low Level Vector type definitions): Map each to the
5668 associated vector view instead of all to the unsigned char view.
5670 * g-altcon.adb (Generic_Conversions): New internal generic package,
5671 offering facilities for all the Vector/View conversion routines
5672 implemented by this unit.
5673 (To_View/To_Vector - all versions): Reimplemented in a systematic
5674 manner, using the internal Generic_Conversions facilities.
5676 2007-04-06 Pascal Obry <obry@adacore.com>
5678 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
5680 (Create): Free the source string before storing the new one.
5682 2007-04-06 Vincent Celier <celier@adacore.com>
5684 * g-debpoo.adb (Validity): New package with a complete new
5685 implementation of subprograms Is_Valid and Set_Valid.
5686 (Is_Valid): Move to local package Validity
5687 (Set_Valid): Move to local package Validity
5689 2007-04-06 Arnaud Charlet <charlet@adacore.com>
5691 * g-expect.adb (Get_Command_Output): When expanding the output buffer
5692 we must ensure that there is enough place for the new data we are going
5695 2007-04-06 Thomas Quinot <quinot@adacore.com>
5697 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
5700 2007-04-06 Jose Ruiz <ruiz@adacore.com>
5701 Vincent Celier <celier@adacore.com>
5703 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
5704 (Stack_String): Add this String that contains the name of the Stack
5705 package in the project file.
5706 (Packages_To_Check_By_Stack): Add this list that contains the packages
5707 to be checked by gnatstack, which are the naming and the stack packages.
5708 (Check_Files): If no .ci files were specified for gnatstack we add all
5709 the .ci files belonging to the projects, including binder generated
5711 (Non_VMS_Usage): Document that gnatstack accept project file switches.
5712 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
5713 Add gnatstack to the list of commands that use project file related
5714 switches, and get the single attribute Switches from the stack package
5715 in a project file when calling gnatstack. Parse the -U flag for
5716 processing files belonging to all projects in the project tree.
5717 Remove all processing for command Setup
5719 * prj-attr.adb: Add new package Stack with single attribute Switches
5721 * vms_conv.ads (Command_Type): Add command Stack.
5722 Move to body declarations that are only used in the body: types Item_Id,
5723 Translation_Type, Item_Ptr, Item and its subtypes.
5725 * vms_conv.adb: (Initialize): Add data for new command Stack.
5726 Add declarations moved from the spec: types Item_Id, Translation_Type,
5727 Item_Ptr, Item and its subtypes.
5728 (Cargs_Buffer): New table
5729 (Cargs): New Boolean global variable
5730 (Process_Buffer): New procedure to create arguments
5731 (Place): Put character in table Buffer or Cargs_Buffer depending on the
5733 (Process_Argument): Set Cargs when processing qualifiers for GNAT
5735 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
5736 empty, for table Cargs_Buffer.
5737 (Initialize): Remove component Setup in Command_List
5739 2007-04-06 Vincent Celier <celier@adacore.com>
5741 * gprep.adb (Process_Files.Process_One_File): Use full file name when
5742 issuing pragma Source_Reference.
5744 2007-04-06 Emmanuel Briot <briot@adacore.com>
5746 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
5747 [[:xdigit:]] character class.
5748 Also raise an exception when an invalid character class is used.
5750 2007-04-06 Pascal Obry <obry@adacore.com>
5752 * i-cstrea.ads: (fopen): Add encoding parameter.
5754 Change reference from a-sysdep.c to sysdep.c in comment.
5755 Update copyright notice.
5756 This set of patch add support for the encoding form parameter.
5758 * mingw32.h (S2WSU): New macro to convert from a string to a
5759 wide-string using the UTF-8 encoding. The S2WS macro supports now only
5760 standard 8bits encoding.
5761 (WS2SU): As above but converting from wide-sring to string.
5762 This is needed as it is necessary to have access to both versions in the
5763 runtime for the form parameter encoding support.
5764 This set of patch add support for the encoding form parameter.
5765 (S2WS): Improve implementation to handle cases where the filename is not
5766 UTF-8 encoded. In this case we default to using the current code page
5769 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
5770 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
5771 the constants defined in adaint.h.
5772 (fopen): Add encoding parameter.
5775 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
5776 encoding. This is needed for the Reset routine (freopen low level-call).
5778 * s-fileio.adb (Open): Decode encoding form parameter and set the
5779 corresponding encoding value into AFCB structure.
5780 (Reset): Pass the encoding value to freopen.
5781 (Close): Move the call to Lock_Task to the beginning of the procedure.
5783 2007-04-06 Geert Bosch <bosch@adacore.com>
5784 Robert Dewar <dewar@adacore.com>
5786 * i-fortra.ads: Add Double_Complex type.
5788 * impunit.adb: (Is_Known_Unit): New function
5789 Add Gnat.Byte_Swapping
5791 Add new Ada 2005 units
5792 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
5793 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
5794 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
5795 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
5797 * impunit.ads (Is_Known_Unit): New function
5799 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
5800 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
5801 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
5802 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
5803 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
5804 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
5807 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
5809 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
5811 2007-04-06 Eric Botcazou <botcazou@adacore.com>
5812 Arnaud Charlet <charlet@adacore.com>
5814 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
5815 __gnat_adjust_context_for_raise.
5816 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
5817 implementation of floating point operations as native x86 targets.
5818 So the FPU should be initialized in the same way using finit. Fix
5819 floating point operations accuracy issues.
5820 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
5821 member in struct sigaction, so as to avoid warning for incompatible
5824 2007-04-06 Serguei Rybin <rybin@adacore.com>
5826 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
5827 switches from previously loaded tree
5829 2007-04-06 Thomas Quinot <quinot@adacore.com>
5831 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
5832 cases where a given dependency has a body or not.
5833 (Write_With_File_Names): New subprogram, common code for the two cases
5836 2007-04-06 Ed Schonberg <schonberg@adacore.com>
5837 Javier Miranda <miranda@adacore.com>
5839 * lib-xref.ads, lib-xref.adb:
5840 Modify the loop that collects type references, to include interface
5841 types that the type implements. List each of these interfaces when
5842 building the entry for the type.
5843 (Generate_Definition): Initialize component Def and Typ of new entry
5844 in table Xrefs, to avoid to have these components unitialized.
5845 (Output_References): Split Is_Abstract flag into
5846 Is_Abstract_Subprogram and Is_Abstract_Type.
5847 (Generate_Reference): Add barrier to do not generate the warning
5848 associated with Ada 2005 entities with entities generated by the
5851 2007-04-06 Robert Dewar <dewar@adacore.com>
5852 Arnaud Charlet <charlet@adacore.com>
5853 Vincent Celier <celier@adacore.com>
5855 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
5856 Update 'Exception Handling Control' chapter which was outdated.
5857 Minor fix to documentation of -gnatwq
5858 Remove section "Adapting the Run Time to a New C++ Compiler" because
5860 Add passage on need of -nostart-files in some non-ada-main cases.
5861 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
5862 Update documentation about Interfacing with C++
5863 Add documentation for new gnatmake switch -p
5864 Add missing protocol part in URLs.
5866 Document pragma Compile_Time_Error
5867 Add documentation for Object_Size indicating that stand alone
5868 objects can have a larger size in some cases.
5869 Add node for GNAT.Byte_Swapping, GNAT.SHA1
5870 Update reference to the Ravenscar profile.
5871 Document pragma Unreferenced_Objects
5873 * gnat-style.texi: Fix typo
5875 2007-04-06 Vincent Celier <celier@adacore.com>
5877 * mlib.adb (Building_Library): Only output "building a library..." in
5880 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
5881 files in verbose mode.
5883 * mlib-utl.adb (Ar): Only output the first object files when not in
5885 (Gcc): Do not display all the object files if not in verbose mode, only
5888 2007-04-06 Robert Dewar <dewar@adacore.com>
5890 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
5891 it no longer destroys the contents of Name_Buffer or Name_Len and
5892 non-standard and invalid names are handled better.
5893 (Get_Decoded_Name_String): Improve performance by using
5894 Name_Has_No_Encodings flag in the name table.
5895 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
5896 Used for debugging printouts.
5898 2007-04-06 Robert Dewar <dewar@adacore.com>
5899 Javier Miranda <miranda@adacore.com>
5900 Bob Duff <duff@adacore.com>
5902 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
5903 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
5904 there is no need to generate always a record_definition_node in case
5905 of synchronized interface types.
5906 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
5907 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
5908 illegal in Ada 95, in cases where it is legal. Change the warnings to
5909 errors in other cases. Don't give the error unless the "not null"
5910 parses properly. Correct the source position at which the error occurs.
5911 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
5912 P_Null_Exclusion, to suppress "not null" warnings.
5913 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
5914 associated goto statements.
5916 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
5919 * scans.ads (Type_Token_Location): New flag
5921 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
5922 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
5923 P_Null_Exclusion, to suppress "not null" warnings.
5925 2007-04-06 Robert Dewar <dewar@adacore.com>
5926 Javier Miranda <miranda@adacore.com>
5927 Bob Duff <duff@adacore.com>
5928 Vincent Celier <celier@adacore.com>
5930 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
5931 (Extensions_Allowed): No longer sets Ada_Version
5932 Entry for pragma Unreferenced_Objects
5934 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
5935 system.tasking if pragma priority used in a procedure
5936 (Analyze_Pragma, case Warning): Handle dot warning switches
5937 (Process_Compile_Time_Warning_Or_Error): New procedure
5938 (Analyze_Pragma): Add processing for Compile_Time_Error
5939 Add support for extra arguments External_Name and Link_Name.
5940 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
5941 (Process_Import_Or_Interface): Add support for the use of pragma Import
5943 (Extensions_Allowed): No longer affects Ada_Version
5944 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
5945 Is_Abstract_Type. Make sure these are called only when appropriate.
5946 Add processing for pragma Unreferenced_Objects
5948 * snames.h, snames.ads, snames.adb: Add entry for pragma
5950 Add new standard name Minimum_Binder_Options for new gprmake
5951 Add new standard names for gprmake: Archive_Suffix,
5952 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
5953 Library_Support, Library_Version_Options,
5954 Shared_Library_Minimum_Options,
5955 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
5956 Change Name_Call to Name_uCall so that it cannot clash with a legal
5958 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
5959 Append C_Plus_Plus to convention identifiers as synonym for CPP
5960 Add new standard names Stack and Builder_Switches
5961 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
5962 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
5963 Run_Path_Option, Toolchain_Version.
5964 Entry for pragma Unreferenced_Objects
5966 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
5967 switches, without repetition of "eD". Make sure that last character of
5968 -gnatep= switch is not taken as -gnat switch character.
5969 Complete rewrite of circuit for handling saving compilation options
5970 Occasioned by need to support dot switchs for -gnatw, but cleans up
5972 -gnatX does not affect Ada_Version
5973 Include -gnatyA in -gnatg style switches
5975 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
5976 warnings on return objects.
5977 (Warn_On_Useless_Assignment): Exclude warnings on return objects
5978 (Set_Dot_Warning_Switch): New procedure
5979 (Check_References): Add missing case of test for
5980 Has_Pragma_Unreferenced_Objects
5981 (Output_Unreferenced_Messages): Implement effect of new pragma
5982 Unreferenced_Objects, remove special casing of limited controlled
5985 2007-04-06 Vincent Celier <celier@adacore.com>
5987 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
5988 the default project path, initially done during elaboration of the
5990 If the prefix returned by Sdefault is null, get the prefix from a call
5991 to Executable_Prefix_Path.
5992 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
5995 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
5996 canonical directory name to open the directory from which files are
5998 (Record_Other_Sources): Idem.
5999 (Locate_Directory): Add the possibility to create automatically missing
6000 directories when Setup_Projects is True.
6001 Call Locate_Directory so that the directory will be created when
6002 Setup_Projects is True, for object dir, library dir, library ALI dir,
6003 library source copy dir and exec dir.
6005 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
6008 2007-04-06 Robert Dewar <dewar@adacore.com>
6010 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
6011 Use First/Next_Component_Or_Discriminant
6012 (Analyze_Record_Representation_Clause):
6013 Use First/Next_Component_Or_Discriminant
6014 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
6015 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
6016 definition if type is unconstrained.
6017 (Adjust_Record_For_Reverse_Bit_Order): New procedure
6018 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
6019 Is_Abstract_Subprogram and Is_Abstract_Type.
6020 (Adjust_Record_For_Reverse_Bit_Order): New procedure
6022 * repinfo.adb (List_Record_Info): Use First/
6023 Next_Component_Or_Discriminant.
6025 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
6028 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
6029 Include -gnatyA in default switches
6031 * opt.ads: (Warn_On_Non_Local_Exception): New flag
6032 (Warn_On_Reverse_Bit_Order): New flag
6033 (Extensions_Allowed): Update the documentation.
6034 (Warn_On_Questionable_Missing_Parens): Now on by default
6036 * usage.adb: Add documentation of -gnatw.x/X switches
6037 Document new -gnatyA style switch
6038 -gnatq warnings are on by default
6040 2007-04-06 Ed Falis <falis@adacore.com>
6042 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
6043 full word is no longer compared twice.
6045 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6047 * sem_ch10.adb (Install_Limited_Context_Clauses.
6048 Expand_Limited_With_Clause): Use a new copy of selector name in the
6049 call to Make_With_Clause. This fixes the tree structure for ASIS
6050 purposes. Nothing is changed in the compiler behaviour.
6051 (Process_Body_Clauses): Handle properly use clauses whose prefix is
6053 (Install_Limited_With_Clauses): Do not install non-limited view when it
6054 is still incomplete.
6056 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6057 Gary Dismukes <dismukes@adacore.com>
6059 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
6060 when capturing size information, instead of base type, which for a
6061 formal array type will be the unconstrained type.
6062 (Analyze_Formal_Object_Declaration): Add check for illegal default
6063 expressions for a formal in object of a limited type.
6064 (Instantiate_Object): Ditto.
6065 (Check_Formal_Package_Instance): Skip entities that are formal objects,
6066 because they were defaulted in the formal package and no check applies
6068 (Check_Formal_Package_Instance): Extend conformance check to other
6069 discrete types beyond Integer.
6070 (Process_Default): Copy directly the unmatched formal. A generic copy
6071 has already been performed in Analyze_Formal_Package.
6072 (Analyze_Associations): If a formal subprogram has no match, check for
6073 partial parametrization before looking for a default, to prevent
6075 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
6076 not set the instantiation environment before analyzing the actuals.
6077 Fixes regression on 8515-003 with implementation of AI-133.
6078 Set_Instance_Env checks whether the generic unit is a predefined
6079 unit, in which case the instance must be analyzed with the latest Ada
6080 mode. This setting must take place after analysis of the actuals,
6081 because the actuals must be analyzed and frozen in the Ada mode extant
6082 outside of the current instantiation.
6083 (Save_Env, Restore_Env): Preserve and restore the configuration
6084 parameters so that predefined units can be compiled in the proper Ada
6086 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
6087 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
6088 and Is_Abstract_Type.
6089 (Analyze_Formal_Package): For better error recovery, Add exception
6090 handler to catch Instantion_Error, which can be raised in
6091 Analyze_Associations
6093 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6094 Bob Duff <duff@adacore.com>
6095 Gary Dismukes <dismukes@adacore.com>
6097 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
6098 prefix type is a discriminated subtype of the type of the formal.
6099 (Analyze_Allocator): Collect all coextensions regardless of the context.
6100 Whether they can be allocated statically is determined in exp_ch4.
6101 (Analyze_Selected_Component): If the prefix is a limited view and the
6102 non-limited view is available, use the non-limited one.
6103 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
6104 therefore illegal), suggest a qualified expression rather than a type
6105 conversion, because a type conversion would be illegal in this context.
6106 (Anayze_Allocator): Trace recursively all nested allocators so that all
6107 coextensions are on the corresponding list for the root. Do no mark
6108 coextensions if the root allocator is within a declaration for a stack-
6109 allocated object, because the access discriminants will be allocated on
6111 (Analyze_Call): Remove restriction on calls to limited functions for the
6112 cases of generic actuals for formal objects, defaults for formal objects
6113 and defaults for record components.
6114 (Analyze_Allocator): Before analysis, chain coextensions on the proper
6115 element list. Their expansion is delayed until the enclosing allocator
6116 is processed and its finalization list constructed.
6117 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
6118 for an operation with the given name among the primitive operations of
6119 the corresponding record type.
6120 (Analyze_Selected_Component): If the prefix is a task type that
6121 implements an interface, and there is no entry with the given name,
6122 check whether there is another primitive operation (e.g. a function)
6124 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
6125 properly the indexing of a function call written in prefix form, where
6126 the function returns an array type, and all parameters of the function
6127 except the first have defaults.
6128 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
6129 the original operands, rather than relocating them, for efficiency and
6130 to work properly when an operand is overloaded.
6131 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
6132 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
6133 (Analyze_Selected_Component): If the prefix is a private extension, only
6134 scan the visible components, not those of the full view.
6135 (Try_Primitive_Operation): If the operation is a procedure, collect all
6136 possible interpretations, as for a function, because in the presence of
6137 classwide parameters several primitive operations of the type can match
6138 the given arguments.
6140 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6141 Robert Dewar <dewar@adacore.com>
6143 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
6144 tag-indeterminate call to an abstract function, when the left-hand side
6146 (Analyze_Loop_Statement): Improve detection of infinite loops
6148 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6149 Thomas Quinot <quinot@adacore.com>
6151 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
6152 out of Analyze_Package_Declaration, because processing must be applied
6153 to package bodies as well, for deferred constants completed by pragmas.
6154 (Analyze_Package_Declaration): When the package declaration being
6155 analyzed does not require an explicit body, call Check_Completion.
6156 (May_Need_Implicit_Body): An implicit body is required when a package
6157 spec contains the declaration of a remote access-to-classwide type.
6158 (Analyze_Package_Body): If the package contains RACWs, append the
6159 pending subprogram bodies generated by exp_dist at the end of the body.
6160 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
6161 Is_Abstract_Subprogram and Is_Abstract_Type.
6162 (Preserve_Full_Attributes): The full entity list is not an attribute
6163 that must be preserved from full to partial view.
6165 * sem_dist.adb (Add_RAS_Dereference_TSS):
6166 Change primitive name to _Call so it cannot clash with any legal
6167 identifier, and be special-cased in Check_Completion.
6168 Mark the full view of the designated type for the RACW associated with
6169 a RAS as Comes_From_Source to get proper view switching when installing
6170 private declarations.
6171 Provite a placeholder nested package body along with the nested spec
6172 to have a place for Append_RACW_Bodies to generate the calling stubs
6173 and stream attributes.
6175 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6176 Robert Dewar <dewar@adacore.com>
6178 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
6179 that is a limited view, check the non-limited view if available.
6180 (Undefined): Refine error message for missing with of Text_IO
6181 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
6182 to distinguish real missing with cases.
6183 Fix format of all missing with messages
6184 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
6185 renaming as body when renamed entity is abstract.
6187 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6188 Javier Miranda <miranda@adacore.com>
6190 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
6191 predicate recursive, to handle complex expressions on literals whose
6192 spurious ambiguity comes from the abstract interpretation of some
6194 (Interface_Present_In_Ancestor): Add support to concurrent record
6196 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
6197 Is_Abstract_Subprogram and Is_Abstract_Type.
6199 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6200 Javier Miranda <miranda@adacore.com>
6202 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
6203 dereference of a local object R created as a reference to another
6204 object O, use the access level of O.
6205 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
6206 rather than local Same_Formal_Type, to check whether protected operation
6207 overrides an inherited one.
6208 (Same_Formal_Type): New predicate, used when matching signatures of
6209 overriding synchronized operations, to handle the case when a formal
6210 has a type that is a generic actual.
6211 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
6212 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
6213 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
6214 syntactic ambiguities involving indexing of function calls that return
6216 (Abstract_Interface_List): New subprogram that returns the list of
6217 abstract interfaces associated with a concurrent type or a
6218 concurrent record type.
6219 (Interface_Present_In_Parent): New subprogram used to check if a
6220 given type or some of its parents implement a given interface.
6221 (Collect_Abstract_Interfaces): Add support for concurrent types
6222 with interface types.
6223 (Has_Abstract_Interfaces): Add support for concurrent types with
6225 (Is_Parent): New subprogram that determines whether E1 is a parent
6226 of E2. For a concurrent type its parent is the first element of its
6227 list of interface types; for other types this function provides the
6228 same result than Is_Ancestor.
6229 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
6230 (Collect_Synchronized_Interfaces): Removed because the subprogram
6231 Collect_Abstract_Interfaces provides this functionality.
6232 (Collect_Abstract_Interfaces): Minor update to give support to
6233 concurrent types and thus avoid undesired code duplication.
6234 (Get_Subprogram_Entity): Handle entry calls.
6235 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
6237 (Enter_Name): Do not give -gnatwh hiding warning for record component
6238 entities, they never result in hiding.
6240 2007-04-06 Ed Schonberg <schonberg@adacore.com>
6241 Robert Dewar <dewar@adacore.com>
6243 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
6244 to chain nested components that are allocators for access discriminants
6245 of the enclosing object.
6246 Add N_Push and N_Pop nodes
6247 New field Exception_Label added
6248 (Local_Raise_Statements): New field in N_Exception_Handler_Node
6249 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
6250 (Is_Coextension): New flag for allocators, to mark allocators that
6251 correspond to access discriminants of dynamically allocated objects.
6252 (N_Block_Statement): Document the fact that the corresponding entity
6253 can be an E_Return_Statement.
6254 (Is_Coextension): New flag for allocators.
6255 Remove all code for DSP option
6257 * sprint.ads, sprint.adb: Display basic information for class_wide
6258 subtypes. Add handling of N_Push and N_Pop nodes
6260 2007-04-06 Arnaud Charlet <charlet@adacore.com>
6262 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
6263 before propagating exception.
6265 2007-04-06 Olivier Hainque <hainque@adacore.com>
6267 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
6268 an address always within the call instruction from a return address.
6270 2007-04-06 Olivier Hainque <hainque@adacore.com>
6271 Eric Botcazou <botcazou@adacore.com>
6273 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
6274 expression with a COMPOUND_EXPR including the call instead of emitting
6275 the call directly here.
6276 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
6277 high bound is constant and the slice is empty. Tidy.
6278 (tree_transform, case N_Op_Not): Handle properly the case where the
6279 operation applies to a private type whose full view is a modular type.
6280 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
6281 Address_Clause, use the associated Expression as the GNAT tree
6282 representing the choice value to ensure the corresponding GCC tree is
6284 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
6285 instead of just the operands, as the base GCC stabilize_reference does.
6286 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
6287 requested; otherwise fail.
6288 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
6290 2007-04-06 Thomas Quinot <quinot@adacore.com>
6292 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
6293 implementation of UI_Div.
6294 (UI_Div): Reimplement as a call to UI_Div_Rem.
6295 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
6296 remainder, avoiding the cost of a multiplication and a subtraction.
6297 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
6298 provides both quotient and remainder in a single computation.
6299 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
6301 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
6302 is undefined if the given n is not inversible.
6304 2007-04-06 Olivier Hainque <hainque@adacore.com>
6306 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
6307 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
6310 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6311 Olivier Hainque <hainque@adacore.com>
6313 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
6314 when updating the contents of the old pointer to an unconstrained array.
6315 (end_subprog_body): Set error_gnat_node to Empty.
6316 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
6317 (unchecked_convert): For subtype to base type conversions, require that
6318 the source be a subtype if it is an integer type.
6319 (builtin_decls): New global, vector of available builtin functions.
6320 (gnat_pushdecl): Add global builtin function declaration nodes to the
6322 (gnat_install_builtins): Adjust comments.
6323 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
6324 calling gnat_pushdecl, so that it knows when it handed a builtin
6325 function declaration node.
6326 (builtin_decl_for): Search the builtin_decls list.
6328 2007-04-06 Eric Botcazou <botcazou@adacore.com>
6330 * s-stchop-vxworks.adb:
6331 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
6333 2007-04-06 Robert Dewar <dewar@adacore.com>
6334 Arnaud Charlet <charlet@adacore.com>
6336 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
6338 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
6340 Add mention of -Sev (set initialize_scalars option from environment
6341 variable at run time) in gnatbind usage message.
6343 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
6345 * fname-uf.ads: Minor comment fix
6347 * osint.ads: Change pragma Elaborate to Elaborate_All
6349 * par-load.adb: Add documentation.
6351 * sem_cat.ads, sem_cat.adb: Minor code reorganization
6353 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
6355 * s-secsta.ads: Extra comments
6357 * s-soflin.ads: Minor comment fixes
6359 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
6361 * s-wchcon.ads: Minor comment addition
6363 * treepr.adb: Minor change in message
6364 (Print_Name,Print_Node): Make these debug printouts more robust: print
6365 "no such..." instead of crashing on bad input.
6367 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
6369 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
6370 instead of gnat_signed_or_unsigned_type.
6371 * utils.c (gnat_signed_or_unsigned_type): Remove.
6372 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
6373 * gigi.h (gnat_signed_or_unsigned_type): Remove
6375 2007-03-09 Roger Sayle <roger@eyesopen.com>
6377 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
6378 fold with the result of buildN.
6379 * decl.c (gnat_to_gnu_entity): Likewise.
6380 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
6381 * utils.c (finish_record_type, merge_sizes, max_size, convert):
6383 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
6384 nonbinary_modular_operation, build_binary_op, build_unary_op,
6385 build_cond_expr): Likewise.
6387 * utils.c (convert): Use fold_build1 when casting values to void.
6388 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
6389 fold_convert instead of convert when appropriate.
6391 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
6393 * Make-lang.in: Add install-pdf target as copied from
6394 automake v1.10 rules.
6396 2007-02-28 Andreas Schwab <schwab@suse.de>
6398 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
6399 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
6400 (doc/gnat-style.info): Likewise.
6402 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
6404 * gnat-style.texi: Standardize title page.
6405 * gnat_rm.texi: Likewise.
6406 * gnat_ugn.texi: Likewise.
6408 2007-02-25 Mark Mitchell <mark@codesourcery.com>
6410 * decl.c (annotate_value): Adjust for refactoring of tree_map
6413 2007-02-24 Mark Mitchell <mark@codesourcery.com>
6415 * decl.c (annotate_value): Adjust for refactoring of tree_map
6418 2007-02-21 Ed Schonberg <schonberg@adacore.com>
6421 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
6422 untagged derived type, add hidden components to keep discriminant
6423 layout consistent, when a given discriminant of the derived type
6424 constraints several discriminants of the parent type.
6426 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
6427 Sandra Loosemore <sandra@codesourcery.com>
6429 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
6430 build the call expression.
6431 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
6432 * utils.c (max_size) <tcc_exceptional>: Delete.
6433 <tcc_vl_exp>: New case.
6434 <tcc_expression>: Delete CALL_EXPR subcase.
6435 (build_global_cdtor): Use build_call_nary instead of build3.
6436 * utils2.c (build_call_1_expr): Likewise.
6437 (build_call_2_expr): Likewise.
6438 (build_call_0_expr): Likewise.
6439 (build_call_alloc_dealloc): Likewise.
6441 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
6443 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
6444 get_action_description_for): Replace _Unwind_Word with _uleb128_t
6445 and _Unwind_SWord with _sleb128_t.
6447 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
6449 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
6450 * decl.c: Include gt-ada-decl.h.
6451 (annotate_value_cache): New.
6452 (annotate_value): Use it instead of TREE_COMPLEXITY.
6454 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
6456 * misc.c, utils2.c: Fix comment typos.
6458 2007-01-24 Roger Sayle <roger@eyesopen.com>
6460 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
6461 TREE_CONSTANT_OVERFLOW.
6462 (allocatable_size_p, annotate_value): Likewise.
6463 * trans.c (gnat_to_gnu): Likewise.
6464 * utils.c (unchecked_convert): Likewise.
6465 * utils2.c (build_simple_component_ref): Likewise.
6467 2007-01-23 Richard Guenther <rguenther@suse.de>
6470 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
6471 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
6472 (gnatboot3): Likewise.
6473 (GNATBIND): Do not define.
6474 * Makefile.in (GNATBIND): Do not define.
6476 2007-01-08 Richard Guenther <rguenther@suse.de>
6478 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
6479 * trans.c (gnat_to_gnu): Likewise.
6481 2006-12-07 Geoffrey Keating <geoffk@apple.com>
6483 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
6484 * adaint.c: Likewise.
6486 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
6488 Merge from gimple-tuples-branch:
6489 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
6491 * ada-tree.h (lang_tree_node): Handle gimple tuples.
6492 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
6495 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
6497 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
6498 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
6501 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
6504 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
6505 if the initializer takes into account the padding.
6507 2006-11-11 Richard Guenther <rguenther@suse.de>
6509 * trans.c (maybe_stabilize_reference): Remove handling of
6510 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
6512 2006-11-05 Arnaud Charlet <charlet@adacore.com>
6515 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
6516 (To_Target_Priority): New function.
6518 2006-10-31 Robert Dewar <dewar@adacore.com>
6520 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
6521 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
6522 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
6523 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
6524 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
6525 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
6526 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
6527 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
6528 a-szbzha.adb: Minor reformatting. Fix header.
6530 * a-numaux-x86.adb: Add parentheses for use of unary minus
6531 * a-ngcefu.adb: Supply missing parentheses for unary minus
6532 * a-ngcoty.adb: Add parens for use of unary minus
6533 * a-ngelfu.adb: Add missing parens for unary minus
6534 * a-tifiio.adb: Add parentheses for uses of unary minus
6536 2006-10-31 Robert Dewar <dewar@adacore.com>
6537 Bob Duff <duff@adacore.com>
6538 Ed Schonberg <schonberg@adacore.com>
6540 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
6541 with multiplying operator.
6542 (Expected_Type_Is_Any_Real): New function to determine from the Parent
6543 pointer whether the context expects "any real type".
6544 (Resolve_Arithmetic_Op): Do not give an error on calls to the
6545 universal_fixed "*" and "/" operators when they are used in a context
6546 that expects any real type. Also set the type of the node to
6547 Universal_Real in this case, because downstream processing requires it
6548 (mainly static expression evaluation).
6549 Reword some continuation messages
6550 Add some \\ sequences to continuation messages
6551 (Resolve_Call): Refine infinite recursion case. The test has been
6552 sharpened to eliminate some false positives.
6553 Check for Current_Task usage now includes entry barrier, and is now a
6554 warning, not an error.
6555 (Resolve): If the call is ambiguous, indicate whether an interpretation
6556 is an inherited operation.
6557 (Check_Aggr): When resolving aggregates, skip associations with a box,
6558 which are priori correct, and will be replaced by an actual default
6559 expression in the course of expansion.
6560 (Resolve_Type_Conversion): Add missing support for conversion from
6561 a class-wide interface to a tagged type. Minor code cleanup.
6562 (Valid_Tagged_Converion): Add support for abstact interface type
6564 (Resolve_Selected_Component): Call Generate_Reference here rather than
6565 during analysis, and use May_Be_Lvalue to distinguish read/write.
6566 (Valid_Array_Conversion): New procedure, abstracted from
6567 Valid_Conversion, to incorporate accessibility checks for arrays of
6568 anonymous access types.
6569 (Valid_Conversion): For a conversion to a numeric type occurring in an
6570 instance or inlined body, no need to check that the operand type is
6571 numeric, since this has been checked during analysis of the template.
6572 Remove legacy test for scope name Unchecked_Conversion.
6574 * sem_res.ads: Minor reformatting
6576 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
6577 (PE_Current_Task_In_Entry_Body): New exception code
6578 (SE_Restriction_Violation): Removed, not used
6580 * a-except.ads: Update comments.
6582 * types.h, types.ads: Add definition for Validity_Check
6583 (PE_Current_Task_In_Entry_Body): New exception code
6584 (SE_Restriction_Violation): Removed, not used
6586 2006-10-31 Thomas Quinot <quinot@adacore.com>
6588 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
6591 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
6592 Jose Ruiz <ruiz@adacore.com>
6594 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
6595 part of Ada.Calendar: all subprogram raise Unimplemented.
6596 (Split_W_Offset): Temp function body, raising Unimplemented
6598 * a-calend.ads, a-calend-vms.ads:
6599 Add imported variable Invalid_TZ_Offset used to designate targets unable
6600 to support time zones.
6601 (Unimplemented): Temporary function raised by the body of new
6603 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
6604 unit provides handling of leap seconds and is used by the new Ada 2005
6605 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
6606 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
6607 version returns an extra value which is the offset to UTC.
6609 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
6610 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
6611 (Split_W_Offset): New function body.
6612 (Time_Of): When a date is close to UNIX epoch, compute the time for
6613 that date plus one day (that amount is later substracted after
6614 executing mktime) so there are no problems with time zone adjustments.
6616 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
6618 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
6619 a-catizo.ads, a-catizo.adb: New files.
6621 * impunit.adb: Add new Ada 2005 entries
6623 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
6624 Rename all occurences of "__gnat_localtime_r" to
6625 "__gnat_localtime_tzoff".
6626 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
6627 zone data and calculate the GMT offset.
6628 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
6629 Use the field "tm_gmtoff" to extract the GMT offset.
6630 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
6631 the external variable "timezone" to calculate the GMT offset.
6633 2006-10-31 Arnaud Charlet <charlet@adacore.com>
6634 Jose Ruiz <ruiz@adacore.com>
6636 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
6637 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
6638 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
6639 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
6640 System.Any_Priority to a POSIX priority on the target.
6642 * system-linux-ia64.ads:
6643 Extend range of Priority types on Linux to use the whole range made
6644 available by the system.
6646 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
6647 function maps from System.Any_Priority to a POSIX priority on the
6649 (PTHREAD_PRIO_PROTECT): Set real value.
6650 (PTHREAD_PRIO_INHERIT): Now a function.
6651 (SIGCPUFAIL): New signal.
6652 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
6653 are documented as reserved by the OS.
6655 * system-aix.ads: Use the full range of priorities provided by the
6658 * s-taprop-posix.adb: Call new function To_Target_Priority.
6659 (Set_Priority): Take into account Task_Dispatching_Policy and
6660 Priority_Specific_Dispatching pragmas when determining if Round Robin
6661 must be used for scheduling the task.
6663 * system-linux-x86_64.ads, system-linux-x86.ads,
6664 system-linux-ppc.ads: Extend range of Priority types on Linux to use
6665 the whole range made available by the system.
6667 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
6668 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
6669 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
6670 when deallocating the TCB in order to avoid potential references to
6672 (Set_Priority): Take into account Task_Dispatching_Policy and
6673 Priority_Specific_Dispatching pragmas when determining if Round Robin
6674 or FIFO within priorities must be used for scheduling the task.
6676 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
6677 the Thread field (to be used internally by the run-time system) and the
6678 kernel-level task id in the LWP field (to be used by the debugger).
6679 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
6680 instance, and propagate the current task options to the spawned task.
6681 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
6682 (Initialize): Set Round Robin dispatching when the corresponding pragma
6685 2006-10-31 Robert Dewar <dewar@adacore.com>
6687 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
6688 system-linux-hppa.ads, system-hpux-ia64.ads,
6689 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
6690 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
6691 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
6692 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
6693 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
6694 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
6695 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
6696 Default_Bit_Order) to kill constant condition warnings for references
6699 2006-10-31 Vincent Celier <celier@adacore.com>
6700 Eric Botcazou <ebotcazou@adacore.com>
6702 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
6703 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
6704 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
6705 Ext_To, when building the library file name
6707 * mlib-tgt-vxworks.adb: ditto.
6708 (Get_Target_Suffix): Add support for x86 targets.
6710 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
6712 * mlib-tgt-darwin.adb:
6713 Use Append_To, instead of Ext_To, when building the library file name
6714 (Flat_Namespace): New global variable.
6715 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
6716 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
6717 (Link_Shared_Libgcc): Delete.
6718 (Build_Dynamic_Library): Adjust for above changes.
6720 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
6722 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
6724 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
6725 (Initialize): Add type conversions required by above change.
6727 2006-10-31 Jose Ruiz <ruiz@adacore.com>
6729 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
6730 (getpid): New body for this function that uses the underlying taskIdSelf
6731 function for VxWorks 5 and VxWorks 6 in kernel mode.
6732 (unsigned_int): New type, modular to allow logical bit operations.
6733 (taskOptionsGet): New imported function.
6735 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
6736 field to be compliant with the type used by the corresponding operating
6739 2006-10-31 Pascal Obry <obry@adacore.com>
6740 Eric Botcazou <ebotcazou@adacore.com>
6741 Vincent Celier <celier@adacore.com>
6743 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
6744 ASCII version of the registry API. This is needed as the GNAT runtime
6745 is now UNICODE by default.
6747 (get_gcc_version): Do not hardcode the return value.
6748 (__gnat_file_time_name): On Windows properly set the default returned
6749 value to -1 which corresponds to Invalid_Time.
6750 (__gnat_fopen): New routine. A simple wrapper on all plateforms
6751 except on Windows where it does conversion for unicode support.
6752 (__gnat_freopen): Idem.
6753 (__gnat_locate_exec_on_path): If environment variable PATH does not
6754 exist, return a NULL pointer
6756 * adaint.h: (__gnat_fopen): Declare.
6757 (__gnat_freopen): Likewise.
6759 * mingw32.h (_tfreopen): Define this macro here for older MingW
6761 Activate the unicode support on platforms using a MingW runtime
6762 version 3.9 or newer.
6764 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
6765 This is needed for proper unicode support on Windows.
6768 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
6769 Nicolas Setton <setton@adacore.com>
6770 Olivier Hainque <hainque@adacore.com>
6771 Gary Dismukes <dismukes@adacore.com>
6773 * gigi.h: (tree_code_for_record_type): Declare.
6774 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
6775 (get_global_renaming_pointers): Rename to
6776 invalidate_global_renaming_pointers.
6777 (static_ctors): Delete.
6778 (static_dtors): Likewise.
6779 (gnat_write_global_declarations): Declare.
6780 (create_var_decl): Adjust descriptive comment to indicate that the
6781 subprogram may return a CONST_DECL node.
6782 (create_true_var_decl): Declare new function, similar to
6783 create_var_decl but forcing the creation of a VAR_DECL node.
6784 (get_global_renaming_pointers): Declare.
6785 (add_global_renaming_pointer): Likewise.
6787 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
6789 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
6790 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
6792 (gnat_to_gnu_entity): Remove From_With_Type from computation for
6794 <E_Access_Type>: Use the Non_Limited_View as the full view of the
6795 designated type if the pointer comes from a limited_with clause. Make
6796 incomplete designated type if it is in the main unit and has a freeze
6798 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
6799 Underlying_Full_View similarly. Return earlier if the full view already
6800 has an associated tree.
6801 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
6802 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
6803 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
6804 reference type built for objects with an address clause.
6805 Use create_true_var_decl with const_flag set for
6806 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
6808 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
6809 for Character and Wide_Character types. This info is read by the
6810 dwarf-2 writer, and is needed to be able to use the command "ptype
6811 character" in the debugger.
6812 (gnat_to_gnu_entity): When generating a type representing
6813 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
6814 so that debug writers can distinguish it from ordinary integers.
6815 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
6816 addition to TREE_READONLY to assert the constantness of variables for
6817 elaboration purposes.
6818 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
6819 parameters to call new Einfo function First_Formal_With_Extras.
6820 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
6821 protected type with its corresponding discriminant, to obtain a usable
6823 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
6824 for a multiple elaboration of the "equivalent" type.
6825 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
6826 into record_global_renaming_pointer.
6827 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
6828 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
6829 <E_Array_Subtype>: Likewise.
6830 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
6831 incomplete subtypes and incomplete subtypes of incomplete types visible
6832 through a limited with clause.
6833 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
6834 the base index type for the maximum size of the array only if they are
6836 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
6837 expression into a SAVE_EXPR if stabilization failed.
6839 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
6840 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
6841 by lower level compilation passes.
6842 (gnat_genericize): New function, lowering a function body to GENERIC.
6843 Turn the type of RESULT_DECL into a real reference type if the decl
6844 has been marked DECL_BY_REFERENCE, and adjust references to the latter
6846 (gnat_genericize_r): New function. Tree walking callback for
6848 (convert_from_reference, is_byref_result): New functions. Helpers for
6850 (create_type_decl): Call gnat_pushdecl before calling
6851 rest_of_decl_compilation, to make sure that field TYPE_NAME of
6852 type_decl is properly set before calling the debug information writers.
6853 (write_record_type_debug_info): The heuristics which compute the
6854 alignment of a field in a variant record might not be accurate. Add a
6855 safety test to make sure no alignment is set to a smaller value than
6856 the alignment of the field type.
6857 (make_dummy_type): Use the Non_Limited_View as the underlying type if
6858 the type comes from a limited_with clause. Do not loop on the full view.
6859 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
6860 (dummy_node_table): New global variable, moved from decl.c.
6861 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
6862 (save_gnu_tree): Use above macros.
6863 (get_gnu_tree): Likewise.
6864 (present_gnu_tree): Likewise.
6865 (init_dummy_type): New function, moved from decl.c. Use above macros.
6866 (make_dummy_type): Likewise.
6867 (tree_code_for_record_type): New function extracted from make_dummy_type
6868 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
6869 (static_ctors): Change it to a vector, make static.
6870 (static_dtors): Likewise.
6871 (end_subprog_body): Adjust for above change.
6872 (build_global_cdtor): Moved from trans.c.
6873 (gnat_write_global_declarations): Emit global constructor and
6874 destructor, and call cgraph_optimize before emitting debug info for
6875 global declarations.
6876 (global_decls): New global variable.
6877 (gnat_pushdecl): Store the global declarations in global_decls, for
6879 (gnat_write_global_declarations): Emit debug information for global
6881 (create_var_decl_1): Former create_var_decl, with an extra argument to
6882 state whether the creation of a CONST_DECL is allowed.
6883 (create_var_decl): Behavior unchanged. Now a wrapper around
6884 create_var_decl_1 allowing CONST_DECL creation.
6885 (create_true_var_decl): New function, similar to create_var_decl but
6886 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
6887 (create_field_decl): Do not always mark the field as addressable
6888 if its type is an aggregate.
6889 (global_renaming_pointers): New static variable.
6890 (add_global_renaming_pointer): New function.
6891 (get_global_renaming_pointers): Likewise.
6893 * misc.c (gnat_dwarf_name): New function.
6894 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
6895 (gnat_post_options): Add comment about structural alias analysis.
6896 (gnat_parse_file): Do not call cgraph_optimize here.
6897 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
6899 * trans.c (process_freeze_entity): Don't abort if we already have a
6900 non dummy GCC tree for a Concurrent_Record_Type, as it might
6901 legitimately have been elaborated while processing the associated
6902 Concurrent_Type prior to this explicit freeze node.
6903 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
6904 exception handler volatile if it is of variable size.
6905 (process_type): Remove bypass for types coming from a limited_with
6907 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
6908 actual, convert the corresponding gnu_actual to the real destination
6909 type when necessary.
6910 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
6911 originally TREE_READONLY but whose elaboration cannot be performed
6913 Part of fix for F504-021.
6914 (tree_transform, subprogram cases): Change loops on formal parameters to
6915 call new Einfo function First_Formal_With_Extras.
6916 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
6917 stemming from type conversion for the lhs.
6918 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
6919 number of bits per unit for components of records.
6920 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
6921 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
6922 with At_End_Proc after the SJLJ EH cleanup.
6923 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
6925 (elaborate_all_entities): Do not retest type_annotate_only.
6926 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
6927 result type of an abstract subprogram, which may be an itype associated
6928 with an anonymous access result (related to AI-318-02).
6929 (build_global_cdtor): Move to utils.c.
6930 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
6931 this choice is not a null tree nor an integer constant.
6932 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
6933 on the body of elaboration routines instead of mark_unvisited.
6934 (add_stmt): Do not mark the tree.
6935 (add_decl_expr): Tweak comment.
6936 (mark_unvisited): Delete.
6937 (unshare_save_expr): New static function.
6938 (call_to_gnu): Issue an error when making a temporary around a
6939 procedure call because of non-addressable actual parameter if the
6940 type of the formal is by_reference.
6941 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
6942 after building the elaboration routine.
6944 2006-10-31 Bob Duff <duff@adacore.com>
6946 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
6947 as finalization-started, so we can raise Program_Error on 'new'.
6949 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
6950 collection has already started.
6952 * s-finimp.ads (Collection_Finalization_Started): Added new special
6953 flag value for indicating that a collection's finalization has started.
6955 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
6956 create a task whose master has already waited for dependent tasks.
6958 2006-10-31 Robert Dewar <dewar@adacore.com>
6960 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
6962 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
6963 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
6964 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
6965 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
6966 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
6967 a-except-2005.ads: Add pragma Preelaborable_Warning
6969 2006-10-31 Robert Dewar <dewar@adacore.com>
6970 Jose Ruiz <ruiz@adacore.com>
6972 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
6974 * ali.adb (Get_Name): Properly handle scanning of wide character names
6975 encoded with brackets notation.
6976 (Known_ALI_Lines): Add S lines to this list.
6977 (Scan_ALI): Acquire S (priority specific dispatching) lines.
6978 New flag Elaborate_All_Desirable in unit table
6980 * ali.ads (Priority_Specific_Dispatching): Add this range of
6981 identifiers to be used for Priority_Specific_Dispatching table entries.
6982 (ALIs_Record): Add First_Specific_Dispatching and
6983 Last_Specific_Dispatching that point to the first and last entries
6984 respectively in the priority specific dispatching table for this unit.
6985 (Specific_Dispatching): Add this table for storing each S (priority
6986 specific dispatching) line encountered in the input ALI file.
6987 New flag Elaborate_All_Desirable in unit table
6989 * bcheck.adb: (Check_Configuration_Consistency): Add call to
6990 Check_Consistent_Dispatching_Policy.
6991 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
6992 verifying that the use of Priority_Specific_Dispatching,
6993 Task_Dispatching_Policy, and Locking_Policy is consistent across the
6996 * bindgen.adb: (Public_Version_Warning): function removed.
6997 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
6998 required information from ALI files in order to initialize the table
6999 containing the specific dispatching policy.
7000 (Gen_Adainit_Ada): Generate the variables required for priority specific
7001 dispatching entries (__gl_priority_specific_dispatching and
7002 __gl_num_specific_dispatching).
7003 (Gen_Adainit_C): Generate the variables required for priority specific
7004 dispatching entries (__gl_priority_specific_dispatching and
7005 __gl_num_specific_dispatching).
7006 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
7008 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
7009 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
7011 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
7012 a call to gnat_set_globals.
7013 Generate a string containing settings from
7014 Priority_Specific_Dispatching pragma entries.
7015 (Gen_Object_Files_Options): Do not include the runtime libraries when
7016 pragma No_Run_Time is specified.
7018 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
7019 consistency with s-intman-posix.adb.
7020 (__gnat_error_handler, case FreeBSD): Account for the fact that the
7021 handler is installed with SA_SIGINFO.
7022 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
7023 FreeBSD ZCX support, copied from Linux version.
7024 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
7025 sigfillset, and sigemptyset so the routines defined by MaRTE.
7026 (__gl_priority_specific_dispatching): Add this variable that stores the
7027 string containing priority specific dispatching policies in the
7029 (__gl_num_specific_dispatching): Add this variable that indicates the
7030 highest priority for which a priority specific dispatching pragma
7032 (__gnat_get_specific_dispatching): Add this routine that returns the
7033 priority specific dispatching policy, as set by a
7034 Priority_Specific_Dispatching pragma appearing anywhere in the current
7035 partition. The input argument is the priority number, and the result
7036 is the upper case first character of the policy name.
7037 (__gnat_set_globals): Now a dummy function.
7038 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
7039 mechargs instead of sigargs, as the latter can be retrieved from the
7040 former and sigargs is not what we want on ia64.
7041 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
7043 (__gnat_adjust_context_for_raise, ia64-vms): New function.
7044 (tasking_error): Remove unused symbol.
7045 (_abort_signal): Move this symbol to the IRIX specific part since this
7046 is the only target that uses this definition.
7047 (Check_Abort_Status): Move this symbol to the IRIX specific part since
7048 this is the only target that uses this definition.
7049 (Lock_Task): Remove unused symbol.
7050 (Unlock_Task): Remove unused symbol.
7052 * lib-writ.adb (Write_ALI): Output new S lines for
7053 Priority_Specific_Dispatching pragmas.
7054 Implement new flag BD for elaborate body desirable
7056 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
7057 (Specific_Dispatching): Add this table for storing the entries
7058 corresponding to Priority_Specific_Dispatching pragmas.
7059 Document new BD flag for elaborate body desirable
7061 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
7064 2006-10-31 Javier Miranda <miranda@adacore.com>
7066 * a-tags.ads, a-tags.adb:
7067 (Predefined_DT): New function that improves readability of the code.
7068 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
7069 Inherit_DT): Use the new function Predefined_DT to improve code
7071 (Register_Interface_Tag): Update assertion.
7072 (Set_Interface_Table): Update assertion.
7073 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
7074 determining progenitor interfaces in Tags.
7075 (Inherit_CPP_DT): New subprogram.
7077 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
7078 analysis of the thunk code.
7079 (Expand_Interface_Conversion): Handle run-time conversion of
7080 access to class wide types.
7081 (Expand_Dispatching_Call): When generating the profile for the
7082 subprogram itype for a dispatching operation, properly terminate the
7083 formal parameters chaind list (set the Next_Entity of the last formal
7085 (Collect_All_Interfaces): Removed. This routine has been moved to
7086 sem_util and renamed as Collect_All_Abstract_Interfaces.
7087 (Set_All_DT_Position): Hidden entities associated with abstract
7088 interface primitives are not taken into account in the check for
7089 3.9.3(10); this check is done with the aliased entity.
7090 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
7091 interfacing with CPP by default.
7092 (Expand_Interface_Conversion): Add missing support for static conversion
7093 from an interface to a tagged type.
7094 (Collect_All_Interfaces): Add new out formal containing the list of
7095 abstract interface types to cleanup the subprogram Make_DT.
7096 (Make_DT): Update the code to generate the table of interfaces in case
7097 of abstract interface types.
7098 (Is_Predefined_Dispatching_Alias): New function that returns true if
7099 a primitive is not a predefined dispatching primitive but it is an
7100 alias of a predefined dispatching primitive.
7101 (Make_DT): If the ancestor of the type is a CPP_Class and we are
7102 compiling under full ABI compatibility mode we avoid the generation of
7103 calls to run-time services that fill the dispatch tables because under
7104 this mode we currently inherit the dispatch tables in the IP subprogram.
7105 (Write_DT): Emit an "is null" indication for a null procedure primitive.
7106 (Expand_Interface_Conversion): Use an address as the type of the formal
7107 of the internally built function that handles the case in which the
7108 target type is an access type.
7110 2006-10-31 Robert Dewar <dewar@adacore.com>
7112 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
7114 2006-10-31 Robert Dewar <dewar@adacore.com>
7116 * bindusg.ads, bindusg.adb:
7117 Change to package and rename procedure as Display, which
7118 now ensures that it only outputs usage information once.
7120 2006-10-31 Jose Ruiz <ruiz@adacore.com>
7122 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
7125 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
7128 2006-10-31 Robert Dewar <dewar@adacore.com>
7129 Ed Schonberg <schonberg@adacore.com>
7131 * treepr.adb: Use new subtype N_Membership_Test
7133 * checks.ads, checks.adb: Add definition for Validity_Check
7134 (Range_Or_Validity_Checks_Suppressed): New function
7135 (Ensure_Valid): Test Validity_Check suppressed
7136 (Insert_Valid_Check): Test Validity_Check suppressed
7137 (Insert_Valid_Check): Preserve Do_Range_Check flag
7138 (Validity_Check_Range): New procedure
7139 (Expr_Known_Valid): Result of membership test is always valid
7140 (Selected_Range_Checks): Range checks cannot be applied to discriminants
7141 by themselves. Disabling those checks must also be done for task types,
7142 where discriminants may be used for the bounds of entry families.
7143 (Apply_Address_Clause_Check): Remove side-effects if address expression
7144 is non-static and is not the name of a declared constant.
7145 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
7146 Code cleanup and new error messages.
7147 (Enable_Range_Check): Test for some cases of suppressed checks
7148 (Generate_Index_Checks): Suppress index checks if index checks are
7149 suppressed for array object or array type.
7150 (Apply_Selected_Length_Checks): Give warning for compile-time detected
7151 length check failure, even if checks are off.
7152 (Ensure_Valid): Do not generate a check on an indexed component whose
7153 prefix is a packed boolean array.
7154 * checks.adb: (Alignment_Checks_Suppressed): New function
7155 (Apply_Address_Clause_Check): New procedure, this is a completely
7156 rewritten replacement for Apply_Alignment_Check
7157 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
7158 we request a discriminal value only in case of discriminants.
7159 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
7160 assignments where the target subtype is unconstrained and the target
7161 object is a parameter or dereference (other aliased cases are known
7162 to be unconstrained).
7164 2006-10-31 Robert Dewar <dewar@adacore.com>
7166 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
7167 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
7168 vms_conv.adb: Fix bad table increment values (much too small)
7170 * table.adb (Realloc): Make sure we get at least some new elements
7171 Defends against silly small values for table increment
7173 2006-10-31 Robert Dewar <dewar@adacore.com>
7174 Ed Schonberg <schonberg@adacore.com>
7175 Bob Duff <duff@adacore.com>
7177 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
7178 entities. Move other fields around to make this possible
7179 (Is_Derived_Type): Add missing call to Is_Type.
7180 (Extra_Formals): New function for subprograms, entries, subprogram
7182 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
7183 (First_Formal_With_Extras): New function for subprogs, entries, subp
7185 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
7186 Add node information for E_Return_Statement.
7187 (Elaborate_Body_Desirable): New flag
7188 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
7189 to be Is_Inherently_Limited_Type, because return-by-reference has
7190 no meaning in Ada 2005.
7191 (E_Return_Statement): New entity kind.
7192 (Return_Applies_To): Field of E_Return_Statement.
7193 (Is_Return_Object): New flag in object entities.
7194 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
7195 (Must_Have_Preelab_Init): New flag
7196 (Known_To_Have_Preelab_Init): New flag
7197 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
7198 (Is_Visible_Formal): New flag on entities in formal packages.
7199 (Low_Bound_Known): New flag
7200 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
7202 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
7203 output when Id is an incomplete subtype.
7205 2006-10-31 Robert Dewar <dewar@adacore.com>
7207 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
7208 Avoid abbreviation Creat
7209 (Finalize): List all sources in extended mail source if -gnatl
7211 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
7212 (Finalize): Implement new -gnatl=xxx switch to output listing to file
7213 (Set_Specific_Warning_On): New procedure
7214 (Set_Specific_Warning_Off): New procedure
7215 Add implementation of new insertion \\
7216 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
7217 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
7219 (Error_Msg_Internal): Make sure that we set Last_Killed to
7220 True when a message from another package is suppressed.
7221 Implement insertion character ~ (insert string)
7222 (First_Node): Minor adjustments to get better placement.
7225 Implement new -gnatl=xxx switch to output listing to file
7228 Implement new -gnatl=xxx switch to output listing to file
7230 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
7231 (Commands_To_Stdout): New flag
7232 Implement new -gnatl=xxx switch to output listing to file
7233 New switch Dump_Source_Text
7234 (Warn_On_Deleted_Code): New warning flag for -gnatwt
7235 Define Error_Msg_Line_Length
7236 (Warn_On_Assumed_Low_Bound): New switch
7238 * osint.ads, osint.adb
7239 (Normalize_Directory_Name): Fix bug.
7240 Implement new -gnatl=xxx switch to output listing to file
7241 (Concat): Removed, replaced by real concatenation
7242 Make use of concatenation now allowed in compiler
7243 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
7244 we find the 'lib' or 'bin' directory even when the tool has been
7245 invoked with a relative path.
7246 (Executable_Name): New function taking string parameters.
7248 * osint-c.ads, osint-c.adb:
7249 Implement new -gnatl=xxx switch to output listing to file
7251 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
7254 Implement new -gnatl=xxx switch to output listing to file
7255 Recognize new -gnatL switch
7256 (no longer keep in old warning about old style usage)
7257 Use concatenation to simplify code
7258 Recognize -gnatjnn switch
7259 (Scan_Front_End_Switches): Clean up handling of -gnatW
7260 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
7262 2006-10-31 Robert Dewar <dewar@adacore.com>
7264 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
7265 (Set_Specific_Warning_Off): New procedure
7266 (Warning_Specifically_Suppressed): New function
7267 (Validate_Specific_Warnings): New procedure
7268 (Output_Msg_Text): Complete rewrite to support -gnatjnn
7270 * err_vars.ads: Implement insertion character ~ (insert string)
7272 2006-10-31 Bob Duff <duff@adacore.com>
7273 Ed Schonberg <schonberg@adacore.com>
7275 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
7276 the parent part is a build-in-place function call, generate assignments.
7277 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
7278 are build-in-place function calls.
7279 (Replace_Self_Reference): New subsidiary of
7280 Make_OK_Assignment_Statement, to replace an access attribute that is a
7281 self-reference into an access to the appropriate component of the
7282 target object. Generalizes previous mechanism to handle self-references
7283 nested at any level.
7284 (Is_Self_Referential_Init): Remove, not needed.
7285 (Is_Self_Referential_Init): New predicate to simplify handling of self
7286 referential components in record aggregates.
7287 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
7288 check for presence of entity before checking for self-reference.
7289 (Has_Default_Init_Comps): Return True if a component association is a
7290 self-reference to the enclosing type, which can only come from a
7291 default initialization.
7292 (Make_OK_Assignment_Statement): If the expression is of the form
7293 Typ'Acc, where Acc is an access attribute, the expression comes from a
7294 default initialized self-referential component.
7295 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
7296 that has been derived from several abstract interfaces we must also
7297 initialize the tags of the secondary dispatch tables.
7299 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7300 Thomas Quinot <quinot@adacore.com>
7301 Javier Miranda <miranda@adacore.com>
7302 Robert Dewar <dewar@adacore.com>
7305 (Expand_Access_To_Protected_Op): If the context indicates that an access
7306 to a local operation may be transfered outside of the object, create an
7307 access to the wrapper operation that must be used in an external call.
7308 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
7309 target, pass the Valid attribute applied to a floating-point prefix on
7310 to the back end without expansion.
7311 (Storage_Size): Use the new run-time function Storage_Size to retrieve
7312 the allocated storage when it is specified by a per-object expression.
7313 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
7314 Nothing to do here, the attribute has been rewritten during semantic
7316 (Expand_Attribute_Reference): Handle expansion of the new Priority
7318 (Find_Fat_Info): Handle case of universal real
7319 (Expand_Access_To_Protected_Op): Fix use of access to protected
7320 subprogram from inside the body of a protected entry.
7321 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
7322 'Access and 'Unrestricted_Access, to transform the attribute reference
7324 (Is_Constrained_Aliased_View): New predicate to help determine whether a
7325 subcomponent's enclosing variable is aliased with a constrained subtype.
7326 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
7327 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
7328 an aliased prefix must be known to be constrained in order to use True
7329 for the attribute value, and now it's possible for some aliased views
7330 to be unconstrained.
7332 2006-10-31 Robert Dewar <dewar@adacore.com>
7334 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
7335 (Expand_Entity_Reference): Correct error of not handling subprogram
7336 formals in current_value processing.
7338 2006-10-31 Javier Miranda <miranda@adacore.com>
7339 Robert Dewar <dewar@adacore.com>
7340 Ed Schonberg <schonberg@adacore.com>
7341 Gary Dismukes <dismukes@adacore.com>
7343 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
7344 register in the final list objects containing class-wide interfaces;
7345 otherwise we incorrectly register the tag of the interface in the final
7347 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
7348 generate the wrapper if the parent primitive is abstract. This is
7349 required to report the correct error message.
7350 (Expand_N_Subtype_Indication): Do validity checks on range
7351 (Clean_Task_Names): If an initialization procedure includes a call to
7352 initialize a task (sub)component, indicate that the procedure will use
7353 the secondary stack.
7354 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
7355 compatibility for interfacing with CPP by default.
7356 (Expand_N_Object_Declaration): Only build an Adjust call when the
7357 object's type is a nonlimited controlled type.
7358 * exp_ch3.adb: Add with and use of Exp_Ch6.
7359 (Expand_N_Object_Declaration): Check for object initialization that is a
7360 call to build-in-place function and apply Make_Build_In_Place_Call_In_
7361 Object_Declaration to the call.
7362 (Freeze_Type): When the designated type of an RACW was not frozen at the
7363 point where the RACW was declared, validate the primitive operations
7364 with respect to E.2.2(14) when it finally is frozen.
7365 (Build_Initialization_Call,Expand_Record_Controller): Rename
7366 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
7367 return-by-reference has no meaning in Ada 2005.
7368 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
7369 to register tag of the immediate ancestor interfaces in the
7371 (Init_Secondary_Tags): Moved to the specification to allow the
7372 initialization of extension aggregates with abstract interfaces.
7373 (Build_Master_Renaming): Make public, for use by function declarations
7374 whose return type is an anonymous access type.
7375 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
7376 Insert_List_Before_And_Analyze after the generation of the specs
7377 associated with null procedures.
7378 (Expand_Tagged_Root): Update documentation in its specification.
7379 (Init_Secondary_Tags): Update documentation.
7380 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
7381 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
7382 then generate code to inherit the contents of the dispatch table
7383 directly from the ancestor.
7384 (Expand_Record_Controller): Insert controller component after tags of
7385 implemented interfaces.
7386 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
7387 create null procedure overridings when null procedures are inherited
7389 (Make_Null_Procedure_Specs): New procedure to generate null procedure
7390 declarations for overriding null primitives inherited from interfaces.
7391 (Is_Null_Interface_Procedure): New function in
7392 Make_Null_Procedure_Specs.
7393 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
7394 immediate ancestor of a tagged type is an abstract interface type we
7395 must generate the specification of the predefined primitives associated
7396 with controlled types (because the dispatch table of the ancestor is
7397 null and hence these entries cannot be inherited). This is required to
7398 elaborate well the dispatch table.
7400 2006-10-31 Javier Miranda <miranda@adacore.com>
7401 Ed Schonberg <schonberg@adacore.com>
7402 Bob Duff <duff@adacore.com>
7403 Gary Dismukes <dismukes@adacore.com>
7404 Robert Dewar <dewar@adacore.com>
7406 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
7408 (Expand_N_In): Do validity checks on range
7409 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
7410 (Expand_N_Allocator): For "new T", if the object is constrained by
7411 discriminant defaults, allocate the right amount of memory, rather than
7412 the maximum for type T.
7413 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
7414 when the allocator is initialized by a build-in-place call, since the
7415 allocator is already rewritten as a reference to the function result,
7416 and this prevents an unwanted duplication of the function call.
7417 Add with and use of Exp_Ch6.
7418 (Expand_Allocator_Expresssion): Check for an allocator whose expression
7419 is a call to build-in-place function and apply
7420 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
7421 untagged designated types).
7422 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
7423 optimization if source or target is biased.
7424 (Expand_N_Allocator): Add comments for case of an allocator within a
7425 function that returns an anonymous access type designating tasks.
7426 (Expand_N_Allocator): apply discriminant checks for access
7427 discriminants of anonymous access types (AI-402, AI-416)
7429 2006-10-31 Bob Duff <duff@adacore.com>
7430 Robert Dewar <dewar@adacore.com>
7431 Gary Dismukes <dismukes@adacore.com>
7432 Ed Schonberg <schonberg@adacore.com>
7434 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
7436 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
7437 (Expand_N_Assignment_Statement): Call
7438 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
7439 build-in-place function call. Currently, this can happen only for
7440 assignments that come from aggregates.
7441 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
7442 in order to alleviate the upward compatibility introduced by AI-318.
7443 (Expand_N_Extended_Return_Statement): Add support for handling the
7444 return object as a build-in-place result.
7445 (Expand_Non_Function_Return): Implement simple return statements nested
7446 within an extended return.
7447 (Enable_New_Return_Processing): Turn on the new processing of return
7449 (Expand_Non_Function_Return): For a return within an extended return,
7450 don't raise Program_Error, because Sem_Ch6 now gives a warning.
7451 (Expand_N_Extended_Return_Statement): Implement AI-318
7452 (Expand_Simple_Function_Return): Ditto.
7453 (Expand_N_If_Statement): Handle new -gnatwt warning
7454 (Expand_N_Case_Statement): Handle new -gnatwt warning
7455 (Expand_N_Assignment): Handle assignment to the Priority attribute of
7457 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
7458 validity checking of assignments to elementary record components.
7459 (Expand_N_Return_Statement): return Class Wide types on the secondary
7460 stack independantly of their controlled status since with HIE runtimes,
7461 class wide types are not potentially controlled anymore.
7463 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
7466 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
7467 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
7468 it expects a block, procedure, or task. The return statement will get
7469 turned into a block, and Expand_Cleanup_Actions will happen then.
7471 2006-10-31 Robert Dewar <dewar@adacore.com>
7472 Ed Schonberg <schonberg@adacore.com>
7473 Bob Duff <duff@adacore.com>
7474 Gary Dismukes <dismukes@adacore.com>
7476 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
7478 (Expand_Inlined_Call): Tagged types are by-reference types, and
7479 therefore should be replaced by a renaming declaration in the expanded
7480 body, as is done for limited types.
7481 (Expand_Call): If this is a call to a function with dispatching access
7482 result, propagate tag from context.
7483 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
7485 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
7486 build-in-place when the right-hand side of an assignment is a
7487 build-in-place function call.
7488 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
7489 of the explicit dereference of the allocator to the result subtype of
7490 the build-in-place function. This is needed to satisfy type checking
7491 in cases where the caller's return object is created by an allocator for
7492 a class-wide access type and the type named in the allocator is a
7494 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
7495 conversion of the reference to the declared object to the result subtype
7496 of the build-in-place function. This is needed to satisfy type checking
7497 in cases where the declared object has a class-wide type. Also, in the
7498 class-wide case, change the type of the object entity to the specific
7499 result subtype of the function, to avoid passing a class-wide object
7500 without explicit initialization to the back end.
7501 (Register_Interface_DT_Entry): Moved outside the body of
7502 Freeze_Subprogram because this routine is now public; it is called from
7503 Check_Dispatching_Overriding to handle late overriding of abstract
7504 interface primitives.
7505 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
7506 adding an implicit access actual on a call to a build-in-place function.
7507 (Expand_Actuals): Test for an actual parameter that is a call to a
7508 build-in-place function and apply
7509 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
7510 (Is_Build_In_Place_Function): New function to determine whether an
7511 entity is a function whose calls should be handled as build-in-place.
7512 (Is_Build_In_Place_Function_Call): New function to determine whether an
7513 expression is a function call that should handled as build-in-place.
7514 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
7515 calls to build-in-place functions as the initialization of an allocator.
7516 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
7517 handling calls to build-in-place functions in contexts that do not
7518 involve init of a separate object (for example, actuals of subprogram
7520 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
7521 handling calls to build-in-place functions as the initialization of an
7523 (Detect_Infinite_Recursion): Add explicit parameter Process to
7524 instantiation of Traverse_Body to avoid unreferenced warning.
7525 (Check_Overriding_Inherited_Interfaces): Removed.
7526 (Register_Interface_DT_Entry): Code cleanup.
7527 (Register_Predefined_DT_Entry): Code cleanup.
7528 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
7529 inlined statements if within a transient scope.
7530 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
7531 formal parameters with occurrences of actuals in inlined body, establish
7532 visibility on the proper view of the actual's subtype for the body's
7534 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
7535 compatibility mode and we have an imported CPP subprogram because
7536 for now we assume that imported CPP primitives correspond with
7537 objects whose constructor is in the CPP side (and therefore we
7538 don't need to generate code to register them in the dispatch table).
7539 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
7540 aligned selected component.
7541 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
7542 the actual of an in-mode parameter is a type conversion.
7543 (Expand_Actuals): If the call does not come from source and the actual
7544 is potentially misaligned, let gigi handle it rather than rejecting the
7545 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
7546 Class Wide types as returning by reference independantly of their
7547 controlled status since with HIE runtimes class wide types are not
7548 potentially controlled anymore.
7550 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7552 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
7553 references that are private components of the protected object.
7554 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
7555 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
7556 instantiation to deal with warnings.
7557 (Initialize_Protection): If expression for priority is non-static, use
7558 System_Priority as its expected type, in case the expression has not
7561 2006-10-31 Robert Dewar <dewar@adacore.com>
7563 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
7564 initialization of Homonym_Len.
7565 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
7566 names from fully qualified name. Fixes problem of duplicate
7567 external names differing only in the presence of such a block name.
7569 2006-10-31 Thomas Quinot <quinot@adacore.com>
7570 Pablo Oliveira <oliveira@adacore.com>
7572 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
7573 subprogram Ids, even if they are not yet assigned.
7574 (Build_Subprogram_Id): It is now this function that will take care of
7575 calling Assign_Subprogram_Ids if necessary.
7576 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
7577 should be done only once they are assigned.
7578 (Build_From_Any_Function, case of tagged types): Add missing call to
7580 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
7581 type for an RACW type.
7582 (Add_RACW_Features): When processing an RACW declaration for which the
7583 designated type is already frozen, enforce E.2.2(14) rules immediately.
7584 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
7585 special reordering of controlling formals.
7587 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
7588 associated stub type for an RACW type.
7590 2006-10-31 Ed Schonberg <schonberg@adacore.com>
7592 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
7593 fixed-point operations in an integer context, i.e. as operands of a
7594 conversion to an integer type, indicate that result must be rounded.
7596 2006-10-31 Robert Dewar <dewar@adacore.com>
7598 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
7599 cases, pass the encoding method, since it is now required by the run
7602 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
7603 assumption that Str'First = 1.
7604 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
7605 it on to the Value_Wide_Wide_Character call.
7606 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
7607 properly handles a string of the form quote-encoded_wide_char-quote.
7609 * s-wchcnv.adb: Minor reformatting
7611 2006-10-31 Javier Miranda <miranda@adacore.com>
7613 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
7614 run-time membership test to ensure that the constructed object
7615 implements the target abstract interface.
7617 2006-10-31 Robert Dewar <dewar@adacore.com>
7619 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
7620 Machine_Attribute pragma internally to implement the user pragma.
7621 Add processing for pragma Interface so that it is now completely
7622 equivalent to pragma Import.
7624 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
7625 so that it can be applied to all entities, including record components
7626 and enumeration literals.
7627 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
7628 priority ranges are correct, verify compatibility against task
7629 dispatching and locking policies, and if everything is correct an entry
7630 is added to the table containing priority specific dispatching entries
7631 for this compilation unit.
7632 (Delay_Config_Pragma_Analyze): Delay processing
7633 Priority_Specific_Dispatching pragmas because when processing the
7634 pragma we need to access run-time data, such as the range of
7635 System.Any_Priority.
7636 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
7637 Allow pragma Unreferenced as a context item
7638 Add pragma Preelaborable_Initialization
7639 (Analyze_Pragma, case Interface): Interface is extended so that it is
7640 now syntactically and semantically equivalent to Import.
7641 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
7642 insertion characters.
7643 Add handling for Pragma_Wide_Character_Encoding
7644 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
7645 never supercedes a real restriction, and that a real restriction
7646 always supercedes a warning.
7647 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
7650 2006-10-31 Bob Duff <duff@adacore.com>
7651 Ed Schonberg <schonberg@adacore.com>
7652 Robert Dewar <dewar@adacore.com>
7654 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
7655 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
7656 Is_Inherently_Limited_Type, because return-by-reference has no meaning
7658 (Find_Node_To_Be_Wrapped): Use new method of determining the result
7659 type of the function containing a return statement, because the
7660 Return_Type field was removed. We now use the Return_Applies_To field.
7662 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
7663 (Build_Task_Image_Decl): If procedure is not called from an
7664 initialization procedure, indicate that function that builds task name
7665 uses the sec. stack. Otherwise the enclosing initialization procedure
7666 will carry the indication.
7667 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
7668 N_Object_Declaration instead.
7669 (Kill_Dead_Code): New interface to implement -gnatwt warning for
7670 conditional dead code killed, and change implementation accordingly.
7671 (Insert_Actions): Add N_Return_Object_Declaration case.
7672 Correct comment to mention N_Extension_Aggregate node.
7673 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
7674 attempts to save information for global variables which cannot be
7676 (Get_Current_Value_Condition): Handle conditions the other way round
7677 (constant on left). Also handle right operand of AND and AND THEN
7678 (Set_Current_Value_Condition): Corresponding changes
7679 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
7680 (Get_Current_Value_Condition): Handle simple boolean operands
7681 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
7682 (Get_Current_Value_Condition): If the variable reference is within an
7683 if-statement, does not appear in the list of then_statments, and does
7684 not come from source, treat it as being at unknown location.
7685 (Get_Current_Value_Condition): Enhance to allow while statements to be
7686 processed as well as if statements.
7687 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
7689 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
7690 of loop. This is safe now that we fixed Kill_Current_Values.
7691 (OK_To_Do_Constant_Replacement): Check whether current scope is
7692 Standard, before examining outer scopes.
7694 2006-10-31 Vincent Celier <celier@adacore.com>
7696 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
7697 When True, apply VMS treatment to children of packages A, G, I and S.
7700 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
7702 2006-10-31 Robert Dewar <dewar@adacore.com>
7703 Ed Schonberg <schonberg@adacore.com>
7705 * freeze.adb: Add handling of Last_Assignment field
7706 (Warn_Overlay): Supply missing continuation marks in error msgs
7707 (Freeze_Entity): Add check for Preelaborable_Initialization
7709 * g-comlin.adb: Add Warnings (Off) to prevent new warning
7711 * g-expect.adb: Add Warnings (Off) to prevent new warning
7713 * lib-xref.adb: Add handling of Last_Assignment field
7714 (Generate_Reference): Centralize handling of pragma Obsolescent here
7715 (Generate_Reference): Accept an implicit reference generated for a
7716 default in an instance.
7717 (Generate_Reference): Accept a reference for a node that is not in the
7718 main unit, if it is the generic body corresponding to an subprogram
7721 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
7723 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
7725 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
7727 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
7728 use clauses, to avoid messages on packages used to qualify, and also
7729 to avoid messages from obsolescent units.
7730 (Warn_On_Useless_Assignments): Don't generate messages for imported
7731 and exported variables.
7732 (Warn_On_Useless_Assignments): New procedure
7733 (Output_Obsolescent_Entity_Warnings): New procedure
7734 (Check_Code_Statement): New procedure
7736 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
7737 Change name Is_Ada_2005 to Is_Ada_2005_Only
7738 (Last_Assignment): New field for useless assignment warning
7740 2006-10-31 Olivier Hainque <hainque@adacore.com>
7742 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
7743 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
7745 2006-10-31 Bob Duff <duff@adacore.com>
7746 Robert Dewar <dewar@adacore.com>
7747 Ed Schonberg <schonberg@adacore.com>
7749 * g-awk.adb (Default_Session, Current_Session): Compile this file in
7750 Ada 95 mode, because it violates the new rules for AI-318.
7752 * g-awk.ads: Use overloaded subprograms in every case where we used to
7753 have a default of Current_Session. This makes the code closer to be
7754 correct for both Ada 95 and 2005.
7756 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
7757 code, relying on the fact that the compiler generates a warning
7758 instead of an error in -gnatg mode.
7760 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
7761 E_Return_Statement entity kind.
7762 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
7764 * par.adb (P_Interface_Type_Definition): Addition of one formal to
7765 report an error if the reserved word abstract has been previously found.
7766 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
7768 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
7769 parenthesized range attribute usage
7770 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
7772 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
7773 in the syntax for extended_return_statement. This is not in the latest
7774 RM, but the ARG is expected to issue an AI allowing this.
7775 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
7776 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
7777 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
7778 P_Return_Statement): Parse the new syntax for extended_return_statement.
7780 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
7781 Output_End_Missing): Add error-recovery code for the new
7782 extended_return_statement syntax; that is, the new E_Return entry on
7785 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
7786 limited to nonlimited, because otherwise we violate the new Ada 2005
7787 rules about returning limited types in function Create_AST_Handler in
7790 * sem.adb (Analyze): Add cases for new node kinds
7791 N_Extended_Return_Statement and N_Return_Object_Declaration.
7793 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
7794 type is in the same category as type of context before applying check,
7795 to prevent anomalies in instantiations.
7796 (Resolve_Aggregate): Remove test for limited components in aggregates.
7797 It's unnecessary in Ada 95, because if it has limited components, then
7798 it must be limited. It's wrong in Ada 2005, because limited aggregates
7800 (Resolve_Record_Aggregate): Move check for limited types later, because
7801 OK_For_Limited_Init requires its argument to have been resolved.
7802 (Get_Value): When copying the component default expression for a
7803 defaulted association in an aggregate, use the sloc of the aggregate
7804 and not that of the original expression, to prevent spurious
7805 elaboration errors, when the expression includes function calls.
7806 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
7807 were missing. We also didn't handle qualified expressions. Now also
7808 allow function calls. Use new common routine OK_For_Limited_Init.
7809 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
7810 with space can upper case letter).
7812 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
7813 Has_Static_Discriminants flag
7814 (Record_Type_Declaration): Diagnose an attempt to declare an interface
7815 type with discriminants.
7816 (Process_Range_Expr_In_Decl): Do validity checks on range
7817 (Build_Discriminant_Constraints): Use updated form of
7818 Denotes_Discriminant.
7819 (Process_Subtype): If the subtype is a private subtype whose full view
7820 is a concurrent subtype, introduce an itype reference to prevent scope
7822 (Build_Derived_Record_Type, Collect_Interface_Primitives,
7823 Record_Type_Declaration): The functionality of the subprograms
7824 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
7825 is now performed by a single routine.
7826 (Build_Derived_Record_Type): If the type definition includes an explicit
7827 indication of limitedness, then the type must be marked as limited here
7828 to ensure that any access discriminants will not be treated as having
7829 a local anonymous access type.
7830 (Check_Abstract_Overriding): Issue a detailed error message when an
7831 abstract subprogram was not overridden due to incorrect mode of its
7833 (Analyze_Private_Extension_Declaration): Add support for the analysis of
7834 synchronized private extension declarations. Verify that the ancestor is
7835 a limited or synchronized interface or in the generic case, the ancestor
7836 is a tagged limited type or synchronized interface and all progenitors
7837 are either limited or synchronized interfaces.
7838 Derived_Type_Declaration): Check for presence of private extension when
7839 dealing with synchronized formal derived types.
7840 Process_Full_View): Enchance the check done on the usage of "limited" by
7841 testing whether the private view is synchronized.
7842 Verify that a synchronized private view is completed by a protected or
7844 (OK_For_Limited_Init_In_05): New function.
7845 (Analyze_Object_Declaration): Move check for limited types later,
7846 because OK_For_Limited_Init requires its argument to have been resolved.
7847 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
7848 in order to alleviate the upward compatibility introduced by AI-318.
7849 (Constrain_Corresponding_Record): If the constraint is for a component
7850 subtype, mark the itype as frozen, to avoid out-of-scope references to
7851 discriminants in the back-end.
7852 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
7853 this subprogram against wrong sources.
7854 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
7855 discriminant of limited type completed with a protected type, when the
7856 discriminant is used to constrain a private component of the type, and
7857 expansion is disabled.
7858 (Find_Type_Of_Object): Do not treat a return subtype that is an
7859 anonymous subtype as a local_anonymous_type, because its accessibility
7860 level is the return type of the enclosing function.
7861 (Check_Initialization): In -gnatg mode, turn the error "cannot
7862 initialize entities of limited type" into a warning.
7863 (OK_For_Limited_Init): Return true for generated nodes, since it
7864 sometimes violates the legality rules.
7865 (Make_Incomplete_Declaration): If the type for which an incomplete
7866 declaration is created happens to be the currently visible entity,
7867 preserve the homonym chain when removing it from visibility.
7868 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
7869 inherited subprograms.
7870 (Access_Definition): If this is an access to function that is the return
7871 type of an access_to_function definition, context is a type declaration
7872 and the scope of the anonymous type is the current one.
7873 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
7874 incomplete subtype to the set of private dependents of the original
7876 (Constrain_Discriminated_Type): Emit an error message whenever an
7877 incomplete subtype is being constrained.
7878 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
7879 corresponding subtype of the full view of the original incomplete type.
7880 (Check_Incomplete): Properly detect invalid usage of incomplete types
7883 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
7885 * g-catiio.ads, g-catiio.adb (Value): New function.
7886 Given an input String, try and parse a valid Time value.
7888 2006-10-31 Vincent Celier <celier@adacore.com>
7890 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
7891 Integer_Address arithmetic, as in Set_Valid.
7893 2006-10-31 Arnaud Charlet <charlet@adacore.com>
7894 Robert Dewar <dewar@adacore.com>
7896 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
7897 handling executable extension manually and duplicating code.
7899 * make.adb: Implement new -S switch
7900 (Gnatmake): Use new function Osint.Executable_Name instead
7901 of handling executable extension manually.
7903 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
7904 is specified, the executable name ends with this suffix.
7905 Take advantage of Osint.Executable_Name instead of duplicating code.
7907 * switch-m.adb: Recognize new gnatmake -S switch
7909 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
7911 (Get_Target_Parameters): Set Executable_Extension_On_Target if
7914 * makeusg.adb: Add line for gnatmake -S switch
7916 2006-10-31 Vincent Celier <celier@adacore.com>
7918 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
7919 call it with -static-libgcc, as there are some platforms, such as
7920 Darwin, where one of these two switches is compulsory to link.
7922 2006-10-31 Vincent Celier <celier@adacore.com>
7924 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
7925 instead of ADA_PROJECT_PATH, for the project path.
7926 (Gnatls): When displaying the project path directories, use host dir
7929 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
7930 names in the project path, as absolute paths may correspond to
7931 multi-valued VMS logical names.
7933 2006-10-31 Vincent Celier <celier@adacore.com>
7935 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
7937 (Locate_Regular_File): Ditto
7938 (Change_Dir): Remove, no longer used
7939 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
7940 on Windows. Get it calling Get_Current_Dir.
7941 (OpenVMS): Remove imported boolean, no longer needed.
7942 (Normalize_Pathname)[VMS]: Do not resolve directory names.
7943 (Pid_To_Integer): New function to convert a Process_Id to Integer
7945 2006-10-31 Thomas Quinot <quinot@adacore.com>
7947 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
7948 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
7950 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
7953 2006-10-31 Robert Dewar <dewar@adacore.com>
7955 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
7956 initial letter o as a zero.
7958 2006-10-31 Robert Dewar <dewar@adacore.com>
7960 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
7962 2006-10-31 Robert Dewar <dewar@adacore.com>
7964 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
7966 (Layout_Variant_Record): Retrieve the discriminants from the entity
7967 rather than from the type definition, because in the case of a full
7968 type for a private type we need to take the discriminants from the
7970 (Layout_Component_List): When applying the Max operator to variants with
7971 a nonstatic size, check whether either operand is static and scale that
7972 operand from bits to storage units before applying Max.
7973 (Layout_Type): In VMS, if a C-convention access type has no explicit
7974 size clause (and does not inherit one in the case of a derived type),
7975 then the size is reset to 32 from 64.
7977 2006-10-31 Vincent Celier <celier@adacore.com>
7979 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
7980 its file has already been loaded, according to the unit being loaded,
7981 not to the current value of Multiple_Unit_Index.
7983 2006-10-31 Thomas Quinot <quinot@adacore.com>
7984 Eric Botcazou <ebotcazou@adacore.com>
7985 Arnaud Charlet <charlet@adacore.com>
7987 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
7988 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
7990 (a-except.o): Pass it to the compiler.
7991 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
7992 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
7993 a-calend-mingw.adb version.
7995 * Makefile.rtl: Added s-dsaser.
7996 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
7997 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
7998 Ada.Dispatching.Round_Robin.
7999 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
8001 * Make-lang.in: Remove all references to gt-ada-decl.h.
8002 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
8004 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
8005 Update dependencies.
8007 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
8009 2006-10-31 Vincent Celier <celier@adacore.com>
8011 * mlib-utl.adb (Initialized): Remove, no longer used
8012 (Initialize): Remove, no longer used
8013 (Ar): If Ar_Exec is null, get the location of the archive builder and,
8014 if there is one, the archive indexer. Fail if the archive builder cannot
8016 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
8019 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8021 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
8022 Process_Body_Clauses): If the context of a body includes a use clause
8023 for P.Q then a with_clause for P in the same body is not redundant,
8024 even if the spec also has a with_clause on P.
8025 Add missing continuation mark to error msg
8026 (Build_Limited_Views): A limited view of a type is tagged if its
8027 declaration includes a record extension.
8028 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
8029 node, even if the subunit has errors. This avoids malfunction by
8030 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
8031 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
8032 generation of obsolescent messages for with statements (cannot do
8033 this too early, or we cannot implement avoiding the messages in the
8034 case of obsolescent units withing obsolescent units).
8035 (Install_Siblings): If the with_clause is on a remote descendant of
8036 an ancestor of the current compilation unit, find whether there is
8037 a sibling child unit that is immediately visible.
8038 (Remove_Private_With_Clauses): New procedure, invoked after completing
8039 the analysis of the private part of a nested package, to remove from
8040 visibility the private with_clauses of the enclosing package
8042 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
8043 now centralized in Generate_Reference.
8044 (Install_Limited_Context_Clauses): Remove superfluous error
8045 message associated with unlimited view visible through use
8046 and renamings. In addition, at the point in which the error
8047 is reported, we add the backslash to the text of the error
8048 to ensure that it is reported as a single error message.
8049 Use new // insertion for some continuation messages
8050 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
8051 to create implicit with_clause for parent unit mentioned in original
8052 limited_with_clause.
8053 (Install_Limited_With_Unit): Set entity of parent identifiers if the
8054 unit is a child unit. For ASIS queries.
8055 (Analyze_Subunit): If the subunit appears within a child unit, make all
8056 ancestor child units directly visible again.
8058 2006-10-31 Robert Dewar <dewar@adacore.com>
8060 * par-ch10.adb (P_Context_Clause): Minor error message fix
8062 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8063 Javier Miranda <miranda@adacore.com>
8065 * par-ch12.adb: Grammar update and cleanup.
8066 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
8067 support for synchronized derived type definitions.
8068 Add the new actual Abstract_Present to every call to
8069 P_Interface_Type_Definition.
8070 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
8071 a formal object declaration with an access definition or a subtype mark
8072 with a null exclusion.
8073 (P_Generic_Association): Handle association with box, and others_choice
8074 with box, to support Ada 2005 partially parametrized formal packages.
8076 2006-10-31 Robert Dewar <dewar@adacore.com>
8077 Javier Miranda <miranda@adacore.com>
8079 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
8080 (P_Type_Declaration): Remove barrier against the reserved word "limited"
8081 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
8082 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
8084 (P_Type_Declaration): Add the new actual Abstract_Present to every call
8085 to P_Interface_Type_Definition.
8086 (P_Interface_Type_Definition): Addition of one formal to report an error
8087 if the reserved word abstract has been previously found.
8088 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
8089 object renaming declaration with an access definition or subtype mark
8090 with a possible null exclusion.
8092 * par-ch9.adb: Minor error msg fix
8094 * par-load.adb: Add missing continuation mark to error msg
8096 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
8098 2006-10-31 Vincent Celier <celier@adacore.com>
8100 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
8101 unknown attribute in unknown package or in package that does not need
8103 (Parse_Package_Declaration): Do not issue warning for unknown package in
8106 2006-10-31 Vincent Celier <celier@adacore.com>
8108 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
8109 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
8112 2006-10-31 Vincent Celier <celier@adacore.com>
8114 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
8115 on VMS, change "__" to '.' before checking the name.
8116 (Record_Ada_Source): Always add the source file name in the list of
8117 of sources, even if it is not the first time, as it is for another
8119 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
8120 dot, instead of replacing only the first '_'.
8122 * prj-part.adb (Parse): Convert project file path to canonical form
8124 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
8125 extended, the project id of the project extending it is recorded in its
8126 data, even when it has already been processed as an imported project.
8128 2006-10-31 Robert Dewar <dewar@adacore.com>
8130 * repinfo.adb (List_Entities): Don't list entities from renaming
8133 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8134 Robert Dewar <dewar@adacore.com>
8136 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
8137 only a restriction warning is active for the given restriction. This is
8138 desirable because we do not want to modify code in the case where only
8140 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
8141 causes overriding of real restrictions.
8142 Take advantage of new No_Restrictions constant.
8144 * raise.h: (__gnat_set_globals): Change profile.
8146 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8148 * rtsfind.adb: Remove s-polint from comment as it exists no more.
8151 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
8152 Move all the entities in obsolete package System.PolyORB_Interface to
8153 System.Partition_Interface.
8154 (RE_Storage_Size): New function in System.Tasking.
8155 (RE_Get_Ceiling): New entity.
8156 (RE_Set_Ceiling): New entity.
8157 (RO_PE_Get_Ceiling): New entity.
8158 (RO_RE_Set_Ceiling): New entity.
8159 (Inherit_CPP_DT): New entity
8161 2006-10-31 Robert Dewar <dewar@adacore.com>
8163 * scng.adb (Scan, case of numeric literal): Better msg for identifier
8164 starting with a digit.
8166 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8167 Thomas Quinot <quinot@adacore.com>
8168 Javier Miranda <miranda@adacore.com>
8169 Gary Dismukes <dismukes@adacore.com>
8171 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
8172 properly an attempt to apply Unchecked_Access to a protected operation.
8173 (OK_Self_Reference): New subprogram to check the legality of an access
8174 attribute whose prefix is the type of an enclosing aggregate.
8175 Generalizes previous mechanism to handle attribute references nested
8176 arbitrarily deep within the aggregate.
8177 (Analyze_Access_Attribute): An access attribute whose prefix is a type
8178 can appear in an aggregate if this is a default-initialized aggregate
8179 for a self-referential type.
8180 (Resolve_Attribute, case Access): Ditto.
8181 Add support for new implementation defined attribute Stub_Type.
8182 (Eval_Attribute, case Attribute_Stub_Type): New case.
8183 (Analyze_Attribute, case Attribute_Stub_Type): New case.
8184 (Stream_Attribute_Available): Implement using new subprogram from
8185 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
8186 Has_Specified_Stream_Attribute flag.
8187 Disallow Storage_Size and Storage_Pool for access to subprogram
8188 (Resolve_Attribute, case 'Access et al): Take into account anonymous
8189 access types of return subtypes in extended return statements. Remove
8190 accessibility checks on anonymous access types when Unchecked_Access is
8192 (Analyze_Attribute): Add support for the use of 'Class to convert
8193 a class-wide interface to a tagged type.
8194 Add support for the attribute Priority.
8195 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
8196 whether the designated type is discriminated with a constrained partial
8197 view and require static matching in that case.
8198 Add local variable Des_Btyp. The Designated_Type
8199 of an access to incomplete subtype is either its non-limited view if
8200 coming from a limited with or its etype if regular incomplete subtype.
8202 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
8203 Fix predicate to identify and allow cases of (expander-generated)
8204 references to tag of designated object of a RACW.
8205 (Validate_Static_Object_Name): In Ada 2005, a formal object is
8206 non-static, and therefore cannot appear as a primary in a preelaborable
8208 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
8209 Has_Read_Write_Attributes.
8210 (Has_Read_Write_Attributes): Reimplement in termes of
8211 Has_Stream_Attribute_Definition.
8212 (Missing_Read_Write_Attributes): When checking component types in a
8213 record, unconditionally call Missing_Read_Write_Attributes recursively
8214 (remove guard checking for Is_Record_Type / Is_Access_Type).
8216 2006-10-31 Robert Dewar <dewar@adacore.com>
8218 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
8219 useless assignments here and conditionalize it on absence of exception
8221 (Analyze_Exception_Handlers): Small code reorganization of error
8222 detection code, for new handling of formal packages.
8224 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8225 Hristian Kirtchev <kirtchev@adacore.com>
8227 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
8228 that has been constant-folded, preserve information of original tree,
8230 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
8231 generated private extension declaration if the formal derived type is
8232 synchronized. Carry synchronized present over to the generated private
8234 (Validate_Derived_Type_Instance): Ensure that the actual of a
8235 synchronized formal derived type is a synchronized tagged type.
8236 (Instantiate_Formal_Package): When creating the instantiation used to
8237 validate the actual package of a formal declared without a box, check
8238 whether the formal itself depends on a prior actual.
8239 (Instantiate_Formal_Subprogram): Create new entities for the defining
8240 identifiers of the formals in the renaming declaration, for ASIS use.
8241 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
8242 a renaming declaration or a subtype declaration for an actual in an
8243 instance, capture location information of declaration in generic, for
8245 (Instantiate_Formal_Package): Add comments on needed additional tests.
8246 AI-317 (partial parametrization) is fully implemented.
8247 (Validate_Private_Type_Instance): Add check for actual which
8248 must have preelaborable initialization
8249 Use new // insertion for some continuation messages
8250 (Analyze_Formal_Object_Declaration): Change usage of Expression to
8251 Default_Expression. Add type retrieval when the declaration has an
8252 access definition. Update premature usage of incomplete type check.
8253 (Check_Access_Definition): New subsidiary routine. Check whether the
8254 current compilation version is Ada 05 and the supplied node has an
8256 (Instantiate object): Alphabetize local variables. Handle the creation
8257 of new renaming declarations with respect to the kind of definition
8258 used - either an access definition or a subtype mark. Guard against
8259 unnecessary error message in the context of anonymous access types after
8260 they have been resolved. Add check for required null exclusion in a
8261 formal object declaration.
8262 (Switch_View): A private subtype of a non-private type needs to be
8263 switched (the base type can have been switched without its private
8264 dependents because of the last branch of Check_Private_View.
8265 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
8267 (Instantiate_Type): Emit an error message whenever a class-wide type of
8268 a tagged incomplete type is used as a generic actual.
8269 (Find_Actual_Type): Extend routine to handle a component type in a child
8270 unit that is imported from a formal package in a parent.
8271 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
8272 agree on constrainedness, rather than checking against ultimate ancestor
8273 (Instantiate_Subprogram_Body): Create a cross-reference link to the
8274 generic body, for navigation purposes.
8276 2006-10-31 Robert Dewar <dewar@adacore.com>
8277 Thomas Quinot <quinot@adacore.com>
8279 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
8281 (New_Stream_Subprogram): When processing an attribute definition clause
8282 for a stream-oriented subprogram, record an entity node occurring at
8283 the point of clause to use for checking the visibility of the clause,
8284 as defined by 8.3(23) as amended by AI-195.
8285 (New_Stream_Subprogram): New procedure, factoring behaviour from both
8286 New_Stream_Function and New_Stream_Procedure.
8287 (New_Stream_Function, New_Stream_Procedure): Removed.
8288 (Analyze_Attribute_Definition_Clause, case Address): Check new
8289 Alignment_Check check
8291 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8292 Javier Miranda <miranda@adacore.com>
8293 Robert Dewar <dewar@adacore.com>
8295 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
8296 generate the same errors compiling under -gnatc.
8297 (Try_Object_Operation): If no candidate interpretation succeeds, but
8298 there is at least one primitive operation with the right name, report
8299 error in call rather than on a malformed selected component.
8300 (Analyze_Selected_Component): If the prefix is an incomplete type from
8301 a limited view, and the full view is available, use the full view to
8302 determine whether this is a prefixed call to a primitive operation.
8303 (Operator_Check): Verify that a candidate interpretation is a binary
8304 operation before checking the type of its second formal.
8305 (Analyze_Call): Add additional warnings for function call contexts not
8307 (Analyze_Allocator): Move the check for "initialization not allowed for
8308 limited types" after analyzing the expression. This is necessary,
8309 because OK_For_Limited_Init looks at the structure of the expression.
8310 Before analysis, we don't necessarily know what sort of expression it
8311 is. For example, we don't know whether F(X) is a function call or an
8312 indexed component; the former is legal in Ada 2005; the latter is not.
8313 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
8314 were missing. We also didn't handle qualified expressions. Now also
8315 allow function calls. Use new common routine OK_For_Limited_Init.
8316 (Analyze_Type_Conversion): Do not perform some legality checks in an
8317 instance, because the error message will be redundant or spurious.
8318 (Analyze_Overloaded_Selected_Component): Do not do style check when
8319 setting an entity, since we do not know it is the right entity yet.
8320 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
8321 (Analyze_Overloaded_Selected_Component): Same change
8322 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
8323 since regular incomplete subtypes are transformed into corresponding
8324 subtypes of their full views.
8325 (Complete_Object_Operation): Treat name of transformed subprogram call
8326 as coming from source, for browsing purposes.
8327 (Try_Primitive_Operation): If formal is an access parameter, compare
8328 with base type of object to determine whether it is a primitive
8330 (Operator_Check): If no interpretation of the operator matches, check
8331 whether a use clause on any candidate might make the operation legal.
8332 (Try_Class_Wide_Operation): Check whether the first parameter is an
8333 access type whose designated type is class-wide.
8335 2006-10-31 Robert Dewar <dewar@adacore.com>
8336 Ed Schonberg <schonberg@adacore.com>
8337 Gary Dismukes <dismukes@adacore.com>
8339 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
8340 warn on infinite loops.
8341 Add \\ to some continuation messages
8342 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
8343 (Process_Bounds): If the bounds are integer literals that result from
8344 constant-folding, and they carry a user-defined type, preserve that type
8345 rather than treating this as an integer range.
8346 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
8347 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
8348 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
8349 left hand side of assignment.
8350 (Analyze_Assignment): Add suport to manage assigments to the attribute
8351 priority of a protected object.
8352 (Check_Possible_Current_Value_Condition): Allow fully qualified names
8353 not just identifiers.
8354 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
8355 or AND THEN for possible tracking.
8356 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
8357 case of while loops so we can track values in the loop body.
8359 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8360 Hristian Kirtchev <kirtchev@adacore.com>
8361 Bob Duff <duff@adacore.com>
8363 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
8364 procedure cannot be a protected operation (it is a basic_declaration,
8365 not a subprogram_declaration).
8366 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
8367 Subp. Add logic for entry processing.
8368 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
8369 Determine whether an entry or subprogram of a protected or task type
8370 override an inherited primitive of an implemented interface.
8371 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
8372 Update the actual used in calls to Check_Overriding_Indicator.
8373 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
8374 generate the proper reference to the parent unit, for cross-reference.
8375 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
8377 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
8378 (Add_Extra_Formal): Revise procedure to allow passing in associated
8379 entity, scope, and name suffix, and handle setting of the new
8380 Extra_Formals field.
8381 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
8382 pass new parameters. Add support for adding the new extra access formal
8383 for functions whose calls are treated as build-in-place.
8384 (Analyze_A_Return_Statement): Correct casing in error message.
8385 Move Pop_Scope to after Analyze_Function_Return, because an extended
8386 return statement really is a full-fledged scope. Otherwise, visibility
8387 doesn't work right. Correct use of "\" for continuation messages.
8388 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
8389 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
8390 the node doesn't get properly marked as analyzed.
8391 (Analyze_Subprogram_Body): If subprogram is a function that returns
8392 an anonymous access type that denotes a task, build a Master Entity
8394 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
8395 proper usage of null exclusion in a result definition.
8396 (Process_Formals): Code cleanup and new error message.
8397 (Process_Formals): Detect incorrect application of null exclusion to
8399 (Conforming_Types): Handle conformance between [sub]types and itypes
8400 generated for entities that have null exclusions applied to them.
8401 (Maybe_Primitive_Operation): Add an additional type retrieval when the
8402 base type is an access subtype. This case arrises with null exclusions.
8403 (New_Overloaded_Entity): Do not remove the overriden entity from the
8404 homonym chain if it corresponds with an abstract interface primitive.
8405 (Process_Formals): Replace membership test agains Incomplete_Kind with a
8406 call to the synthesized predicate Is_Incomplete_Type.
8407 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
8409 (Analyze_Subprogram_Declaration): Check that abstract interface
8410 primitives are abstract or null.
8411 (Analyze_Subprogram_Specification): Remove previous check for abstract
8412 interfaces because it was not complete.
8413 (Has_Interface_Formals): Removed.
8415 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8416 Javier Miranda <miranda@adacore.com>
8418 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
8419 of Analyze_Package_Body, to create Itype references for anonymous
8420 access types created in the package declaration, whose designated types
8421 may have only a limited view.
8422 (Analyze_Package_Specification): For the private part of a nested
8423 package, install private_with_clauses of enclosing compilation unit if
8424 we are in its visible part.
8425 (Declare_Inherited_Private_Subprograms): Complete barrier
8426 to ensure that the primitive operation has an alias to some parent
8427 primitive. This is now required because, after the changes done for the
8428 implementation of abstract interfaces, the contents of the list of
8429 primitives has entities whose alias attribute references entities of
8430 such list of primitives.
8431 (Analyze_Package_Specification): Simplify code that handles parent units
8432 of instances and formal packages.
8433 (Uninstall_Declarations): Check the convention consistency among
8434 primitive overriding operations of a tagged record type.
8436 2006-10-31 Robert Dewar <dewar@adacore.com>
8437 Hristian Kirtchev <kirtchev@adacore.com>
8438 Javier Miranda <miranda@adacore.com>
8439 Ed Schonberg <schonberg@adacore.com>
8441 * sem_ch8.adb: Minor error msg rewording
8442 (Undefined): When checking for misspellings, invert arguments (to get
8443 expected and found set right)
8444 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
8445 (Analyze_Generic_Renaming): Same fix
8446 (Use_One_Package): Do not take into account the internal entities of
8447 abstract interfaces during the analysis of entities that are marked
8448 as potentially use-visible.
8449 (Find_Type): Handle the case of an attribute reference for
8450 implementation defined attribute Stub_Type (simply let the analysis of
8451 the attribute reference rewrite it).
8452 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
8453 type that appears in a Use_Type clause.
8454 (Analyze_Object_Renaming): Add support for renaming of the Priority
8456 (Find_Type): In Ada 2005, a task type can be used within its own body,
8457 when it appears in an access definition.
8458 (Analyze_Object_Renaming): Remove warning on null_exclusion.
8459 (Analyze_Object_Renaming): Introduce checks for required null exclusion
8460 in a formal object declaration or in a subtype declaration.
8461 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
8462 (Check_Null_Exclusion): New local routine to
8463 Analyze_Subprogram_Renaming. Check whether the formals and return
8464 profile of a renamed subprogram have required null exclusions when
8465 their counterparts of the renaming already impose them.
8466 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
8467 Determine whether an entity is inside a generic scope.
8468 (In_Open_Scope): First pass of documentation update.
8469 (Find_Expanded_Name): Add support for shadow entities associated with
8470 limited withed packages. This is required to handle nested packages.
8471 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
8472 that makes a renaming of a limited withed package illegal.
8474 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8475 Ed Schonberg <schonberg@adacore.com>
8477 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
8478 Check_Overriding_Indicator.
8479 (Analyze_Task_Definition): Ditto.
8480 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
8481 (Check_Overriding_Indicator): To find overridden interface operation,
8482 examine only homonyms that have an explicit subprogram declaration, not
8483 inherited operations created by an unrelated type derivation.
8484 (Check_Overriding_Indicator): When checking for the presence of "null"
8485 in a procedure, ensure that the queried node is a procedure
8487 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
8488 type when the formal is an access to variable.
8489 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
8490 (Analyze_Task_Type): Same addition
8491 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
8492 provide navigation capabilities for entries.
8494 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
8495 Ed Schonberg <schonberg@adacore.com>
8496 Javier Miranda <miranda@adacore.com>
8497 Gary Dismukes <dismukes@adacore.com>
8499 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
8500 inherited from an interface ancestor by another interface in the
8501 context of an instance as 'late'.
8502 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
8503 of a call to a function that dispatches on access result.
8504 (Check_Dispatching_Operation): In case of late overriding of a primitive
8505 that covers abstract interface subprograms we register it in all the
8506 secondary dispatch tables associated with abstract interfaces.
8507 (Check_Dispatching_Call): Add check that a dispatching call is not made
8508 to a function with a controlling result of a limited type. This is a
8509 current implementation restriction.
8510 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
8511 (Check_Dispatching_Operation): Do no emit a warning if the controlling
8512 argument is an interface type that is a generic formal.
8513 (Is_Interface_Subprogram): Removed.
8514 (Check_Dispatching_Operation): If the subprogram is not a dispatching
8515 operation, check the formals to handle the case in which it is
8516 associated with an abstract interface type.
8518 2006-10-31 Robert Dewar <dewar@adacore.com>
8519 Ed Schonberg <schonberg@adacore.com>
8521 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
8522 Add new calls to this procedure during traversal
8523 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
8524 another unit if expansion is disabled.
8526 2006-10-31 Robert Dewar <dewar@adacore.com>
8528 * sem_eval.adb (Compile_Time_Compare): Make use of information from
8529 Current_Value in the conditional case, to evaluate additional
8530 comparisons at compile time.
8532 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8533 Hristian Kirtchev <kirtchev@adacore.com>
8534 Javier Miranda <miranda@adacore.com>
8536 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
8537 subprogram type to provide better diagnostics in case of ambiguity.
8538 (Covers): Handle coverage of formal and actual anonymous access types in
8539 the context of generic instantiation.
8540 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
8541 abstract interface types; this is required to handle concurrent types
8542 with discriminants and abstract interface types.
8543 (Covers): Include type coverage of both regular incomplete subtypes and
8544 incomplete subtypes of incomplete type visibles through a limited with
8547 2006-10-31 Robert Dewar <dewar@adacore.com>
8548 Hristian Kirtchev <kirtchev@adacore.com>
8549 Ed Schonberg <schonberg@adacore.com>
8551 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
8552 messages for entities in packages which are not used.
8553 (Collect_Synchronized_Interfaces): New procedure.
8554 (Overrides_Synchronized_Primitive): New function.
8555 (Denotes_Discriminant): Extend predicate to apply to task types.
8556 Add missing continuation marks in error msgs
8557 (Unqualify): New function for removing zero or more levels of
8558 qualification from an expression. There are numerous places where this
8559 ought to be used, but we currently only deal properly with zero or one
8561 (In_Instance); The analysis of the actuals in the instantiation of a
8562 child unit is not within an instantiation, even though the parent
8563 instance is on the scope stack.
8564 (Safe_To_Capture_Value): Exclude the case of variables that are
8566 (Check_Obsolescent): Removed
8567 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
8568 is an aliased view, even when rewritten as a reference to the target
8569 object in an assignment.
8570 (Get_Subprogram_Entity): New function
8571 (Known_To_Be_Assigned): New function
8572 (Type_Access_Level): Compute properly the access level of a return
8573 subtype that is an anonymous access type.
8574 (Explain_Limited_Type): Correct use of "\" for continuation messages.
8575 (Is_Transfer): The new extended_return_statement causes a transfer of
8577 (Has_Preelaborable_Initialization): New function
8578 (Has_Null_Exclusion): New function. Given a node N, determine whether it
8579 has a null exclusion depending on its Nkind.
8580 Change Is_Lvalue to May_Be_Lvalue
8581 (May_Be_Lvalue): Extensive additional code to deal with subprogram
8582 arguments (IN parameters are not Lvalues, IN OUT parameters are).
8583 (Safe_To_Capture_Value): Extend functionality so it can be used for
8584 the current value condition case.
8585 (Has_Compatible_Alignment): New function
8586 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
8587 objects to handle the Ada 2005 case, where aliasedness no longer implies
8588 that the object is constrained. In particular, for dereferenced names,
8589 the designated object must be assumed to be unconstrained.
8590 (Kill_Current_Values): Properly deal with the case where we encounter
8591 a loop in the scope chain.
8592 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
8594 (Compile_Time_Constraint_Error): Improve error message in error case
8596 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
8597 associated with entities of abstract interface primitives.
8598 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
8600 2006-10-31 Robert Dewar <dewar@adacore.com>
8602 * s-osinte-tru64.adb:
8603 Mark Asm statements Volatile to prevent warnings (seems a
8604 reasonable change anyway)
8607 * s-mastop-irix.adb: Add Volatile to Asm statements
8608 Suppresses warning, and seems appropriate in any case
8610 * s-osinte-vms.adb: Add Volatile to Asm statement
8612 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
8614 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
8616 Add call to Check_Code_Statement
8618 2006-10-31 Robert Dewar <dewar@adacore.com>
8619 Ed Schonberg <schonberg@adacore.com>
8620 Bob Duff <duff@adacore.com>
8622 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
8623 Synchronized_Present): Add Formal_Derived_Type_Definition and
8624 Private_Extension_Declaration to the list of assertions.
8625 (Is_Entry_Barrier_Function): New flag
8626 (Has_Self_Reference): New flag on aggregates, to indicate that they
8627 contain a reference to the enclosing type, inserted through a default
8629 (Next_Rep_Item): Move from Node4 to Node5.
8630 (Entity): Add this field for N_Attribute_Definition_Clause.
8631 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
8632 (N_Return_Object_Declaration): Remove this node kind. We now use
8633 N_Object_Declaration instead.
8634 (Actual_Designated_Subtype): Move to a different place to make room in
8635 N_Extended_Return_Statement.
8636 (Procedure_To_Call): Move to a different place to make room in
8637 N_Extended_Return_Statement.
8638 (Return_Type): Removed this field to make room in return statements
8640 (Return_Statement_Entity): New field in return statements, in part to
8641 replace Return_Type, and in part to support the fact that return
8642 statements are now pushed on the scope stack during semantic analysis.
8643 (Return_Object_Declarations): New field to support extended return
8645 (N_Extended_Return_Statement): New node for extended_return_statement
8647 (N_Return_Object_Declaration): New node for part of
8648 extended_return_statement nonterminal. Needed because all the necessary
8649 fields won't fit in N_Extended_Return_Statement.
8650 Generic_associations now carry the Box_Present flag, to indicate a
8651 default for an actual in a partially parametrized formal package.
8653 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
8654 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
8655 and for the new predefined dispatching policies: EDF_Across_Priorities,
8656 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
8657 Introduce new name Stub_Type for implementation defined attribute.
8658 Add pragma Preelaborable_Initialization
8659 Add entry for Priority attribute.
8660 Add Pragma_Wide_Character_Encoding
8661 (Get_Convention_Name): Given a convention id, this function returns the
8662 corresponding name id from the names table.
8664 2006-10-31 Ed Schonberg <schonberg@adacore.com>
8665 Robert Dewar <dewar@adacore.com>
8666 Bob Duff <duff@adacore.com>
8668 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
8669 print null exclusion twice in the case of an access definition,
8670 Implement new -gnatL switch
8671 Remove N_Return_Object_Declaration. We now use
8672 N_Object_Declaration instead. Implement the case for
8673 N_Extended_Return_Statement. Alphabetize the cases.
8674 Add cases for new nodes N_Extended_Return_Statement and
8675 N_Return_Object_Declaration. The code is not yet written.
8676 Update the output for N_Formal_Object_Declaration
8677 and N_Object_Renaming_Declaration.
8678 (Write_Itype): Account for the case of a modular integer subtype whose
8679 base type is private.
8681 2006-10-31 Arnaud Charlet <charlet@adacore.com>
8683 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
8684 Remove elaboration code, now done in the binder.
8686 * s-rident.ads: Make this unit Preelaborate.
8687 (No_Restrictions): New constant used to clean up code and follow
8688 preelaborate constraints.
8691 Add System.Restrictions dependence, referenced directly from the
8692 binder generated file.
8694 2006-10-31 Gary Dismukes <dismukes@adacore.com>
8696 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
8697 True when AAMP extended floating-point is in use (48-bit). Change type
8698 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
8699 the two byte array types on AFloat. Change type of IV_Ilf overlay
8700 variable from Byte8 to ByteLF. Add appropriate initializations of
8701 floating-point overlays for AAMP cases.
8703 2006-10-31 Javier Miranda <miranda@adacore.com>
8705 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
8706 (Get_Ceiling): New subprogram that returns
8707 the ceiling priority of the protected object.
8708 (Set_Ceiling): New subprogram that sets the new ceiling priority of
8709 the protected object.
8711 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
8713 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
8715 2006-10-31 Jose Ruiz <ruiz@adacore.com>
8717 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
8718 requeuing to the same protected object to give higher priority tasks
8719 the opportunity to execute.
8721 2006-10-31 Robert Dewar <dewar@adacore.com>
8723 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
8724 add more precise check for the character sequence that follows '[' to
8725 avoid possible confusion in case if '[' is the last character of a
8727 (Scan_Wide): Always allow brackets encoding
8729 2006-10-31 Olivier Hainque <hainque@adacore.com>
8731 * s-stchop.ads: make this unit preelaborate. This is desirable in
8732 general and made mandatory by the use of this unit by s-taprop which
8733 is itself preelaborate.
8735 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
8736 Td_Events component.
8738 2006-10-31 Vincent Celier <celier@adacore.com>
8740 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
8743 2006-10-31 Vincent Celier <celier@adacore.com>
8745 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
8747 2006-10-31 Vincent Celier <celier@adacore.com>
8749 * makegpr.adb (Check_Compilation_Needed): Take into account path names
8751 (Check_Compilation_Needed): When checking a C or C++ source, do not
8752 resolve symbolic links.
8753 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
8754 When not in verbose mode and Ellipse is True, display "..." for the
8755 first argument with Display set to False.
8756 (Build_Global_Archive): Always set Display True for the first object
8757 file. Call Display_Command with Ellipse set to True.
8759 2006-10-31 Matt Heaney <heaney@adacore.com>
8761 * a-crbtgo.ads: Commented each subprogram
8763 * a-crbtgo.adb: Added reference to book from which algorithms were
8766 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
8767 indicate which child.
8768 (Generic_Conditional_Insert): changed parameter name from "Success" to
8770 (Generic_Unconditional_Insert_With_Hint): improved algorithm
8772 * a-coorse.adb (Replace_Element): changed parameter name in call to
8773 conditional insert operation.
8775 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
8777 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
8780 * a-ciorse.adb (Replace_Element): changed parameter name in call to
8781 conditional insert operation.
8783 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
8786 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
8787 instead of mode inout.
8789 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
8791 (Generic_Read): preserve existing buckets array if possible
8792 (Generic_Write): don't send buckets array length anymore
8794 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
8795 instead of mode inout.
8797 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
8798 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
8800 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
8801 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
8802 (Replace_Element): local operation is now an instantiation
8804 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
8805 check current length.
8806 (Generic_Replace_Element): new operation
8808 2006-10-31 Doug Rupp <rupp@adacore.com>
8810 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
8811 Call TBK$SYMBOLIZE without omitting parameters.
8813 2006-10-31 Vincent Celier <celier@adacore.com>
8815 * symbols-processing-vms-ia64.adb,
8816 symbols-processing-vms-alpha.adb (Process): Do not include symbols
8817 that come from generic instantiations in bodies.
8819 2006-10-31 Pat Rogers <rogers@adacore.com>
8821 * a-rttiev.ads, a-rttiev.adb:
8822 This is a significant redesign primarily for the sake of automatic
8823 timer task termination but also to fix a design flaw.
8824 Therefore we are now using an RTS lock, instead of a protected
8825 object, to provide mutual exclusion to the queue of pending events
8826 and the type Timing_Event is no longer a protected type.
8828 2006-10-31 Robert Dewar <dewar@adacore.com>
8829 Cyrille Comar <comar@adacore.com>
8830 Ben Brosgol <brosgol@adacore.com>
8832 * debug.adb: Update flags documentation
8834 * gnat_ugn.texi: Add documentation for new -gnatwq switch
8835 Clean up documentation for several other warning switches
8836 Clarify how task stack size can be specified with various
8837 versions of Windows.
8838 Add note that -gnatVo includes ranges including loops
8839 Add documentation for -gnatL switch
8840 Add note on elaboration warning for initializing variables
8841 Add documentation for new -gnatwt warning switch
8842 Document new form of pragma Warnings (On|Off, string)
8843 Add comment on use of pragma Warnings to control warnings
8844 Add documentation for -gnatjnn switch
8845 Modify section on interfacing with C for VMS 64-bit.
8846 Add doc for -gnatVe/E
8847 Add documentation of new warning flags -gnatww/-gnatwW
8848 Add warnings about address clause overlays to list of warnings
8849 (Exception Handling Control): Document that the option --RTS must be
8850 used consistently for gcc and gnatbind.
8851 Clarify that inlining is not always possible
8852 Update documentation on pragma Unchecked_Union.
8855 Add documentation for new extended version of pragma Obsolescent
8856 Add documentation for implementation defined attribute 'Stub_Type.
8857 Add note on use of Volatile in asm statements
8858 Add documentation on use of pragma Unreferenced in context clause
8859 Document new form of pragma Warnings (On|Off, pattern)
8860 Document pragma Wide_Character_Encoding
8861 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
8862 enforced if code generation is active.
8863 Add section on pragma Suppress to document GNAT specific check
8865 Clarify difference between No_Dispatching_Calls & No_Dispatch.
8866 Add documentation for pragma Restrictions (No_Elaboration_Code)
8869 Add comments on layout of subprogram local variables in the
8870 presence of nested subprograms.
8874 * elists.ads: Minor reformatting
8875 Node returns Node_Or_Entity_Id (doc change only)
8877 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
8879 * g-arrspl.ads (Create): Update comments.
8881 * sem.ads: Add details on the handling of the scope stack.
8883 * usage.adb: Update documentation.
8885 * validsw.ads, validsw.adb:
8886 Add definition of Validity_Check_Components and implement -gnatVe/E
8888 * vms_data.ads: Add missing VMS qualifiers.
8890 * s-addope.ads: Add documentation on overflow and divide by zero
8892 2006-10-31 Robert Dewar <dewar@adacore.com>
8893 Thomas Quinot <quinot@adacore.com>
8894 Arnaud Charlet <charlet@adacore.com>
8896 * fmap.adb: Put routines in alpha order
8898 * g-boumai.ads: Remove redundant 'in' keywords
8900 * g-cgi.adb: Minor reformatting
8902 * g-cgi.ads: Remove redundant 'in' keywords
8904 * get_targ.adb: Put routines in alpha order
8906 * prj-attr.ads: Minor reformatting
8908 * s-atacco.ads: Minor reformatting
8910 * scn.adb: Put routines in alpha order
8912 * sinput-l.adb: Minor comment fix
8914 * sinput-p.adb: Minor comment fix
8916 * s-maccod.ads: Minor reformatting
8918 * s-memory.adb: Minor reformatting
8920 * s-htable.adb: Fix typo in comment.
8922 * s-secsta.adb: Minor comment update.
8924 * s-soflin.adb: Minor reformatting
8927 Add comment about odd qualification in Storage_Offset declaration
8930 Remove unnecessary 'in' keywords for formal parameters.
8932 * treeprs.adt: Minor reformatting
8934 * urealp.adb: Put routines in alpha order
8936 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
8939 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
8941 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
8943 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
8944 workaround as on other platforms.
8946 * g-eacodu-vms.adb: Remove redundant 'in' keywords
8947 * g-expect-vms.adb: Remove redundant 'in' keywords
8949 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
8950 clear error message if the list-of-files file cannot be opened.
8952 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
8953 equality operator is always visible.
8955 * lang.opt: Woverlength-strings: New option.
8958 Update copyright, since nmake.ads and nmake.adb have changed.
8960 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
8961 (Binder_Output_Time_Stamps_Set): removed.
8962 (Old_Binder_Output_Time_Stamp): idem.
8963 (New_Binder_Output_Time_Stamp): idem.
8964 (Recording_Time_From_Last_Bind): idem.
8965 (Recording_Time_From_Last_Bind): Make constant.
8967 * output.ads, output.adb (Write_Str): Allow LF characters
8968 (Write_Spaces): New procedure
8970 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
8972 * inline.adb: Minor reformatting
8974 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
8976 * s-mastop-vms.adb: Remove redundant 'in' keywords
8978 * s-osprim-vms.adb: Remove redundant 'in' keywords
8980 * s-trafor-default.adb: Remove redundant 'in' keywords
8982 * 9drpc.adb: Remove redundant 'in' keywords
8984 * s-osinte-mingw.ads: Minor reformatting
8986 * s-inmaop-posix.adb: Minor reformatting
8988 * a-direio.ads: Remove quotes from Compile_Time_Warning message
8990 * a-exexda.adb: Minor code reorganization
8992 * a-filico.adb: Minor reformatting
8994 * a-finali.adb: Minor reformatting
8996 * a-nudira.ads: Remove quote from Compile_Time_Warning message
8998 * a-numeri.ads: Minor reformatting
9000 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
9002 * exp_pakd.ads: Fix obsolete comment
9004 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
9005 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
9006 Probably not a bug, but certainly neater and more efficient.
9008 * a-tienio.adb: Minor reformatting
9010 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
9011 Avoid assuming low bound of string is 1.
9013 * gnatbind.adb: Change Bindusg to package and rename procedure as
9014 Display, which now ensures that it only outputs usage information once.
9015 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
9017 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
9020 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
9022 (Match): Add pragma Assert to ensure that Matches'First is zero
9024 * g-regpat.ads (Match): Document that Matches lower bound must be zero
9026 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
9027 documented preconditions (also kills warnings about bad indexes).
9029 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
9031 (Build_Import_Library): Ditto;
9033 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
9035 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
9037 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
9038 lower bound of choice table is 1.
9040 * sem_case.ads (Analyze_Choices): Document that lower bound of
9043 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
9046 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
9047 and add appropriate Assert pragma to suppress warnings.
9049 * atree.h, atree.ads, atree.adb
9050 Change Elist24 to Elist25
9051 Add definitions of Field28 and Node28
9052 (Traverse_Field): Use new syntactic parent table in sinfo.
9054 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
9056 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
9058 * exp_tss.adb: Put routines in alpha order
9060 * fe.h: Remove redundant declarations.
9062 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
9064 * utils.c (builtin_function): Rename to gnat_builtin_function.
9065 Move common code to add_builtin_function.
9066 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
9067 gnat_builtin_function.
9068 * gigi.h (builtin_function): Rename to gnat_builtin_function.
9069 Change the signature.
9071 2006-10-16 Brooks Moses <bmoses@stanford.edu>
9073 * Makefile.in: Add TEXI2PDF definition.
9074 * Make-lang.in: Add "ada.pdf" target.
9076 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
9078 * decl.c, utils.c: Fix comment typos.
9079 * utils.c: Fix a typo.
9081 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
9083 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
9084 on "pure" Ada subprograms if SJLJ exceptions are used.
9085 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
9086 on the declaration node of JMPBUF_SAVE.
9087 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
9088 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
9089 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
9091 2006-08-20 Laurent GUERBY <laurent@guerby.net>
9094 g-socket.adb (Bind_Socket): Call Set_Address.
9096 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
9099 * decl.c (same_discriminant_p): New static function.
9100 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
9101 subtype and we have discriminants, fix up the COMPONENT_REFs
9102 for the discriminants to make them reference the corresponding
9103 fields of the parent subtype after it has been built.
9105 2006-09-15 Roger Sayle <roger@eyesopen.com>
9108 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
9109 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
9111 2006-09-13 Olivier Hainque <hainque@adacore.com>
9114 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
9115 of a SAVE_EXPR, just make the operand addressable/not-readonly and
9116 let the common gimplifier code make and propagate a temporary copy.
9117 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
9118 out/in-out actuals and defer setting the addressable/readonly bits
9121 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
9124 * decl.c (components_to_record): Defer emitting debug info for the
9125 record type associated with the variant until after we are sure to
9128 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
9131 * gigi.h (gnat_internal_attribute_table): Declare.
9132 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
9133 * utils.c (gnat_internal_attribute_table): New global variable.
9134 (builtin_function): Always call decl_attributes on the builtin.
9135 (handle_const_attribute): New static function.
9136 (handle_nothrow_attribute): Likewise.
9138 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
9140 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
9142 2006-06-23 Olivier Hainque <hainque@adacore.com>
9144 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
9145 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
9147 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
9148 Eric Botcazou <ebotcazou@adacore.com>
9151 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
9152 check-gnat into check-acats.
9154 2006-06-17 Karl Berry <karl@gnu.org>
9156 * gnat-style.texi (@dircategory): Use "Software development"
9157 instead of "Programming", following the Free Software Directory.
9159 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9162 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
9164 2006-06-06 Laurent GUERBY <laurent@guerby.net>
9167 mlib-utl.adb: Use Program_Name.
9169 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
9171 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
9172 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
9173 trans.c, utils.c: Fix comment typos. Follow spelling
9175 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
9178 2006-05-19 Nicolas Setton <setton@adacore.com>
9180 * misc.c (gnat_dwarf_name): New function.
9181 (LANG_HOOKS_DWARF_NAME): Define to it.
9183 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
9185 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
9186 (ada/misc.o): Likewise.
9187 (ada/utils.o): Likewise.
9189 2006-04-08 Aurelien Jarno <aurel32@debian.org>
9191 * Makefile.in: Add Ada support for GNU/kFreeBSD.
9192 * s-osinte-kfreebsd-gnu.ads: New file.
9194 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
9196 * Make-lang.in: Rename docdir to gcc_docdir.
9198 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
9200 * gigi.h (get_ada_base_type): Delete.
9201 * utils2.c (get_ada_base_type): Likewise.
9202 * trans.c (convert_with_check): Operate in the real base type.
9204 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9206 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
9208 2006-03-02 Richard Sandiford <richard@codesourcery.com>
9210 * utils.c (create_var_decl): Use have_global_bss_p when deciding
9211 whether to make the decl common.
9213 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
9215 * Make-lang.in (Ada): Remove.
9216 (.PHONY): Remove Ada
9218 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9220 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
9221 aggregate, check the interpretations of the other operand to find one
9222 that may be a boolean array.
9224 (Analyze_Selected_Component): Fix flow-of-control typo in case where
9225 the prefix is a private extension.
9227 2006-02-17 Eric Botcazou <botcazou@adacore.com>
9230 * utils2.c (find_common_type): If both input types are BLKmode and
9231 have the same constant size, keep using the first one.
9233 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
9235 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
9237 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
9239 2006-02-17 Jose Ruiz <ruiz@adacore.com>
9241 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
9242 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9243 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
9244 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
9245 Abort_Defer/Undefer pairs to avoid the possibility of a task being
9246 aborted while owning a lock.
9248 2006-02-17 Javier Miranda <miranda@adacore.com>
9249 Robert Dewar <dewar@adacore.com>
9251 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
9252 through an access to class-wide interface we force the displacement of
9253 the pointer to the allocated object to reference the corresponding
9254 secondary dispatch table.
9255 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
9256 if Long_Shifts are supported on the target, even if 64 bit divides
9257 are not supported (configurable run time mode).
9258 (Expand_N_Type_Conversion): Do validity check if validity checks on
9259 operands are enabled.
9260 (Expand_N_Qualified_Expression): Do validity check if validity checks
9261 on operands are enabled.
9263 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9265 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
9266 must be materialized when the renamed expression is an explicit
9269 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9271 * freeze.adb (Statically_Discriminated_Components): Return false if
9272 the bounds of the type of the discriminant are not static expressions.
9274 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
9275 the bounds of the discriminant type are not static.
9277 2006-02-17 Robert Dewar <dewar@adacore.com>
9279 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
9280 then we close To if it is valid.
9282 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
9284 * init.c (facility_resignal_table): new array
9285 (__gnat_default_resignal_p): enhance default predicate to resignal if
9286 VMS condition has one of the predefined facility codes.
9288 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
9290 * Makefile.in: Use VMS64 specialized versions of several units in
9291 Interfaces.C hierarchy to be compatible with HP C default size choices.
9292 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
9294 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9296 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
9297 instantiation, the corresponding entity is the related_instance of the
9298 wrapper package created for the instance.
9300 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9302 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
9303 the current instance is nested within another instance in a child unit.
9305 2006-02-17 Javier Miranda <miranda@adacore.com>
9306 Ed Schonberg <schonberg@adacore.com>
9308 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
9309 type we cannot inherit the primitive operations; we inherit the
9310 Corresponding_Record_Type (which has the list of primitive operations).
9311 (Check_Anonymous_Access_Types): When creating anonymous access types for
9312 access components, use Rewrite in order to preserve the tree structure,
9314 (Analyze_Object_Declaration): For limited types with access
9315 discriminants with defaults initialized by an aggregate, obtain
9316 subtype from aggregate as for other mutable types.
9317 (Derived_Type_Declaration): If the derived type is a limited interface,
9318 set the corresponding flag (Is_Limited_Record is not sufficient).
9320 2006-02-17 Ed Schonberg <schonberg@adacore.com>
9322 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
9323 to inline a function that returns an unconstrained type, the return
9324 expression must be the first variable declared in the body of the
9327 2006-02-17 Javier Miranda <miranda@adacore.com>
9329 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
9330 abstract interface type, the static analysis is not enough to know if
9331 the interface is implemented or not by the source tagged type. Hence
9332 we must pass the work to the expander to generate the required code to
9333 evaluate the conversion at run-time.
9334 (Resolve_Equality_Op): Do not apply previous
9335 transformation if expansion is disasbled, to prevent anomalies when
9336 locating global references in a generic unit.
9338 2006-02-17 Vincent Celier <celier@adacore.com>
9340 * snames.ads, snames.adb: New standard names for new project attributes:
9341 archive_builder, archive_indexer, compiler_pic_option,
9342 config_body_file_name, config_body_file_name_pattern,
9343 config_file_switches, config_file_unique, config_spec_file_name,
9344 config_spec_file_name_pattern, default_builder_switches,
9345 default_global_compiler_switches, default_language,
9346 dependency_file_kind, global_compiler_switches, include_path,
9347 include_path_file, language_kind, linker_executable_option,
9348 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
9349 roots, runtime_project.
9351 2006-02-17 Matthew Heaney <heaney@adacore.com>
9353 * a-convec.ads, a-convec.adb:
9354 (operator "&"): handle potential overflow for large index types
9355 (Insert): removed Contraint_Error when using large index types
9356 (Insert_Space): removed Constraint_Error for large index types
9357 (Length): moved constraint check from Length to Insert
9359 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
9361 Explicit raise statements now include an exception message.
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 2006-02-17 Robert Dewar <dewar@adacore.com>
9369 * s-wchcnv.adb: Document handling of [ on output (we do not change
9370 this to ["5B"] and the new comments say why not.
9373 Add note for -gnatVo that this now includes the cases of type
9374 conversions and qualified expressions.
9375 Add comments on handling of brackets encoding for Text_IO
9377 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
9378 Thomas Quinot <quinot@adacore.com>
9379 Robert Dewar <dewar@adacore.com>
9380 Javier Miranda <miranda@adacore.com>
9382 * expander.adb: Fix typo in comment
9384 * exp_pakd.adb: Fix typo
9385 Minor comment reformatting.
9387 * g-dyntab.adb: Minor reformatting
9389 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
9390 aliased subprograms to look for the abstract interface subprogram.
9392 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
9394 * env.c (__gnat_setenv): Use size_t.
9395 (__gnat_unsetenv): Likewise.
9396 (__gnat_clearenv): Likewise.
9398 2006-02-16 Arnaud Charlet <charlet@adacore.com>
9400 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
9402 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9404 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
9405 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
9406 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
9407 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
9408 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
9409 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
9410 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
9411 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
9412 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
9415 2006-02-13 Jose Ruiz <ruiz@adacore.com>
9417 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
9418 protection against race conditions is not needed.
9419 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
9421 (Set_Specific_Handler): Add mutual exclusive access to the specific
9423 (Specific_Handler): Add mutual exclusive access for retrieving the
9426 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
9429 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
9430 Fall_Back_Handler and Specific_Handler.
9432 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
9433 termination handlers.
9434 Set two different owerflow depending on the maximal stack size.
9436 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
9437 protection against race conditions is not needed when executing the
9438 task termination handler.
9440 2006-02-13 Robert Dewar <dewar@adacore.com>
9442 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
9443 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
9444 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
9445 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
9446 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
9447 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
9448 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
9449 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
9450 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
9451 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
9452 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
9453 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
9454 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
9455 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
9456 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
9457 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
9458 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
9459 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
9460 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
9461 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
9462 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
9463 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
9464 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
9465 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
9466 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
9467 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
9468 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
9469 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
9470 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
9471 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
9472 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
9473 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
9474 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
9475 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
9478 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
9480 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
9481 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
9482 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
9483 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
9484 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
9485 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
9486 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
9487 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
9488 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
9490 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9492 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
9493 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
9494 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
9495 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
9496 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
9497 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
9498 replaced by anonymous access type.
9499 (pthread_sigmask): Now take an access sigset_t
9501 * s-osinte-hpux.ads: Ditto.
9502 (pthread_mutex_t, pthread_cond_t): Update definitions to support
9503 properly 32 and 64 bit ABIs.
9505 2006-02-13 Pascal Obry <obry@adacore.com>
9507 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
9508 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
9509 s-taprop-linux.adb, s-taprop-solaris.adb,
9510 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
9511 adjustement is already done when calling this routine.
9513 2006-02-13 Pascal Obry <obry@adacore.com>
9515 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
9516 table to take advantage of the 16 priority levels available on Windows
9517 2000 and XP. On NT4 there are only 7 priority levels, this is properly
9518 supported by this new mapping.
9520 2006-02-13 Nicolas Setton <setton@adacore.com>
9522 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
9523 (get_encoding): New subprogram. Extracts the encodings from an encoded
9526 2006-02-13 Pascal Obry <obry@adacore.com>
9527 Nicolas Roche <roche@adacore.com>
9528 Arnaud Charlet <charlet@adacore.com>
9530 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
9532 (__gnat_try_lock): Add unicode support by using a specific section on
9534 (__gnat_get_current_dir): Idem.
9535 (__gnat_open_read): Idem.
9536 (__gnat_open_rw): Idem.
9537 (__gnat_open_create): Idem.
9538 (__gnat_create_output_file): Idem.
9539 (__gnat_open_append): Idem.
9540 (__gnat_open_new): Idem.
9541 (__gnat_file_time_name): Idem.
9542 (__gnat_set_file_time_name): Idem.
9543 (__gnat_stat): Idem.
9544 (win32_no_block_spawn): Idem.
9545 (__gnat_locate_exec_on_path): Idem.
9546 (__gnat_opendir): New routine.
9547 (__gnat_closedir): Idem.
9548 (__gnat_readdir): Add new parameter length (pointer to int). Update
9549 implementation to use it and add specific Win32 code for Unicode
9551 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
9552 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
9553 (convert_addresses): Do not define this dummy routine on VMS.
9555 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
9556 runtime Unicode support will be activated.
9557 (S2WS): String to Wide-String conversion. This version just copy a
9558 string in non Unicode version.
9559 (WS2S): Wide-String to String conversion. This version just copy a
9560 string in non Unicode version.
9562 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
9563 (Open): Now import __gnat_opendir from adaint.c.
9564 (Read): Change the implementation to support unicode characters. It is
9565 not possible to use strlen() on Windows as this version supports only
9566 standard ASCII characters. So the length of the directory entry is now
9567 returned from the imported __gnat_readdir routine.
9568 Update copyright notice.
9570 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
9571 (opendir): Moved to adaint.c.
9573 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
9574 (Get_Directory): Fix wrong indexing.
9575 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
9576 __gnat_getenv from env.c
9577 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
9580 * env.h, env.c: New file.
9582 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
9583 adaint.c by __gnat_getenv from env.c
9585 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
9586 adaint.c by __gnat_getenv from env.c
9588 * Make-lang.in: Add env.o in the list of C object needed by gnat1
9590 Update dependencies.
9592 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9593 Olivier Hainque <hainque@adacore.com>
9594 Eric Botcazou <ebotcazou@adacore.com>
9596 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
9598 * gigi.h (value_factor_p): Add prototype and description, now public.
9600 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
9601 promotion for field with rep clause if the associated size was proven
9603 Expand comments describing attempts to use a packable type.
9604 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
9605 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
9606 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
9607 necessary since these are not different types and pointers may
9608 actually designate any subtype in this hierarchy.
9609 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
9610 discriminants but put them into record only if not Unchecked_Union;
9611 pass flag to components_to_record showing Unchecked_Union.
9612 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
9613 components before variants; don't set TYPE_UNCHECKED_UNION_P.
9614 (components_to_record): New argument UNCHECKED_UNION.
9615 Remove special case code for Unchecked_Union and instead use main code
9619 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
9620 variable with the expression being built, only its inner field.
9622 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
9623 emit_sequence_entry_statements.
9624 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
9625 (establish_gnat_vms_condition_handler): Move before
9626 Subprogram_Body_to_gnu.
9627 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
9628 for a subprogram if it has a foreign convention or is exported.
9629 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
9630 substituted for a CONST_DECL.
9631 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
9632 Etype to assoc_to_constructor.
9633 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
9634 discriminants of Unchecked_Union.
9635 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
9636 don't need cluttering preprocessor directives.
9637 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
9638 condition handler as current in the compiled function.
9639 (body_with_handlers_p): New function. Tell whether a given sequence of
9640 statements node is attached to a package or subprogram body and involves
9641 exception handlers possibly nested within inner block statements.
9642 (emit_sequence_entry_statements): New function, to emit special
9643 statements on entry of sequences when necessary. Establish GNAT
9644 condition handler in the proper cases for VMS.
9645 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
9646 emit_sequence_entry_statements.
9648 * utils2.c (find_common_type): If both input types are BLKmode and
9649 have a constant size, use the smaller one.
9650 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
9653 * utils.c (value_factor_p): Make public, to allow uses from other gigi
9655 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
9656 (convert, case UNION_TYPE): Remove special treatment for unchecked
9660 (update_pointer_to): Update variants of pointer types to unconstrained
9661 arrays by attaching the list of fields of the main variant.
9663 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9664 Robert Dewar <dewar@adacore.com>
9666 * a-exexpr.adb, a-exexpr-gcc.adb
9667 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
9668 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
9669 Remove code unused for exception propagation for the compiler itself
9670 from a-except.adb and update to still share separate packages.
9672 * a-except.ads, a-except.adb: Ditto.
9673 Add comments that this version is now used only by the compiler and
9674 other basic tools. The full version that includes the Ada 2005 stuff
9675 is in separate files a-except-2005.ads/adb. The reason is that we do
9676 not want to cause bootstrap problems with compilers not recognizing
9678 Add exception reason code PE_Implicit_Return
9679 Add new exception reason code (Null Exception_Id)
9681 * a-except-2005.adb, a-except-2005.ads: New files.
9683 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
9685 * s-wchcon.adb: New file.
9687 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
9688 (traceback.o deps): Likewise.
9689 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
9690 Activate build of GMEM instrumentation library on VMS targets.
9691 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
9692 Use a-except-2005.ads/adb for all run-time library builds unless
9693 specified otherwise.
9694 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
9695 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
9696 Use s-parame.adb on all native platforms.
9697 Use s-parame-vxworks.adb on all vxworks platforms.
9698 Add env.c env.h in LIBGNAT_SRCS
9699 Add env.o in LIBGNAT_OBJS
9700 (GNATMAKE_OBJS): Remove ctrl_c.o object.
9701 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
9702 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
9703 supports VxWorks 6 RTPs.
9704 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
9705 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
9707 * types.h, types.ads (Terminate_Program): New exception
9708 Add comment on modifying multiple versions of a-except.adb when the
9709 table of exception reasons is modified.
9710 Add exception reason code PE_Implicit_Return
9711 Add new exception reason code (Null Exception_Id)
9713 * clean.adb (Initialize): Get the target parameters before checking
9714 if target is OpenVMS. Move the OpenVMS specific code here from package
9715 body elaboration code.
9717 2006-02-13 Thomas Quinot <quinot@adacore.com>
9718 Vincent Celier <celier@adacore.com>
9719 Robert Dewar <dewar@adacore.com>
9721 * ali-util.adb (Get_File_Checksum): Update to account for change in
9722 profile of Initialize_Scanner.
9724 * gprep.adb (Gnatprep): Update to account for change in profile of
9726 (Process_One_File): Same.
9728 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
9729 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
9730 that behaviour using the new Unit information recorded in the source
9731 files table, rather than going through all units every time.
9732 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
9733 (Get_Source_Unit): Same.
9735 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
9736 change in profile of Initialize_Scanner.
9737 (Prepare_To_Preprocess): Same.
9739 * lib.ads: Fix typo in comment (templace -> template).
9741 * prj-part.adb (Parse_Single_Project): Update to account for change in
9742 profile of Initialize_Scanner.
9744 * scn.adb (Initialize_Scanner): Account for change in profile of
9745 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
9746 Also record the association of the given Source_File_Index to the
9747 corresponding Unit_Number_Type.
9749 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
9751 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
9752 Remove Unit formal for generic scanner: this formal
9753 is only relevant to Scn (the scanner instance used to parse Ada source
9754 files), not to other instances. Update comment accordingly.
9755 (Scan): Use new function Snames.Is_Keyword_Name.
9757 * sinfo-cn.adb: Fix typo in comment.
9759 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
9762 * sinput.ads (Source_File_Record): New component Unit, used to capture
9763 the unit identifier (if any) associated to a source file.
9765 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
9766 Unit in Source_File_Record.
9768 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
9769 in profile of Initialize_Scanner.
9771 * scans.adb (Initialize_Ada_Keywords): New procedure
9773 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
9774 Ada keywords in the Namet table, without the need to call
9777 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
9778 (Is_Keyword_Name): New function
9780 * snames.ads: Add subtype Configuration_Pragma_Names
9781 Add pragma Ada_2005 (synonym for Ada_05)
9782 (Is_Keyword_Name): New function
9784 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
9786 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9788 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
9791 * a-stwima.adb (To_Set): Add extra check when N = 0.
9793 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
9795 2006-02-13 Arnaud Charlet <charlet@adacore.com>
9797 * s-parame-mingw.adb, s-parame-linux.adb,
9798 s-parame-solaris.adb: Removed, replaced by s-parame.adb
9800 * s-parame-vxworks.ads: Fix typo.
9802 * s-parame-vxworks.adb: New file.
9804 * s-parame.adb: Version now used by all native platforms.
9805 (Default_Stack_Size): Use 2 megs for default stack size and use
9806 __gl_default_stack_size when available.
9807 (Minimum_Stack_Size): Use 12K.
9809 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
9810 (Create_Task): Refine implementation taking advantage of the XP stack
9811 size support. On XP, we now create the thread using the flag
9812 STACK_SIZE_PARAM_IS_A_RESERVATION.
9814 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
9816 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
9817 XP and 0 on older Windows versions.
9819 * interfac-vms.ads: Removed, no longer used.
9821 2006-02-13 Matthew Heaney <heaney@adacore.com>
9823 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
9824 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
9825 a-cohase.adb: All explicit raise statements now include an exception
9828 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
9829 (Update_Element_Preserving_Key): renamed op to just Update_Element.
9830 Explicit raise statements now include an exception message
9832 * a-cihase.ads, a-cohase.ads: Removed comment.
9834 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
9835 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
9836 a-szbzha.adb, a-szfzha.ads: New files.
9838 2006-02-13 Matthew Heaney <heaney@adacore.com>
9840 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
9843 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
9845 * lang.opt: Wvariadic-macros: New option.
9846 Wold-style-definition: Likewise.
9847 Wmissing-format-attribute: Likewise.
9849 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
9850 -Wold-style-definition and -Wmissing-format-attribute.
9852 2006-02-13 Robert Dewar <dewar@adacore.com>
9854 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
9856 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
9858 2006-02-13 Nicolas Roche <roche@adacore.com>
9860 * a-envvar.adb, a-envvar.ads: New files.
9862 2006-02-13 Douglas Rupp <rupp@adacore.com>
9864 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
9866 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
9868 2006-02-13 Pat Rogers <rogers@adacore.com>
9870 * a-rttiev.adb, a-rttiev.ads: New files.
9872 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
9874 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
9875 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
9877 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
9879 2006-02-13 Robert Dewar <dewar@adacore.com>
9881 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
9882 sem_case.adb: Minor code reorganization (not Present should be No)
9884 2006-02-13 Geert Bosch <bosch@adacore.com>
9885 Gary Dismukes <dismukes@adacore.com>
9887 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
9888 0, since the lower bound of the actual string may be greater than one.
9891 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
9892 layout is requested.
9894 2006-02-13 Vincent Celier <celier@adacore.com>
9896 * back_end.adb (Scan_Compiler_Arguments): Check if
9897 Search_Directory_Present is True and, if it is, add the argument in
9898 the source search directory path.
9900 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
9901 Search_Directory_Present to True.
9903 2006-02-13 Joel Brobecker <brobecke@adacore.com>
9905 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
9906 volatile, to tell the compiler to preserve this variable at any level
9908 (Gen_Versions_Ada): Temporarily work around codegen bug.
9910 2006-02-13 Vincent Celier <celier@adacore.com>
9912 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
9913 gcc to link with option -shared-libgcc.
9914 (Gnatlink): Remove duplicate switches -shared-libgcc
9916 2006-02-13 Robert Dewar <dewar@adacore.com>
9918 * gnatvsn.ads (Current_Year): New constant, used to easily update
9919 copyright on all GNAT tools.
9921 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
9924 2006-02-13 Robert Dewar <dewar@adacore.com>
9926 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
9927 after hyphen (small aesthetic change useful for a range of numbers
9929 Suppress range checks for a couple of assignments which otherwise
9930 cause validity checks with validity checking turned on.
9932 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
9933 Improvement in error message for object.
9934 (Rep_Item_Too_Late): Remove '!' in warning message.
9936 2006-02-13 Robert Dewar <dewar@adacore.com>
9937 Eric Botcazou <ebotcazou@adacore.com>
9939 * err_vars.ads: Suppress range checks for a couple of assignments
9940 which otherwise cause validity checks with validity checking turned on.
9943 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
9944 Make message unconditional if it is a warning.
9945 (Error_Msg_NEL): Always output warning messages.
9946 Suppress range checks for a couple of assignments which otherwise
9947 cause validity checks with validity checking turned on.
9949 * errout.ads (Message Insertion Characters): Document that '!' is
9950 implied by '?' in error messages.
9952 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
9953 (Gnat1drv): Use a goto to end of main subprogram instead of
9954 Exit_Program (E_Success) so that finalization can occur normally.
9956 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
9958 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
9961 2006-02-13 Vincent Celier <celier@adacore.com>
9963 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
9964 Unchecked_Conversion functions.
9965 (Modification_Time): Use direct conversion of OS_Time to Calendar time
9966 when OpenVMS returns False.
9968 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
9969 a-dirval.adb (OpenVMS): New Boolean function
9971 2006-02-13 Ed Schonberg <schonberg@adacore.com>
9972 Thomas Quinot <quinot@adacore.com>
9974 * checks.adb (Build_Discriminant_Checks): If the expression being
9975 checks is an aggregate retrieve the values of its discriminants to
9976 generate the check, rather than creating a temporary and a reference
9978 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
9979 (Install_Null_Excluding_Check): Ditto
9980 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
9981 not for the renamed object, so that the actual itype is attached in the
9984 2006-02-13 Robert Dewar <dewar@adacore.com>
9985 Vincent Celier <celier@adacore.com>
9987 * debug.adb: Eliminate numeric switches for binder/gnatmake
9989 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
9990 switches for the compiler.
9991 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
9992 (Scan_Make_Switches): When failing with an illegal switch, output an
9993 error message with the full switch.
9994 Eliminate numeric switches for binder/gnatmake
9996 * switch.ads, switch.adb (Bad_Switch): New procedure
9998 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
9999 Remove 0-9 as debug flag character possibilities
10000 -d is now controlling the primary stack size when its value is a
10001 positive. Also add checks against invalid values, and support for kb,
10002 mb. Ditto for -D switch.
10004 2006-02-13 Robert Dewar <dewar@adacore.com>
10005 Serguei Rybin <rybin@adacore.com>
10007 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
10008 save/restore routines.
10009 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10010 were not always properly handled previously.
10011 Since we are changing the tree format anyway, also get rid of the
10012 junk obsolete Immediate_Errors flag.
10013 (Tree_Read): Change the way of reading Tree_Version_String - now we
10014 read the version string from the tree even if its length is not the
10015 same as the length of the version string computed from Gnatvsn.
10016 (Search_Directory_Present): New Boolean flag for the compiler.
10017 Define Tree_Version_String as a dynamic string.
10018 (Default_Stack_Size): new variable, used to handle switch -d.
10021 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
10022 only for main unit.
10023 Add pragma Ada_2005 (synonym for Ada_05)
10024 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10025 were not always properly handled previously.
10027 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
10028 explicit Ada_95 to Ada_2005.
10030 2006-02-13 Javier Miranda <miranda@adacore.com>
10031 Robert Dewar <dewar@adacore.com>
10032 Ed Schonberg <schonberg@adacore.com>
10034 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
10035 against errors in the source program: a private types for which the
10036 corresponding full type declaration is missing and pragma CPP_Virtual
10038 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
10039 (Is_Known_Null): New flag
10040 (Has_Pragma_Pure): New flag
10041 (No_Return): Present in all entities, set only for procedures
10042 (Is_Limited_Type): A type whose ancestor is an interface is limited if
10043 explicitly declared limited.
10044 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
10045 entities. Only used for component marked Is_Tag. If present it stores
10046 the Offset_To_Top function used to provide this value in tagged types
10047 whose ancestor has discriminants.
10049 * exp_ch2.adb: Update status of new Is_Known_Null flag
10051 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
10053 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
10054 the categorization sense if Is_Pure was set by pragma Pure_Function.
10056 2006-02-13 Quentin Ochem <ochem@adacore.com>
10057 Olivier Hainque <hainque@adacore.com>
10059 * bindusg.adb: Updated documentation for -d and -D switches.
10061 * raise.h (__gnat_set_globals): added new parameter for
10062 Default_Stack_Size.
10064 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
10065 (__gnat_handle_vms_condition): Adjust context before raise.
10066 (__gnat_install_handler): Restore the global vector setup for GCC
10067 versions before 3.4, as the frame based circtuitry is not available
10069 (__gnat_set_globals): added a parameter default_stack_size
10070 (__gl_default_stack_size): new variable.
10072 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10074 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
10075 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
10076 does not exist in the Ada RM.
10077 (Compatible_Int_Bounds): Determine whether two integer range bounds
10078 are of equal length and have the same start and end values.
10079 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
10080 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
10081 aggregate when it is part of an object declaration.
10082 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
10083 constrains discriminants of its parent, add explicitly the discriminant
10084 constraints of the ancestor by retrieving them from the
10085 stored_constraint of the parent.
10087 2006-02-13 Robert Dewar <dewar@adacore.com>
10089 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
10090 attribute Mechanism_Code is applied to renamed subprogram, modify
10091 prefix to point to base subprogram.
10092 Max/Min attributes now violate Restriction No_Implicit_Conditionals
10094 * sinfo.ads: Document that Mechanism_Code cannot be applied to
10095 renamed subprograms so that the front-end must replace the prefix
10098 2006-02-13 Javier Miranda <miranda@adacore.com>
10099 Gary Dismukes <dismukes@adacore.com>
10101 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
10102 availability of RE_Interface_Tag.
10103 (Build_Initialization_Call): Fix wrong access to the discriminant value.
10104 (Freeze_Record_Type): Do not generate the tables associated with
10105 timed and conditional dispatching calls through synchronized
10106 interfaces if compiling under No_Dispatching_Calls restriction.
10107 When compiling for Ada 2005, for a nonabstract
10108 type with a null extension, call Make_Controlling_Function_Wrappers
10109 and insert the wrapper function declarations and bodies (the latter
10110 being appended as freeze actions).
10111 (Predefined_Primitive_Bodies): Do not generate the bodies of the
10112 predefined primitives associated with timed and conditional
10113 dispatching calls through synchronized interfaces if we are
10114 compiling under No_Dispatching_Calls.
10115 (Build_Init_Procedure): Use RTE_Available to check if a run-time
10116 service is available before generating a call.
10117 (Make_Controlling_Function_Wrappers): New procedure.
10118 (Expand_N_Full_Type_Declaration): Create a class-wide master for
10119 access-to-limited-interfaces because they can be used to reference
10120 tasks that implement such limited interface.
10121 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
10122 procedure spec and body of the Offset_To_Top function that is generated
10123 when the parent of a type with discriminants has secondary dispatch
10125 (Init_Secondary_Tags): Handle the case in which the parent of the type
10126 containing secondary dispatch tables has discriminants to generate the
10127 correct arguments to call Set_Offset_To_Top.
10128 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
10130 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
10131 Add Wide_[Wide_]Expanded_Name.
10132 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
10133 the same functionality of Get_Prim_Op_Address but applied to predefined
10134 primitive operations because the pointers to the predefined primitives
10135 are now saved in a separate table.
10136 (Parent_Size): Modified to get access to the separate table of primitive
10137 operations or the parent type.
10138 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
10139 functionality of Set_Prim_Op_Address but applied to predefined primitive
10141 (Set_Signature): New subprogram used to store the signature of a DT.
10142 (Displace): If the Offset_To_Top value is not static then call the
10143 function generated by the expander to get such value; otherwise use
10144 the value stored in the table of interfaces.
10145 (Offset_To_Top): The type of the actual has been changed to Address to
10146 give the correct support to tagged types with discriminants. In this
10147 case this value is stored just immediately after the tag field.
10148 (Set_Offset_To_Top): Two new formals have been added to indicate if the
10149 offset_to_top value is static and hence pass this value to the run-time
10150 to store it in the table of interfaces, or else if this value is dynamic
10151 and then pass to the run-time the address of a function that is
10152 generated by the expander to provide this value for each object of the
10155 * rtsfind.ads (Default_Prin_Op_Count): Removed.
10156 (Default_Prim_Op_Count): New entity
10157 (Get_Predefined_Prim_Op_Address): New entity
10158 (Set_Predefined_Prim_Op_Address): New entity
10159 (RE_Set_Signature): New entity
10161 2006-02-13 Thomas Quinot <quinot@adacore.com>
10162 Ed Schonberg <schonberg@adacore.com>
10164 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
10165 Make_Adjust_Call done for a newly-allocated object.
10167 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
10168 in a subprogram are wrapped in a cleanup block, indicate that the
10169 subprogram contains an inner block with an exception handler.
10170 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
10171 Adjust call is for a newly-allocated object. In that case we must not
10172 assume that the finalization list chain pointers are correct (since they
10173 come from a bit-for-bit copy of the original object's pointers) so if
10174 the attach level would otherwise be zero (no change), we set it to 4
10175 instead to cause the pointers to be reset to null.
10177 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
10178 reset chain pointers to null.
10180 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10182 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
10183 string, and the context requires a loop for the assignment (e.g.
10184 because the left-hand side is packed), generate a unique name for the
10185 temporary that holds the string, to prevent spurious name clashes.
10187 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10188 Javier Miranda <miranda@adacore.com>
10189 Robert Dewar <dewar@adacore.com>
10190 Gary Dismukes <dismukes@adacore.com>
10192 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
10193 return unconstrained arrays.
10195 (Expand_Call): An indirect call through an access parameter of a
10196 protected operation is not a protected call.
10197 Add circuit to raise CE in Ada 2005 mode following call
10198 to Raise_Exception.
10199 (Register_DT_Entry): Do nothing if
10200 the run-time does not give support to abstract interfaces.
10201 (Freeze_Subprogram): In case of dispatching operations, do not generate
10202 code to register the operation in the dispatch table if the source
10203 is compiled with No_Dispatching_Calls.
10204 (Register_Predefined_DT_Entry): Generate code that calls the new
10205 run-time subprogram Set_Predefined_Prim_Op_Address instead of
10206 Set_Prim_Op_Address.
10208 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
10209 on array assignments if the right-hand side is a function call that has
10210 been inlined. Check is performed on the assignment in the block.
10211 (Process_Bounds): If bounds and range are overloaded, apply preference
10212 rule for root operations to disambiguate, and diagnose true ambiguity.
10213 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
10214 a tag-indeterminate right-hand side even when Expander_Active is True.
10215 Needed to ensure that dispatching calls to T'Input are allowed and
10216 get the tag of the target class-wide object.
10218 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
10219 an inherited primitive operation that already overrides several
10220 abstract interface primitives. For transitivity, the new entity must
10221 also override all the abstract interface primitives covered by the
10222 inherited overriden primitive.
10223 Emit warning if new entity differs from homograph in same scope only in
10224 that one has an access parameter and the other one has a parameter of
10225 a general access type with the same designated type, at the same
10226 position in the signature.
10227 (Make_Inequality_Operator): Use source locations of parameters and
10228 subtype marks from corresponding equality operator when creating the
10229 tree structure for the implicit declaration of "/=". This does not
10230 change anything in behaviour except that the decoration of the
10231 components of the subtree created for "/=" allows ASIS to get the
10232 string images of the corresponding identifiers.
10233 (Analyze_Return_Statement): Remove '!' in warning message.
10234 (Check_Statement_Sequence): Likewise.
10235 (Analyze_Subprogram_Body): For an access parameter whose designated type
10236 is an incomplete type imported through a limited_with clause, use the
10237 type of the corresponding formal in the body.
10238 (Check_Returns): Implicit return in No_Return procedure now raises
10239 Program_Error with a compile time warning, instead of beging illegal.
10240 (Has_Single_Return): Function returning unconstrained type cannot be
10241 inlined if expression in unique return statement is not an identifier.
10242 (Build_Body_To_Inline): It is possible to inline a function call that
10243 returns an unconstrained type if all return statements in the function
10244 return the same local variable. Subsidiary procedure Has_Single_Return
10245 verifies that the body conforms to this restriction.
10247 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
10248 same type, and one of them is of an anonymous access type, convert
10249 the other operand to it, so that this is a valid binary operation for
10251 (Resolve_Type_Conversion): Handle subtypes of protected types and
10252 task types when accessing to the corresponding record type.
10253 (Resolve_Allocator): Add '\' in 2-line warning message.
10254 Remove '!' in warning message.
10255 (Resolve_Call): Add '\' in 2-line warning message.
10256 (Valid_Conversion): Likewise.
10257 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
10258 resulting type may be an access type with an implicit dereference.
10259 Obtain the proper component from the designated type.
10260 (Make_Call_Into_Operator): Handle properly a call to predefined equality
10261 given by an expanded name with prefix Standard, when the operands are
10262 of an anonymous access type.
10263 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
10264 Explicit_Dereference and Resolve_Selected_Component, to verify that the
10265 prefix of the expression is not of an incomplete type. Allows full
10266 diagnoses of all semantic errors.
10267 (Resolve_Actuals): If the actual is an allocator whose directly
10268 designated type is a class-wide interface we build an anonymous
10269 access type to use it as the type of the allocator. Later, when
10270 the subprogram call is expanded, if the interface has a secondary
10271 dispatch table the expander will add a type conversion to force
10272 the displacement of the pointer.
10273 (Resolve_Call): If a function that returns an unconstrained type is
10274 marked Inlined_Always and inlined, the call will be inlined and does
10275 not require the creation of a transient scope.
10276 (Check_Direct_Boolean_Op): Removed
10277 (Resolve_Comparison_Op): Remove call to above
10278 (Resolve_Equality_Op): Remove call to above
10279 (Resolve_Logical_Op): Inline above, since this is only call.
10280 (Valid_Conversion): Handle properly conversions between arrays of
10281 convertible anonymous access types.
10284 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
10285 the literal in an unchecked conversion, because GCC 4.x needs a static
10286 value for a string bound.
10288 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10289 Hristian Kirtchev <kirtchev@adacore.com>
10291 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
10292 components of the corresponding record, take into account component
10293 definitions that are access definitions.
10294 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
10295 procedure is not considered a dispatching call and will be expanded
10298 2006-02-13 Javier Miranda <miranda@adacore.com>
10300 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
10301 controlling argument of the dispatching call is an abstract interface
10302 class-wide type then we use it directly.
10303 Check No_Dispatching_Calls restriction.
10304 (Default_Prim_Op_Position): Remove the code that looks for the last
10305 entity in the list of aliased subprograms. This code was wrong in
10307 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
10308 when the source is compiled with the No_Dispatching_Calls restriction.
10309 (Init_Predefined_Interface_Primitives): No need to inherit primitives
10310 if we are compiling with restriction No_Dispatching_Calls.
10311 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
10312 subprograms if we are compiling under No_Dispatching_Calls restriction.
10313 (Make_DT): Generate a dispatch table with a single dummy entry if
10314 we are compiling with the No_Dispatching_Calls restriction. In
10315 addition, in this case we don't generate code that calls to the
10316 following run-time subprograms: Set_Type_Kind, Inherit_DT.
10317 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
10318 of this subprogram if compiling with the No_Dispatching_Calls
10320 (Expand_Type_Conversion): Instead of using the actual parameter,
10321 the argument passed as parameter to the conversion function was
10322 erroneously referenced by the expander.
10323 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
10324 Set_Predefined_Primitive_Op_Address and Set_Signature.
10325 (Expand_Dispatching_Call): Generate call to
10326 Get_Predefined_Prim_Op_Address for predefined primitives.
10327 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
10328 predefined primitives.
10329 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
10330 primitives we reserve one dummy entry to ensure that the tag does not
10331 point to some memory that is associated with some other object. In
10332 addition, remove all the old code that generated the assignments
10333 associated with the signature of the dispatch table and replace them
10334 by a call to the new subprogram Set_Signature.
10335 (Set_All_DT_Position): Change the algorithm because now we have a
10336 separate dispatch table associated with predefined primitive operations.
10337 (Expand_Interface_Conversion): In case of non-static offset_to_top
10338 add explicit dereference to get access to the object after the call
10339 to displace the pointer to the object.
10340 (Expand_Interface_Thunk): Modify the generation of the actual used
10341 in the calls to the run-time function Offset_To_Top to fulfil its
10343 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
10345 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10347 * exp_dist.adb (Copy_Specification): For access parameters, copy
10348 Null_Exclusion flag, which will have been set for stream subprograms
10351 2006-02-13 Pascal Obry <obry@adacore.com>
10353 * expect.c (__gnat_expect_portable_execvp): New implementation. The
10354 previous implementation was using the C runtime spawnve routine but
10355 the corresponding wait was using directly the Win32 API. This was
10356 causing some times a lock when waiting for an event using
10357 WaitForSingleObject in __gnat_waitpid. This new implementation uses
10358 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
10359 API fixes this problem.
10361 2006-02-13 Robert Dewar <dewar@adacore.com>
10363 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
10366 2006-02-13 Thomas Quinot <quinot@adacore.com>
10368 * exp_pakd.ads: Fix typos in comments.
10370 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
10371 array reference that is an explicit dereference, mark the converted
10372 (packed) array reference as analyzed to prevent a forthcoming
10373 reanalysis from resetting its type to the original (non-packed) array
10376 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10377 Javier Miranda <miranda@adacore.com>
10378 Eric Botcazou <ebotcazou@adacore.com>
10380 * exp_util.ads, exp_util.adb (Find_Prim_Op,
10381 Is_Predefined_Primitive_Operation): When
10382 searching for the predefined equality operator, verify that operands
10383 have the same type.
10384 (Is_Predefined_Dispatching_Operation): Remove the code that looks
10385 for the last entity in the list of aliased subprograms. This code
10386 was wrong in case of renamings.
10387 (Set_Renamed_Subprogram): New procedure
10388 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
10389 Exp_Type constant computed when entering this subprogram.
10390 (Known_Null): New function
10391 (OK_To_Do_Constant_Replacement): New function
10392 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
10393 (Side_Effect_Free): An attribute reference 'Input is not free of
10394 side effect, unlike other attributes that are functions. (from code
10396 (Remove_Side_Effects): Expressions that involve packed arrays or records
10397 are copied at the point of reference, and therefore must be marked as
10398 renamings of objects.
10399 (Is_Predefined_Dispatching_Operation): Return false if the operation is
10400 not a dispatching operation.
10403 (Remove_Side_Effects): Lift enclosing type conversion nodes for
10404 elementary types in all cases.
10406 2006-02-13 Javier Miranda <miranda@adacore.com>
10408 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
10409 task types when accessing to the corresponding record type.
10410 Remove '!' in warning message.
10412 2006-02-13 Olivier Hainque <hainque@adacore.com>
10414 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
10415 to avoid useless and space inefficient overalignments on targets where
10416 Max_Alignment is larger than 16.
10418 2006-02-13 Pascal Obry <obry@adacore.com>
10420 * g-catiio.adb (Sec_Number): New type used to compute the number of
10421 seconds since 1-1-1970.
10422 (Image) [Natural]: The parameter was an Integer, as we can't deal with
10423 negative numbers (years, months...) it is better to have a Natural here.
10425 (Image) [Number]: Change parameter from Long_Integer to Number.
10426 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
10427 overflow for dates past year 2038.
10429 2006-02-13 Matthew Heaney <heaney@adacore.com>
10431 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
10434 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10436 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
10438 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
10439 finalization can occur normally.
10441 2006-02-13 Vincent Celier <celier@adacore.com>
10443 * gnatcmd.adb (Rules_Switches): New table
10444 (Add_To_Rules_Switches): New procedure
10445 (GNATCmd): For command CHECK, put all options following "-rules" in the
10446 Rules_Switches table. Append these -rules switches after the -cargs
10449 2006-02-13 Robert Dewar <dewar@adacore.com>
10451 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
10452 These two cases were generating incorrect output, and if this unit
10453 was built with checks on, generated a discriminant mismatch constraint
10456 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10457 Robert Dewar <dewar@adacore.com>
10459 * lib-xref.adb (Get_Type_Reference): For a private type whose full
10460 view is an array type, indicate the component type as well, for
10461 navigation purposes.
10462 (Generate_Reference): Don't consider array ref on LHS to be a case
10463 of violating pragma Unreferenced.
10464 Do not give Ada 2005 warning except on real reference.
10466 2006-02-13 Vincent Celier <celier@adacore.com>
10468 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
10469 main source, add switch -mdebug-main=_ada_ so that the executable can
10470 be debugged by the standard VMS debugger.
10471 (Gnatmake): Set No_Main_Subprogram to True when there is no main
10472 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
10473 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
10474 of the last source, as the binding and linking phases are never
10476 Set all executable obsolete when rebuilding a library.
10478 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
10481 2006-02-13 Javier Miranda <miranda@adacore.com>
10484 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
10485 code to improve the error message reported when the program has
10486 declarations of abstract interface types and it is not compiled with
10487 the -gnat05 switch.
10488 (P_Access_Definition): Reorganize the code to improve the error
10489 message reported when the new Ada 2005 syntax for anonymous
10490 access types is used and the program is not compiled with the
10493 2006-02-13 Robert Dewar <dewar@adacore.com>
10495 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
10496 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
10499 2006-02-13 Javier Miranda <miranda@adacore.com>
10501 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
10502 against source containing syntax errors.
10504 2006-02-13 Vincent Celier <celier@adacore.com>
10506 * prj.adb (Reset): Initialize the first element of table Namings with
10507 the standard naming data.
10509 2006-02-13 Vincent Celier <celier@adacore.com>
10511 * prj.ads (Error_Warning): New enumeration type
10513 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
10514 unknown, use the location of the project to report the error.
10515 (When_No_Sources): New global variable
10516 (Report_No_Ada_Sources): New procedure
10517 (Check): New parameter When_No_Sources. Set value of global variable
10519 (Find_Sources): Call Report_No_Ada_Sources when appropriate
10520 (Get_Sources_From_File): Ditto
10521 (Warn_If_Not_Sources): Better warning messages indicating the unit name
10524 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
10525 Call Prj.Proc.Process with parameter When_No_Sources.
10527 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
10528 Call Recursive_Check with parameter When_No_Sources.
10529 (Recursive_Check): New parameter When_No_Sources. Call itself and
10530 Prj.Nmsc.Check with parameter When_No_Sources.
10531 (Process): New parameter When_No_Sources. Call Check with parameter
10533 (Copy_Package_Declarations): New procedure to copy renamed parameters
10534 and setting the location of the declared attributes to the location
10535 of the renamed package.
10536 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
10539 2006-02-13 Vincent Celier <celier@adacore.com>
10541 * prj-makr.adb (Make): Preserve the comments from the original project
10543 When removing nodes (attributes Source_Dirs, Source_Files,
10544 Source_List_File and package Naming), save the comments and attach the
10545 saved comments to the newly created nodes.
10546 Do not add a with clause for the naming package if one already exists.
10548 2006-02-13 Javier Miranda <miranda@adacore.com>
10549 Gary Dismukes <dismukes@adacore.com>
10550 Robert Dewar <dewar@adacore.com>
10552 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
10554 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
10555 aliased entities to look for the overriden abstract interface
10557 (Is_Interface_Subprogram): Complete documentation.
10558 (Check_Dispatching_Operation): Do not generate code to register the
10559 operation in the dispatch table if the source is compiled with
10560 restriction No_Dispatching_Calls.
10561 (Override_Dispatching_Operation): Check for illegal attempt to override
10562 No_Return procedure with procedure that is not No_Return
10563 (Check_Dispatching_Call): Suppress the check for an abstract operation
10564 when the original node of an actual is a tag-indeterminate attribute
10565 call, since the attribute, which must be 'Input, can never be abstract.
10566 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
10567 call to the Input attribute (even when rewritten).
10568 (Propagate_Tag): Augment comment to indicate the possibility of a call
10569 to an Input attribute.
10571 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
10572 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
10574 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
10575 No_Wide_Characters is no longer partition-wide
10576 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
10579 2006-02-13 Douglas Rupp <rupp@adacore.com>
10581 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
10583 2006-02-13 Javier Miranda <miranda@adacore.com>
10585 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
10586 handles default-initialized components to keep separate the management
10587 of this feature but also avoid the unrequired resolution and
10588 expansion of components that do not have partially initialized
10590 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
10591 (Check_Bounds): Likewise.
10592 (Check_Length): Likewise.
10594 2006-02-13 Javier Miranda <miranda@adacore.com>
10595 Ed Schonberg <schonberg@adacore.com>
10597 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
10598 abstract interface type call analyze_and_resolve to expand the type
10599 conversion into the corresponding displacement of the
10600 reference to the base of the object.
10601 (Eval_Attribute, case Width): For systems where IEEE extended precision
10602 is supported, the maximum exponent occupies 4 decimal digits.
10603 (Accessibility_Message): Add '\' in 2-line warning message.
10604 (Resolve_Attribute): Likewise.
10605 (case Attribute_Access): Significantly revise checks
10606 for illegal access-to-subprogram Access attributes to properly enforce
10607 the rules of 3.10.2(32/2).
10608 Diagnose use of current instance with an illegal attribute.
10610 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
10612 (Enclosing_Generic_Unit): New function to return a node's innermost
10613 enclosing generic declaration node.
10614 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
10615 (Type_Access_Level): The accessibility level of anonymous acccess types
10616 associated with discriminants is that of the current instance of the
10617 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
10618 (Compile_Time_Constraint_Error): Handle case of conditional expression.
10619 (Kill_Current_Values_For_Entity): New function
10620 (Enter_Name): Change formal type to Entity_Id
10622 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
10623 Ed Schonberg <schonberg@adacore.com>
10624 Gary Dismukes <dismukes@adacore.com>
10626 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
10627 Analyze_Compilation_Unit.
10628 Detect and warn on redundant with clauses detected in a package spec
10629 and/or body when -gnatwr is used.
10630 (Analyze_Context): Analyze config pragmas before other items
10631 (Install_Context_Items): Don't analyze config pragmas here
10632 (Install_Limited_Withed_Unit): Set limited entity of package in
10633 with_clause so that cross-reference information or warning messages on
10634 unused packages can be properly generated
10635 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
10636 has Error_Posted set. Prevent infinite loops in illegal programs.
10637 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
10638 to the point of the error test requiring the current unit to be private.
10639 This ensures that private with clauses are not exempted from the basic
10640 checking for being a descendant of the same library unit parent as a
10641 withed private descendant unit.
10642 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
10643 handle private with clauses properly, as well as to account for cases
10644 where the withed unit is a public descendant of a private ancestor
10645 (in which case the current unit must be a descendant of the private
10646 ancestor's parent). The spec comments were updated accordingly. Also,
10647 the old error message in this subprogram was replaced with error
10648 messages that mirror the errors tested and reported by
10649 Check_Private_Child_Unit.
10650 Parameter and variable names improved for readability.
10651 (Install_Limited_Context_Clauses): Remove test for a withed unit being
10652 private as the precondition for calling
10653 Check_Private_Limited_Withed_Unit since that subprogram has been
10654 revised to test public units as well as private units.
10656 2006-02-13 Thomas Quinot <quinot@adacore.com>
10657 Robert Dewar <dewar@adacore.com>
10658 Ed Schonberg <schonberg@adacore.com>
10659 Javier Miranda <miranda@adacore.com>
10661 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
10662 that Scope_Stack.First = 1.
10663 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10664 were not always properly handled previously.
10665 (Formal_Entity): Complete rewrite, to handle properly some complex case
10666 with multiple levels of parametrization by formal packages.
10667 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
10668 to the corresponding derived type declaration for proper semantics.
10670 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
10671 (Check_Component): Enforce restriction on components of
10672 unchecked_unions: a component in a variant cannot contain tasks or
10674 (Unchecked_Union): Allow nested variants and multiple discriminants, to
10676 Add pragma Ada_2005 (synonym for Ada_05)
10677 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
10678 were not always properly handled previously.
10679 Document that pragma Propagate_Exceptions has no effect
10680 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
10681 (Set_Convention_From_Pragma): Check that if a convention is
10682 specified for a dispatching operation, then it must be
10683 consistent with the existing convention for the operation.
10684 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
10685 longer required to specify an vtable-ptr component in the record. For
10686 compatibility reasons we leave the support for the previous definition.
10687 (Analyze_Pragma, case No_Return): Allow multiple arguments
10689 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
10690 non-overrideen inherited operation with a controlling result as
10691 illegal only its implicit declaration comes from the derived type
10692 declaration of its result's type.
10693 (Check_Possible_Deferred_Completion): Relocate the object definition
10694 node of the subtype indication of a deferred constant completion rather
10695 than directly analyzing it. The analysis of the generated subtype will
10696 correctly decorate the GNAT tree.
10697 (Record_Type_Declaration): Check whether this is a declaration for a
10698 limited derived record before analyzing components.
10699 (Analyze_Component_Declaration): Diagnose record types not explicitly
10700 declared limited when a component has a limited type.
10701 (Build_Derived_Record_Type): Code reorganization to check if some of
10702 the inherited subprograms of a tagged type cover interface primitives.
10703 This check was missing in case of a full-type associated with a private
10705 (Constant_Redeclaration): Check that the subtypes of the partial and the
10706 full view of a constrained deferred constant statically match.
10707 (Mentions_T): A reference to the current type in an anonymous access
10708 component declaration must be an entity name.
10709 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
10710 class_wide type to refer to full type, not to the incomplete one.
10711 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
10712 available. Required to give support to the certified run-time.
10713 (Analyze_Component_Declaration): In case of anonymous access components
10714 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
10715 (Process_Discriminants): For an access discriminant, use the
10716 discriminant specification as the associated_node_for_itype, to
10717 simplify accessibility checks.
10719 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10720 Javier Miranda <miranda@adacore.com>
10722 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
10723 abstract interpretations on an operator, remove interpretations that
10724 yield Address or a type derived from it, if one of the operands is an
10726 (Try_Object_Operation.Try_Primitive_Operation,
10727 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
10728 location when creating the new reference to a primitive or class-wide
10729 operation as a part of rewriting a subprogram call.
10730 (Try_Primitive_Operations): If context requires a function, collect all
10731 interpretations after the first match, because there may be primitive
10732 operations of the same type with the same profile and different return
10733 types. From code reading.
10734 (Try_Primitive_Operation): Use the node kind to choose the proper
10735 operation when a function and a procedure have the same parameter
10737 (Complete_Object_Operation): If formal is an access parameter and prefix
10738 is an object, rewrite as an Access reference, to match signature of
10739 primitive operation.
10740 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
10741 by an expanded name with prefix Standard, when the operands are of an
10742 anonymous access type.
10743 (Remove_Abstract_Operations): If the operation is abstract because it is
10744 inherited by a user-defined type derived from Address, remove it as
10745 well from the set of candidate interpretations of an overloaded node.
10746 (Analyze_Membership_Op): Membership test not applicable to cpp-class
10749 2006-02-13 Bob Duff <duff@adacore.com>
10751 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
10752 redundant use clauses.
10753 In particular, if the scope of two use clauses overlaps, but one is not
10754 entirely included in the other, we should not warn. This can happen
10755 with nested packages.
10756 (Analyze_Subprogram_Renaming): Protect the compiler against previously
10757 reported errors. The bug was reported when the compiler was built
10758 with assertions enabled.
10759 (Find_Type): If the node is a 'Class reference and the prefix is a
10760 synchronized type without a corresponding record, return the type
10763 2006-02-13 Javier Miranda <miranda@adacore.com>
10765 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
10766 if this is the full-declaration associated with a private declaration
10767 that implement interfaces, then the private type declaration must be
10769 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
10770 as aliased. The use of the 'access attribute is not available for such
10771 object (for this purpose the object should be explicitly marked as
10772 aliased, but being an anonymous type this is not possible).
10774 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10775 Robert Dewar <dewar@adacore.com>
10777 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
10778 compilation unit is an elaboration scope.
10779 (Add_Task_Proc): Add '\' in 2-line warning message.
10780 (Activate_All_Desirable): Deal with case of unit with'ed by parent
10782 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10783 Javier Miranda <miranda@adacore.com>
10785 * sem_type.adb (Write_Overloads): Improve display of candidate
10787 (Add_One_Interp): Do not add to the list of interpretations aliased
10788 entities corresponding with an abstract interface type that is an
10789 immediate ancestor of a tagged type; otherwise we have a dummy
10790 conflict between this entity and the aliased entity.
10791 (Disambiguate): The predefined equality on universal_access is not
10792 usable if there is a user-defined equality with the proper signature,
10793 declared in the same declarative part as the designated type.
10794 (Find_Unique_Type): The universal_access equality operator defined under
10795 AI-230 does not cover pool specific access types.
10796 (Covers): If one of the types is a generic actual subtype, check whether
10797 it matches the partial view of the other type.
10799 2006-02-13 Thomas Quinot <quinot@adacore.com>
10801 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
10802 line. This is necessary to allow In_Extended_Main_Unit to provide
10803 correct results for itypes while writing out expanded source.
10804 (Close_File): No need to update the source_index_table here since it's
10805 now done for each line.
10807 2006-02-13 Ed Schonberg <schonberg@adacore.com>
10808 Robert Dewar <dewar@adacore.com>
10810 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
10811 preserve the source unit where the itype is declared, and prevent a
10813 (Note_Implicit_Run_Time_Call): New procedure
10814 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
10817 * sprint.ads: Document use of $ for implicit run time routine call
10819 2006-02-13 Quentin Ochem <ochem@adacore.com>
10821 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
10824 2006-02-13 Bob Duff <duff@adacore.com>
10826 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
10827 Scan_Unsigned, so we do not scan leading blanks and sign twice.
10828 Integer'Value("- 5") and Integer'Value("-+5") now correctly
10829 raise Constraint_Error.
10831 * s-vallli.adb (Scan_Long_Long_Integer): Call
10832 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
10833 do not scan leading blanks and sign twice.
10834 Integer'Value("- 5") and Integer'Value("-+5") now correctly
10835 raise Constraint_Error.
10837 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
10838 Scan_Long_Long_Unsigned): Split out most of the processing from
10839 Scan_Long_Long_Unsigned out into
10840 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
10841 This prevents scanning leading blanks and sign twice.
10842 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
10845 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
10846 out most of the processing from Scan_Unsigned out into
10847 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
10848 This prevents scanning leading blanks and sign twice.
10850 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
10851 use with Modular'Value attribute.
10852 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
10855 2006-02-13 Robert Dewar <dewar@adacore.com>
10857 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
10859 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
10861 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
10862 (PPC VxWorks): Likewise.
10863 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
10864 (forced_callee): Make non-inlinable and non-pure.
10865 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
10867 2006-02-13 Arnaud Charlet <charlet@adacore.com>
10868 Ben Brosgol <brosgol@adacore.com>
10869 Robert Dewar <dewar@adacore.com>
10871 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
10873 Document that gnatbind -M option is for cross environments only.
10874 Added description of using gnatmem to trace gnat rtl allocs and deallocs
10875 Add note on use of $ to label implicit run time calls
10876 Add documentation for -gnatyI (check mode IN)
10877 Updated chapter on compatibility with HP Ada
10878 VMS-oriented edits.
10879 Ran spell and corrected errors
10880 Add documentation for gnatbind -d and rework documentation of -D
10882 Add subprogram/data elimination section.
10883 Minor editing of annex A.
10884 Add section for gnatcheck.
10885 Add documentation for restriction No_Dispatching_Calls
10886 Add documentation for pragma Ada_2005
10887 Remove mention of obsolete pragma Propagate_Exceptions
10888 Document that pragma Unreferenced can appear after DO in ACCEPT
10889 Clarify Pure_Function for library level units
10890 Mention Max/Min in connection with No_Implicit_Conditionals
10891 No_Wide_Characters restriction is no longer partition-wide
10892 Add a nice example for Universal_Literal_String attribute
10893 Document that pragma No_Return can take multiple arguments
10895 * ug_words: Added entry for gnatcheck
10897 * g-ctrl_c.ads (Install_Handler): Enhance comments
10899 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
10901 * g-trasym.ads: Add documentation on how to do off line symbolic
10902 traceback computation.
10904 * s-fatgen.adb: Add comments for Unaligned_Valid
10906 * stand.ads: Fix typo in comment
10908 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10910 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
10912 2006-02-06 Roger Sayle <roger@eyesopen.com>
10914 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
10916 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10919 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
10920 implementation that calls __main.
10922 2006-01-25 Peter O'Gorman <peter@pogma.com>
10925 * Makefile.in (GCC_LINK): Remove quotes.
10926 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
10929 (powerpc-darwin): Pass -shared-libgcc when building shared library.
10931 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10934 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
10936 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10938 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
10940 2005-12-12 Arnaud Charlet <charlet@adacore.com>
10942 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
10945 2005-12-12 Arnaud Charlet <charlet@adacore.com>
10947 * Make-lang.in: Update dependencies
10949 2005-12-12 Arnaud Charlet <charlet@adacore.com>
10951 * Make-lang.in: Add rule for ada/exp_sel.o
10953 2005-12-12 Arnaud Charlet <charlet@adacore.com>
10955 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
10957 2005-12-09 Arnaud Charlet <charlet@adacore.com>
10959 * gnatvsn.ads (Library_Version): Bump to version 4.2
10960 (ASIS_Version_Number): Bumped.
10962 2005-12-09 Doug Rupp <rupp@adacore.com>
10964 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
10965 Ada bind file prefix on VMS from b$ to b__.
10966 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
10969 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
10970 Targparm.OpenVMS_On_Target.
10971 (Object_Suffix): Initialize with target object suffix.
10972 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
10974 * butil.adb: Change some Hostparm.OpenVMS checks to
10975 Targparm.OpenVMS_On_Target.
10977 * clean.adb: Change some Hostparm.OpenVMS checks to
10978 Targparm.OpenVMS_On_Target.
10979 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
10980 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
10981 Ada bind file prefix on VMS from b$ to b__.
10983 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
10984 --GCC so that Get_Target_Parameters can find system.ads.
10985 (Gnatlink): Call Get_Target_Parameters in mainline.
10986 Initialize standard packages for Targparm.
10987 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
10988 (Process_Args): Also Check for object files with target object
10990 (Make_Binder_File_Names): Create with target object extension.
10991 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
10994 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
10995 Targparm.OpenVMS_On_Target.
10996 ({declaration},Build_Library,Check_Library): Change Ada bind file
10997 prefix on VMS from b$ to b__.
10999 * osint-b.adb: Change some Hostparm.OpenVMS checks to
11000 Targparm.OpenVMS_On_Target.
11001 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
11004 * targext.c: New file.
11006 * Makefile.in: add support for vxworks653 builds
11007 (../../vxaddr2line): gnatlink with targext.o.
11008 (TOOLS_LIBS): Move targext.o to precede libgnat.
11009 (init.o, initialize.o): Minor clean up in dependencies.
11010 (GNATLINK_OBJS): Add targparm.o, snames.o
11011 Add rules fo building targext.o and linking it explicitly with all
11013 Also add targext.o to gnatlib.
11015 * Make-lang.in: Add rules for building targext.o and linking it in
11016 with gnat1 and gnatbind.
11017 Add entry for exp_sel.o.
11019 * osint.adb Change some Hostparm.OpenVMS checks to
11020 Targparm.OpenVMS_On_Target.
11021 (Object_File_Name): Use target object suffix.
11023 * osint.ads (Object_Suffix): Remove, no longer used.
11024 (Target_Object_Suffix): Initialize with target object suffix.
11026 * rident.ads: Add special exception to license.
11028 * targparm.adb (Get_Target_Parameters): Set the value of
11029 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
11031 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
11033 * targparm.ads: Add special exception to license.
11035 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
11037 (Copy_File): Make sure from file is closed if error on to file
11038 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
11040 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
11041 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
11043 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
11044 target object suffix.
11046 2005-12-09 Jose Ruiz <ruiz@adacore.com>
11047 Quentin Ochem <ochem@adacore.com>
11048 Florian Villoing <villoing@adacore.com>
11050 * a-taster.ads, a-taster.adb: New files.
11052 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
11053 link to the version that does nothing. This way the task termination
11054 routine is not executed twice for the environment task when finishing
11055 because of an unhandled exception.
11057 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
11058 handler because of an unhandled exception.
11060 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
11061 System.Tasking.Utilities instead of that in System.Tasking.Stages.
11063 * s-finimp.adb (initialization code): Modify the soft link for the
11064 finalization of the global list instead of Adafinal.
11066 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
11067 non-tasking version of the soft link for task termination. We do
11068 nothing since if we are using the non-tasking version it
11069 means that the task termination functionality is not used.
11070 (Null_Finalize_Global_List): Add this null version for the procedure
11071 in charge of finalizing the global list for controlled objects.
11072 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
11073 instead for handling run-time termination in a more flexible way.
11074 (Adafinal_NT): This new procedure will take care of finalizing the
11075 global list for controlled objects if needed, but no tasking
11078 * s-tarest.adb (Task_Lock): Do not try to lock again the
11079 Global_Task_Lock if we already own it. Otherwise, we get blocked in
11080 some run-time operations.
11081 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
11082 until all nested locks have been released.
11083 (Task_Wrapper): Call the fall-back task termination handler. It
11084 applies to all tasks but the environment task.
11085 (Finalize_Global_Tasks): Add the call for the task termination
11086 procedure for the environment task.
11087 (Task_Wrapper): suppress warnings around declaration of
11088 Secondary_Stack_Address.
11090 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
11091 moved to the Common_ATCB record.
11092 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
11093 Common_ATCB record.
11094 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
11095 Common_ATCB record.
11097 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
11098 Fall_Back_Handler, and Specific_Handler.
11100 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
11101 defined in Ada.Task_Termination, to avoid circular dependencies.
11102 (Termination_Handler): Redefine this type here, alredy defined in
11103 Ada.Task_Termination, for avoiding circular dependencies.
11104 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
11105 for storing task termination handlers. In addition,
11106 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
11107 Common_ATCB because it is used by both the regular and the restricted
11109 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
11110 Common_ATCB because it is used by both the regular and the restricted
11112 (Common_ATCB): Added a dynamic task analyzer field.
11114 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
11115 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
11116 (Task_Wrapper): Call the task termination handler. It applies to all
11117 tasks but the environment task.
11118 (Finalize_Global_Tasks): Call the task termination procedure for the
11119 environment task. The call to Finalize_Global_List is now performed
11120 using the soft links mechanism.
11121 (Task_Wrapper): added dynamic stack analysis.
11123 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
11124 potentially blocking operations has been moved from
11125 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
11126 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
11127 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
11128 this run-time check.
11130 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
11131 of task termination procedure.
11132 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
11133 link for the task termination procedure.
11135 * bindusg.adb: (Bindusg): Added documentation for -u option.
11137 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
11138 (Get_Main_C): Add handling of dynamic stack analysis.
11139 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
11141 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
11142 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
11143 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
11145 * opt.ads: Added flags used by dynamic stack measurement.
11146 (Max_Line_Length): Remove (not used anymore)
11148 * s-io.ads, s-io.adb (Standard_Error): new subprogram
11149 (Standart_Output): new subprogram
11150 (Set_Output): new subprogram
11151 (Put): now uses the value of Current_Out to know if the output has to be
11152 send to stderr or stdout.
11154 * s-stausa.ads: Complete implementation.
11156 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
11158 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
11159 list of Ada 05 files.
11160 (GNAT Library Units): Add AltiVec files.
11162 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
11163 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
11164 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
11166 2005-12-09 Nicolas Setton <setton@adacore.com>
11168 * adaint.c (__gnat_locate_regular_file): Return immediately if
11169 file_name is empty.
11171 2005-12-09 Javier Miranda <miranda@adacore.com>
11172 Hristian Kirtchev <kirtchev@adacore.com>
11174 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
11175 to the specification because the frontend generates code that uses this
11177 (Set_Interface_Table): Add missing assertion.
11178 Update documentation describing the run-time structure.
11179 (Displace): New subprogram that displaces the pointer to the object
11180 to reference one of its secondary dispatch tables.
11181 (IW_Membership): Modified to use the new table of interfaces.
11182 (Inherit_TSD): Modified to use the new table of interfaces.
11183 (Register_Interface_Tag): Use the additional formal to fill the
11184 contents of the new table of interfaces.
11185 (Set_Interface_Table): New subprogram that stores in the TSD the
11186 pointer to the table of interfaces.
11187 (Set_Offset_To_Top): Use the additional formal to save copy of
11188 the offset value in the table of interfaces.
11189 Update structure of GNAT Primary and Secondary dispatch table diagram.
11190 Add comment section on GNAT dispatch table prologue.
11191 (Offset_To_Signature): Update the constant value of the Signature field.
11192 (Dispatch_Table): Update comment on hidden fields in the prologue.
11193 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
11194 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
11195 the type of formal parameter T to Tag, introduce additional assertions.
11196 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
11198 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
11200 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
11201 in all the calls to Expand_Interface_Thunk. Instead of referencing the
11202 record component containing the tag of the secondary dispatch table we
11203 have to use the Offset_To_Top run-time function to get this information;
11204 otherwise if the pointer to the base of the object has been displace
11205 we get a wrong value if we use the 'position attribute.
11207 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
11208 all the calls to Expand_Interface_Thunk.
11209 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
11210 interfaces; hence the call to Set_Interface_Table was clearly wrong.
11211 (Collect_All_Interfaces): Modify the internal subprogram Collect to
11212 ensure that the interfaces implemented by the ancestors are placed
11213 at the header of the generated list.
11214 (Expand_Interface_Conversion): Handle the case in which the displacement
11215 associated with the interface conversion is not statically known. In
11216 this case we generate a call to the new run-time subprogram Displace.
11217 (Make_DT): Generate and fill the new table of interfaces.
11218 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
11219 Get_Tagged_Kind and Set_Tagged_Kind.
11220 (Tagged_Kind): New function that determines the tagged kind of a type
11221 with respect to limitedness and concurrency and returns a reference to
11223 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
11224 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
11225 primary dispatch table for a type.
11226 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
11227 secondary dispatch table respectively of a tagged type.
11229 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
11230 (Expand_Interface_Conversion): New subprogram to indicate if the
11231 displacement of the type conversion is statically known.
11232 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
11234 * rtsfind.ads (RE_Offset_To_Top): New entity
11235 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
11236 accessible to users.
11237 (Re_Displace): New entity
11238 (RE_Interface_Data): New entity
11239 (RE_Set_Interface_Data): New_Entity
11240 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
11241 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
11242 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
11243 RE_TK_Tagged, RE_TK_Task.
11245 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
11246 Init_Secondary_Tags_Internal to allow its use with interface types and
11247 also to generate the code for the new additional actual required
11248 by Set_Offset_To_Top.
11249 (Build_Init_Statements): In case of components associated with abstract
11250 interface types there is no need to generate a call to its IP.
11251 (Freeze_Record_Type): Generate Select Specific Data tables only for
11253 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
11254 the bodies and specifications of the predefined primitive operations
11255 dealing with dispatching selects and abort, 'Callable, 'Terminated only
11256 for concurrent types.
11258 * exp_sel.ads, exp_sel.adb: New files.
11260 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
11261 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
11262 properly protected objects and attach handler in the case of the
11263 restricted profile.
11264 Move embeded package Select_Expansion_Utilities into a separate external
11266 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
11267 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
11268 (Build_K, Build_S_Assignment): New subprograms, part of the select
11269 expansion utilities.
11270 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
11271 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
11272 where the trigger is a dispatching procedure of a limited tagged type.
11274 2005-12-09 Olivier Hainque <hainque@adacore.com>
11276 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
11277 pointer initialization values. Make a SAVE_EXPR instead. Add comments
11278 about the use and expansion of SAVE_EXPRs in the various possible
11279 renaming handling cases.
11280 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
11281 abusing DECL_FCONTEXT.
11283 2005-12-09 Matthew Heaney <heaney@adacore.com>
11285 * a-convec.adb (Merge): Added assertions to check whether vector params
11288 * a-coinve.adb (Merge): Added assertions to check whether vector params
11291 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
11293 (Cursor'Read): raises PE
11295 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
11296 to its default value.
11298 * a-cihama.adb: Manually check whether cursor's key and elem are
11301 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
11302 (Merge): Assert that target and source lists are in order
11303 (Swap): Declare non-const temporaries, to pass to Splice
11305 * a-cdlili.ads: (Splice): Changed param name and param mode
11307 * a-cdlili.adb: (Splice): Changed param name and param mode
11308 (Merge): Assert that target and source lists are in order
11309 (Swap): Declare non-const temporaries, to pass to Splice
11311 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
11312 (Write): declare Stream param as not null
11314 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
11315 an exception message.
11317 2005-12-09 Thomas Quinot <quinot@adacore.com>
11318 Robert Dewar <dewar@adacore.com>
11320 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
11321 which is the absolute maximum length we can support.
11323 * frontend.adb: For the processing of configuration pragma files,
11324 remove references to Opt.Max_Line_Length, which is not checked anymore.
11326 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
11329 * scn.adb, scng.adb:
11330 Always check line length against the absolute supported maximum,
11331 Hostparm.Max_Line_Length.
11333 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
11334 value for the maximum line length is Max_Line_Length (not
11335 Column_Number'Last).
11336 Minor error msg update
11337 (Set_Style_Check_Options): New interface returning error msg
11338 Minor code reorganization (processing for 'M' was out of alpha order)
11340 * switch-c.adb: New interface for Set_Style_Check_Options
11342 * stylesw.ads (Set_Style_Check_Options): New interface returning error
11345 2005-12-09 Javier Miranda <miranda@adacore.com>
11347 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
11348 with IP subprogram were only supported if there were limited types.
11350 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
11351 records with IP subprogram were only supported if there were limited
11354 2005-12-09 Olivier Hainque <hainque@adacore.com>
11355 Eric Botcazou <ebotcazou@adacore.com>
11357 * trans.c (tree_transform, emit_check): Adjust calls to
11358 build_call_raise, passing the now expected GNAT_NODE argument.
11360 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
11361 source line information than what the current global locus indicates
11364 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
11365 field has overflowed.
11366 (build_call_raise): Add a GNAT_NODE argument to convey better source
11367 line information than what the current global locus indicates when
11369 (build_component_ref): Adjust call to build_call_raise.
11371 2005-12-09 Pascal Obry <obry@adacore.com>
11373 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
11374 the iterator is quitting iteration on parent directory.
11376 2005-12-09 Javier Miranda <miranda@adacore.com>
11378 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
11379 and the assignment to a class-wide object, before the assignment we
11380 generate a run-time check to ensure that the tag of the Target is
11381 covered by the tag of the source.
11383 2005-12-09 Robert Dewar <dewar@adacore.com>
11385 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
11386 parameter in call to Image_Wide_Character.
11388 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
11389 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
11390 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
11391 annoying FFFE/FFFF inconsistency.
11393 2005-12-09 Robert Dewar <dewar@adacore.com>
11394 Javier Miranda <miranda@adacore.com>
11395 Ed Schonberg <schonberg@adacore.com>
11397 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
11398 of type conversion.
11399 (Find_Interface): New subprogram that given a tagged type and one of its
11400 component associated with the secondary table of an abstract interface
11401 type, return the entity associated with such abstract interface type.
11402 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
11403 base type to create anonymous subtype, because entity may be a locally
11404 declared subtype or generic actual.
11405 (Find_Interface): New subprogram that given a tagged type and one of its
11406 component associated with the secondary table of an abstract interface
11407 type, return the entity associated with such abstract interface type.
11409 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
11410 conversion cannot be handled at compile time. In this case we pass this
11411 information to the expander to generate the appropriate code.
11413 2005-12-09 Robert Dewar <dewar@adacore.com>
11414 Ed Schonberg <schonberg@adacore.com>
11415 Gary Dismukes <dismukes@adacore.com>
11416 Javier Miranda <miranda@adacore.com>
11417 Hristian Kirtchev <kirtchev@adacore.com>
11419 * einfo.adb (Itype_Printed): New flag
11420 (Is_Limited_Type): Derived types do not inherit limitedness from
11421 interface progenitors.
11422 (Is_Return_By_Reference_Type): Predicate does not apply to limited
11425 * einfo.ads (Itype_Printed): New flag
11426 Move Is_Wrapper_Package to proper section
11427 Add missing Inline for Is_Volatile
11429 * output.ads, output.adb (Write_Erase_Char): New procedure
11430 (Save/Restore_Output_Buffer): New procedures
11431 (Save/Restore_Output_Buffer): New procedures
11433 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
11434 Add missing support for anonymous access type
11435 (Write_Id): Insert calls to Write_Itype
11436 (Write_Itype): New procedure to output itypes
11438 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
11439 use of "limited" in declaration.
11441 * sinfo.ads, sinfo.adb:
11442 Formal derived types can carry an explicit "limited" indication.
11444 * sem_ch3.adb: Add with and use of Targparm.
11445 (Create_Component): If Frontend_Layout_On_Target is True and the
11446 copied component does not have a known static Esize, then reset
11447 the size and positional fields of the new component.
11448 (Analyze_Component_Declaration): A limited component is
11449 legal within a protected type that implements an interface.
11450 (Collect_Interfaces): Do not add to the list the interfaces that
11451 are implemented by the ancestors.
11452 (Derived_Type_Declaration): If the parent of the full-view is an
11453 interface perform a transformation of the tree to ensure that it has
11454 the same parent than the partial-view. This simplifies the job of the
11455 expander in order to generate the correct object layout, and it is
11456 needed because the list of interfaces of the full-view can be given in
11458 (Process_Full_View): The parent of the full-view does not need to be
11459 a descendant of the parent of the partial view if both parents are
11461 (Analyze_Private_Extension_Declaration): If declaration has an explicit
11462 "limited" the parent must be a limited type.
11463 (Build_Derived_Record_Type): A derived type that is explicitly limited
11464 must have limited ancestor and progenitors.
11465 (Build_Derived_Type): Ditto.
11466 (Process_Full_View): Verify that explicit uses of "limited" in partial
11467 and full declarations are consistent.
11468 (Find_Ancestor_Interface): Remove function.
11469 (Collect_Implemented_Interfaces): New procedure used to gather all
11470 implemented interfaces by a type.
11471 (Contain_Interface): New function used to check whether an interface is
11473 (Find_Hidden_Interface): New function used to determine whether two
11474 lists of interfaces constitute a set equality. If not, the first
11475 differing interface is returned.
11476 (Process_Full_View): Improve the check for the "no hidden interface"
11477 rule as defined by AI-396.
11479 2005-12-09 Robert Dewar <dewar@adacore.com>
11481 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
11482 types, not on record subtypes.
11483 (Freeze_Entity): Code cleanup. Add barrier to the loop
11484 that generates the references for primitive operations. This allows to
11485 remove an unnecessary exception handler.
11486 Code reformatting and comment clean ups.
11488 2005-12-09 Vincent Celier <celier@adacore.com>
11490 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
11491 If GNAT CHECK is called with a project file, but with no
11492 source on the command line, call gnatcheck with all the compilable
11493 sources of the project.
11494 Take into account the new command Check, for gnatcheck. Treat as for
11495 other ASIS tools: take into account project, specific package Check and
11497 For ASIS tools, add the switches in package Compiler for
11498 the invocation of the compiler.
11500 * prj-attr.adb: Add package Check and its attributes
11502 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
11504 * vms_conv.adb (Initialize): Change Params of command Check to
11506 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
11507 Add data for new command Check
11509 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
11511 Add qualifiers for Check command options
11512 (Command_Type): New command Check
11514 2005-12-09 Thomas Quinot <quinot@adacore.com>
11516 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
11517 command line switch overruns the output buffer.
11519 2005-12-09 Robert Dewar <dewar@adacore.com>
11521 * sem_prag.adb: Processing for new pragma Complete_Representation
11522 (Analyze_Pragma, case Debug): Implement two argument form.
11524 * par-prag.adb: Entry for new pragma Complete_Representation
11525 (Prag, case Debug): Recognize two argument form of pragma Debug
11526 New interface for Set_Style_Check_Options.
11528 * sem_ch13.adb: Implement new pragma Complete_Representation.
11530 * snames.adb, snames.ads, snames.h: Entry for new pragma
11531 Complete_Representation.
11533 2005-12-09 Gary Dismukes <dismukes@adacore.com>
11535 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
11536 available user-specified stream attributes on limited parameters to
11537 also test the type directly rather than only its underlying type (for
11538 Ada 95) and, in the case of Ada 2005, to check that the user-specified
11539 attributes are visible at the point of the subprogram declaration.
11540 For Ada 2005, the error message is modified to indicate that the
11541 type's stream attributes must be visible (again, only for -gnat05).
11543 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11545 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
11546 anonymous access types.
11548 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
11549 matching of anonymous access types and anonymous access to subprogram
11550 types. 'R'M 4.9.1 (2/2).
11552 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11554 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
11555 rule prematurely when operands are universal, remaining ambiguities
11556 will be removed during resolution.
11559 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
11560 that are Ada 2005 functions.
11561 (Has_Abstract_Interpretation): Subsidiary to
11562 Remove_Conversions, to remove ambiguities caused by abstract operations
11563 on numeric types when operands are universal.
11565 2005-12-09 Robert Dewar <dewar@adacore.com>
11567 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
11568 for case where spec is categorized.
11570 2005-12-09 Javier Miranda <miranda@adacore.com>
11572 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
11573 types use the corresponding record type. This was not needed before
11574 the implementation of Ada 2005 synchronized types because
11575 concurrent types were never tagged types in Ada 95.
11577 2005-12-09 Ed Schonberg <schonberg@adacore.com>
11579 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
11580 first subtype of the type of the expression to verify that it is a
11583 2005-12-09 Robert Dewar <dewar@adacore.com>
11585 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
11588 2005-12-09 Quentin Ochem <ochem@adacore.com>
11589 Robert Dewar <dewar@adacore.com>
11590 Ed Falis <falis@adacore.com>
11591 Florian Villoing <villoing@adacore.com>
11592 Thomas Quinot <quinot@adacore.com>
11593 Arnaud Charlet <charlet@adacore.com>
11595 * gnat_ugn.texi: Created section "Stack Related Tools"
11596 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
11597 "Stack Related Tools"
11598 Added subsection "Static Stack Usage Analysis"
11599 Added subsection "Dynamic Stack Usage Analysis"
11600 Include documentation of itypes in sprint listing (-gnatG)
11601 Documented gnatbind -D switch (default sec stack size for fixed sec
11603 Added Interrupt_State and Persistent_BSS to list of configuration
11605 Add missing doc for maximum value of nnn in -gnatyMnnn
11607 * gnat_rm.texi: Document the AltiVec binding.
11608 Add documentation for pragma Complete_Representation
11609 Shortened an overly long line (> 79 chars)
11610 Clarify documentation of unchecked conversion in implementation
11612 Document two argument form of pragma Debug
11614 * types.ads (Column_Number): Update documentation.
11616 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
11617 library level Finalize_Storage_Only objects (these are not attached to
11618 any finalization list).
11620 * system-mingw.ads: (Underlying_Priorities): Update comment.
11622 2005-12-09 Robert Dewar <dewar@adacore.com>
11624 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
11625 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
11626 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
11627 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
11628 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
11629 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
11630 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
11631 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
11634 2005-12-09 Robert Dewar <dewar@adacore.com>
11636 * s-vaflop-vms-alpha.adb: (Ne_F): New function
11637 (Ne_G): New function
11639 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
11640 for tag assignment.
11641 (Rewrite_Comparison): Handle case where operation is not a comparison
11642 and ignore, and also handle type conversion case.
11644 2005-12-09 Thomas Quinot <quinot@adacore.com>
11646 * exp_aggr.ads: Fix typo in comment.
11647 ???-mark Convert_Aggr_In_Assignment as needing documentation.
11649 2005-12-09 Gary Dismukes <dismukes@adacore.com>
11651 * layout.adb: Replace various uses of byte by storage unit throughout.
11652 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
11653 static size, convert to storage units before returning, to conform to
11656 2005-12-09 Matthew Gingell <gingell@adacore.com>
11658 * g-exctra.ads: Fix typo in comment.
11660 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11662 * utils.c: Minor reformatting.
11664 2005-12-09 Robert Dewar <dewar@adacore.com>
11667 Further comment fixes to make the status of the default file clear
11669 * s-bitops.adb: Clarify comment for Bits_Array
11671 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
11673 * Make-lang.in (ada.install-normal): Remove.
11675 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
11677 * Make-lang.in: Remove all dependencies on s-gtype.
11679 2005-12-05 Richard Guenther <rguenther@suse.de>
11681 * utils.c (convert): Use fold_convert where appropriate.
11683 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
11685 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
11688 2005-12-02 Richard Guenther <rguenther@suse.de>
11690 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
11692 2005-12-01 Roger Sayle <roger@eyesopen.com>
11694 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
11697 2005-11-23 Laurent GUERBY <laurent@guerby.net>
11699 * mlib-prj.adb (Build_Library): Initialize Delete.
11701 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
11703 * socket.c: Add extern int h_errno for rtems since networking header
11704 files are not available at this point in a tool bootstrap. Newlib
11705 only has basic C library header files.
11707 2005-11-19 Richard Guenther <rguenther@suse.de>
11708 Roger Sayle <roger@eyesopen.com>
11711 * misc.c (internal_error_function): Don't use vsprintf to format
11712 the error message text, instead use pp_format_text and the new
11713 pretty printer APIs. This allows handling of %qs, %w, etc.
11715 2005-11-18 Laurent GUERBY <laurent@guerby.net>
11718 * Makefile.in: Use s-auxdec-empty for RTEMS.
11720 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11723 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
11724 a temporary if taking the address of something that is neither
11725 reference, declaration, or constant, since the gimplifier
11726 can't handle that case.
11728 2005-11-17 Laurent GUERBY <laurent@guerby.net>
11731 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
11733 2005-11-16 Richard Guenther <rguenther@suse.de>
11735 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
11737 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
11740 * raise-gcc.c: Add missing stdarg.h include.
11742 2005-11-16 Richard Guenther <rguenther@suse.de>
11744 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
11745 (ada/misc.o): Likewise.
11747 2005-11-14 Thomas Quinot <quinot@adacore.com>
11749 * g-soccon.ads: Minor reformatting. Update comments.
11751 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
11752 gain visibility on the declaration of struct timeval.
11754 * g-soccon-freebsd.ads,
11755 g-soccon-darwin.ads,
11756 g-soccon-tru64.ads,
11760 g-soccon-solaris.ads,
11762 g-soccon-mingw.ads,
11763 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
11765 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
11766 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
11767 g-soccon-linux-x86.ads: New files.
11769 * g-socthi-mingw.adb:
11770 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
11772 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
11773 (time_t, suseconds_t): New types constructed to match the tv_sec
11774 and tv_usec fields of C struct timeval.
11775 (Timeval): Construct structure in terms of the new types.
11776 (Host_Errno): New function (imported from socket.c), returns last hosts
11779 * g-socthi-vxworks.adb: Add error handling circuitry.
11781 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
11782 components of struct timeval.
11783 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
11784 (Check_Selector): In error conditions, clear internal socket sets to
11785 avoid a memory leak.
11786 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
11787 Send_Timeout, Receive_Timeout.
11789 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
11790 the tv_sec and tv_usec fields of C struct timeval.
11791 (Timeval): Construct structure in terms of the new types.
11792 (Host_Errno): New function (imported from socket.c), returns last hosts
11795 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
11796 hosts database last error code.
11798 * gen-soccon.c: Complete value expansion should not be performed on
11799 TARGET, as it has the form of a math expression, and some components
11800 may be platform-defined macros.
11801 For VxWorks, generate the OK and ERROR values.
11802 New constants giving the sizes of the components of C struct timeval.
11804 2005-11-14 Robert Dewar <dewar@adacore.com>
11805 Ed Schonberg <schonberg@adacore.com>
11808 * types.ads: Include All_Checks in Suppress_Array
11810 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
11811 not(a=b), since we no longer do this rewriting, and hence it is not
11813 (Elaboration_Checks_Suppressed): Add special casing to
11814 deal with different cases of static and dynamic elaboration checks (all
11815 checks does not count in the first case, but does in the second).
11816 (Expr_Known_Valid): Do not assume that the result of any arbitrary
11817 function call is valid, since this is not the case.
11818 (Ensure_Valid): Do not apply validity check to a real literal
11819 in a universal or fixed context
11821 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
11822 elementary types using the operator in standard. It is cleaner not to
11823 modify the programmers intent, especially in the case of floating-point.
11824 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
11825 it did not matter because we always rewrote a/=b to not(a=b).
11826 (Expand_Allocator_Expression): For an allocator expression whose nominal
11827 subtype is an unconstrained packed type, convert the expression to its
11828 actual constrained subtype.
11829 Implement warning for <= or >= where < or > not possible
11830 Fix to Vax_Float tests (too early in many routines, causing premature
11831 Vax_Float expansions.
11833 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
11834 to be used with packages and generic packages as well as with
11836 (Suppress): Set All_Checks, but not Elaboration_Check, for case
11837 of pragma Suppress (All_Checks)
11838 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
11839 a string literal for precise control over warnings.
11840 Avoid raise of pragma in case of unrecognized pragma and just return
11843 * sem_prag.ads: Minor reformatting
11845 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
11846 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
11847 Switch. Do not handle any exception.
11848 Include -gnatwx as part of -gnatg (warn on redundant parens)
11849 Allow optional = after -gnatm
11850 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
11851 longer sets Elaboration_Checks.
11852 Code to set warning mode moved to Sem_Warn
11853 so that it can be shared by pragma processing.
11855 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
11858 * s-taprop-solaris.adb:
11859 Change some <= to =, to avoid new warning
11861 * a-exexda.adb, prj-proc.adb:
11862 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
11863 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
11865 2005-11-14 Robert Dewar <dewar@adacore.com>
11867 * exp_vfpt.adb: Handle /= case
11868 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
11869 so that we do not get duplicate scaling for fixed point conversions.
11871 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
11873 2005-11-14 Matthew Gingell <gingell@adacore.com>
11875 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
11876 Increase default priority on Lynx from 15 to 17, and meet the Ada
11877 requirement that Default_Priority be ((Priority'First +
11878 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
11880 2005-11-14 Vincent Celier <celier@adacore.com>
11882 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
11883 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11884 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
11885 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
11886 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
11887 mlib-tgt-lynxos.adb (DLL_Prefix): New function
11889 2005-11-14 Doug Rupp <rupp@adacore.com>
11891 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
11894 2005-11-14 Arnaud Charlet <charlet@adacore.com>
11896 * s-traces-default.adb, s-trafor-default.ads,
11897 s-tratas-default.adb: Fix compilation errors.
11899 2005-11-14 Jose Ruiz <ruiz@adacore.com>
11901 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
11902 raising the exception so the memory used is freed.
11904 2005-11-14 Arnaud Charlet <charlet@adacore.com>
11906 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
11907 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
11908 (convert_address): Update comments and list of platforms using this.
11910 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
11913 2005-11-14 Pascal Obry <obry@adacore.com>
11914 Vincent Celier <celier@adacore.com>
11916 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
11919 * memroot.adb: Remove redundant with/use clause on
11920 System.Storage_Elements.
11922 2005-11-14 Arnaud Charlet <charlet@adacore.com>
11924 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
11925 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
11926 related code to a-exexpr.adb
11927 (Save_Occurrence_And_Private): Move GCC EH related code to
11929 (Raise_Current_Excep): Add new variable Id with pragma
11930 volatile, to ensure that the variable lives on stack.
11932 * a-exexpr-gcc.adb, raise-gcc.c: New file.
11934 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
11936 Move GCC EH related code to a-exexpr-gcc.adb
11938 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
11940 Split the Linux version of g-soccon into separate variants for 32 and 64
11942 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
11943 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
11944 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
11945 of host variable $(RANLIB_FLAGS).
11946 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
11947 Code clean up: remove unused/obsolete targets.
11948 (EH_MECHANISM): New variable introduced to differenciate between the
11949 two EH mechanisms statically.
11950 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
11951 (LIBGNAT_OBJS): Add raise-gcc.o
11952 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
11953 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
11954 supports VxWorks 6 RTPs.
11955 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
11956 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
11958 * raise.c: Move all GCC EH-related routines to raise-gcc.c
11960 2005-11-14 Jose Ruiz <ruiz@adacore.com>
11962 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
11963 deferral level, when abort is not allowed, to a later stage (the
11965 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
11966 it will not get changed by the generated code. It was previously done
11969 2005-11-14 Thomas Quinot <quinot@adacore.com>
11970 Olivier Hainque <hainque@adacore.com>
11971 Eric Botcazou <ebotcazou@adacore.com>
11974 Factor common code to build a storage type for an unconstrained object
11975 from a fat or thin pointer type and a constrained object type.
11976 (annotate_value): Handle BIT_AND_EXPR.
11977 (annotate_rep): Don't restrict the back annotation of inherited
11978 components to the type_annotate_only case.
11979 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
11980 we are not defining the type.
11981 <E_Record_Type>: Likewise.
11982 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
11983 to get advantage of the new maybe_stabilize_reference interface, to
11984 ensure that what we reference is indeed stabilized instead of relying
11985 on assumptions on what the stabilizer does.
11986 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
11987 type imported through a limited_with clause, use its non-limited view.
11988 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
11990 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
11991 of #if sections + explicit comparisons of convention identifiers.
11992 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
11993 before early-returning for certain types when code generation is
11995 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
11996 nullification of gnu_expr we do for objects with address clause and
11997 that we are not defining.
11998 (elaborate_expression_1): Do not create constants when creating
11999 variables needed by the debug info: the dwarf2 writer considers that
12000 CONST_DECLs is used only to represent enumeration constants, and emits
12002 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
12003 object with an address clause into an indirect reference, drop the
12004 initializing expression.
12006 (STACK_CHECK_BUILTIN): Delete.
12007 (STACK_CHECK_PROBE_INTERVAL): Likewise.
12008 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
12009 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
12010 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
12011 corresponding to the renamed object as ignored for debugging purposes.
12013 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
12014 related): For a prefix that is a dereference of a fat or thin pointer,
12015 if there is an actual subtype provided by the front-end, use that
12016 subtype to build an actual type with bounds template.
12017 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
12018 is provided by the front-end, use that subtype to compute the size of
12019 the deallocated object.
12020 (gnat_to_gnu): When adding a statement into an elaboration procedure,
12021 check for a potential violation of a No_Elaboration_Code restriction.
12022 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
12023 with extra arguments to control whether to recurse through non-values
12024 and to let the caller know if the stabilization has succeeded.
12025 (gnat_stabilize_reference): Now a simple wrapper around
12026 maybe_stabilize, for common uses without restriction on lvalues and
12027 without need to check for the success indication.
12028 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
12029 pass false instead of 0 as the FORCE argument which is a bool.
12030 (Identifier_to_gnu): Remove checks ensuring that an renamed object
12031 attached to a renaming pointer has been properly stabilized, as no such
12032 object is attached otherwise.
12033 (call_to_gnu): Invoke create_var_decl to create the temporary when the
12034 function uses the "target pointer" return mechanism.
12035 Reinstate conversion of the actual to the type of the formal
12036 parameter before any other specific treatment based on the passing
12037 mechanism. This turns out to be necessary in order for PLACEHOLDER
12038 substitution to work properly when the latter type is unconstrained.
12040 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
12042 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
12043 with extra arguments to control whether to recurse through non-values
12044 and to let the caller know if the stabilization has succeeded.
12046 * utils2.c (gnat_build_constructor): Only sort the fields for possible
12047 static output of record constructor if all the components are constant.
12048 (gnat_build_constructor): For a record type, sort the list of field
12049 initializers in increasing bit position order.
12050 Factor common code to build a storage type for an unconstrained object
12051 from a fat or thin pointer type and a constrained object type.
12052 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
12053 types variants, and process special cases of VIEW_CONVERT expressions
12054 as their NOP_EXPR counterpart to ensure we get to the
12055 CORRESPONDING_VARs associated with CONST_DECls.
12056 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
12057 on the right-hand side.
12059 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
12061 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
12062 are converting back to its original type.
12063 (convert) <JM input>: Fallthrough regular conversion code instead of
12064 extracting the object if converting to a type variant.
12065 (create_var_decl): When a variable has an initializer requiring code
12066 generation and we are at the top level, check for a potential violation
12067 of a No_Elaboration_Code restriction.
12068 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
12069 SIZE and SIZE_UNIT which we need for later back-annotations.
12070 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
12071 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
12072 is an unchecked union.
12073 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
12074 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
12075 main variant, just replace the VIEW_CONVERT_EXPR.
12076 <UNION_TYPE>: Revert 2005-03-02 change.
12078 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
12080 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
12082 2005-11-14 Matthew Heaney <heaney@adacore.com>
12084 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
12085 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
12086 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
12087 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
12088 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
12089 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
12090 Compiles against the spec for ordered maps described in sections
12091 A.18.6 of the most recent (August 2005) AI-302 draft.
12093 2005-11-14 Olivier Hainque <hainque@adacore.com>
12095 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
12096 to ensure bias adjustments take place when need be and to prevent
12097 occurrences of intermediate overflows.
12099 2005-11-14 Matthew Gingell <gingell@adacore.com>
12100 Olivier Hainque <hainque@adacore.com>
12102 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
12105 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
12106 tracebacks on ia64 HP-UX and provide explanatory comment.
12107 Enable backtraces on ia64 GNU/Linux.
12108 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
12109 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
12111 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
12112 Javier Miranda <miranda@adacore.com>
12114 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
12115 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
12116 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
12117 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
12119 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
12120 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
12123 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
12124 subprogram that generates the external name associated with a
12125 secondary dispatch table.
12126 (Get_Secondary_DT_External_Name): New subprogram that generates the
12127 external name associated with a secondary dispatch table.
12129 2005-11-14 Emmanuel Briot <briot@adacore.com>
12131 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
12132 line in the ALI file to include both an instantiation reference, and a
12135 2005-11-14 Vincent Celier <celier@adacore.com>
12137 * clean.adb (Check_Project): Look for Ada code in extending project,
12138 even if Ada is not specified as a language.
12139 Use new function DLL_Prefix for DLL_Name
12140 (Clean_Interface_Copy_Directory): New procedure
12141 (Clean_Library_Directory): New procedure
12142 (Clean_Directory): Remove procedure, no longer used
12143 (Clean_Project): Do not delete any file in an externally built project
12145 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
12146 directory of an extending project, even when there are no Ada source
12148 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
12149 (Set_Ada_Paths.Add.Recursive_Add): Ditto
12151 * mlib-prj.adb (Check_Library): For all library projects, get the
12152 library file timestamp.
12153 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
12154 (Build_Library): Use new function DLL_Prefix for the DLL_Name
12155 (Clean): Remove procedure, no longer used
12156 (Ultimate_Extension_Of): New function
12157 (Build_Library): When cleaning the library directory, only remove an
12158 existing library file and any ALI file of a source of the project.
12159 When cleaning the interface copy directory, remove any source that
12160 could be a source of the project.
12162 * prj.ads, prj.adb (Project_Empty): Add values of new components
12163 Library_TS and All_Imported_Projects.
12164 (Project_Empty): Add values for new components of Project_Data:
12165 Library_ALI_Dir and Display_Library_ALI_Dir
12167 * prj-attr.adb: New project level attribute name Library_ALI_Dir
12169 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
12170 attribute Library_ALI_Dir.
12171 (Check_Library_Attributes): The library directory cannot be the same as
12172 any source directory of the project tree.
12173 (Check_Stand_Alone_Library): The interface copy directory cannot be
12174 the same as any source directory of the project tree.
12176 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
12177 all temporary files.
12179 2005-11-14 Robert Dewar <dewar@adacore.com>
12180 Ed Schonberg <schonberg@adacore.com>
12182 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12183 (Check_Elab_Call): A call within a protected body is never an
12184 elaboration call, and does not require checking.
12185 (Same_Elaboration_Scope): Take into account protected types for both
12187 (Activate_Elaborate_All_Desirable): New procedure
12189 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
12192 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
12193 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
12195 * lib-writ.ads, lib-writ.adb:
12196 Implement new AD/ED for Elaborate_All/Elaborate desirable
12197 Use new Elaborate_All_Desirable flag in N_With_Clause node
12199 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
12200 N_Free_Statement nodes.
12201 Define new class N_Subprogram_Instantiation
12202 Add Elaborate_Desirable flag to N_With_Clause node
12203 Add N_Delay_Statement (covering two kinds of delay)
12205 * debug.adb: Introduce d.f flag for compiler
12206 Add -da switch for binder
12208 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12209 Cyrille Comar <comar@adacore.com>
12211 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
12212 for task component, in the case of a limited aggregate. The enclosed
12213 object declaration will create it earlier. Otherwise, in the case of a
12214 nested aggregate, the object may appear in the wrong scope.
12215 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
12216 (Gen_Assign): If the component being assigned is an array type and the
12217 expression is itself an aggregate, wrap the assignment in a block to
12218 force finalization actions on the temporary created for each row of the
12220 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
12221 structures are initialized after all discriminants are set so that
12222 they can be accessed even when their offset is dynamic.
12224 2005-11-14 Robert Dewar <dewar@adacore.com>
12225 Hristian Kirtchev <kirtchev@adacore.com>
12227 * sem_attr.adb: Implement Machine_Rounding attribute
12228 (Analyze_Access_Attribute): The access attribute may appear within an
12229 aggregate that has been expanded into a loop.
12230 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
12231 'Terminated whenever the prefix is of a task interface class-wide type.
12232 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
12233 the prefix is of a task interface class-wide type.
12235 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
12238 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
12239 Remove pragma Inline for [Unaligned_]Valid.
12240 Add comments that Valid routines do not work for Vax_Float
12242 * exp_attr.adb: Implement Machine_Rounding attribute
12244 * snames.h: Add entry for Machine_Rounding attribute
12246 2005-11-14 Javier Miranda <miranda@adacore.com>
12247 Robert Dewar <dewar@adacore.com>
12248 Hristian Kirtchev <kirtchev@adacore.com>
12250 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
12251 and related): For a prefix that is an explicit dereference of an
12252 access to unconstrained packed array type, annotate the dereference
12253 with an actual subtype so GIGI can make a correct size computation.
12254 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
12255 'Unrestricted_Access, if the designated type is an interface we
12256 add a type conversion to force the displacement of the pointer
12257 to the secondary dispatch table.
12258 Use Universal_Real instead of Long_Long_Float when we need a high
12259 precision float type for the generated code (prevents gratuitous
12260 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
12261 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
12262 'Terminated for task interface class-wide objects. Generate a call to
12263 the predefined dispatching routine used to retrieve the _task_id from
12264 a task corresponding record.
12265 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
12267 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12268 (Check_Dispatching_Operation): Protect the frontend againts
12269 previously detected errors.
12271 * Makefile.rtl: Add new instantiations of system.fat_gen
12273 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
12274 Change name of instantiated package for better consistency
12275 with newly added system.fat_gen instantiations.
12277 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
12278 s-fvagfl.ads: New files.
12280 2005-11-14 Cyrille Comar <comar@adacore.com>
12281 Thomas Quinot <quinot@adacore.com>
12283 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
12284 assignment of a value of a tagged type that has been rewritten to a
12285 block statement, it is known by construction that no checks are
12286 necessary for the statements within the block: analyze it with checks
12288 (Expand_N_If_Statement): When killing a dead then-branch in an
12289 if-statement that has elsif_parts, recompute the Current_Value node
12290 for any entity whose value is known from the condition of the first
12292 (Expand_N_Return_Statement): When returning a mutable record, convert
12293 the return value into its actual subtype in order to help the backend
12294 to return the actual size instead of the maximum. This is another
12295 aftermath of not returning mutable records on the sec-stack anymore.
12297 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
12298 handling of error msg for suspicious reverse range iteration.
12299 (Check_Possible_Current_Value_Condition): Move declaration from body to
12300 spec, to allow this subprogram to be called from exp_ch5.
12302 2005-11-14 Thomas Quinot <quinot@adacore.com>
12304 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
12305 generate a set of nested array aggregates instead of a single flat
12306 aggregate for multi-dimensional arrays.
12308 2005-11-14 Pascal Obry <obry@adacore.com>
12310 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
12311 by spawnve is a process handle, no need to convert. Add a parameter
12312 close to control wether the process handle must be closed.
12313 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
12314 a process handle, not need to convert.
12315 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
12317 * g-expect.adb: (Kill): Document the new close parameter.
12318 (Close): Do not release the process handle in the kill there as
12319 waitpid() is using it.
12320 (Send_Signal): Release the process handle.
12322 2005-11-14 Robert Dewar <dewar@adacore.com>
12324 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
12325 need a high precision float type for the generated code (prevents
12326 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
12329 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
12330 need a high precision float type for the generated code (prevents
12331 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
12333 (Expand_Width_Attribute): In configurable run-time, the attribute is not
12334 allowed on non-static enumeration subtypes. Force a load error to emit
12335 the correct diagnostic.
12337 2005-11-14 Thomas Quinot <quinot@adacore.com>
12338 Robert Dewar <dewar@adacore.com>
12339 Ed Schonberg <schonberg@adacore.com>
12341 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
12342 subtype to compute the size of the designated object at run-time,
12343 create such a subtype and store it in the Actual_Designated_Subtype
12344 attribute of the N_Free_Statement.
12345 Generate itype for classwide designated object in both cases of
12346 user-specified storage pool: specific and class-wide, not only in the
12348 Raise CE when trying to set a not null access type object to null.
12349 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
12350 an explicit loop, because freeze nodes make its position variable.
12352 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
12355 2005-11-14 Javier Miranda <miranda@adacore.com>
12357 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
12358 Build_Stream_Procedure): Add the null-excluding attribute to the first
12360 This has no semantic meaning under Ada95 mode but it is a
12361 requirement under Ada05 mode.
12363 * par-ch3.adb (P_Access_Definition): Addition of warning message if
12364 the null exclusion is used under Ada95 mode
12365 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
12366 (P_Access_Definition): Remove assertion that forbids the use of
12367 the null-exclusion feature in Ada95.
12369 2005-11-14 Robert Dewar <dewar@adacore.com>
12371 * impunit.adb: Exclude container helper units not intended for use by
12374 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12376 * freeze.adb (Freeze_Entity): For an access formal that is an access
12377 to subprogram, freeze the anonymous subprogram type at the same time,
12378 to prevent later freezing in the wrong scope, such as the enclosing
12380 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
12381 subprogram whenever available.
12383 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12386 * gnatvsn.ads (Library_Version): Bump to 4.1
12388 2005-11-14 Robert Dewar <dewar@adacore.com>
12390 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
12391 Storage_Offset to avoid wrap around causing invalid results.
12393 2005-11-14 Pascal Obry <obry@adacore.com>
12395 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
12397 (Scan_Bind_Arg): Fail with an error message if -M option is used
12398 on a native compiler.
12400 2005-11-14 Robert Dewar <dewar@adacore.com>
12401 Vincent Celier <celier@adacore.com>
12403 * gprep.adb: Implement -C switch to scan comments
12405 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
12407 * scans.ads: Comment updates (including new use of Tok_Comment in
12410 * opt.ads: Add documentation for flags that are used by gprmake,
12411 currently and in the next version of gprmake.
12412 (Verbosity_Level): New variable
12413 Add Replace_In_Comments switch
12415 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
12417 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
12419 2005-11-14 Arnaud Charlet <charlet@adacore.com>
12421 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
12422 message, friendlier.
12424 2005-11-14 Robert Dewar <dewar@adacore.com>
12426 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
12428 2005-11-14 Doug Rupp <rupp@adacore.com>
12430 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
12432 2005-11-14 Robert Dewar <dewar@adacore.com>
12434 * interfac.ads: Change declarations of IEEE float types so that we no
12435 longer need a separate version of this package for VMS.
12437 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12439 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
12440 internal entity created for the declaration of a child subprogram body
12441 with no spec as coming from source, to generate proper cross-reference
12444 2005-11-14 Vincent Celier <celier@adacore.com>
12446 * make.adb (Compile_Sources): Change verbose message to minimum
12447 verbosity level High for "is in an Ada library", "is a read-only
12448 library" and "is an internal library",
12449 (Create_Binder_Mapping_File): Path name of ALI file for library project
12450 must include the library directory, not the object directory.
12451 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
12452 for new switches -vl, -vm and -vh.
12453 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
12454 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
12455 (Compile_Sources): Do not attempt to compile if an ALI file is missing
12456 in a project that is externally built.
12457 (Compute_All_Imported_Projects): New procedure
12458 (Gnatmake): Check if importing libraries should be regenerated because
12459 at least an imported library is more recent.
12460 (Initialize): For each project compute the list of the projects it
12461 imports directly or indirectly.
12462 (Add_Library_Search_Dir): New procedure, used in place of
12463 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
12464 put in the search paths.
12465 (Add_Source_Search_Dir): New procedure, used in place of
12466 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
12467 put in the search paths.
12468 (Mark_Directory): Resolve the absolute path the directory before marking
12471 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
12472 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
12473 Switch. Do not handle any exception.
12474 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
12475 so that the switch is recognized as valid.
12476 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
12478 2005-11-14 GNAT Script <nobody@adacore.com>
12480 * Make-lang.in: Makefile automatically updated
12482 2005-11-14 Pascal Obry <obry@adacore.com>
12484 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
12486 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
12487 In both cases the last argument was dropped.
12489 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
12491 * namet.h: (Column_Numbe): New type.
12492 (Get_Column_Number): Define to sinput__get_column_number.
12493 (Instantiation): Define to sinput__instantiation.
12494 (Get_Column_Number): Declare.
12495 (Instantiation): Likewise.
12497 2005-11-14 Robert Dewar <dewar@adacore.com>
12499 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
12500 syntax, which could cause compiler hangs.
12502 2005-11-14 Vincent Celier <celier@adacore.com>
12504 * prj-ext.adb: Take into account new environment variable
12505 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
12507 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
12508 normalize its path name, making it absolute and resolving symbolic
12509 links, and replace the original if resolved path is different.
12511 2005-11-14 Vincent Celier <celier@adacore.com>
12513 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
12514 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
12516 2005-11-14 Emmanuel Briot <briot@adacore.com>
12518 * prj-pp.adb (Print): Do not output the with statement if the
12519 associated name is empty, which happens for virtual extending projects.
12520 (Print): Preserve the "extends all" attribute when printing the project.
12522 * prj-tree.ads (String_Value_Of): Add comment about returned value for
12523 a virtual extending project.
12525 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12527 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
12528 rhs of an assignment even if the type is unconstrained, when the
12529 context is non-expanding.
12530 In an inlined body, if the context type is private,
12531 resolve with its full view, which must be a composite type.
12533 2005-11-14 Robert Dewar <dewar@adacore.com>
12534 Ed Schonberg <schonberg@adacore.com>
12536 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
12537 Do not give obsolescent warning on with of subprogram (since we
12539 (Analyze_With_Clause): Add test for obsolescent package
12540 (Install_Context_Clauses): If the unit is the body of a child unit, do
12541 not install twice the private declarations of the parents, to prevent
12542 circular lists of Use_Clauses in a parent.
12543 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
12544 compiling body of child unit.
12545 Use new class N_Subprogram_Instantiation
12546 (Expand_With_Clause): If this is a private with_clause for a child unit,
12547 appearing in the context of a package declaration, then the implicit
12548 with_clauses generated for parent units are private as well.
12549 (License_Check): Do not generate message if with'ed unit is internal
12551 2005-11-14 Gary Dismukes <dismukes@adacore.com>
12552 Ed Schonberg <schonberg@adacore.com>
12553 Thomas Quinot <quinot@adacore.com>
12555 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
12556 names are internal, because they will not have a corresponding partner
12557 in the actual package.
12558 (Analyze_Formal_Package): Move the setting of the formal package spec's
12559 Generic_Parent field so that it occurs prior to analyzing the package,
12560 to allow proper operation of Install_Parent_Private_Declarations.
12561 (Analyze_Package_Instantiation): Set the instantiated package entity's
12562 Package_Instantiation field.
12563 (Get_Package_Instantiation_Node): Move declaration to package spec.
12564 Retrieve the N_Package_Instantiation node when the Package_Instantiation
12566 (Check_Generic_Child_Unit): Within an inlined call, the only possible
12567 instantiation is Unchecked_Conversion, for which no parents are needed.
12568 (Inline_Instance_Body): Deinstall and record the use_clauses for all
12569 parent scopes of a scope being removed prior to inlining an instance
12571 (Analyze_Package_Instantiation): Do not perform front-end inlining when
12572 the current context is itself an instance within a non-instance child
12573 unit, to prevent scope stack errors.
12574 (Save_References): If the node is an aggregate that is an actual in a
12575 call, rewrite as a qualified expression to preserve some type
12576 information, to resolve possible ambiguities in the instance.
12577 (Instance_Parent_Unit): New global variable to record the ultimate
12578 parent unit associated with a generic child unit instance (associated
12579 with the existing Parent_Unit_Visible flag).
12580 (type Instance_Env): New component Instance_Parent_Unit for stacking
12581 parents recorded in the global Instance_Parent_Unit.
12582 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
12584 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
12585 it's not a top-level unit, and only do this if Instance_Parent_Unit is
12586 not already set. Replace test of Is_Child_Unit with test of parent's
12587 scope against package Standard. Add comments and a ??? comment.
12588 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
12589 on a child instance parent to test that the parent equals
12590 Instance_Parent rather than simply checking that the unit is not a
12592 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
12593 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
12594 a formal interface are ancestors of the corresponding actual.
12595 (Validate_Formal_Interface_Type): Additional legality checks.
12596 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
12597 interface types with ancestors.
12598 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
12599 to diagnose attempts to use generic within its own declaration.
12601 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12602 Javier Miranda <miranda@adacore.com>
12604 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
12606 (Build_Private_Derived_Type): The entity of the created full view of the
12607 derived type does not come from source. If after installing the private
12608 declarations of the parent scope the parent is still private, use its
12609 full view to construct the full declaration of the derived type.
12610 (Build_Derived_Record_Type): Relax the condition that controls the
12611 execution of the check that verifies that the partial view and
12612 the full view agree in the set of implemented interfaces. In
12613 addition, this test now only takes into account the progenitors.
12614 (Derive_Interface_Subprograms): No need to derive subprograms
12615 of ancestors that are interfaces.
12616 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
12618 Change name Is_Package to Is_Package_Or_Generic_Package
12619 (Complete_Subprograms_Derivation): Handle the case in which the full
12620 view is a transitive derivation of the ancestor of the partial view.
12621 (Process_Full_View): Rename local subprogram Find_Interface_In_
12622 Descendant to Find_Ancestor_Interface to leave the code more clear.
12623 Remove wrong code that avoids the generation of an error message
12624 when the immediate ancestor of the partial view is an interface.
12625 In addition some minor reorganization of the code has been done to
12626 leave it more clear.
12627 (Analyze_Type_Declaration): If type has previous incomplete tagged
12628 partial view, inherit properly its primitive operations.
12629 (Collect_Interfaces): Make public, for analysis of formal
12631 (Analyze_Interface_Declaration): New procedure for use for regular and
12632 formal interface declarations.
12633 (Build_Derived_Record_Type): Add support for private types to the code
12634 that checks if a tagged type implements abstract interfaces.
12635 (Check_Aliased_Component_Type): The test applies in the spec of an
12637 (Access_Type_Declaration): Clean up declaration of malformed type
12638 declared as an access to its own classwide type, to prevent cascaded
12640 (Collect_Interfaces): For private extensions and for derived task types
12641 and derived protected types, the parent may be an interface that must
12642 be included in the interface list.
12643 (Access_Definition): If the designated type is an interface that may
12644 contain tasks, create Master_Id for it before analyzing the expression
12645 of the declaration, which may be an allocator.
12646 (Record_Type_Declaration): Set properly the interface kind, for use
12647 in allocators, the creation of master id's for task interfaces, etc.
12649 2005-11-14 Javier Miranda <miranda@adacore.com>
12650 Ed Schonberg <schonberg@adacore.com>
12652 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
12653 omitted in case of stream attribute subprograms.
12654 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
12655 appear immediately after a subprogram body, when there is no previous
12656 subprogram declaration.
12657 Change name Is_Package to Is_Package_Or_Generic_Package
12658 (Process_Formals): A non null qualifier on a non null named access
12659 type is not an error, and is a warning only if Redundant_Constructs
12662 2005-11-14 Gary Dismukes <dismukes@adacore.com>
12663 Ed Schonberg <schonberg@adacore.com>
12665 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
12666 nested within Analyze_Package_Specification to install the private
12667 declarations and use clauses within each of the parent units of a
12668 package instance of a generic child package.
12669 (Analyze_Package_Specification): When entering a private part of a
12670 package associated with a generic instance or formal package, the
12671 private declarations of the parent must be installed (by calling new
12672 procedure Install_Parent_Private_Declarations).
12673 Change name Is_Package to Is_Package_Or_Generic_Package
12674 (Preserve_Full_Attributes): For a synchronized type, the corresponding
12675 record is absent in a generic context, which does not indicate a
12678 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12680 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
12681 not try to rewrite a renamed stream attribute, because the operations
12682 on the type may not have been generated.
12683 Handle properly a renaming_as_body generated for a stream operation
12684 whose default is abstract because the object type itself is abstract.
12685 (Find_Type): If the type is incomplete and appears as the prefix of a
12686 'Class reference, it is tagged, and its list of primitive operations
12687 must be initialized properly.
12688 (Chain_Use_Clauses): When chaining the use clauses that appear in the
12689 private declaration of a parent unit, prior to compiling the private
12690 part of a child unit, find on the scope stack the proper parent entity
12691 on which to link the use clause.
12692 (Note_Redundant_Use): Emit a warning when a redundant use clause is
12694 (Analyze_Object_Renaming): An attribute reference is not a legal object
12695 if it is not a function call.
12697 2005-11-14 Robert Dewar <dewar@adacore.com>
12698 Ed Schonberg <schonberg@adacore.com>
12700 * sem_eval.adb: Implement d.f flag
12701 (Subtype_Statically_Match): A generic actual type has unknown
12702 discriminants when the corresponding actual has a similar partial view.
12703 If the routine is called to validate the signature of an inherited
12704 operation in a child instance, the generic actual matches the full view,
12706 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
12707 Ed Schonberg <schonberg@adacore.com>
12708 Robert Dewar <dewar@adacore.com>
12709 Thomas Quinot <quinot@adacore.com>
12711 * sem_res.adb (Resolve_Call): Provide a better error message whenever
12712 a procedure call is used as a select statement trigger and is not an
12713 entry renaming or a primitive of a limited interface.
12714 (Valid_Conversion): If the operand has a single interpretation do not
12715 remove address operations.
12716 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
12717 statement to inhibit warning.
12718 (Resolve_Unary_Op): Do not produce a warning when
12719 processing an expression of the form -(A mod B)
12720 Use Universal_Real instead of Long_Long_Float when we need a high
12721 precision float type for the generated code (prevents gratuitous
12722 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
12723 (Resolve_Concatenation_Arg): Improve error message when argument is an
12724 ambiguous call to a function that returns an array.
12725 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
12726 there is an implicit operator in the given scope if we are within an
12727 instance: legality check has been performed on the generic.
12728 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
12729 after resolving operand, to avoid false warnings on overloaded calls.
12731 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12732 Javier Miranda <miranda@adacore.com>
12735 * sem_type.adb (Covers): In an inlined body, a composite type matches
12736 a private type whose full view is a composite type.
12737 (Interface_Present_In_Ancestor): Protect the frontend against
12738 previously detected errors to ensure that its compilation
12739 with assertions enabled gives the same output that its
12740 compilation without assertions.
12741 (Interface_Present_In_Ancestor): Add support for private types.
12742 Change name In_Actual to In_Generic_Actual (clean up)
12743 (Disambiguate): New predicate In_Actual, to recognize expressions that
12744 appear in the renaming declaration generated for generic actuals, and
12745 which must be resolved in the outer context.
12747 2005-11-14 Robert Dewar <dewar@adacore.com>
12748 Thomas Quinot <quinot@adacore.com>
12749 Hristian Kirtchev <kirtchev@adacore.com>
12750 Ed Schonberg <schonberg@adacore.com>
12752 * sem_util.ads, sem_util.adb: Change name Is_Package to
12753 Is_Package_Or_Generic_Package.
12754 (Check_Obsolescent): New procedure.
12755 (Set_Is_Public): Remove obsolete junk test.
12756 (Set_Public_Status): Do not set Is_Public on an object whose declaration
12757 occurs within a handled_sequence_of_statemets.
12758 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
12759 for a parameterless procedure.
12760 (Enter_Name): Recognize renaming declarations created for private
12761 component of a protected type within protected operations, so that
12762 the source name of the component can be used in the debugger.
12764 2005-11-14 Ed Schonberg <schonberg@adacore.com>
12765 Robert Dewar <dewar@adacore.com>
12767 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
12768 of a generic subprogram are not visible outside the body.
12769 (Set_Warning_Switch): New procedure (code to set warning mode moved
12770 here from Switch.C so that it can be shared by pragma processing.
12771 (Check_References): Special case warning for non-modified non-imported
12773 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
12774 form with a string literal argument
12776 2005-11-14 Javier Miranda <miranda@adacore.com>
12778 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
12780 (Write): Addition of "not null" to the anonymous access.
12781 (Read): Addition of "not null" to the anonymous access.
12782 (Write): Addition of "not null" to the anonymous access.
12784 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
12785 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
12786 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
12787 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
12788 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
12789 "not null" to the anonymous access.
12791 2005-11-14 Robert Dewar <dewar@adacore.com>
12793 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
12796 2005-11-14 Vincent Celier <celier@adacore.com>
12798 * switch.adb (Bad_Switch): New procedure
12799 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
12800 message when in error.
12802 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
12803 Too_Many_Output_Files): Remove declarations, no longer used.
12804 (Scan_Nat): New parameter Switch
12806 (Bad_Switch): New procedure
12808 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
12809 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
12810 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
12811 to Osint.Fail. Do not handle any exception.
12813 2005-11-14 Vincent Celier <celier@adacore.com>
12815 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
12816 designates a non existent directory.
12818 2005-11-14 Robert Dewar <dewar@adacore.com>
12820 * xgnatugn.adb: Replace invalid membership test by 'Valid
12822 2005-11-14 Vincent Celier <celier@adacore.com>
12824 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
12825 there is no object directory.
12827 2005-11-14 Robert Dewar <dewar@adacore.com>
12829 * usage.adb: Minor adjustment to output format, use nn instead of nnn
12830 (so that -gnateInnn does not run into next column)
12832 2005-11-14 Ed Falis <falis@adacore.com>
12834 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
12837 2005-11-14 Cyrille Comar <comar@adacore.com>
12839 * s-chepoo.ads: Add comments on Dereference.
12840 Remove unnecessary inherited abstract primitives.
12843 2005-11-14 Robert Dewar <dewar@adacore.com>
12845 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
12846 node parameter, not needed, since it is available as Declaration_Node.
12848 2005-11-14 Geert Bosch <bosch@adacore.com>
12850 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
12851 grammatically correct.
12853 2005-11-14 Vincent Celier <celier@adacore.com>
12855 * s-fileio.ads: Correct spelling error in comment
12857 2005-11-14 Cyrille Comar <comar@adacore.com>
12858 Robert Dewar <dewar@adacore.com>
12859 Vincent Celier <celier@adacore.com>
12860 Ben Brosgol <brosgol@adacore.com>
12861 Jose Ruiz <ruiz@adacore.com>
12862 Pascal Obry <obry@adacore.com>
12865 Document that -fstack-check is needed for strict compliance with the
12866 Ada 95 Reference Manual.
12867 Correct reference to VAX systems to meet HP guidelines
12868 Add documentation for new gnatmake switches -vl, -vm and -vh
12869 Replace DEC Ada by HP Ada
12870 Replace DIGITAL by HP
12871 Remove empty section on tools in compatibility section
12872 Clarify the Windows convention semantics.
12873 Document the Win32 calling convention.
12874 The Stdcall, Win32 and DLL convention are synonyms.
12875 Add a note in -gnatR description about zero size record components
12876 Note on new >= and <= warnings for -gnatwc
12877 Document that equal sign after -gnatm is optional.
12878 Note that strip is working fine on DLL built with a Library
12879 Project. The restriction apply only to DLL built with gnatdll.
12880 Update section about the way to debug a DLL.
12881 Update information about the DLL convention.
12882 Document -C switch for gnatprep
12883 Document new attribute Library_ALI_Dir
12884 Update elaboration doc to include implicit Elaborate pragmas now
12885 generated for subprogram instantiations.
12886 Document limitation on executable names that include spaces for --GCC,
12887 --GNATBIND, and --GNATLINK switches.
12888 Document that -w causes -gnatws to be added at start of gcc switches
12890 * gnat_rm.texi: Document that -mieee is needed for generating infinite
12891 and NaN values in case of overflow on machines that are not fully
12892 compliant with the IEEE floating-point standard.
12893 Create a section describing the set of compiler options needed for
12894 strict compliance with the Ada 95 Reference Manual.
12895 Add documentation for pragma Obsolescent applied to a package
12896 Clarify potential issues of mixed language programs related to the
12897 I/O buffering enabling in the elaboration of the GNAT runtime.
12898 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
12899 This documentation only patch adds extra documentsion for pragma
12900 Restrictions (No_Elaboration_Code), explaining why it is not possible
12901 to document this restriction in terms of allowed source constructs.
12902 Document string literal form of pragma Warnings
12903 Document new attribute Library_ALI_Dir
12904 Add documentation on stable attributes in project files that was missing
12906 * gnat-style.texi: Indicate that paragraphs within a single comment
12907 should be separated by empty comment lines
12909 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
12912 * bindusg.adb: Minor cleanup, put -m before -M for consistency
12914 2005-11-14 Robert Dewar <dewar@adacore.com>
12916 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
12917 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
12918 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
12919 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
12920 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
12921 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
12922 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
12923 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
12924 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
12925 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
12926 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
12927 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
12928 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
12929 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
12930 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
12931 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
12932 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
12933 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
12934 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
12935 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
12936 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
12937 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
12938 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
12939 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
12940 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
12941 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
12942 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
12943 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
12944 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
12945 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
12946 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
12947 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
12948 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
12949 system-interix.ads, system-solaris-sparc.ads,
12950 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
12951 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
12952 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
12953 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
12954 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
12955 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
12956 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
12957 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
12958 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
12959 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
12960 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
12961 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
12962 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
12963 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
12964 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
12965 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
12966 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
12967 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
12968 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
12969 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
12970 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
12971 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
12972 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
12973 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
12974 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
12975 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
12976 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
12977 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
12978 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
12979 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
12980 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
12981 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
12982 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
12983 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
12984 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
12985 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
12986 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12987 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
12988 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
12989 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
12990 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
12991 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
12992 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
12993 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
12994 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
12995 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
12996 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
12997 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
12998 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
12999 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
13000 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
13001 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
13002 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
13003 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
13004 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
13005 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
13006 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
13007 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
13008 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
13009 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
13010 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
13011 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
13012 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
13013 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
13014 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
13015 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
13016 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
13017 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
13018 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
13019 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
13020 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
13021 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
13022 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
13023 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
13024 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
13025 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
13026 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
13027 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
13028 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
13029 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
13030 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
13031 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
13032 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
13033 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
13034 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
13035 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
13036 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
13037 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
13038 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
13039 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
13040 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
13041 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
13042 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
13043 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
13044 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
13045 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
13046 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
13047 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
13048 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
13049 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
13050 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
13051 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
13052 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
13053 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
13054 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
13055 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
13056 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
13057 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
13058 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
13059 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
13060 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
13061 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
13062 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
13063 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
13064 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
13065 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
13066 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
13067 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
13068 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
13069 a-numaux-darwin.ads, a-numaux-darwin.adb,
13070 a-swuwha.ads, a-stunha.ads: Minor reformatting
13072 2005-11-14 Robert Dewar <dewar@adacore.com>
13075 * osint-m.adb: Add pragma Elaborate_All for Osint
13077 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
13080 * trans.c (call_to_gnu): Restore statement lost in translation.
13082 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
13084 * init.c: Use the Linux-specific section for the IA-64/Linux target.
13085 (__gnat_adjust_context_for_raise): Add conditional code so that the
13086 IA-64 is also supported.
13088 2005-11-03 James E Wilson <wilson@specifix.com>
13091 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
13092 TREE_OVERFLOW check.
13094 2005-09-21 Olivier Hainque <hainque@adacore.com>
13097 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
13098 as we create them to store a size in bits.
13100 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
13108 * utils2.c (build_return_expr): New helper function.
13109 * gigi.h (build_return_expr): Declare it.
13110 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
13111 of manually building the RETURN_EXPR tree.
13112 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
13113 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
13114 build_binary_op for the "target pointer" case. Use build_return_expr
13115 instead of manually building the RETURN_EXPR tree.
13117 2005-09-16 Laurent GUERBY <laurent@guerby.net>
13120 * s-tpinop.ads: Make this unit Preelaborate.
13122 2005-09-16 Andreas Jaeger <aj@suse.de>
13124 * socket.c: Add string.h for memcpy.
13126 2005-09-05 Arnaud Charlet <charlet@adacore.com>
13128 * dec-io.ads, dec-io.adb: Removed, no longer used.
13130 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13132 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
13134 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
13135 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
13136 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
13137 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
13138 dependent units are Preelaborate.
13139 (Initialize): Call Interrupt_Managemeent.Initialize and
13140 OS_Primitives.Initialize to ensure proper initialization of this unit.
13141 Remove use of System.Soft_Links
13142 Make this unit Preelaborate.
13144 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
13145 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
13146 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
13147 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
13148 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
13149 s-tratas.ads, s-tasinf.ads: Minor reformatting.
13150 Add pragma Preelaborate, since these packages are suitable for this
13154 * s-traent-vms.ads, s-intman-dummy.adb,
13155 s-taprop-dummy.adb: Make this unit Preelaborate.
13157 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
13158 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
13159 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
13160 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
13161 s-intman-solaris.adb, s-intman-irix-athread.adb,
13162 s-intman-irix.adb: Mark this unit Preelaborate.
13163 (Initialize): New procedure.
13166 * s-taspri-linux.ads: Removed.
13168 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
13169 as done by other implementations (e.g. posix).
13171 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
13172 responsible for deferring abort.
13173 Mark this unit Preelaborate.
13175 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
13176 proper initialization of the tasking run-time.
13178 * s-tasdeb.ads: Mark this unit Preelaborate.
13179 (Known_Tasks): Add explicit default value to avoid elaboration code.
13181 * s-inmaop-vms.adb (Elaboration code): Add call to
13182 Interrupt_Management.Initialize since the elaboration code depends on
13183 proper initialization of this package.
13185 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
13186 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
13187 s-osprim-posix.adb: Make this unit Preelaborate.
13189 * a-calend.adb: Add call to OS_Primitives.Initialize
13191 * a-elchha.adb: Update use of Except.Id.Full_Name.
13192 Minor reformatting.
13193 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
13195 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
13196 Move with clauses outside Warnings Off now that dependent units are
13198 Use raise xxx with "..."; Ada 2005 form.
13200 * a-taside.ads, a-taside.adb:
13201 Remove some dependencies, to make it easier to make this unit truly
13203 Rewrite some code to be conformant with Preelaborate rules.
13205 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
13206 marked Preelaborate in the future.
13208 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
13209 these units Preelaborate.
13211 * s-exctab.adb: Update use of Except.Id.Full_Name.
13213 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
13214 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
13215 Set_Exc_Stack_Addr): Removed, no longer used.
13216 Remove reference to *Machine_State_Addr*, no longer needed.
13218 * s-stalib.ads: Mark this unit as Preelaborate[_05].
13219 (Exception_Data): Full_Name is now a System.Address so that this unit
13220 can be made Preelaborate.
13221 Clean up/simplify code thanks to Full_Name being a System.Address.
13222 Remove obsolete pragma Suppress (All_Checks), no longer needed.
13224 * s-taskin.ads, s-taskin.adb:
13225 Move with clauses outside Warnings Off now that dependent units are
13227 Make this unit Preelaborate.
13228 (Initialize): New proceduure, replace elaboration code and makes the
13229 set up of the tasking run-time cleaner.
13230 (Detect_Blocking): Now a function instead of a deferred boolean, to
13231 obey Preelaborate rules.
13233 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
13234 soft links, no longer used.
13236 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
13237 packages are suitable for this categorization.
13239 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
13240 since we compile run-time sources in Ada 2005 mode.
13241 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
13242 avoid having s-taprop*.adb depend on s-soflin and to avoid code
13244 Remove reference to *Machine_State_Addr*, no longer needed.
13246 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13248 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
13249 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
13250 Remove reference to System.Exceptions.
13252 * s-mastop-x86.adb: Removed, no longer used.
13254 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
13256 * a-excach.adb: Minor reformatting.
13258 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
13259 instead fix new warnings that were hidden by this change.
13260 (AAA, ZZZ): Removed, replaced by...
13261 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
13262 are used instead of constants, to help make Ada.Exception truly
13264 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
13265 Raise_Storage_Error): File is now a System.Address, to simplify code.
13266 (Elab code): Removed, no longer used.
13267 (Null_Occurrence): Remove Warnings Off and make this construct
13269 Remove code related to front-end zero cost exception handling, since
13270 it is no longer used.
13271 Remove -gnatL/-gnatZ switches.
13273 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
13274 Update use of Except.Msg.
13276 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
13277 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
13278 to front-end zero cost exception handling, since it is no longer used.
13279 Remove -gnatL/-gnatZ switches.
13281 * lib-writ.ads: Minor reformatting
13284 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
13286 * Make-lang.in: Remove references to s-except.ads
13288 * s-except.ads: Removed, no longer used.
13290 * s-mastop.ads, s-mastop.adb:
13291 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
13292 Remove reference to System.Exceptions.
13294 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
13295 switch-b.adb: Remove code related to front-end zero cost exception
13296 handling, since it is no longer used.
13297 Remove -gnatL/-gnatZ switches.
13299 2005-09-01 Robert Dewar <dewar@adacore.com>
13300 Gary Dismukes <dismukes@adacore.com>
13301 Javier Miranda <miranda@adacore.com>
13303 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
13304 type by valid test and generate warning.
13305 (Tagged_Membership): Generate call to the run-time
13306 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
13307 Change formal name Subtype_Mark to Result_Definition in several calls to
13308 Make_Function_Specification.
13309 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
13310 check for proper accessibility of the operand of a class-wide allocator.
13311 The check can be left out if checks are suppressed or if the expression
13312 has a specific tagged type whose level is known to be safe.
13314 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
13315 generates the run-time check associated with null-excluding entities.
13316 (Expand_N_Return_Statement): Add tests to determine if the accessibility
13317 check on the level of the return expression of a class-wide function
13318 can be elided. The check usually isn't needed if the expression has a
13319 specific type (unless it's a conversion or a formal parameter). Also
13320 add a test for whether accessibility checks are suppressed. Augment
13321 the comments to describe the conditions for performing the check.
13323 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
13324 Javier Miranda <miranda@adacore.com>
13325 Gary Dismukes <dismukes@adacore.com>
13326 Ed Schonberg <schonberg@adacore.com>
13328 * a-tags.adb (IW_Membership): Give support to
13329 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
13330 subprogram has been extended to look for the tag in the ancestors tag
13332 Update the structure of the GNAT Dispatch Table to reflect the
13333 additional two tables used in dispatching selects.
13334 Introduce appropriate array types and record components in
13335 Type_Specific_Data to reflect the two tables.
13336 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
13337 the TSD of a tag, indexed by position.
13338 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
13339 operation kind in the TSD of a tag, indexed by position.
13341 * a-tags.ads: Introduce an enumeration type to capture different
13342 primitive operation kinds. Define a constant reflecting the number of
13343 predefined primitive operations.
13344 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
13345 of an entry wrapper.
13346 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
13347 callable entity of a primitive operation.
13349 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
13350 primitive operations used in dispatching selects for limited
13351 interfaces, limited tagged, task and protected types what implement a
13353 (Freeze_Type): Generate the bodies of the primitive operations used in
13354 dispatching selects for limited tagged, task and protected types that
13355 implement a limited interface. Generate statements to populate the two
13356 auxiliary tables used for dispatching in select statements.
13357 (Freeze_Record_Type): Add call to initialize the dispatch table entries
13358 associated with predefined interface primitive operations.
13359 (Build_Dcheck_Function): Change Set_Subtype_Mark to
13360 Set_Result_Definition.
13361 (Build_Variant_Record_Equality): Change Subtype_Mark to
13363 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
13364 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
13365 (Build_Assignment): Simplify the code that adds the run-time-check.
13366 (Expand_N_Object_Declaration): Code cleanup.
13368 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
13369 entries when there is a protected type that implements a limited
13372 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
13373 common routines used in expansion of dispatching selects.
13374 (Add_Private_Declarations): Select the appropriate protection type when
13375 there is a protected type that implements a limited interface.
13376 (Build_Parameter_Block): Generate a wrapped parameter block.
13377 (Build_Protected_Subprogram_Body): Select the appropriate type for
13378 locking entries when there is a protected type that implements a
13380 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
13381 classified as entry wrappers.
13382 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
13383 asynchronous selects.
13384 (Expand_N_Conditional_Entry_Call): Add support for expansion of
13385 dispatching conditional selects.
13386 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
13387 protection when there is a protected type that implements limited
13389 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
13391 (Extract_Dispatching_Call): Extract the entity of the name of a
13392 dispatching call, the object parameter, actual parameters and
13393 corresponding formals.
13394 (Make_Initialize_Protection): Correct logic of protection initialization
13395 when there is a protected type that implements a limited interface.
13396 (Parameter_Block_Pack): Populate a wrapped parameter block with the
13397 values of actual parameters.
13398 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
13399 block and assign them to the original actual parameters.
13401 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
13402 (Build_Protected_Sub_Specification): Change the type and name of the
13403 last formal to account for the increased variety of protection modes.
13405 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
13406 entities. Used to save the value of the Is_Hidden attribute when the
13407 limited-view is installed.
13408 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
13409 the attribute of procedures classified as entry wrappers.
13410 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
13411 entity of a primitive wrapper.
13412 (Write_Entity_Flags): Output the name and value of the
13413 Is_Primitive_Wrapper attribute.
13414 (Write_Field27_Name): Output the name and entity of the field Wrapped_
13416 (Underlying_Type): If we have an incomplete entity that comes from
13417 the limited view then we return the Underlying_Type of its non-limited
13418 view if it is already available.
13419 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
13420 including operators.
13421 (Write_Field26_Name): Add entry for Overridden_Operation
13422 (Overridden_Operation): New attribute of functions and procedures.
13424 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
13425 predefined position in the dispatch table for the primitive operations
13426 used in dispatching selects.
13427 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
13428 predefined primitive operations and replace it with
13429 Default_Prim_Op_Count.
13430 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
13431 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
13432 the names of the generated primitive operations used in dispatching
13434 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
13435 case of abstract interface types. They will be inherit by the objects
13436 implementing the interface.
13437 (Make_DT): There is no need to inherit the dispatch table of the
13438 ancestor interface for the elaboration of abstract interface types.
13439 The dispatch table will be inherited by the object implementing the
13441 (Copy_Secondary_DTs): Add documentation.
13442 (Validate_Position): Improve this static check in case of
13443 aliased subprograms because aliased subprograms must have
13445 (Init_Predefined_Interface_Primitives): New subprogram that initializes
13446 the entries associated with predefined primitives of all the secondary
13448 (Build_Anonymous_Access_Type): Removed.
13449 (Expand_Interface_Actuals): With the previous cleanup there is no need
13450 to build an anonymous access type. This allows further cleanup in the
13451 code generated by the expander.
13452 (Expand_Interface_Conversion): If the actual is an access type then
13453 build an internal function to handle the displacement. If the actual
13454 is null this function returns null because no displacement is
13455 required; otherwise performs a type conversion that will be
13456 expanded in the code that returns the value of the displaced actual.
13457 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
13458 conversions that have no effect in the generated code because no
13459 displacement is required. Code cleanup; use local variables to
13460 avoid repeated calls to the subprogram directly_designated_type().
13462 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
13463 Classify the primitive operations used in dispatching selects as
13465 (Implements_Limited_Interface): Determine whether some type either
13466 directly implements a limited interface or extends a type that
13467 implements a limited interface.
13468 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
13469 (Expand_Subtype_From_Expr): Do not build actual subtype if the
13470 expression is limited.
13471 (Find_Interface_Tag): Add code to handle class-wide types and
13472 entities from the limited-view.
13474 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
13475 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
13476 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
13477 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
13480 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
13481 of procedure name or prefix that appears as a trigger in a triggering
13484 * uintp.ads: Introduce constants Uint_11 and Uint_13.
13486 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13488 * s-tataat.adb, a-tasatt.adb:
13489 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
13491 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
13492 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
13493 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
13496 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13497 Jose Ruiz <ruiz@adacore.com>
13499 * s-taprop-vxworks.adb:
13500 Move with clauses outside Warnings Off now that dependent units are
13502 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
13503 initialization of this unit.
13504 (Specific): Add new procedures Initialize and Delete so that this
13505 package can be used for VxWorks 5.x and 6.x
13506 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
13507 differences between VxWorks 5.x and 6.x
13508 Minor reformatting.
13509 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
13511 Use only Preelaborate-compatible constructs.
13513 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
13514 Primitives.Operations.
13515 (Delete, Initialize): New procedures.
13517 * s-osinte-vxworks.adb: Body used to handle differences between
13518 VxWorks 5.x and 6.x
13519 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
13521 * s-osinte-vxworks.ads: Minor reformatting.
13522 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
13523 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
13525 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
13526 between Vxworks 5 and 6.
13527 (taskLock, taskUnlock): Removeed, no longer used.
13529 * adaint.c: The wait.h header is not located in the sys directory on
13530 VxWorks when using RTPs.
13531 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
13533 (__gnat_dup): dup is available on Vxworks when using RTPs.
13534 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
13536 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
13538 * expect.c: The wait.h header is not located in the sys directory on
13539 VxWorks when using RTPs.
13541 2005-09-01 Thomas Quinot <quinot@adacore.com>
13543 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
13545 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
13547 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
13548 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
13549 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
13550 g-soccon-freebsd.ads: Add new constants:
13552 SO_RCVTIMEO/SO_SNDTIMEO
13556 Move all target-specific file inclusions and macro definitions to
13557 gsocket.h, in order to ensure that any C code in socket.c will see a
13558 set of constants that is consistent with the contents of g-soccon.ads.
13560 * gsocket.h: Code imported from gen-soccon.c:
13561 Move all target-specific file inclusions and macro definitions to
13562 gsocket.h, in order to ensure that any C code in socket.c will see a set
13563 of constants that is consistent with the contents of g-soccon.ads.
13564 This change also makes gen-soccon self-contained (removing dependencies
13565 upon GCC internal headers).
13567 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
13569 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
13571 * socket.c: Minor reformatting.
13573 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13574 Thomas Quinot <quinot@adacore.com>
13576 * fname-sf.adb, mlib-tgt.ads,
13577 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
13578 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
13579 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
13580 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
13581 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
13582 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
13583 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
13584 makegpr.adb: Remove redundant use_clauses.
13586 2005-09-01 Arnaud Charlet <charlet@adacore.com>
13588 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
13589 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
13590 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
13591 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
13592 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
13593 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
13594 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
13595 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
13596 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
13597 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
13598 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
13599 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
13600 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
13601 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
13602 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
13603 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
13604 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
13605 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
13606 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
13607 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
13608 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
13609 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
13610 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
13611 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
13612 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
13613 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
13614 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
13615 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
13616 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
13617 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
13618 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
13619 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
13620 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
13621 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
13622 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
13623 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
13624 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
13625 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
13626 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
13627 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
13628 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
13629 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
13630 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
13631 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
13632 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
13633 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
13634 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
13635 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
13636 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
13637 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
13638 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
13639 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
13640 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
13641 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
13642 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
13643 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
13644 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
13645 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
13646 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
13647 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
13648 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
13649 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
13650 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
13651 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
13652 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
13653 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
13654 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
13655 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
13656 and always use the no parameter form for consistency.
13658 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
13660 2005-09-01 Robert Dewar <dewar@adacore.com>
13662 * binde.adb: Minor reformatting
13663 (Find_Elab_Order): Output warning if -p used with static elab order
13665 2005-09-01 Robert Dewar <dewar@adacore.com>
13667 * checks.adb (Check_Needed): New procedure, deals with removing checks
13668 based on analysis of short-circuited forms. Also generates warnings for
13669 improper use of non-short-circuited forms.
13672 2005-09-01 Robert Dewar <dewar@adacore.com>
13674 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
13677 2005-09-01 Robert Dewar <dewar@adacore.com>
13679 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
13681 Implement new insertion char < (conditional warning)
13682 * errutil.adb, erroutc.adb: Implement new insertion char <
13683 (conditional warning).
13684 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
13685 (Error_Msg_Warn): New variable for < insertion char.
13686 * prj-nmsc.adb: Implement new errout insertion char < (conditional
13688 (Check_For_Source): Change value of Source_Id only after the current
13689 source has been dealt with.
13691 2005-09-01 Robert Dewar <dewar@adacore.com>
13692 Doug Rupp <rupp@adacore.com>
13694 * exp_attr.adb: Handle vax fpt for 'Valid attribute
13695 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
13696 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
13697 (Valid_D, Valid_F, Valid_G): New functions
13699 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13700 Hristian Kirtchev <kirtchev@adacore.com>
13701 Javier Miranda <miranda@adacore.com>
13703 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
13704 from object notation, the original node is unanalyzed and carries no
13705 semantic information, so that accessiblity checks must be performed on
13706 the type of the actual itself.
13707 (Expand_N_Subprogram_Declaration): Change last actual parameter for
13708 compatibility with Build_Protected_Sub_Specification.
13709 (Check_Overriding_Inherited_Interfaces): Add suport to handle
13710 overloaded primitives.
13711 (Register_Interface_DT_Entry): Use the new name of the formal
13712 the the calls to Expand_Interface_Thunk
13714 * exp_dbug.ads: Augment comments on encoding of protected types to
13715 include the generation of dispatching subprograms when the type
13716 implements at least one interface.
13718 * lib.ads: Extend information in Load_Stack to include whether a given
13719 load comes from a Limited_With_Clause.
13721 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
13722 whether a potential circularity is harmless, because it includes units
13723 loaded through a limited_with clause. Extends previous treatment which
13724 did not handle properly arbitrary combinations of limited and
13725 non-limited clauses.
13727 2005-09-01 Nicolas Setton <setton@adacore.com>
13729 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
13730 to be encoded as typ___XBLU_lowerbound__upperbound instead of
13731 typ___XB_lowerbound__upperbound.
13733 2005-09-01 Thomas Quinot <quinot@adacore.com>
13735 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
13736 dummy access formal for RACW/RAS TypeCode TSS.
13737 (Build_TypeCode_Call): Do not generate dummy null access actual for
13738 calls to the TypeCode TSS.
13740 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13742 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
13743 fully qualified name, to distinguish instances with the same local name.
13745 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
13748 2005-09-01 Robert Dewar <dewar@adacore.com>
13750 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
13753 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
13755 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
13756 (Free): New deallocation procedure for filter elements
13757 (Close): Deallocate any existing filter for the concerned connection
13759 2005-09-01 Laurent Pautet <pautet@adacore.com>
13761 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
13762 position set is provided, we compute one in order to reduce the maximum
13763 length of the keys. This computation first selects a character
13764 position between 1 and the minimum length of the keys in order to
13765 avoid reducing one of the keys to an empty string.
13766 (Initialize, Compute): When the ratio V to K is too low, the algorithm
13767 does not converge. The initialization procedure now comes with a
13768 maximum number of iterations such that when exceeded, an exception is
13769 raised in Compute. The user can initialize this ratio to another value
13771 Reformating and updated headers.
13773 2005-09-01 Javier Miranda <miranda@adacore.com>
13775 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
13776 that given an entity T creates and returns an Itype that duplicates the
13777 contents of T. The returned Itype has the null-exclusion
13778 attribute set to True, and its Etype attribute references T
13779 to keep the association between the two entities.
13780 Update copyright notice
13782 * sem_aggr.adb (Check_Can_Never_Be_Null,
13783 Aggregate_Constraint_Checks, Resolve_Aggregate,
13784 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
13786 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
13788 2005-09-01 Gary Dismukes <dismukes@adacore.com>
13789 Robert Dewar <dewar@adacore.com>
13790 Hristian Kirtchev <kirtchev@adacore.com>
13792 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
13795 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
13797 Call Set_Result_Definition instead of Set_Subtype_Mark.
13798 (P_Subprogram_Specification): Add parsing of anonymous access result
13799 plus null exclusions. Call Set_Result_Definition instead of
13802 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
13803 (P_Access_Type_Definition): Add parsing for an anonymous access result
13804 subtype, plus parsing for null exclusions. Call Set_Result_Definition
13805 instead of Set_Subtype_Mark.
13807 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
13808 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
13809 (Result_Definition): New function for N_Function_Specifications.
13810 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
13811 N_Function_Specification.
13812 (Set_Null_Exclusion_Present): Allow this flag for
13813 N_Function_Specification.
13814 (Set_Result_Definition): New procedure for N_Function_Specifications.
13815 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
13816 and N_Function_Specification.
13818 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
13819 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
13820 Add support for LIMITED NEW for Ada 2005 AI-419
13821 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
13822 syntax for anonymous access results.
13823 Replace Subtype_Mark field by Result_Definition in
13824 N_Function_Specification and N_Access_Definition specs.
13825 Add Null_Exclusion_Present to spec of N_Function_Specification.
13826 (Result_Definition): New function for N_Function_Specification and
13827 N_Access_Function_Definition.
13828 (Set_Result_Definition): New procedure for N_Function_Specification and
13829 N_Access_Function_Definition.
13831 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
13832 Result_Definition for cases of N_Access_Function_Definition and
13833 N_Function_Specification.
13834 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
13836 2005-09-01 Vincent Celier <celier@adacore.com>
13838 * lib-writ.adb: Update Copyright notice
13839 (Write_With_Lines): On platforms where file names are case-insensitive,
13840 record the file names in lower case.
13841 (Write_ALI): For D lines, on platforms where file names are
13842 case-insensitive, record the file names in lower case.
13844 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13845 Emmanuel Briot <briot@adacore.com>
13847 * lib-xref.adb (Output_Overridden_Op): Display information on
13848 overridden operation.
13850 * lib-xref.ads: Add documentation on overridden operations.
13852 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
13855 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
13856 overriding entity information.
13858 2005-09-01 Vincent Celier <celier@adacore.com>
13860 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
13861 including those that are inherited.
13863 2005-09-01 Robert Dewar <dewar@adacore.com>
13865 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
13867 * par-prag.adb: Implement new pragma Debug_Policy
13869 * sem_prag.adb Implement new pragma Debug_Policy
13870 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
13871 Component_Size attribute specification. Give warning for ignored pragma
13874 * snames.h, snames.ads, snames.adb: Introduce entries in
13875 Preset_Names for Name_Disp_Asynchronous_Select,
13876 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
13877 Name_Disp_Timed_Select.
13878 New pragma Debug_Policy
13880 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
13882 Switch -gnata also sets Debug_Pragmas_Enabled
13884 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
13885 handle an explicit -gnata when compiling predefined files.
13887 2005-09-01 Vincent Celier <celier@adacore.com>
13889 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
13890 directories of projects that have no Ada sources.
13892 2005-09-01 Robert Dewar <dewar@adacore.com>
13894 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
13895 (makes a difference for wide characters)
13897 * widechar.adb, widechar.ads:
13898 Add Wide_Char_Byte_Count feature to count chars vs bytes
13900 2005-09-01 Thomas Quinot <quinot@adacore.com>
13901 Ed Schonberg <schonberg@adacore.com>
13902 Robert Dewar <dewar@adacore.com>
13904 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
13905 'Address attribute reference with an overloaded prefix, use the
13906 location of the prefix (not the location of the attribute reference) as
13907 the error location.
13908 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
13909 a function renaming thereof, is a valid prefix for 'Size (where it is
13910 intepreted as a function call).
13911 (Statically_Denotes_Entity): New predicate to determine whether the
13912 prefix of an array attribute can be considered static.
13915 (Eval_Attr): Fix failure to evaluate Component_Size for
13916 unconstrained arrays (resulted in wrong value in packed case, since
13917 back end cannot handle this case)
13919 2005-09-01 Robert Dewar <dewar@adacore.com>
13921 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
13922 error msgs for most common cases.
13923 Use new errout insertion char < (conditional warning)
13925 2005-09-01 Javier Miranda <miranda@adacore.com>
13926 Ed Schonberg <schonberg@adacore.com>
13928 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
13929 become local to the whole package.
13930 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
13931 the package was already analyzed the new algorithm "replaces" the
13932 real entities by the shadow ones. This is required to ensure that
13933 the order of these entities in the homonym chains does not change;
13934 otherwise we can have undefined references at linking time because
13935 in case of conflicts the external name of the entities will have
13936 a suffix that depends on the order of the entities in the chain.
13937 (Remove_Limited_With_Clause): Complementary code that completes the
13938 new algorithm and replaces the shadow entities by the real ones.
13939 (Install_Limited_Withed_Unit): When unchaining entities before the
13940 installation of the shadow entities, only regular entities of the
13941 public part must be taken into account. This is required to
13942 keep this routine in synch with the work done by Remove_Limited_
13944 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
13945 even if unit is analyzed, because the analysis of the unit is
13946 idempotent in any case, and the limited view of the unit may have to
13947 be installed for proper visibility.
13948 (Expand_Limited_With_Clause): Even if the unit in the implicit
13949 with_clause has been analyzed already, a limited view of the package
13950 must be built for the current context, if it does not exist yet.
13952 2005-09-01 Ed Schonberg <schonberg@adacore.com>
13953 Javier Miranda <miranda@adacore.com>
13954 Gary Dismukes <dismukes@adacore.com>
13956 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
13957 defining entity for the instance body, make a new defining identifier
13958 rather than copying the entity of the spec, to prevent accidental
13959 sharing of the entity list.
13960 (Check_Private_View): When exchanging views of private types, build the
13961 list of exchanged views as a stack, to ensure that on exit the exchanges
13962 are undone in the proper order.
13963 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
13964 Restore the compilation environment in case of instantiation_error.
13965 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
13966 for an anonymous access result.
13967 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
13968 (Formal_Entity): Handle properly the case of a formal package that
13969 denotes a generic package renaming.
13971 2005-09-01 Thomas Quinot <quinot@adacore.com>
13973 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
13974 clause if the array aggregate is surrounded by parentheses.
13976 2005-09-01 Cyrille Comar <comar@adacore.com>
13977 Gary Dismukes <dismukes@adacore.com>
13978 Ed Schonberg <schonberg@adacore.com>
13979 Javier Miranda <miranda@adacore.com>
13981 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
13983 to check if a type is Constrained in cases related to code generation
13984 (rather than semantic checking) since otherwise we do not generate
13985 similar code for mutable private types depending if their
13986 discriminants are visible or not.
13987 (Check_Abstract_Overriding): Do not complain about failure to override
13988 the primitive operations used in dispatching selects since they will
13989 always be overriden at the freeze point of the type.
13990 (Access_Definition): Separate out handling for resetting the scope
13991 of an anonymous access function result type. Retrieve the scope
13992 of the associated function rather than using Current_Scope, which
13993 does not have a consistent value (depends on whether we're in the
13994 middle of analyzing formal parameters). Add ??? comment about
13995 finding a cleaner way to handle the special cases of scope setting.
13996 (Process_Incomplete_Dependents): A protected operation is never a
13997 dispatching operation (only its wrapper may be).
13998 (Build_Derived_Record_Type): In case of tagged private types that
13999 implement interfaces add derivation of predefined primitive
14001 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
14002 by two parameters that are used in case of derivation from abstract
14003 interface types: No_Predefined_Prims is used to avoid the derivation
14004 of predefined primitives from the interface, and Predefined
14005 Prims_Only is used to complete the derivation predefined primitives
14006 in case of private tagged types implementing interfaces.
14007 Fix typo in comments
14008 (Find_Interface_In_Descendant): Protect the frontend against
14009 wrong code with large circularity chains.
14010 (Is_Private_Overriding): Add support for entities overriding interface
14011 subprograms. The test failed because Entities associated with overriden
14012 interface subprograms are always marked as hidden (and used to build
14013 the secondary dispatch table); in this case the overriden entity is
14014 available through the field abstract_interface_alias (cf. override_
14015 dispatching_operation)
14016 (Access_Definition): Set the scope of the type to Current_Scope for the
14017 case of a function with an anonymous access result type.
14018 (Access_Subprogram_Declaration): Handle creation of the type entity for
14019 an access-to-function type with an anonymous access result.
14020 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
14021 in handling for N_Access_Function_Definition.
14022 (Analyze_Subtype_Declaration): Modify the text of error message.
14023 (Derived_Type_Declaration): Modify the text of error message.
14024 (Process_Subtype): Modify the text of error message plus cleanup
14025 of one redundant error message.
14026 (Analyze_Component_Declaration): Code cleanup.
14027 (Analyze_Object_Declaration): Code cleanup.
14028 (Analyze_Subtype_Declaration): Propagate the null-exclusion
14029 attribute in case of access types. Code cleanup.
14030 (Array_Type_Declaration): Code cleanup.
14031 (Process_Discriminants): Create the new null-excluding itype
14032 if required. Code cleanup.
14033 (Process_Subtype): Create the new null-excluding itype if
14034 required. Code cleanup.
14035 (Build_Derived_Record_Type): Code cleanup to avoid calling
14036 twice the subprogram derive_subprograms in case of private
14037 types that implement interfaces. In this particular case the
14038 subprogram Complete_Subprograms_Derivation already does the
14039 job associated with the second call.
14041 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
14042 conversion to the full view when generating an operation for a
14043 discriminant whose type may currently be private.
14045 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14046 Javier Miranda <miranda@adacore.com>
14048 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
14049 V (Obj.F), the rewriting does not involve the indexed component, but
14050 only the selected component itself.
14051 Do not apply the transformation if the analyzed node is an actual of a
14052 call to another subprogram.
14053 (Complete_Object_Operation): Retain the entity of the
14054 dispatching operation in the selector of the rewritten node. The
14055 entity will be used in the expansion of dispatching selects.
14056 (Analyze_One_Call): Improve location of the error message associated
14058 (Analyze_Selected_Component): No need to resolve prefix when it is a
14059 function call, resolution is done when parent node is resolved, as
14061 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
14062 when attempting to resolve a call transformed from its object notation.
14063 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
14064 of the argument list for each interpretation of the operation.
14065 (Try_Object_Operation): The designated type of an access parameter may
14066 be an incomplete type obtained through a limited_with clause, in which
14067 case the primitive operations of the type are retrieved from its full
14069 (Analyze_Call): If this is an indirect call, and the return type of the
14070 access_to_subprogram is incomplete, use its full view if available.
14072 2005-09-01 Javier Miranda <miranda@adacore.com>
14073 Gary Dismukes <dismukes@adacore.com>
14075 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
14076 access types the null-exclusion and access-to-constant attributes must
14078 (Analyze_Return_Statement): When the result type is an anonymous access
14079 type, apply a conversion of the return expression to the access type
14080 to ensure that appropriate accessibility checks are performed.
14081 (Analyze_Return_Type): For the case of an anonymous access result type,
14082 generate the Itype and set Is_Local_Anonymous_Access on the type.
14083 Add ??? placeholder for check to disallow returning a limited object
14084 in Ada 2005 unless it's an aggregate or a result of a function call.
14085 Change calls from Subtype_Mark to Result_Definition.
14086 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
14087 Result_Definition in call to Make_Function_Specification.
14088 (Build_Body_To_Inline): Change Set_Subtype_Mark to
14089 Set_Result_Definition.
14090 (Make_Inequality_Operator): Change formal Subtype_Mark to
14091 Result_Definition in call to Make_Function_Specification.
14092 (Process_Formals): Create the new null-excluding itype if required.
14093 (New_Overloaded_Entity): For an entity overriding an interface primitive
14094 check if the entity also covers other abstract subprograms in the same
14095 scope. This is required to handle the general case, that is, overriding
14096 other interface primitives and overriding abstract subprograms inherited
14097 from some abstract ancestor type.
14098 (New_Overloaded_Entity): For an overriding entity that comes from
14099 source, note the operation that it overrides.
14100 (Check_Conformance, Type_Conformant): Addition of one new formal
14101 to skip controlling formals in the analysis. This is used to
14102 handle overloading of abstract interfaces.
14103 (Base_Types_Match): Add missing case for types imported from
14104 limited-with clauses
14105 (New_Overloaded_Entity): Add barrier to protect the use of
14106 the "alias" attribute.
14108 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14110 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
14111 verify that the procedure and the entry are mode conformant.
14112 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
14113 as a different operator, which is often a cut-and-paste error.
14115 2005-09-01 Javier Miranda <miranda@adacore.com>
14116 Ed Schonberg <schonberg@adacore.com>
14118 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
14119 used in controlling parameters exclude null because it is necessary to
14120 read the tag to dispatch, and null has no tag.
14121 (Override_Dispatching_Operation): If the previous operation is inherited
14122 from an interface, it becomes hidden and does not participate in later
14125 2005-09-01 Javier Miranda <miranda@adacore.com>
14126 Ed Schonberg <schonberg@adacore.com>
14127 Gary Dismukes <dismukes@adacore.com>
14129 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
14130 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
14131 the expander will generate the corresponding run-time check to evaluate
14133 (Resolve_Call): Check for legal type of procedure name or prefix that
14134 appears as a trigger in a triggering alternative.
14135 (Valid_Conversion): If expression is ambiguous and the context involves
14136 an extension of System, remove System.Address interpretations.
14137 (Resolve_Qualified_Expression): Reject the case of a specific-type
14138 qualification applied to a class-wide argument. Enhance comment
14139 to explain checking of Original_Node.
14140 (Resolve_Type_Conversion): The location of the error message was not
14141 general enough to handle the general case and hence it has been removed.
14142 In addition, this patch improves the text of the message.
14143 (Resolve_Type_Conversion): Add missing support for access to interface
14145 (Resolve_Type_Conversion): If the target is a class-wide interface type,
14146 do not expand if the expression is the actual in a call, because proper
14147 expansion will take place when the call itself is expanded.
14148 (Resolve_Allocator): If the context is an unchecked conversion, the
14149 allocator inherits its storage pool, if any, from the target type of
14152 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14153 Javier Miranda <miranda@adacore.com>
14155 * sem_type.adb (Add_One_Interp): If a candidate operation is an
14156 inherited interface operation that has an implementation, use the
14157 implementation to avoid spurious ambiguities.
14158 (Interface_Present_In_Ancestor): In case of concurrent types we can't
14159 use the Corresponding_Record_Typ attribute to look for the interface
14160 because it is set by the expander (and hence it is not always
14161 available). For this reason we traverse the list of interfaces
14162 (available in the parent of the concurrent type).
14163 (Interface_Present_In_Ancestor): Handle entities from the limited view
14165 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14167 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
14168 from the list of required components.
14169 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
14170 primitive procedure of a limited interface with a controlling first
14172 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
14174 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
14175 capture if it is generated in the second operand of a short-circuit
14177 Do not capture values for variables with address clauses.
14178 (Is_Object_Reference): Treat a function call as an object reference only
14179 if its type is not Standard_Void_Type.
14181 2005-09-01 Ed Schonberg <schonberg@adacore.com>
14183 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
14184 to a variable that is statically known to be constant.
14186 2005-09-01 Geert Bosch <bosch@adacore.com>
14187 Robert Dewar <dewar@adacore.com>
14189 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
14190 (VAXGF_Safe_First): Idem.
14192 2005-09-01 Robert Dewar <dewar@adacore.com>
14193 Arnaud Charlet <charlet@adacore.com>
14195 * g-dirope.ads: Minor reformatting
14196 Document that bounds of result of Base_Name match the input index
14198 Add documentation on environment variable syntax for Expand_Path
14200 * gnat_ugn.texi: Update documentation to include mention of -m switches
14201 Document new treatment of wide characters in max line length
14203 Remove -gnatL/-gnatZ switches, no longer used.
14204 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
14207 * gnat_rm.texi: Add doc for two argument form of pragma
14208 Float_Representation.
14209 Add documentation for pragma No_Strict_Aliasing
14210 Add note that explicit component clause overrides pragma Pack.
14211 Add documentation of pragma Debug_Policy
14213 2005-09-01 Matthew Heaney <heaney@adacore.com>
14215 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
14216 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
14217 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
14218 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
14219 draft (Draft 13, August 2005) of Ada Amendment 1.
14221 2005-09-01 Arnaud Charlet <charlet@adacore.com>
14223 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
14224 Note that the platform-specific version of g-soccon.ads for VMS is now
14225 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
14226 really is a package spec).
14227 Replace s-taspri-linux.ads by s-taspri-posix.ads
14228 Remove references to s-mastop-x86.adb
14230 * system-vxworks-xscale.ads: Removed, no longer used.
14231 * s-vxwork-xscale.ads: Removed, no longer used.
14233 2005-09-01 Robert Dewar <dewar@adacore.com>
14235 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
14236 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
14237 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
14238 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
14239 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
14240 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
14241 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
14242 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
14243 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
14244 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
14245 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
14246 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
14247 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
14248 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
14249 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
14250 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
14251 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
14252 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
14253 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
14254 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
14255 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
14257 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14261 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
14263 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14264 Doug Rupp <rupp@adacore.com>
14266 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
14268 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
14269 this code in the GNAT run-time.
14271 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
14274 * init.c (__gnat_error_handler [many]): Mark "msg" as const
14275 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
14277 (__gnat_inside_elab_final_code): Moved here from
14278 Standard_Library and only defined for the compiler.
14279 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
14280 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
14281 using RTPs because directly vectored Interrupt routines are not
14282 supported on this configuration.
14283 (getpid): Do not redefine this function on VxWorks when using RTPs
14284 because this primitive is well supported by the RTP libraries.
14285 (copy_msg): Correct the code that checks for buffer overflow.
14286 Discovered during code reading.
14288 2005-08-29 Olivier Hainque <hainque@adacore.com>
14290 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
14291 a library level mutable variable with an initializer, tell
14292 build_allocator to ignore the initializer's size. It may not be large
14293 enough for all the values that might be assigned to the variable later
14296 2005-08-29 Arnaud Charlet <charlet@adacore.com>
14297 Eric Botcazou <ebotcazou@adacore.com>
14299 * trans.c: Protect < in error msg with quote
14300 Replace GCC_ZCX by Back_End_Exceptions.
14301 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
14302 has been sufficiently aligned in the record.
14304 2005-08-15 James E. Wilson <wilson@specifix.com>
14306 * system-linux-alpha.ads: Change ia64 to alpha.
14308 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
14310 * decl.c, utils.c: Fix comment typos.
14312 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
14314 * decl.c, init.c, initialize.c: Fix comment typos.
14316 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
14318 Make CONSTRUCTOR use VEC to store initializers.
14319 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
14321 * trans.c (extract_values): Likewise.
14322 * utils.c (convert, remove_conversions): Likewise.
14323 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
14324 gnat_build_constructor): Likewise.
14326 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
14328 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
14330 (compare_field_bitpos): Likewise.
14332 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
14334 * utils.c (create_var_decl): Only set DECL_COMMON on
14335 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
14336 VAR_OR_FUNCTION_DECL_P.
14338 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
14340 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
14343 2005-07-07 Pascal Obry <obry@adacore.com>
14345 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
14346 returned type on Windows.
14348 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
14351 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
14352 exception in this case.
14353 Simplify the code as "Image (Image'Range)" = "Image".
14355 2005-07-07 Vincent Celier <celier@adacore.com>
14357 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
14358 the destructor/constructor attributes for <lib>final/<lib>init.
14360 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
14362 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
14364 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
14365 type if the parameter is not passed by copy but reference by default.
14367 2005-07-07 Javier Miranda <miranda@adacore.com>
14369 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
14370 Reimplementation of the support for abstract interface types in order
14371 to leave the code more clear and easy to maintain.
14373 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
14374 abstract interface types in order to leave the code clearer and easier
14377 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
14378 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
14379 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
14380 appropriate entry of the secondary dispatch table.
14381 (Make_DT): Add code to inherit the secondary dispatch tables of
14384 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
14385 implementing both functionalities by means of a common routine, each
14386 routine has its own code.
14388 2005-07-07 Javier Miranda <miranda@adacore.com>
14390 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
14392 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
14395 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
14398 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
14399 use of tag incomplete types.
14401 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
14402 give support to tagged incomplete types.
14404 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
14405 expression is a discriminant reference and its type is private, as can
14406 happen within a stream operation for a mutable record, use the full
14407 view of the type to resolve the case alternatives.
14408 (Analyze_Assignment): Check wrong dereference of incomplete types.
14410 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
14413 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
14416 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
14417 N_Incomplete_Type_Declaration nodes.
14419 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
14420 Tag_Present to give support to tagged incomplete types:
14422 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
14425 2005-07-07 Olivier Hainque <hainque@adacore.com>
14428 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
14429 definitions for the Unwind wrappers in the compiler case.
14431 2005-07-07 Ed Schonberg <schonberg@adacore.com>
14432 Javier Miranda <miranda@adacore.com>
14434 * par-load.adb (Load): If a child unit is loaded through a limited_with
14435 clause, each parent must be loaded as a limited unit as well.
14437 * sem_ch10.adb (Previous_Withed_Unit): Better name for
14438 Check_Withed_Unit. Return true if there is a previous with_clause for
14439 this unit, whether limited or not.
14440 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
14442 (Is_Visible_Through_Renamings): New local subprogram of install_limited
14443 _withed_unit that checks if some package installed through normal with
14444 clauses has a renaming declaration of package whose limited-view is
14445 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
14446 of the current Draft document for Ada 2005.
14447 (Analyze_Context): Complete the list of compilation units that
14448 are allowed to contain limited-with clauses. It also contains
14449 checks that were previously done by Install_Limited_Context_Clauses.
14450 This makes the code more clear and easy to maintain.
14451 (Expand_Limited_With_Clause) It is now a local subprogram of
14452 Install_Limited_Context_Clauses, and contains the code that adds
14453 the implicit limited-with clauses for parents of child units.
14454 This functionality was prevously done by Analyze_Context.
14456 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
14459 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
14460 been erroneously named in a limited-with clause of its own context.
14461 In this case the error has been previously notified by Analyze_Context.
14463 2005-07-07 Ed Schonberg <schonberg@adacore.com>
14465 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
14466 generic package that contains local declarations with the same name.
14467 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
14469 2005-07-07 Bernard Banner <banner@adacore.com>
14471 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
14472 ia64 platform only on platforms that you the GCC unwind library
14473 rather than the system unwind library.
14475 2005-07-07 Thomas Quinot <quinot@adacore.com>
14477 * expect.c: Minor reformatting
14479 2005-07-07 Sergey Rybin <rybin@adacore.com>
14481 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
14484 * gnat_ugn.texi: Add description for new gnatpp option
14487 2005-07-04 Thomas Quinot <quinot@adacore.com>
14489 * g-expect-vms.adb, g-expect.ads, g-expect.adb
14490 (Get_Command_Output): New subprogram to launch a process and get its
14491 standard output as a string.
14493 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
14494 Olivier Hainque <hainque@adacore.com>
14496 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
14497 fetch a code-range descriptor associated with the machine state. On
14498 failure set the machine state's PC to 0; on success, pass the
14499 descriptor to exc_virtual_unwind.
14501 * init.c (Tru64 section): New function __gnat_set_code_loc.
14503 2005-07-04 Vincent Celier <celier@adacore.com>
14505 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
14506 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
14507 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
14508 Remove all auto-initialization code, as this is now done through the
14509 constructor mechanism.
14511 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
14512 __gnat_sals_init_using_constructors): New functions.
14514 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
14515 Linker_Constructor and Linker_Destructor when switch -a is used.
14517 * bindusg.adb: Add line for new switch -a
14519 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
14520 (Gnatbind): When switch -a is used, check if it is allowed
14522 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
14524 2005-07-04 Joel Brobecker <brobecker@adacore.com>
14526 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
14527 This prevents us from hitting a limitation during the debug info
14528 generation when using stabs.
14529 (Prims_Ptr): Likewise.
14531 2005-07-04 Gary Dismukes <dismukes@adacore.com>
14532 Ed Schonberg <schonberg@adacore.com>
14533 Javier Miranda <miranda@adacore.com>
14535 * checks.adb (Null_Exclusion_Static_Checks): In the case of
14536 N_Object_Declaration, only perform the checks if the Object_Definition
14537 is not an Access_Definition.
14539 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
14540 where the parent of an the access definition is an N_Object_Declaration
14541 when determining the Associated_Node_For_Itype and scope of an
14542 anonymous access-to-subprogram type.
14544 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
14545 Corresponding_Spec on the body created for a null procedure. Add ???
14546 comment. Remove New_Copy_Tree call on body argument to
14547 Set_Body_To_Inline.
14549 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
14550 discriminants, use the type of the actual as well, because the
14551 discriminants may be read by the called subprogram.
14553 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
14554 access type we do not need to handle non-limited views.
14555 (Build_Derived_Record_Type): Additional check to check that in case of
14556 private types, interfaces are only allowed in private extensions.
14558 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
14560 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
14561 <Pragma_Linker_Destructor>: Likewise.
14563 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
14564 Pragma_Linker_Destructor.
14566 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
14567 ATTR_LINK_DESTRUCTOR.
14568 (static_ctors, static_dtors): New variables.
14570 * misc.c (gnat_expand_body): Output current function as constructor
14571 and destructor if requested.
14573 * par-prag.adb: Add processing for pragma Linker_Constructor and
14576 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
14577 extracted from Check_Interrupt_Or_Attach_Handler.
14578 (Check_Interrupt_Or_Attach_Handler): Invoke it.
14579 Implement pragma Linker_Constructor and Linker_Destructor with the
14580 help of Find_Unique_Parameterless_Procedure.
14581 Replace Name_Alias with Name_Target for pragma Linker_Alias.
14583 * snames.h, snames.ads, snames.adb:
14584 Add Name_Linker_Constructor and Name_Linker_Destructor.
14585 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
14586 * snames.adb: Remove Name_Alias.
14588 * trans.c: Include cgraph.h.
14589 (build_global_cdtor): New function.
14590 (Compilation_Unit_to_gnu): Build global constructor and destructor if
14592 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
14594 (addressable_p) <COMPONENT_REF>: Unconditionally test
14595 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
14597 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
14598 variable if it is external.
14600 (static_ctors, static_dtors): New global variables.
14601 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
14602 <ATTR_LINK_DESTRUCTOR>: Likewise.
14603 (end_subprog_body): Chain function as constructor and destructor
14606 * exp_util.adb (Force_Evaluation): Unconditionally invoke
14607 Remove_Side_Effects with Variable_Ref set to true.
14608 (Remove_Side_Effects): Handle scalar types first. Use a renaming
14609 for non-scalar types even if Variable_Ref is true and for class-wide
14612 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14614 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
14615 to prevent spurious warnings.
14617 2005-07-04 Thomas Quinot <quinot@adacore.com>
14619 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
14620 Itypes. Itypes are really unexpected there.
14621 (Build_TypeCode_Function): Generalise special processing for Itypes to
14622 handle the case of numeric implicit base types as well as enumerated
14625 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14627 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
14628 controlled, indicate the expected type of the dereference that is
14629 created for the call to Deep_Finalize, to prevent spurious errors when
14630 the designated type is private and completed with a derivation from
14631 another private type.
14633 2005-07-04 Vincent Celier <celier@adacore.com>
14635 * make.adb (Change_To_Object_Directory): When unable to change the
14636 current dir to the object directory, output the full path of the
14639 2005-07-04 Matthew Gingell <gingell@adacore.com>
14641 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
14643 * indepsw-linux.adb: Replace by...
14645 * indepsw-gnu.adb: ...this new file
14647 2005-07-04 Vincent Celier <celier@adacore.com>
14649 * mlib-prj.adb (Auto_Initialize): New constant String
14650 (SALs_Use_Constructors): New Boolean function
14651 (Build_Library): Call gnatbind with Auto_Initialize switch when
14652 SALs_Use_Constructors returns True.
14654 * mlib-tgt.ads: Minor reformatting
14656 * mlib-utl.ads: Minor reformatting
14658 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
14660 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14662 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
14663 single protected declarations can have an interface list.
14664 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
14665 with seriously malformed entry declarations, and lead to compilation
14666 abandoned messages.
14668 2005-07-04 Javier Miranda <miranda@adacore.com>
14670 * par-load.adb: Load the context items in two rounds.
14672 2005-07-04 Robert Dewar <dewar@adacore.com>
14674 * scng.adb: Do not consider Mod used as an attribute to be a keyword
14676 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14677 Javier Miranda <miranda@adacore.com>
14679 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
14680 type extension needs a limited view.
14681 Remove previous restriction on private types available through the
14682 limited-view (only tagged private types were previously allowed).
14683 (Install_Withed_Unit): In the code that implements the
14684 legality rule given in AI-377, exclude a child unit with the name
14685 Standard, because it is a homonym of the Standard environment package.
14687 2005-07-04 Thomas Quinot <quinot@adacore.com>
14689 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
14690 overloaded function call, carry interpretations from the original tree
14693 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14695 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
14696 types check whether some designated type is a limited view, and use
14697 the non-limited view if available.
14699 2005-07-04 Gary Dismukes <dismukes@adacore.com>
14701 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
14702 constraint of full view of a private view T1 if present, when T2 is a
14703 discriminated full view.
14705 2005-07-04 Thomas Quinot <quinot@adacore.com>
14707 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
14708 actual that is a view conversion of a bit packed array reference.
14710 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14712 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
14713 present before checking whether an interface type covers a synchronized
14716 2005-07-04 Ed Schonberg <schonberg@adacore.com>
14718 * sem_util.adb (Is_Object_Reference): An indexed or selected component
14719 whose prefix is an implicit dereference is an object reference. Removes
14720 spurious errors when compiling with -gnatc.
14722 2005-07-04 Robert Dewar <dewar@adacore.com>
14725 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
14727 2005-07-04 Matthew Gingell <gingell@adacore.com>
14729 * tracebak.c: Enable tracebacks on ia64 platforms
14731 2005-07-04 Vincent Celier <celier@adacore.com>
14733 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
14734 the GNAT BIND command, as gnatbind accepts multiples ALI files with
14735 the -L or -n switches.
14737 2005-07-04 Vincent Celier <celier@adacore.com>
14739 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
14740 correctly computed and the main project data is not modified while
14742 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
14743 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
14744 c++linker as this does not work on some platforms.
14746 2005-07-04 Matthew Heaney <heaney@adacore.com>
14748 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
14750 * a-coinve.adb: Perform constraint checks explicitly.
14752 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14753 Thomas Quinot <quinot@adacore.com>
14755 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
14756 new target gen-soccon.
14758 2005-07-04 Robert Dewar <dewar@adacore.com>
14760 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
14762 2005-07-04 Thomas Quinot <quinot@adacore.com>
14764 * g-socket.ads (Check_Selector): Minor rewording of comment.
14766 2005-07-04 Vincent Celier <celier@adacore.com>
14768 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
14770 2005-07-04 Thomas Quinot <quinot@adacore.com>
14772 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
14774 2005-07-04 Sergey Rybin <rybin@adacore.com>
14776 * gnat_ugn.texi: Add description of --eol gnatpp option
14778 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
14779 Thomas Quinot <quinot@adacore.com>
14781 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
14782 if the user wants all calls of a subprogram to be flagged,
14783 independently of whether they are made from within the same unit or
14785 Mention restriction for pragma Linker_Alias on some platforms.
14786 Document pragma Linker_Constructor and Linker_Destructor.
14787 Rewrite documentation of Weak_External, Linker_Section and
14788 Linker_Alias pragmas.
14790 2005-07-04 Arnaud Charlet <charlet@adacore.com>
14792 * s-stausa.ads, s-stausa.adb: New files.
14794 2005-06-30 Kelley Cook
14796 * all files: Update FSF address in copyright headers.
14797 * gen-soccon.co (main): Output new FSF address in generated files.
14799 2005-06-28 Paul Brook <paul@codesourcery.com>
14801 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
14803 2005-06-14 Olivier Hainque <hainque@adacore.com>
14804 Eric Botcazou <ebotcazou@adacore.com>
14806 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
14807 exc_unwind, now that we are generating proper .debug_frame output for
14810 * tracebak.c: Remove the mips-irix section, as we are now using the
14811 s-mastop based unwinder again.
14812 Under SPARC/Solaris, take into account the stack bias to compute the
14813 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
14816 2005-06-14 Doug Rupp <rupp@adacore.com>
14818 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
14820 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
14822 2005-06-14 Pascal Obry <obry@adacore.com>
14824 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
14825 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
14826 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
14829 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
14830 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
14831 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
14832 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
14833 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
14834 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
14835 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
14836 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
14837 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
14838 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
14839 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
14840 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
14841 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
14842 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
14843 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
14844 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
14845 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
14846 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
14847 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
14848 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
14849 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
14850 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
14851 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
14852 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
14853 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
14854 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
14855 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
14856 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
14857 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
14858 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
14859 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
14860 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
14861 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
14862 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
14863 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
14864 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
14865 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
14866 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
14867 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
14868 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
14869 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
14870 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
14871 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
14872 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
14873 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
14874 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
14875 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
14876 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
14877 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
14878 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
14879 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
14880 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
14881 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
14882 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
14883 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
14884 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
14885 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
14886 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
14887 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
14888 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
14889 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
14890 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
14891 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
14892 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
14893 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
14894 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
14895 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
14896 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
14897 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
14898 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
14899 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
14900 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
14901 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
14902 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
14903 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
14904 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
14905 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
14906 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
14907 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
14908 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
14909 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
14910 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
14911 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
14912 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
14913 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
14914 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
14915 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
14916 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
14917 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
14918 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
14919 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
14920 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
14921 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
14922 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
14923 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
14924 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
14925 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
14926 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
14927 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
14928 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
14929 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
14930 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
14931 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
14932 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
14933 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
14934 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
14935 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
14936 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
14937 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
14938 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
14939 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
14940 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
14941 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
14942 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
14943 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
14944 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
14945 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
14946 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
14947 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
14948 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
14949 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
14950 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
14951 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
14952 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
14953 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
14954 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
14955 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
14956 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
14957 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
14958 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
14959 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
14960 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
14961 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
14963 2005-06-14 Jose Ruiz <ruiz@adacore.com>
14964 Arnaud Charlet <charlet@adacore.com>
14966 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
14967 longer protected objects. They have been replaced by lower-level
14968 suspension objects made up by a mutex and a condition variable (or
14969 their equivalent given a particular OS) plus some internal data to
14970 reflect the state of the suspension object.
14971 (Initialize, Finalize): Add this initialization procedure for
14972 Suspension_Object, which is a controlled type.
14973 (Finalize): Add the finalization procedure for Suspension_Object,
14974 which is a controlled type.
14976 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
14977 Ada.Synchronous_Task_Control because there is no longer a need for a
14978 VxWorks specific version of this package. Target dependencies
14979 has been moved to System.Task_Primitives.Operations.
14981 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
14983 (InitializeCriticalSection, EnterCriticalSection,
14984 LeaveCriticalSection, DeleteCriticalSection): Replace the type
14985 pCriticalSection by an anonymous access type so that we avoid problems
14986 of accessibility to local objects.
14988 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
14989 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
14990 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
14991 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
14992 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
14993 set the environment task mask here.
14994 (Current_State): Add this function that returns the state of the
14996 (Set_False): Add this procedure that sets the state of the suspension
14998 (Set_True): Add this procedure that sets the state of the suspension
14999 object to True, releasing the task that was suspended, if any.
15000 (Suspend_Until_True): Add this procedure that blocks the calling task
15001 until the state of the object is True. Program_Error is raised if
15002 another task is already waiting on that suspension object.
15003 (Initialize): Add this procedure for initializing the suspension
15004 object. It initializes the mutex and the condition variable which are
15005 used for synchronization and queuing, and it sets the internal state
15007 (Finalize): Add this procedure for finalizing the suspension object,
15008 destroying the mutex and the condition variable.
15010 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
15011 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
15012 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
15013 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
15014 which provides a low-level abstraction (using operating system
15015 primitives) for Ada.Synchronous_Task_Control.
15016 This object is made up by a mutex (for ensuring mutual exclusion), a
15017 condition variable (for queuing threads until the condition is
15018 signaled), a Boolean (State) indicating whether the object is open,
15019 and a Boolean (Waiting) reflecting whether there is a task already
15020 suspended on this object.
15022 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
15023 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
15024 s-intman-vms.ads, s-intman-mingw.adb,
15025 (Initialize_Interrupts): Removed, no longer used.
15027 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
15028 (Setup_Interrupt_Mask): New procedure.
15030 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
15032 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
15034 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
15035 this is no longer done in the body of s-taprop
15036 (Server_Task): Explicitely test for Pending_Action in case
15037 System.Parameters.No_Abort is True.
15039 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
15040 is no longer done in the body of s-taprop
15042 2005-06-14 Robert Dewar <dewar@adacore.com>
15044 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
15045 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
15046 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
15047 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
15048 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
15049 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
15050 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
15051 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
15052 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
15053 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
15054 system-linux-hppa.ads, system-vms_64.ads,
15055 system-vxworks-alpha.ads: Minor comment update for
15056 AI-362 (unit is Pure).
15058 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
15059 Add pragma Pure_05 for AI-362
15060 Make remaining conversion functions obsolescent in Ada 95
15062 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
15063 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
15064 Add entries for a-wichun and a-zchuni
15065 Add a-widcha a-zchara for AI-395
15066 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
15068 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
15069 Add entries for a-wichun.o and a-zchuni.o
15070 Entries for a-widcha.o and a-zchara.o
15071 Add entry for a-chacon.o
15073 * a-ztenau.adb: Add with of Ada.Characters.Conversions
15075 * a-chacon.ads, a-chacon.adb: New files.
15077 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
15078 categorization violations.
15080 * a-strmap.ads: Add pragma Pure_05 for AI-362
15081 * a-strmap.ads: Add note on implicit categorization for AI-362
15083 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
15085 * par-prag.adb: Dummy entry for pragma Persistent_BSS
15086 Set Ada_Version_Explicit, for implementation of AI-362
15087 Add processing for pragma Pure_05 and Preelaborate_05
15088 Add entry for Assertion_Policy pragma
15090 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
15091 when needed for proper processing of categorization stuff
15094 For several cases, make errors in preealborate units warnings,
15095 instead of errors, if GNAT_Mode is set. For AI-362.
15097 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
15098 preelaborate unit is now warning if in GNAT mode
15100 * s-stoele.ads: Document AI-362 for pragma preelaborate
15102 2005-06-14 Doug Rupp <rupp@adacore.com>
15104 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
15105 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
15106 Default_Exception_Msg_Max_Length: new parameter.
15108 * a-except.ads: (Exception_Msg_Max_Length): Set to
15109 System.Parameters.Default_Exception_Msg_Max_Length
15110 Add pragma Preelaborate_05 for AI-362
15111 Add warnings off to allow categorization violations for AI-362
15113 2005-06-14 Vincent Celier <celier@adacore.com>
15115 * gnatsym.adb: Adapt to modification of package Symbols: procedure
15116 Process is now in package Processing.
15118 * symbols.ads, symbols.adb:
15119 (Processing): New package, containing procedure Process
15121 * symbols-vms-alpha.adb:
15122 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
15124 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
15125 symbols-processing-vms-ia64.adb: New files.
15127 2005-06-14 Pascal Obry <obry@adacore.com>
15129 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
15130 implementation. This new version generates the proper DllMain routine
15131 to initialize the SAL. The DllMain is generated in Ada and compiled
15132 before being added as option to the library build command.
15134 2005-06-14 Doug Rupp <rupp@adacore.com>
15135 Pascal Obry <obry@adacore.com>
15137 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
15138 call to decc$translate_vms.
15139 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
15140 need to remove those quotes before catenating the filename.
15141 (__gnat_locate_exec_on_path): improvements to the Win32 section:
15142 * avoid allocating the memory twice for better efficiency;
15143 * allocate 32K buffer for environment expansion as suggested by MSDN;
15144 * prepend ".;" to the path so that current directory is searched too.
15146 2005-06-14 Robert Dewar <dewar@adacore.com>
15148 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
15149 instead of raising CE (AI-241)
15150 Add warnings off to allow categorization violations for AI-362
15152 2005-06-14 Robert Dewar <dewar@adacore.com>
15154 * ali-util.adb, gnatbind.adb: Remove references to
15155 Force_RM_Elaboration_Order.
15157 * switch-b.adb: Remove recognition of -f switch
15159 2005-06-14 Pascal Obry <obry@adacore.com>
15161 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
15162 implementation which is slightly more efficient.
15164 2005-06-14 Gary Dismukes <dismukes@adacore.com>
15165 Javier Miranda <miranda@adacore.com>
15166 Ed Schonberg <schonberg@adacore.com>
15167 Hristian Kirtchev <kirtchev@adacore.com>
15169 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
15170 allocator's designated type is a class-wide type, and compiling for
15171 Ada 2005, emit a run-time check that the accessibility level of the
15172 type given in the allocator's expression is not deeper than the level
15173 of the allocator's access type.
15175 (Tagged_Membership): Modified to gives support to abstract interface
15178 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
15180 (Descendant_Tag): New predefined function
15181 (Is_Descendant_At_Same_Level): New predefined function
15182 (Get_Access_Level): New private function
15183 (Set_Access_Level): New private procedure
15184 (IW_Membership): New function. Given the tag of an object and the tag
15185 associated with an interface, evaluate if the object implements the
15187 (Register_Interface_Tag): New procedure used to initialize the table of
15188 interfaces used by the IW_Membership function.
15189 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
15190 of the dispatch table.
15191 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
15192 table of interfaces of the parent.
15193 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
15194 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
15195 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
15196 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
15197 Ada 2005 semantics for the new predefined function.
15199 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
15200 call to Descendant_Tag rather than Internal_Tag.
15201 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
15202 the accessibility level of the attribute's Item parameter is not deeper
15203 than the level of the attribute's prefix type. Tag_Error is raised if
15204 the check fails. The check is only emitted for Ada_05.
15205 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
15206 requested stream attribute, use it.
15207 (Expand_N_Attribute_Reference): If the designated type is an interface
15208 then rewrite the referenced object as a conversion to force the
15209 displacement of the pointer to the secondary dispatch table.
15210 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
15211 is a dereference of an object with a constrained partial view.
15213 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
15214 type is a class-wide type, emit a run-time check that the accessibility
15215 level of the returned object is not deeper than the level of the
15216 function's master (only when compiling for Ada 2005).
15218 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
15219 Action_Nb_Arg): Add entries for new Get_Access_Level and
15220 Set_Access_Level routines in these tables.
15221 (Make_DT): Generate a call to set the accessibility level of the
15222 tagged type in its TSD.
15223 (Make_DT): Code cleanup. The functionality of generating all the
15224 secondary dispatch tables has been moved to freeze_record_type.
15225 (Make_Abstract_Interface_DT): Minor code cleanup.
15226 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
15227 this subprogram implements a new algorithm that provides the
15228 same functionality and it is more clear in case of primitives
15229 associated with abstract interfaces.
15230 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
15231 clean up, the functionality of this subprogram is now provided
15232 by Set_All_DT_Position.
15233 (Write_DT): New subprogram: a debugging procedure designed to be called
15234 within gdb to display the dispatch tables associated with a tagged
15236 (Collect_All_Interfaces): New subprogram that collects the whole list
15237 of interfaces that are directly or indirectly implemented by a tagged
15239 (Default_Prim_Op_Position): New subprogram that returns the fixed
15240 position in the dispatch table of the default primitive operations.
15241 (Expand_Interface_Actuals): New subprogram to generate code that
15242 displaces all the actuals corresponding to class-wide interfaces to
15243 reference the interface tag of the actual object.
15244 (Expand_Interface_Conversion): New subprogram. Reference the base of
15245 the object to give access to the interface tag associated with the
15246 secondary dispatch table.
15247 (Expand_Interface_Thunk): New subprogram that generates the code of the
15248 thunk. This is required for compatibility with the C+ ABI.
15249 (Make_Abstract_Interface_DT): New subprogram that generate the
15250 declarations for the secondary dispatch tables associated with an
15251 abstract interface.
15252 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
15253 attribute for each primitive operation covering interface subprograms
15254 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
15255 These subprograms were upgraded to give support to abstract interfaces
15257 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
15258 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
15259 RE_Set_Access_Level.
15260 (RE_Unit_Table): Add entries for new Ada.Tags operations.
15261 Add support to call the followig new run-time subprograms:
15262 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
15264 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
15265 match its full declaration when both have an access definition with
15266 statically matching designated subtypes.
15267 (Analyze_Component_Declaration): Delete commented out code that was
15268 incorrectly setting the scope of an anonymous access component's type.
15269 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
15270 an access discriminant when the containing type is nonlimited.
15271 (Make_Incomplete_Type_Declaration): Create an incomplete type
15272 declaration for a record type that includes self-referential access
15274 (Check_Anonymous_Access_Types): Before full analysis of a record type
15275 declaration, create anonymous access types for each self-referential
15277 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
15278 an access component in this context is a Local_Anonymous_Access, for
15279 proper accessibility checks.
15280 (Access_Definition): Set properly the scope of the anonymous access type
15281 created for a stand-alone access object.
15282 (Find_Type_Of_Object): An object declaration may be given with an access
15284 (Complete_Subprograms_Derivation): New subprogram used to complete
15285 type derivation of private tagged types implementing interfaces.
15286 In this case some interface primitives may have been overriden
15287 with the partial-view and, instead of re-calculating them, they
15288 are included in the list of primitive operations of the full-view.
15289 (Build_Derived_Record_Type): Modified to give support to private
15290 types implemening interfaces.
15291 (Access_Definition): Reject ALL on anonymous access types.
15292 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
15293 type derivation to occur at a deeper accessibility level than the
15295 For the case of derivation within a generic body however, disallow the
15296 derivation if the derived type has an ancestor that is a formal type
15297 declared in the formal part of an enclosing generic.
15298 (Analyze_Object_Declaration): For protected objects, remove the check
15299 that they cannot contain interrupt handlers if not declared at library
15301 (Add_Interface_Tag_Components): New subprogram to add the tag components
15302 corresponding to all the abstract interface types implemented by a
15303 record type or a derived record type.
15304 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
15305 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
15306 Process_Full_View, Record_Type_Declaration): Modified to give
15307 support to abstract interface types
15308 (Collect_Interfaces): New subprogram that collects the list of
15309 interfaces that are not already implemented by the ancestors
15310 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
15311 when partial view has no discriminants and full view has defaults.
15312 (Constrain_Access): Reject a constraint on a general access type
15313 if the discriminants of the designated type have defaults.
15314 (Access_Subprogram_Declaration): Associate the Itype node with the inner
15315 full-type declaration or subprogram spec. This is required to handle
15316 nested anonymous declarations.
15317 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
15318 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
15319 Process_Full_View, Record_Type_Declaration): Modified to give
15320 support to abstract interface types
15321 (Derive_Subprograms): Addition of a new formal to indicate if
15322 we are in the case of an abstact-interface derivation
15323 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
15324 to the specification because it is requied to analyze all the
15325 identifiers found in a list of interfaces
15327 * debug.adb: Complete documentation of flag "-gnatdZ"
15329 * exp_ch3.adb: Implement config version of persistent_bss pragma
15330 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
15331 testing for TSS presence to properly enforce visibility rules.
15332 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
15333 Make_Abstract_Interfaces_DT to generate the secondary tables
15334 associated with abstract interfaces.
15335 (Build_Init_Procedure): Modified to initialize all the tags
15337 (Component_Needs_Simple_Initialization): Similar to other tags,
15338 interface tags do not need initialization.
15339 (Freeze_Record_Type): Modified to give support to abstract interface
15341 (Expand_N_Object_Declaration): Do not generate an initialization for
15342 a scalar temporary marked as internal.
15344 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
15345 in-out parameter that is a component in an initialization procedure,
15346 whose constraint might depend on discriminants, and that may be
15347 misaligned because of packing or representation clauses.
15348 (Is_Legal_Copy): New predicate to determine whether a possibly
15349 misaligned in-out actual can actually be passed by copy/return. This
15350 is an error in case the type is by_reference, and a warning if this is
15351 the consequence of a DEC import pragma on the subprogram.
15352 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
15354 (Expand_Inlined_Call): Mark temporary generated for the return value as
15355 internal, so that no useless scalar normalization is generated for it.
15356 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
15357 null procedure can always be inlined.
15358 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
15359 procedure, generate an explicit empty body for it.
15361 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
15362 Given a type implementing an interface, returns the corresponding
15363 access_disp_table value.
15364 (Find_Interface_Tag): New subprogram. Given a type implementing an
15365 interface, returns the record component containing the tag of the
15367 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
15368 previous ones that return the corresponding tag and access_disp_table
15370 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
15371 is a predefined primitive operation.
15372 (Expand_Subtype_From_Expr): If the expression is a selected component
15373 within an initialization procedure, compute its actual subtype, because
15374 the component may depend on the discriminants of the enclosing record.
15376 * i-cpp.ads, i-cpp.adb:
15377 This package has been left available for compatibility with previous
15378 versions of the frontend. As part of the new layout this is now a
15379 dummy package that uses declarations available at a-tags.ads
15381 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
15382 "constant access" and "aliased [constant] access" when not compiling
15384 Suppress Ada 2005 keyword warning if -gnatwY used
15385 (P_Identifier_Declarations): Add support for object declarations with
15386 access definitions.
15387 (Private_Extension_Declaration): Complete the documentation
15388 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
15389 attribute in case of private extension declaration
15390 (P_Type_Declaration): Mark as "abstract" the type declarations
15391 corresponding with protected, synchronized and task interfaces
15392 (P_Declarative_Items): "not" and "overriding" are overriding indicators
15393 for a subprogram or instance declaration.
15395 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
15396 instantiation that is a dispatching operation has controlling access
15397 parameters that are null excluding.
15398 Save and restore Ada_Version_Explicit, for implementation of AI-362
15399 (Validate_Derived_Type_Instance): Add check for abstract interface
15401 (Analyze_Formal_Package): Establish Instantiation source for the copy of
15402 the generic that is created to represent the formal package.
15403 (Analyze_Package_Instantiation): Instantiate body immediately if the
15404 package is a predefined unit that contains inlined subprograms, and
15405 we are compiling for a Configurable_Run_Time.
15406 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
15407 If the program has a null default, generate an empty body for it.
15409 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
15410 error message condition, null procedures are correctly detected now.
15411 (New_Overloaded_Entity): Bypass trivial overriding indicator check
15412 for subprograms in the context of protected types. Instead, the
15413 indicator is examined in Sem_Ch9 while analysing the subprogram
15415 (Check_Overriding_Indicator): Check consistency of overriding indicator
15416 on subprogram stubs as well.
15417 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
15419 (Analize_Subprogram_Specification): When analyzing a subprogram in which
15420 the type of the first formal is a concurrent type, replace this type
15421 by the corresponding record type.
15422 (Analyze_Subprogram_Body): Undo the previous work.
15423 (Analyze_Procedure_Call): If the call has the form Object.Op, the
15424 analysis of the prefix ends up analyzing the call itself, after which
15426 (Has_Interface_Formals): New subprogram subsidiary to analyze
15427 subprogram_specification that returns true if some non
15428 class-wide interface subprogram is found
15429 (New_Overloaded_Entity): Modified to give support to abstract
15431 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
15432 access to subprograms must be recursive.
15433 (Is_Unchecked_Conversion): Improve the test that recognizes
15434 instantiations of Unchecked_Conversion, and allows them in bodies that
15435 are to be inlined by the front-end. When the body comes from an
15436 instantiation, a reference to Unchecked_Conversion will be an
15437 Expanded_Name, even though the body has not been analyzed yet.
15438 Replace Is_Overriding and Not_Overriding in subprogram_indication with
15439 Must_Override and Must_Not_Override, to better express intent of AI.
15440 (Analyze_Subprogram_Body): If an overriding indicator is given, check
15441 that it is consistent with the overrinding status of the subprogram
15443 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
15445 If the subprogram is a null procedure, indicate that it does not need
15448 * sem_disp.adb (Check_Controlling_Type): Give support to entities
15449 available through limited-with clauses.
15450 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
15451 allowed as the last primitive of a tagged type if it has no previous
15453 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
15454 to give support to abstract interface types
15456 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
15457 in the case where the target type is an anonymous access type of an
15458 object or component (that is, when Is_Local_Anonymous_Access is true).
15459 Prevent the special checks for conversions of access discriminants in
15460 the case where the discriminant belongs to a nonlimited type, since
15461 such discriminants have their accessibility level defined in the same
15462 way as a normal component of an anonymous access type.
15463 (Resolve_Allocator): When an allocator's designated type is a class-wide
15464 type, check that the accessibility level of type given in the
15465 allocator's expression or subtype indication is not statically deeper
15466 than the level of the allocator's access type.
15467 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
15468 name in a discriminant constraint of a record component.
15469 (Resolve_Explicit_Dereference): Do not check whether the type is
15470 incomplete when the dereference is a use of an access discriminant in
15471 an initialization procedure.
15472 (Resolve_Type_Conversion): Handle conversions to abstract interface
15474 (Valid_Tagged_Conversion): The conversion of a tagged type to an
15475 abstract interface type is always valid.
15476 (Valid_Conversion): Modified to give support to abstract interface types
15477 (Resolve_Actuals): Enable full error reporting on view conversions
15478 between unrelated by_reference array types.
15479 The rule for view conversions of arrays with aliased components is
15480 weakened in Ada 2005.
15481 Call to obsolescent subprogram is now considered to be a violation of
15482 pragma Restrictions (No_Obsolescent_Features).
15483 (Check_Direct_Boolean_Operator): If the boolean operation has been
15484 constant-folded, there is nothing to check.
15485 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
15486 check on possible violation of restriction No_Direct_Boolean_Operators
15487 until after expansion of operands, to prevent spurious errors when
15488 operation is constant-folded.
15490 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
15491 Has_Compatible_Type): Modified to give support to abstract interface
15493 (Interface_Present_In_Ancestor): New function to theck if some ancestor
15494 of a given type implements a given interface
15496 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
15497 prefix is a parameterless function that returns an access_to_procedure.
15498 (Transform_Object_Operation): Handle properly function calls of the
15499 form Obj.Op (X), which prior to analysis appear as indexed components.
15500 (Analyze_One_Call): Complete the error notification to help new Ada
15502 (Analyze_Allocator): For an allocator without an initial value, where
15503 the designated type has a constrained partial view, a discriminant
15504 constraint is illegal.
15506 2005-06-14 Robert Dewar <dewar@adacore.com>
15508 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
15509 do with treatment of Set_Col when positioned at end of line character.
15511 2005-06-14 Robert Dewar <dewar@adacore.com>
15513 * atree.adb: (Elist*): Protect against uninitialized field
15515 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15517 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
15518 for an attribute reference that returns an access type.
15519 (Apply_Discriminant_Check): No need for check if (designated) type has
15520 constrained partial view.
15522 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
15523 both bound checks, rather than a conjunction.
15524 (Insert_Valid_Check): If the expression is an actual that is an indexed
15525 component of a bit-packed array, force expansion of the packed element
15526 reference, because it is specifically inhibited elsewhere.
15528 2005-06-14 Vincent Celier <celier@adacore.com>
15530 * clean.adb (Clean_Project): Correctly delete executable specified as
15531 absolute path names.
15533 * make.adb (Gnatmake): Allow relative executable path names with
15534 directory information even when project files are used.
15535 (Change_To_Object_Directory): Fail gracefully when unable to change
15536 current working directory to object directory of a project.
15537 (Gnatmake): Remove exception handler that could no longer be exercized
15538 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
15539 may be deallocated by Normalize_Arguments.
15540 (Collect_Arguments): Eliminate empty arguments
15542 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
15543 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
15544 (Check_Project): Return False when Project is No_Project. Return True
15545 when All_Projects is True.
15546 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
15547 All_Projects to True.
15550 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15551 Javier Miranda <miranda@adacore.com>
15552 Thomas Quinot <quinot@adacore.com>
15553 Robert Dewar <dewar@adacore.com>
15554 Hristian Kirtchev <kirtchev@adacore.com>
15555 Gary Dismukes <dismukes@adacore.com>
15557 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
15558 anonymous access types, to indicate that the accessibility level of
15559 the type is determined by that of the enclosing declaration.
15560 (Has_Persistent_BSS): New flag
15561 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
15562 of this attribute with functions.
15563 (Is_Primitive_Wrapper): Remove the barrier.
15564 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
15565 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
15567 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
15568 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
15570 (Is_Pure_Unit_Access_Type): New flag
15571 (Abstract_Interfaces): Complete the assertion to cover all usages.
15572 (Set_Is_Interface): Complete the assertion to cover all usages.
15573 (Is_Primitive_Wrapper): New attribute.
15574 (Is_Obsolescent): Now applies to all entities (though it is only set
15575 for subprograms currently)
15576 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
15577 which solves various problems concerning access subtypes.
15578 (Has_Persistent_BSS): New flag
15579 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
15580 Remove these subprograms because this attribute is currently
15583 Has_Specified_Stream_Input (Flag190)
15584 Has_Specified_Stream_Output (Flag191)
15585 Has_Specified_Stream_Read (Flag192)
15586 Has_Specified_Stream_Write (Flag193)
15587 Present in all type and subtype entities. Set for a given view if the
15588 corresponding stream-oriented attribute has been defined by an
15589 attribute definition clause. When such a clause occurs, a TSS is set
15590 on the underlying full view; the flags are used to track visibility of
15591 the attribute definition clause for partial or incomplete views.
15592 (Is_Pure_Unit_Access_Type): New flag
15593 Clarify use of Is_Internal.
15594 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
15595 internally generated to wrap the invocation of tasks and protected
15596 types that implement interfaces.
15597 (Implementation_Base_Type): Documentation correction
15598 (Is_Obsolescent): Now applies to all entities (though it is only set
15599 for subprograms currently)
15600 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
15601 which solves various problems concerning access subtypes.
15603 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
15604 for examined parameters. Identify unequal parameter list lengths as
15605 non-conformant parameters.
15606 (Overriding_Possible): Do not check for "All" qualifier in declaration
15607 of controlling access parameter, following prescription of AI-404.
15608 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
15609 that build the procedure body that wraps an entry invocation
15610 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
15611 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
15612 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
15613 give support to abstract interface types
15615 * freeze.adb (Freeze_Entity): Issue error message if
15616 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
15617 type has no storage pool (Ada 2005) AI-366.
15618 Also modified to give support to abstract interface types
15619 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
15620 Inline_Always pragma.
15622 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
15623 now begin an entry declaration.
15624 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
15625 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
15626 a subprogram declaration preceded by an overriding indicator.
15627 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
15628 declarations or subprogram declarations preceded by reserved words
15629 "not" or "overriding".
15630 (P_Entry_Declaration): Update comment. Parse and check overriding
15631 indicator, set semantic flags of entry declarations.
15632 (P_Task): New error message in case of private applied
15633 to a task type declaration.
15634 (P_Protected): New error message in case of private applied
15635 to a task type declaration.
15637 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
15638 in which the full view of a type implementing an interface is a
15640 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
15641 Declare_Inherited_Private_Subprograms): If an explicit operation
15642 overrides an operation that is inherited in the private part, mark the
15643 explicit one as overriding, to enable overriding indicator checks.
15644 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
15645 full view to partial view, to simplify handling in back-end.
15647 * sprint.adb: Print interface lists where needed: derived types,
15648 protected types, task types.
15649 output "is null" for null procedures. Part of implementation of
15651 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
15652 relaxation of rules for access types in pure, shared passive partitions.
15654 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
15655 first read discriminants into temporary objects, performing checks on
15656 the read values, then possibly performing discriminant checks on the
15657 actual (if it is constrained), and only finally reading the components
15658 into a constrained temporary object.
15659 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
15660 case of reading discriminants of a mutable record type to recognize
15661 the new form of the code generated by
15662 Build_Mutable_Record_Read_Procedure.
15664 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
15665 of a simple call to Make_TSS_Name.
15666 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
15667 buffer, in order for Is_TSS to work correctly on local TSS names.
15669 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
15670 Is_Local_Anonymous_Access to check legaliy of attributes in the
15671 context of access components and stand-alone access objects.
15672 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
15673 treated as available for a limited private type if there is an
15674 attribute_definition_clause that applies to its full view, but not in
15675 other cases where the attribute is available for the full view
15676 (specifically, the sole fact that the full view is non-limited does not
15677 make the attribute available for the partial view).
15678 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
15679 non-overloaded intrinsic subprogram.
15680 (Check_Stream_Attribute): Reject an attribute reference for an
15681 unavailable stream attribute even if the prefix is not a limited type
15682 (case of a 'Input attribute reference for an abstract, non-classwide
15684 (Stream_Attribute_Available): New function to determine whether a stream
15685 attribute is available at a place.
15686 (Check_Attribute): Use Stream_Attribute_Available instead of just
15687 testing for TSS presence on the implementation base type.
15688 (Analyze_Attribute): Modified to give support to task interfaces.
15689 (Analyze_Access_Attribute): Add error check for use of an Access (or
15690 Unrestricted_Access) attribute with a subprogram marked as
15692 (Analyze_Attribute, case Attribute_Address): Add error check for use of
15693 an Address attribute with a subprogram marked as Inline_Always.
15694 Update Eval_Attribute to handle new value of Width from AI-395
15696 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
15697 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
15698 Factor common code across the stream-oriented attribute circcuits into
15699 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
15700 processing is functionally identical to the previous duplicated one,
15701 except that an expression that denotes an abstract subprogram will now
15702 be rejected, as mandated by AI-195 item 5.
15704 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
15705 Is_Local_Anonymous_Access to apply accessibility checks to access
15706 components and stand-alone access objects.
15707 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
15709 (Is_Potentially_Persistent_Type): New function
15710 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
15711 a heap-object whose type has a constrained partial view, the object is
15712 unconstrained and the component may depend on a discriminant, making its
15715 * sinfo.ads, sinfo.adb
15716 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
15717 (Must_Override): Flag applicable to N_Entry_Declaration.
15718 Indicate that interface_list can appear in single task and single
15719 protected declarations.
15720 Replace Is_Overriding and Not_Overriding with Must_Override and
15721 Must_Not_Override, to better express intent of AI.
15722 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
15723 of an overriding indicator in a subprogram or instance.
15724 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
15725 Add the overriding indicator [[not] overriding] construct to the
15726 following grammar productions:
15728 GENERIC_INSTANTIATION
15729 SUBPROGRAM_SPECIFICATION
15731 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
15732 can start with an overriding indicator.
15734 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
15735 flags accordingly on subrogram specifications or instances.
15738 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
15739 overriding_indicator, if present, is consistent with status of spec.
15740 Improve error message for null-excluding checks on controlling access
15742 (Check_In_Previous_With_Clause): Protect the frontend against
15743 previously reported critical errors in the context clauses.
15744 Save and restore Ada_Version_Explicit, for implementation of AI-362
15745 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
15746 operation verify that controlling formals of the renamed entity that
15747 are access parameters are explicitly non-null.
15748 (Find_Expanded_Name): Improve error message when prefix is an illegal
15749 reference to a private child unit.
15751 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
15752 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
15753 Rewrite to correspond to new wide character names in AI-395
15755 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
15756 default procedures.
15758 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15759 Robert Dewar <dewar@adacore.com>
15761 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
15762 code, not on the bodies of predefined operations, to cut down on
15765 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15767 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
15768 be expanded in place. The size computation does not require a
15769 subtraction, which would raise an exception on a compiler built with
15770 assertions when the upper bound is Integer'first.
15771 (Flatten): For an array of composite components, take into account the
15772 size of the components to determine whether it is safe to expand the
15773 array into a purely positional representation.
15775 2005-06-14 Thomas Quinot <quinot@adacore.com>
15777 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
15778 denoting a formal parameter into account.
15780 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15782 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
15783 the entry_call alternative of a conditional entry call, wrap the
15784 conditional entry call itself.
15786 2005-06-14 Nicolas Setton <setton@adacore.com>
15787 Ed Schonberg <schonberg@adacore.com>
15789 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
15790 the "simple_choice" member in a variant record, in accordance with the
15791 description in the package spec: the information output for a constant
15792 should be "S number", not "SS number".
15793 (Get_Encoded_Name): Return at once if not generating code. Avoids name
15794 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
15796 2005-06-14 Thomas Quinot <quinot@adacore.com>
15798 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
15799 RACW without any primitives, do not generate the if statement for
15800 dispatching by name in the PolyORB/DSA case, as it would be malformed
15801 (it would have an Elsif_Parts list that is not No_List, but with a
15804 2005-06-14 Robert Dewar <dewar@adacore.com>
15806 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
15808 2005-06-14 Jose Ruiz <ruiz@adacore.com>
15810 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
15811 can determine whether pragma Suppress_Exception_Locations is in effect.
15813 * utils2.c (build_call_raise): Do not pass the file name to the
15814 exception handler if pragma Suppress_Exception_Locations is in effect.
15815 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
15817 2005-06-14 Emmanuel Briot <briot@adacore.com>
15819 * g-debpoo.adb (Deallocate, Dereference): Improve output.
15821 2005-06-14 Nicolas Roche <roche@adacore.com>
15823 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
15825 (Next_Level): Fix minor bug in handling of ../dir case
15826 (Read): Add dir separator to Directory name so that "" is understood as
15829 2005-06-14 Pascal Obry <obry@adacore.com>
15831 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
15832 releasing the items.
15834 2005-06-14 Vincent Celier <celier@adacore.com>
15835 Cyrille Comar <comar@adacore.com>
15837 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
15838 with output file descriptor and with output file name.
15839 (Dup, Dup2): Now global procedures as they are used by two subprograms
15840 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
15842 2005-06-14 Thomas Quinot <quinot@adacore.com>
15845 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
15847 (Create_Selector): Bind listening socket used to create the signalling
15848 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
15849 Set listen backlog to 1 to ensure that we detect socket theft by a
15850 failure of our own connect(2) call.
15851 (Check_Selector): Improve documentation of the selector mechanism.
15852 (Broadcast_Inet_Addr): New constant.
15854 2005-06-14 Gary Dismukes <dismukes@adacore.com>
15856 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
15857 type which turns out to be an incomplete and incorrect fix.
15858 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
15859 of the type is declared in a record (for determination of insertion
15861 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
15862 a private type and ensure that the primary entity is used for the type
15863 of the newly created function's V formal by taking the Etype of the
15866 2005-06-14 Javier Miranda <miranda@adacore.com>
15867 Jose Ruiz <ruiz@adacore.com>
15868 Robert Dewar <dewar@adacore.com>
15869 Ed Schonberg <schonberg@adacore.com>
15871 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
15872 that indicates if we are parsing a compilation unit found in a
15873 limited-with clause.
15874 It is use to avoid the circularity check.
15876 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
15877 we are parsing a compilation unit found in a limited-with clause. This
15878 is use to avoid the circularity check.
15880 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
15881 unit as a consequence of parsing a limited-with clause. This is used
15882 to avoid the circularity check.
15884 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
15885 (Analyze_Context): Limited-with clauses are now allowed
15886 in more compilation units.
15887 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
15888 againts previously reported critical errors in context clauses
15889 (Install_Limited_Withed_Unit): Code cleanup plus static detection
15890 of two further errors: renamed subprograms and renamed packages
15891 are not allowed in limited with clauses.
15892 (Install_Siblings): Do not install private_with_clauses on the package
15893 declaration for a non-private child unit.
15894 (Re_Install_Parents): When a parent of the subunit is reinstalled,
15895 reset visibility of child units properly.
15896 (Install_Withed_Unit): When a child unit appears in a with_clause of its
15897 parent, it is immediately visible.
15899 2005-06-14 Ed Schonberg <schonberg@adacore.com>
15900 Emmanuel Briot <briot@adacore.com>
15902 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
15903 declared within an inlined body as referenced, to prevent spurious
15905 (Output_One_Ref): If an entity renames an array component, indicate in
15906 the ALI file that this aliases (renames) the array. Capture as well
15907 function renamings that rename predefined operations.
15908 Add information about generic parent for package and subprogram
15910 (Get_Type_Reference): For a subtype that is the renaming of an actual in
15911 an instantiation, use the first_subtype to ensure that we don't generate
15912 cross-reference information for internal types.
15913 For objects and parameters of a generic private type, retain the '*'
15914 indicator to distinguish such an entity from its type.
15916 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
15917 to store information about instantiated entities.
15919 * ali.adb (Scan_ALI): Add support for parsing the reference to the
15922 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
15923 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
15926 2005-06-10 Doug Rupp <rupp@adacore.com>
15927 Arnaud Charlet <charlet@adacore.com>
15928 Olivier Hainque <hainque@adacore.com>
15929 Jose Ruiz <ruiz@adacore.com>
15931 * Make-lang.in: Add initialize.o when needed.
15932 Remove obsolete references to RT_FLAGS.
15933 Add missing dependencies for sdefault.o
15935 * initialize.c: New file.
15937 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
15938 [VMS] cond_signal_table: Fix problem in declaration.
15939 [VMS] __gnat_error_handler: rewrite.
15940 Move all __gnat_initialize() routines to initialize.c
15941 Specialize the former "hpux" section to "hppa hpux", as this is what the
15942 section really is here for and we now have other hpux ports that need
15943 different contents.
15944 (__gnat_adjust_context_for_raise) i386-linux: First version of this
15945 function for this target. Adjust PC by one in the machine context. This
15946 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
15947 it is more reliable to do that in the signal handler itself.
15948 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
15949 flags, so that the handler is passed the context structure to adjust
15950 prior to the raise.
15951 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
15952 SA_SIGINFO sigaction should look like. Call
15953 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
15954 Machine_State_Operations stuff.
15955 Add conditional code so that the x86_64 is also supported.
15957 2005-06-14 Pascal Obry <obry@adacore.com>
15959 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
15962 2005-06-14 Robert Dewar <dewar@adacore.com>
15964 * opt.ads, opt.adb: New flags for persistent_bss mode
15965 Add Ada_Version_Explicit, for implementation of AI-362
15966 Add Assertions_Enabled_Config and associated handling
15967 Needed since setting can be changed with Assertion_Policy pragma
15968 Add new flag Warn_On_Ada_2005_Compatibility
15970 * switch-c.adb: Recognize -gnatwy/Y
15971 Set Ada_Version_Explicit, for implementation of AI-362
15972 The -gnatg switch now includes -gnatyu
15974 * usage.adb: Add -gnatwy/Y
15975 Remove wrong asterisk on -gnatwX line
15976 Add line for -gnatyu switch
15978 2005-06-14 Vincent Celier <celier@adacore.com>
15980 * osint.adb (Add_Default_Search_Dirs): Put source and object
15981 directories of project files before directories coming from
15982 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
15984 2005-06-14 Robert Dewar <dewar@adacore.com>
15987 * par-ch2.adb (Scan_Pragma_Argument): New procedure
15988 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
15990 2005-06-14 Vincent Celier <celier@adacore.com>
15992 * prep.adb (Preprocess): Ignore error when scanning the first token of
15995 2005-06-14 Vincent Celier <celier@adacore.com>
15997 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
15998 (Check_Stand_Alone_Library): If the specified reference symbol file does
15999 not exist, only issue a warning when the symbol policy is not
16000 Controlled. And, when symbol policy is Compliant, set the symbol
16001 policy to Autonomous.
16003 2005-06-14 Vincent Celier <celier@adacore.com>
16005 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
16006 when the project file in a with clause is not the last one, that is the
16007 project file name is followed by a comma.
16008 * prj-pp.adb: (First_With_In_List): New Boolean global variable
16009 (Print): Issue list of project files separated by commas in with clauses
16010 according to the values returned by Is_Not_Last_In_List.
16011 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
16012 (Set_Is_Not_Last_In_List): New procedure
16014 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
16016 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
16018 2005-06-14 Robert Dewar <dewar@adacore.com>
16020 * scng.adb: Add call to new Check_EOF routine
16021 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
16022 Add some comments regarding wide character handling
16024 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
16026 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
16028 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
16029 characters are now considered graphic characters and hence yield false
16032 * nmake.adt: Modify header so that xnmake does not generate output
16033 files with multiple blank lines.
16035 * treeprs.adt: Remove a blank line so that output from xtreeprs does
16036 not have an extra blank line
16038 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16040 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
16041 expression when the component type is an anonymous access type to
16042 ensure that appropriate accessibility checks are done.
16044 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
16045 expression of an assignment when the target object is of an anonymous
16046 access type. This ensures that required accessibility checks are done.
16047 (One_Bound): Move the check for type Universal_Integer to
16049 (Process_Bounds): Check whether the type of the preanalyzed range is
16050 Universal_Integer, and in that case set Typ to Integer_Type prior
16051 to setting the type of the original range and the calls to One_Bound.
16053 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16055 * sem_case.adb (Expand_Others_Choice): Improve warning.
16057 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16059 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
16060 constraint of full view if present, when other type is discriminated.
16061 (Eval_Relational_Op): Recognize tests of pointer values against Null,
16062 when the pointer is known to be non-null, and emit appropriate warning.
16064 2005-06-14 Robert Dewar <dewar@adacore.com>
16065 Ed Schonberg <schonberg@adacore.com>
16068 * sem_prag.adb: Implement pragma Persistent_BSS
16069 Remove obsolete pragma Persistent_Data, Persistent_Object
16070 Set Ada_Version_Explicit, for implementation of AI-362
16071 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
16072 Add processing for pragma Pure_05 and Preelaborate_05
16073 Add processing for Assertion_Policy pragma
16074 Add pragma identifiers for Assert
16075 (Analyze_Pragma, case Assert): Check number of arguments
16076 (Process_Inline): Additional guard against an illegal program, where the
16077 argument of the pragma is undefined, and warnings on redundant
16078 constructs are enabled.
16079 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
16080 Ada_05 to this pragma, specifying that the pragma is only active in
16082 (Check_Arg_Order): New procedure
16083 Add appropriate calls to this procedure throughout
16084 Also throughout, check entity name before doing any other checks
16086 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
16087 Remove obsolete pragma Persistent_Data, Persistent_Object
16088 Add entries for pragma Pure_05 and Preelaborate_05
16089 Add entries for Assertion_Policy pragma and associated names
16090 Add some names for pragma argument processing
16092 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
16094 2005-06-14 Ed Schonberg <schonberg@adacore.com>
16096 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
16097 appears within a negation (either from source or as a rewriting of
16098 inequality) adjust text of warning accordingly.
16100 2005-06-14 Thomas Quinot <quinot@adacore.com>
16102 * s-strxdr.adb: Follow AI95-00132
16104 2005-06-14 Arnaud Charlet <charlet@adacore.com>
16106 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
16108 2005-06-14 Arnaud Charlet <charlet@adacore.com>
16109 Jose Ruiz <ruiz@adacore.com>
16111 * s-tposen.adb, s-tpobop.adb
16112 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
16114 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
16115 there is no violation of the Max_Entry_Queue_Length restriction (if it
16116 has been set); Program_Error is raised otherwise.
16117 (Requeue_Call): Before requeuing the task on the target entry queue we
16118 check that there is no violation of the Max_Entry_Queue_Length
16119 restriction (if it has been set); Program_Error is raised otherwise.
16121 2005-06-14 Robert Dewar <dewar@adacore.com>
16123 * styleg.adb: Fix several remaining problems in -gnatyu switch
16124 Blank line count not reset at start
16125 Scanning outside source buffer in some cases
16126 Confusing message for blanks at end of file
16127 Non-empty blank lines not recognized
16129 * nmake.adt: Modify header so that xnmake does not generate output
16130 files with multiple blank lines.
16132 * treeprs.adt: Remove a blank line so that output from xtreeprs does
16133 not have an extra blank line
16135 2005-06-14 Sergey Rybin <rybin@adacore.com>
16137 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
16139 2005-06-14 Doug Rupp <rupp@adacore.com>
16140 Vincent Celier <celier@adacore.com>
16142 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
16145 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
16146 Remove "Library" command.
16147 Change keyword for style check -gnatyd from NOCRLF to
16149 Remove useless second style check keyword NONE
16150 Remove help documentation for inexistent style check keyword
16152 Add help documentation for style check keywords DOS_LINE_ENDINGS,
16153 UNNECESSARY_BLANK_LINES and XTRA_PARENS
16154 Add UNNECESSARY_BLANK_LINES for -gnatyu
16155 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
16157 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
16159 2005-06-14 Vincent Celier <celier@adacore.com>
16161 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
16162 gprmake was invoked with -d.
16163 (Compile_Sources): If -d was used, output the "completed ..." message
16164 for each compilation.
16165 (Scan_Arg): Recognize new switch -d
16166 When -c and at least one main is specified, set
16167 Unique_Compile to True to guarantee that no other sources will be
16170 2005-06-14 Matthew Heaney <heaney@adacore.com>
16172 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
16173 * a-swuwha.ads, a-swuwha.adb: New files
16175 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
16176 * a-szuzha.ads, a-szuzha.adb: New files.
16178 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
16179 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
16180 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
16181 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
16182 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
16183 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
16184 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
16185 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
16186 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
16187 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
16190 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
16191 Olivier Hainque <hainque@adacore.com>
16192 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16193 Pascal Obry <obry@adacore.com>
16195 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
16197 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
16198 making a temporary around a procedure call because of non-addressable
16200 (process_freeze_entity): If entity is a private type, capture size
16201 information that may have been computed for the full view.
16202 (tree_transform, case N_Allocator): If have initializing expression,
16203 check type for Has_Constrained_Partial_View and pass that to
16205 (tree_transform, case N_Return_Statement): Pass extra arg to
16208 * decl.c (annotate_value): Remove early return if -gnatR is not
16210 (gnat_to_gnu_field): Don't make a packable type for a component clause
16211 if the position is byte aligned, the field is aliased, and the clause
16212 size isn't a multiple of the packable alignment. It serves no useful
16213 purpose packing-wise and would be rejected later on.
16214 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
16217 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
16218 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
16220 (create_concat_name): Idem.
16222 2005-06-10 Robert Dewar <dewar@adacore.com>
16223 Eric Botcazou <ebotcazou@adacore.com>
16224 Ben Brosgol <brosgol@adacore.com>
16225 Cyrille Comar <comar@adacore.com>
16226 Sergey Rybin <rybin@adacore.com>
16227 Pascal Obry <obry@adacore.com>
16229 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
16230 Document second argument (Ada_05) of pragma Obsolescent
16231 Add note that call to subprogram marked with pragma Obsolescent
16232 is now considered to be a violation of program Restrictions
16233 (No_Obsolescent_Features).
16234 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
16235 that only machine-dependent attributes are supported.
16238 Commented out menu lines and empty section for gnatclean examples
16240 Fix some over long lines
16241 Clarify and enhance documentation of ADA_PROJECT_PATH.
16242 Rework section 2.11.2(3) about linking with a non-GNU compiler.
16243 Mention new switch -fcallgraph-info.
16244 Mention new switch -fstack-usage.
16245 For gnatpp, replace '-notab' with '-N' and add this option to Index
16246 Corrected VMS example.
16247 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
16249 Add documentation for -gnatyu switch (unnecessary blank lines)
16250 Document new switch -U for GNAT PRETTY and GNAT METRIC
16251 Add note about Stdcall being handled as C convention on non Windows OS.
16252 Remove some junk typo in description of gnatbind -S switch
16253 Remove reference to Extensions_Allowed pragma
16254 Document the new order of the directories to be searched (source and
16255 object directories of project files before directories in ADA_*_PATH
16256 environment variables.
16258 * g-trasym.ads: Document that IRIX is supported
16260 2005-06-10 Arnaud Charlet <charlet@adacore.com>
16262 * Makefile.in: Add initialize.o when needed.
16263 Adapt to new VMS package body Symbols and subunits
16264 No specialized version of a-sytaco is needed for VxWorks.
16266 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
16267 * a-zchara.ads, a-widcha.ads: New files.
16269 * system-hpux-ia64.ads: New file.
16271 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
16272 is imported from the VxWorks kernel.
16274 2005-06-14 Robert Dewar <dewar@adacore.com>
16276 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
16277 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
16278 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
16279 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
16280 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
16281 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
16282 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
16283 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
16284 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
16285 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
16286 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
16287 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
16289 2005-06-14 Thomas Quinot <quinot@adacore.com>
16291 * xeinfo.adb: Fix typo in comment
16293 2005-06-14 Javier Miranda <miranda@adacore.com>
16295 * repinfo.ads: Fix typo in comment
16297 2005-06-14 Gary Dismukes <dismukes@adacore.com>
16299 * s-finimp.adb (Parent_Tag): Delete this imported function (function
16300 Parent_Tag is now in the visible part of Ada.Tags).
16301 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
16302 using imported function.
16304 2005-06-14 Bernard Banner <banner@adacore.com>
16306 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
16307 also apply for handling support for VxSim 653.
16309 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
16311 * xsnames.adb: Add automatic generation of snames.h.
16313 2005-06-14 Thomas Quinot <quinot@adacore.com>
16315 * gen-soccon.c: Add IP_MULTICAST_IF constant
16316 Minor reformatting and adjustments to prevent warnings.
16318 2005-06-14 Pascal Obry <obry@adacore.com>
16320 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
16322 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
16324 * trans.c (gnat_gimplify_expr): Call
16325 recompute_tree_invarant_for_addr_expr when we change
16326 the operand of the ADDR_EXPR.
16328 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16330 * misc.c: Don't include errors.h.
16332 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16334 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
16336 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
16338 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
16340 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
16342 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
16345 * Makefile.in: Make TGT_LIB behave correctly.
16347 2005-04-23 DJ Delorie <dj@redhat.com>
16349 * misc.c: Adjust warning() callers.
16351 2005-04-16 Laurent GUERBY <laurent@guerby.net>
16354 * a-nudira.adb (Value): Check for valid string.
16355 * a-nuflra.adb (Value): Likewise.
16357 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
16359 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
16361 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
16363 * adaint.c, init.c, tracebak.c: Fix comment typos.
16364 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
16366 2005-04-07 Laurent GUERBY <laurent@guerby.net>
16367 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16369 * Makefile.in: Add make ifeq define for hppa linux tasking support.
16370 * system-hpux.ads: Define Signed_Zeros to be True.
16371 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
16373 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
16375 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
16376 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
16379 2005-03-30 Tom Tromey <tromey@redhat.com>
16381 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
16383 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
16385 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
16387 2005-03-29 Robert Dewar <dewar@adacore.com>
16389 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
16390 fixed-point expression has value that is not a multiple of the Small
16393 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
16395 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
16398 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
16400 2005-03-29 Vincent Celier <celier@adacore.com>
16402 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
16403 (Build_Dynamic_Library.Version_String): Return the empty string when
16404 Lib_Version is empty or when the symbol policy is not Autonomous.
16406 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
16407 a symbol is not in the reference symbol file, increase the Major ID
16408 and set the Minor ID to 0.
16409 Use gsmatch=lequal instead of gsmatch=equal
16411 2005-03-29 Doug Rupp <rupp@adacore.com>
16413 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
16414 name and translate.
16416 2005-03-29 Javier Miranda <miranda@adacore.com>
16418 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
16419 (Inherit_DT): The first formal has been redefined as a Tag.
16420 This allows us the removal of the subprogram Get_TSD.
16421 (TSD): Replace the call to Get_TSD by the actual code.
16423 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
16424 (Make_DT): Upgrade the call to Inherit_TSD according to the
16425 new interface: the first formal is now a Tag.
16427 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
16428 redefined as a Tag.
16429 This change allows us to remove the subprogram Get_TSD.
16430 (CPP_Get_TSD): Subprogram removed.
16431 (TSD): Replace the call to CPP_Get_TSD by the actual code.
16433 * rtsfind.ads: Remove support to call the run-time
16436 2005-03-29 Robert Dewar <dewar@adacore.com>
16438 * errutil.adb, errout.adb:
16439 Minor comment updates on Line_Terminator references
16441 * par-ch10.adb: Add ??? comment about line terminator
16443 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
16444 (check dos line terminator).
16445 (Check_Line_Max_Length): New procedure, split off from the existing
16446 Check_Line_Terminator routine. Separating this out allows -gnatyf to
16447 be properly recognized.
16449 * styleg.adb: Add ??? comment for line terminator reference
16451 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
16452 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
16454 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
16455 (check dos line terminator).
16456 (Check_Line_Max_Length): New procedure, split off from the existing
16457 Check_Line_Terminator routine. Separating this out allows -gnatyf to
16458 be properly recognized.
16460 * stylesw.ads, stylesw.adb:
16461 Add handling for new -gnatyd switch (check dos line terminator)
16463 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
16464 Recognize -gnatwb/-gnatwB switches
16465 Include Warn_On_Bad_Fixed_Value for -gnatg
16468 Add line for new -gnatyd switch (check dos line terminator)
16470 * usage.adb: Add lines for -gnatwb/-gnatwB
16472 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
16474 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
16476 * gnat_ugn.texi: Fix overlong lines
16477 Document new -gnatyd switch
16478 Document new -gnatwb/-gnatwB switches
16480 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16482 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
16483 order to retrieve the component list of the type, before examining
16484 individual components.
16486 * sem_type.adb (Covers): Types are compatible if one is the base type
16487 of the other, even though their base types might differ when private
16488 views are involved.
16490 2005-03-29 Thomas Quinot <quinot@adacore.com>
16492 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
16493 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
16494 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
16495 analyzed if expansion is disabled (which could otherwise cause spurious
16496 error messages if expansion has been disabled due to previous
16497 (unrelated) errors).
16499 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
16500 is disabled, the entity denoted by the argument is the access type
16501 itself, not an underlying record type, so there is no need to go back
16502 to the Corresponding_Remote_Type.
16504 2005-03-29 Gary Dismukes <dismukes@adacore.com>
16505 Robert Dewar <dewar@adacore.com>
16507 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
16508 expand a call to an instance of
16509 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
16510 Constructor actual of the instance. A class-wide membership
16511 check is also generated, to ensure that the tag passed to the instance
16512 denotes a type in the class.
16513 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
16514 of Name_Generic_Dispatching_Constructor.
16516 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
16517 05 unit for AI-260-02).
16519 * a-tgdico.ads: New file.
16521 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
16522 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
16524 * snames.ads, snames.adb (Preset_Names): Add entry for
16525 Generic_Dispatching_Constructor.
16528 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
16529 character type cases.
16530 (Analyze_Subprogram_Renaming): Add special handling for
16531 the case of renaming of stream attributes when the renaming denotes a
16532 generic formal subprogram association for an abstract formal subprogram.
16533 Check that the attribute is a primitive stream attribute (and not
16534 a class-wide stream attribute) and then rewrite the attribute name
16535 as the name of the appropriate compiler-generated stream primitive.
16537 2005-03-29 Robert Dewar <dewar@adacore.com>
16539 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
16541 (Is_Possibly_Unaligned_Object): Correct typo that
16542 resulted in inaccurate result for unaligned scalars within records.
16544 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16546 * freeze.adb (Freeze_Record_Type): If the type of the component is an
16547 itype whose parent is controlled and not yet frozen, do not create a
16548 freeze node for the itype if expansion is disabled.
16550 2005-03-29 Vincent Celier <celier@adacore.com>
16552 * make.adb (Gnatmake): Don't fail if the main project file is declared
16553 as having no Ada sources. Do not display message "no sources to
16554 compile" in quiet output.
16556 2005-03-29 Doug Rupp <rupp@adacore.com>
16558 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
16561 2005-03-29 Robert Dewar <dewar@adacore.com>
16563 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
16566 2005-03-29 Robert Dewar <dewar@adacore.com>
16568 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
16569 missing TYPE Improve the error message generated when compiling a
16570 limited interface in Ada83 or Ada95 mode.
16572 2005-03-29 Robert Dewar <dewar@adacore.com>
16574 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
16575 rather than proceed ahead using a junk attribute name.
16577 2005-03-29 Vincent Celier <celier@adacore.com>
16579 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
16581 * prj-part.adb (Parse_Single_Project): Set the location of a project
16582 on its defining identifier, rather than on the reserved word "project".
16584 * prj-proc.adb (Expression): Adapt to the fact that default of external
16585 references may be string expressions, not always literal strings.
16586 (Recursive_Process): Set Display_Name equal to Name
16587 when Location is No_Location, that is when there is no actual file.
16588 Get the Display_Name of the project from the source, when it is not a
16590 (Process): Use the Display_Name in error messages
16592 * prj-strt.adb (External_Reference): Allow default to be string
16593 expressions, not only literal strings.
16595 2005-03-29 Vincent Celier <celier@adacore.com>
16597 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
16598 file and the reference symbol file to be the same file.
16600 2005-03-29 Thomas Quinot <quinot@adacore.com>
16602 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
16603 forbid conversion of a local access-to-subprogram type to a remote one.
16605 * sem_util.adb (Wrong_Type): For a record type that is the expanded
16606 equivalent type for a remote access-to-subprogram type, go back to the
16607 original RAS entity when displaying an error message, so the casing is
16608 the original source casing.
16610 2005-03-29 Robert Dewar <dewar@adacore.com>
16612 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
16615 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16617 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
16618 subtype if code is being pre-analyzed, to prevent un-expanded
16619 references to protected formals, among others.
16620 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
16621 interpretation that can be a call, include the result of the call as a
16622 possible interpretation of the dereference.
16624 * sem_ch5.adb (Process_Bounds): Determine type of range by
16625 pre-analyzing a copy of the original range, and then analyze the range
16626 with the expected type.
16628 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
16629 with an overloaded prefix where not all interpretations yield an
16630 access to subprogram, do not rewrite node as a call.
16631 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
16632 the node as a call once the context identifies the interpretation of
16633 the prefix whose call yields the context type.
16634 (Valid_Conversion): For the case of a conversion between
16635 local access-to-subprogram types, check subtype conformance using
16636 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
16637 detailed error message.
16639 2005-03-29 Ed Schonberg <schonberg@adacore.com>
16641 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
16642 indicator, indicate that the formal can never be null.
16643 (Process_Formals): If a formal has a non_null indicator, insert the
16644 resulting subtype immediately before the enclosing subprogram decl,
16645 and not at the beginning of the corresponding declarative part, to
16646 prevent access before elaboration (Ada2005).
16648 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16651 * utils.c (finish_record_type): Use variable_size when setting sizes.
16653 2005-03-29 Robert Dewar <dewar@adacore.com>
16655 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
16656 guarantee Unix style line terminators for the output files, even when
16657 running on windows.
16659 2005-03-29 Robert Dewar <dewar@adacore.com>
16661 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
16662 buffer if an exception is raised.
16664 2005-03-29 Ed Falis <falis@adacore.com>
16666 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
16669 2005-03-29 Robert Dewar <dewar@adacore.com>
16671 * sem_util.ads: Minor reformatting
16672 * gnat_rm.texi: Minor editing.
16674 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
16676 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
16677 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
16679 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
16681 * adaint.c (__gnat_portable_spawn): Adjust cast.
16683 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
16685 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
16687 2005-03-17 Pascal Obry <obry@adacore.com>
16689 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
16692 * expect.c (__gnat_waitpid): Moved here from adaint.c.
16693 Reimplement under Win32 using Win32 API.
16695 (__gnat_kill) [Win32]: Properly close the process handle before leaving
16698 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
16700 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
16701 (DECL_RENAMED_OBJECT): New accessor macro.
16702 (SET_DECL_RENAMED_OBJECT): New setter macro.
16704 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
16705 object in all cases. Attach the renamed object to the VAR_DECL.
16706 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
16707 field is not prescribed.
16709 * misc.c (gnat_handle_option): Handle -gnatO separately.
16710 (gnat_print_decl) <VAR_DECL>: New case.
16711 Print the DECL_RENAMED_OBJECT node.
16713 * lang.opt: Declare separate -gnatO option.
16715 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
16716 pointer, replace it with the renamed object.
16717 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
16718 pointer type if the source is not a fat pointer type whose underlying
16719 array has the same non-zero alias set as that of the destination array.
16721 2005-03-17 Javier Miranda <miranda@adacore.com>
16723 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
16724 (Get_Inheritance_Depth): Removed.
16725 (Set_Inheritance_Depth): Removed.
16727 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
16728 subprogram Get_Expanded_Name because it is not referenced by the
16731 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
16732 (CPP_Get_Inheritance_Depth): Removed.
16733 (CPP_Set_Inheritance_Depth): Removed.
16735 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
16737 2005-03-17 Robert Dewar <dewar@adacore.com>
16739 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
16740 3, since we now expect GCC 3 to do all the work.
16742 2005-03-17 Javier Miranda <miranda@adacore.com>
16744 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
16745 of one barrier to avoid wrong usage of this attribute.
16747 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
16748 First_Private_Entity.
16750 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
16751 the subprogram against wrong usage.
16752 Adapt the code to traverse the entities in the
16753 scope of a record_type because in addition to its usage regarding
16754 packages, this subprogram is also called by Expand_N_Freeze_Entity
16755 to install the visible declarations of the enclosing scope of a
16756 record_type_with_private to establish the proper visibility before
16757 freezing the entity and related subprograms.
16759 2005-03-17 Ed Schonberg <schonberg@adacore.com>
16761 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
16764 2005-03-17 Thomas Quinot <quinot@adacore.com>
16766 * exp_ch3.adb (Check_Attr): New subprogram.
16767 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
16768 into a new Check_Attr subprogram, in order to provide a more
16769 explanatory error message (including the name of the missing attribute).
16770 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
16771 subprogram determines whether a default implementation exists for a
16772 given stream attribute.
16773 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
16774 Determine whether to generate a default implementation for each stream
16775 attribute separately, as this depends on the specific attribute.
16777 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
16778 limited extension where a stream attribute is missing for a limited
16779 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
16780 generate a bogus reference to the missing attribute to prevent
16781 cascaded errors. Instead, generate a null statement.
16783 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
16784 available for a limited type if it has been specified for an ancestor
16787 2005-03-17 Ed Schonberg <schonberg@adacore.com>
16789 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
16790 entity is an operator.
16792 2005-03-17 Thomas Quinot <quinot@adacore.com>
16794 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
16795 spec, to make this predicate available to other units.
16797 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
16800 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
16801 when no distribution runtime library is available.
16803 * sem_res.adb, sem_dist.adb: Disable expansion of remote
16804 access-to-subprogram types when no distribution runtime library is
16806 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
16807 predicate available to other units.
16809 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
16810 spec, to make this predicate available to other units.
16812 2005-03-17 Vincent Celier <celier@adacore.com>
16814 * make.adb (Insert_Project_Sources): Make sure the Q is always
16817 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
16818 the default for the tree, not the global default naming.
16820 * prj-proc.adb (Recursive_Process): No need to put the default naming
16821 in the project data, it's already there.
16823 2005-03-17 Doug Rupp <rupp@adacore.com>
16825 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
16827 * 5xcrtl.ads: Renamed to...
16828 * s-crtl-vms64.ads: ...this new file
16830 2005-03-17 Robert Dewar <dewar@adacore.com>
16833 * namet.adb (Copy_One_Character): Set proper wide character encoding
16834 for upper half character if we have upper half encoding.
16836 2005-03-17 Robert Dewar <dewar@adacore.com>
16838 * par.adb (Par): Improved msg for attempt to recompile predefined unit
16840 2005-03-17 Thomas Quinot <quinot@adacore.com>
16842 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
16843 tagged limited type, the TSS is a newly built renaming declaration:
16844 insert it using Set_TSS, not Copy_TSS.
16846 2005-03-17 Javier Miranda <miranda@adacore.com>
16848 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
16849 Try_Object_Operation): Analyze the object that is accessible
16850 through the prefix of the subprogram call before we apply
16851 the transformation of the object-operation notation.
16853 2005-03-17 Jose Ruiz <ruiz@adacore.com>
16855 * s-taprob.adb (Initialize_Protection): Initialize the protected
16856 object's owner to Null_Task.
16857 (Lock): If pragma Detect_Blocking is in effect and the caller of this
16858 procedure is already the protected object's owner then Program_Error
16859 is raised. In addition the protected object's owner is updated.
16860 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
16861 of this procedure is already the protected object's owner then
16862 Program_Error is raised.
16863 In addition the protected object's owner is updated.
16864 (Unlock): Remove the ownership of the protected object.
16866 * s-taprob.ads (Protection): Add the field Owner, used to store the
16867 protected object's owner.
16868 This component is needed for detecting one type of potentially blocking
16869 operations (external calls on a protected subprogram with the same
16870 target object as that of the protected action). Document the rest of
16873 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
16874 Initialize the protected object's owner to Null_Task.
16875 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
16876 caller of this procedure is already the protected object's owner then
16877 Program_Error is raised.
16878 Do not raise Program_Error when this procedure is called from a
16880 (Unlock_Entries): Remove the ownership of the protected object.
16881 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
16882 of this procedure is already the protected object's owner then
16883 Program_Error is raised.
16884 Do not raise Program_Error when this procedure is called from
16885 a protected action.
16887 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
16888 used to store the protected object's owner.
16890 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
16891 effect and this procedure (a potentially blocking operation) is called
16892 from whithin a protected action, Program_Error is raised.
16893 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
16894 and this procedure (a potentially blocking operation) is called from
16895 whithin a protected action, Program_Error is raised.
16897 2005-03-17 Vincent Celier <celier@adacore.com>
16898 Nicolas Setton <setton@adacore.com>
16900 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
16901 switch, not supported by the linker on Darwin. Add '_' before
16902 <library>init, as this character is added unconditionally by the
16904 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
16905 correct one ".dylib". This fixes detection of the archive files when
16906 building library projects.
16908 2005-03-17 Vincent Celier <celier@adacore.com>
16910 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
16911 -gnat83, -gnat95 and -gnat05.
16913 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
16915 * gnat_ugn.texi: Document gnatmem restriction
16917 2005-03-17 Thomas Quinot <quinot@adacore.com>
16919 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
16922 2005-03-17 Robert Dewar <dewar@adacore.com>
16924 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
16925 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
16926 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
16928 * casing.adb: Comment improvements
16930 2005-03-17 Pascal Obry <obry@adacore.com>
16932 * g-expect.adb: Minor reformatting.
16934 2005-03-15 Zack Weinberg <zack@codesourcery.com>
16936 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
16937 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
16940 2005-03-15 Vincent Celier <celier@adacore.com>
16942 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
16943 Add new parameter In_Tree to specify the project tree: needed
16944 by the project manager. Adapt to changes in project manager
16945 using new parameter In_Tree.
16947 2005-03-15 Jakub Jelinek <jakub@redhat.com>
16949 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
16950 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
16951 ada/bldtools to avoid make -jN failures.
16953 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
16955 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
16956 to NULL_TREE on entry.
16958 2005-03-15 Robert Dewar <dewar@adacore.com>
16960 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
16961 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
16962 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
16963 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
16964 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
16965 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
16966 system-interix.ads, system-solaris-sparc.ads,
16967 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
16968 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
16969 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16970 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
16971 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
16972 Compiler_System_Version to be False.
16974 * opt.ads: Add new flag Opt.Address_Is_Private
16976 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
16977 Add new parameter Compiler_System_Version to avoid checking for
16978 completeness of parameters when compiler is compiling itself.
16979 Allows old versions of GNAT to be compiled with new compiler.
16981 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
16983 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
16984 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
16986 (Stack_Base_Available): New flag.
16987 (Get_Page_Size): New overloaded functions imported from C.
16988 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
16989 PROT_ON, PROT_OFF): New constants.
16990 (mprotect): New function imported from C.
16991 (pthread_teb_t): New record type.
16993 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
16994 (Create_Task): Account for the Yellow Zone and the guard page.
16996 2005-03-15 Vincent Celier <celier@adacore.com>
16998 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
16999 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
17000 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
17001 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
17002 Library_File_Name_For): Add new parameter In_Tree
17003 to specify the project tree: needed by the project manager.
17004 Adapt to changes in project manager using new parameter In_Tree.
17005 Remove local imports, use functions in System.CRTL.
17007 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
17008 to use the project manager.
17010 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
17011 In_Tree to designate the project tree. Adapt to changes in the project
17012 manager, using In_Tree.
17014 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
17015 Copy_Interface_Sources): Add new parameter In_Tree to specify the
17016 project tree: needed by the project manager.
17017 (Build_Library): Check that Arg'Length >= 6 before checking if it
17018 contains "--RTS=...".
17020 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
17021 Library_File_Name_For): Add new parameter In_Tree to specify the
17022 project tree: needed by the project manager.
17024 * prj.ads, prj.adb: Major modifications to allow several project trees
17025 in memory at the same time.
17026 Change tables to dynamic tables and hash tables to dynamic hash
17027 tables. Move tables and hash tables from Prj.Com (in the visible part)
17028 and Prj.Env (in the private part). Move some constants from the visible
17029 part to the private part. Make other constants deferred.
17030 (Project_Empty): Make it a variable, not a function
17031 (Empty_Project): Add parameter Tree. Returns the data with the default
17032 naming data of the project tree Tree.
17033 (Initialize): After updating Std_Naming_Data, copy its value to the
17034 component Naming of Project Empty.
17035 (Register_Default_Naming_Scheme): Use and update the default naming
17036 component of the project tree, instead of the global variable
17038 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
17039 Tree is not defaulted, return the default naming data of the Tree.
17040 (Initial_Buffer_Size): Constant moved from private part
17041 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
17042 variables initialized in procedure Initialize.
17043 (Add_To_Buffer): Add two in out parameters to replace global variables
17044 Buffer and Buffer_Last.
17045 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
17047 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
17049 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
17050 for the project tree.
17051 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
17052 constant at the beginning of the package spec, so that they cane be used
17053 in subprograms before their full declarations.
17054 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
17055 (Empty_Project): Add parameter of type Project_Node_Ref
17056 (Private_Project_Tree_Data): Add component Default_Naming of type
17058 (Buffer, Buffer_Last): remove global variables
17059 (Add_To_Buffer): Add two in out parameters to replace global variables
17060 Buffer and Buffer_Last.
17061 (Current_Packages_To_Check): Remove global variable
17062 (Empty_Name): Move to private part
17063 (No-Symbols): Make it a constant
17064 (Private_Project_Tree_Data): New type for the private part of the
17066 (Project_Tree_Data): New type for the data of a project tree
17067 (Project_Tree_Ref): New type to designate a project tree
17068 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
17069 for the project tree.
17071 * prj-attr.ads: Add with Table; needed, as package Prj no longer
17072 imports package Table.
17074 * prj-com.adb: Remove empty, no longer needed body
17076 * prj-com.ads: Move most of the content of this package to package Prj.
17078 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
17079 designate the project node tree and Packages_To_Check to replace
17080 global variable Current_Packages_To_Check.
17081 Add new parameters In_Tree and Packages_To_Check to local subprograms,
17082 when needed. Adapt to changes in project manager with project node tree
17085 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
17086 project tree to most subprograms. Move tables and hash tables to
17087 private part of package Prj.
17088 Adapt to changes in project manager using project tree In_Tree.
17090 * prj-makr.adb (Tree): New constant to designate the project node tree
17091 Adapt to change in project manager using project node tree Tree
17093 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
17094 display the Library_Src_Dir and the Library_Dir.
17095 Add new parameter In_Tree to designate the project node tree to most
17096 subprograms. Adapt to changes in the project manager, using project tree
17098 (Check_Naming_Scheme): Do not alter the casing on platforms where
17099 the casing of file names is not significant.
17100 (Check): Add new parameter In_Tree to designate the
17102 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
17103 designate the project tree.
17104 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
17106 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
17107 to replace those that were in the private part of package Prj.
17108 Add new parameter In__Tree to designate the project node tree to most
17109 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
17110 (Post_Parse_Context_Clause): When specifying the project node of a with
17111 clause, indicate that it is a limited with only if there is "limited"
17112 in the with clause, not necessarily when In_Limited is True.
17113 (Parse): Add new parameter In_Tree to designate the project node tree
17115 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
17116 designate the project node tree. Adapt to change in Prj.Tree with
17117 project node tree In_Tree.
17119 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
17120 tree In_Tree in the call to function Empty_Process to give its initial
17121 value to the project data Processed_Data.
17122 Add new parameters In_Tree to designate the project tree and
17123 From_Project_Node_Tree to designate the project node tree to several
17124 subprograms. Adapt to change in project manager with project tree
17125 In_Tree and project node tree From_Project_Node_Tree.
17127 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
17128 to replace those that were in the private part of package Prj.
17129 Add new parameter In_Tree to designate the project node tree to most
17130 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
17132 * prj-tree.ads, prj-tree.adb: Add new parameter of type
17133 Project_Node_Tree_Ref to most subprograms.
17134 Use this new parameter to store project nodes in the designated project
17136 (Project_Node_Tree_Ref): New type to designate a project node tree
17137 (Tree_Private_Part): Change table to dynamic table and hash tables to
17138 dynamic hash tables.
17140 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
17141 the project tree to most subprograms. Adapt to changes in project
17142 manager using project tree In_Tree.
17144 * makegpr.adb (Project_Tree): New constant needed to use project
17147 2005-03-15 Olivier Hainque <hainque@adacore.com>
17149 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
17150 for sigactions with SA_SIGINFO set. Call
17151 __gnat_adjust_context_for_raise before raising, to perform the
17152 potentially required adjustments to the machine context for the GCC
17155 * raise.h (__gnat_adjust_context_for_raise): New prototype.
17157 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
17158 Adjust PC by one in the provided machine context.
17159 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
17160 so that the handler is passed the context structure to adjust prior to
17162 (__gnat_error_handler) HPUX: Adjust the signature to match what an
17163 SA_SIGINFO sigaction should look like. Call
17164 __gnat_adjust_context_for_raise before actually raising.
17165 (__gnat_adjust_context_for_raise): Default noop to help PC
17166 adjustments before raise from signal handlers.
17167 (__gnat_error_handler): Indirectly call a predicate function to
17168 determine if a condition should be resignaled or not.
17169 (__gnat_set_resignal_predicate): User interface to modify the predicate.
17170 (__gnat_default_resignal_p): Default GNAT predicate.
17172 2005-03-15 Doug Rupp <rupp@adacore.com>
17174 * adaint.c: Prefix #include of VMS system header files with vms/
17175 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
17176 Do not define a dummy function "convert_addresses" under Darwin,
17179 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
17182 2005-03-15 Nicolas Setton <setton@adacore.com>
17184 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
17187 2005-03-15 Robert Dewar <dewar@adacore.com>
17189 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
17192 * a-retide.ads: Minor comment changes
17194 2005-03-15 Robert Dewar <dewar@adacore.com>
17196 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
17197 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
17198 Realloc_For_Chunk to private part of package.
17199 New subprograms for AI-301
17201 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
17202 Get_Line procedure.
17203 Avoid unnecessary use of Get/Set_Wide_String
17205 2005-03-15 Robert Dewar <dewar@adacore.com>
17208 * a-stunau.ads, a-stunau.adb:
17209 Change interface to allow efficient (and correct) implementation
17210 The previous changes to allow extra space in unbounded strings had
17211 left this interface a bit broken.
17213 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
17215 * g-spipat.ads, g-spipat.adb: New interface for Get_String
17216 Minor reformatting (function specs)
17218 * g-spitbo.adb: New interface for Get_String
17220 * g-spitbo.ads: Minor reformatting
17222 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
17224 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
17226 2005-03-15 Javier Miranda <miranda@adacore.com>
17227 Robert Dewar <dewar@adacore.com>
17228 Thomas Quinot <quinot@adacore.com>
17229 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17231 * atree.ads, atree.adb: Add support for Elist24 field
17233 * atree.h: Fix wrong definition of Field27
17234 Add support for Elist16 field
17235 Add support for Elist24 field
17237 * einfo.ads, einfo.adb (Abstract_Interfaces,
17238 Set_Abstract_Interfaces): New subprograms.
17239 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
17241 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
17242 entities rather than a single node.
17243 (Is_Interface, Set_Is_Interface): New subprogram
17244 (First_Tag_Component): New syntesized attribute
17245 (Next_Tag_Component): New synthesized attribute
17246 (Write_Entity_Flags): Upgraded to write Is_Interface
17247 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
17248 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
17249 (Task_Body_Procedure): New subprogram to read this attribute.
17250 (Set_Task_Body_Procedure): New subprogram to set this attribute.
17251 (Has_Controlled_Component): Now applies to all entities.
17252 This is only a documentation change, since it always worked to apply
17253 this to other than composite types (yielding false), but now this is
17255 Update documentation on Must_Be_Byte_Aligned for new spec
17257 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
17258 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
17259 uses of the Access_Disp_Table attribute to reference the first dispatch
17260 table associated with a tagged type. As
17261 part of the implementation of abstract interface types,
17262 Access_Disp_Table has been redefined to contain a list of dispatch
17263 tables (rather than a single dispatch table).
17264 Similarly, upgrade all the references to Tag_Component by the
17265 new attribute First_Tag_Component.
17266 (Find_Inherited_TSS): Moved to exp_tss.
17267 Clean up test in Expand_N_Object_Declaration for cases
17268 where we need to do a separate assignment of the initial value.
17269 (Expand_N_Object_Declaration): If the expression in the
17270 declaration of a tagged type is an aggregate, no need to generate an
17271 additional tag assignment.
17272 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
17274 Bit packed array ops are only called if operands are known to be
17276 (Component_Equality): When returning an N_Raise_Program_Error statement,
17277 ensure that its Etype is set to Empty to avoid confusing GIGI (which
17278 expects that only expressions have a bona fide type).
17279 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
17280 determine the amount of data to be copied.
17282 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
17283 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
17284 INTERFACE_TYPE_DEFINITION ::=
17285 [limited | task | protected | synchronized] interface
17286 [AND interface_list]
17288 * par-ch3.adb (P_Type_Declaration): Modified to give support to
17290 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
17292 (P_Interface_Type_Definition): New subprogram that parses the new
17293 syntax rule of Ada 2005 interfaces
17294 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
17295 messages by the correct RENAMES (quotes removed).
17297 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
17298 attribute First_Tag_Component.
17300 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
17301 (Interface_List, Set_Interface_List): New subprograms.
17302 (Interface_Present, Set_Interface_Present): New subprograms.
17303 (Limited_Present, Set_Limited_Present): Available also in derived
17304 type definition nodes.
17305 (Protected_Present, Set_Protected_Present): Available also in
17306 record type definition and
17307 derived type definition nodes.
17308 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
17309 (Task_Present, Set_Task_Present): New subprogram.
17310 (Task_Body_Procedure): Removed.
17311 (Set_Task_Body_Procedure): Removed.
17312 These subprogram have been removed because the attribute
17313 Task_Body_Procedure has been moved to the corresponding task type
17314 or task subtype entity to leave a field free to store the list
17315 of interfaces implemented by a task (for AI-345)
17316 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
17317 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
17318 expression flag Do_Range_Check
17319 (Exception_Junk): Change to Flag7 to accomodate above change
17320 (Box_Present, Default_Name, Specification, Set_Box_Present,
17321 Set_Default_Name, Set_Specification): Expand the expression
17322 "X in N_Formal_Subprogram_Declaration" into the corresponding
17323 two comparisons. Required to use the csinfo tool.
17325 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
17326 "with string" given.
17328 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
17331 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
17334 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
17335 attribute Task_Body_Procedure rather than the old semantic field that
17336 was available in the task_type_declaration node.
17338 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
17339 interface type definitions.
17340 (P_Formal_Derived_Type_Definition): Modified to handle the list of
17343 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
17344 task type declaration.
17345 (P_Protected): Modified to handle the list of interfaces in a
17346 protected type declaration.
17348 2005-03-15 Doug Rupp <rupp@adacore.com>
17349 Vincent Celier <celier@adacore.com>
17351 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
17352 (Gen_Output_File_C): Likewise.
17353 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
17355 2005-03-15 Thomas Quinot <quinot@adacore.com>
17357 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
17358 is an N_Raise_Constraint_Error node, create a new copy of it without
17359 going through a call to Duplicate_Subexpr.
17361 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
17362 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17363 Nicolas Setton <setton@adacore.com>
17364 Ed Schonberg <schonberg@adacore.com>
17370 * decl.c (gnat_to_gnu_field): Reject aliased components with a
17371 representation clause that prescribes a size not equal to the rounded
17372 size of their types.
17373 (gnat_to_gnu_entity, case E_Component): Always look at
17374 Original_Record_Component if Present and not the entity.
17375 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
17376 of tagged extension types by not making field for components that are
17378 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
17379 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
17380 expression to the type of the object when the object is constant.
17381 Reverse defer_debug_incomplete_list before traversing it, so that trees
17382 are processed in the order at which they were added to the list. This
17383 order is important when using the stabs debug format.
17384 If we are deferring the output of debug information, also defer this
17385 output for a function return type.
17386 When adding fields to a record, prevent emitting debug information
17387 for incomplete records, emit the information only when the record is
17389 (components_to_record): New parameter defer_debug.
17390 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
17391 (gnat_to_gnu_field_decl): New function.
17392 (substitution_list, annotate_rep): Call it.
17393 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
17394 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
17395 No longer update discriminants to not be a COMPONENT_REF.
17396 (copy_alias_set): Strip padding from input type; also handle
17397 unconstrained arrays properly.
17399 * gigi.h (write_record_type_debug_info): New function.
17400 Convert to use ANSI-style prototypes. Remove unused
17401 declarations for emit_stack_check, elab_all_gnat and
17402 set_second_error_entity.
17403 (gnat_to_gnu_field_decl): New decl.
17405 * utils.c (write_record_type_debug_info): New function.
17406 (finish_record_type): Delegate generation of debug information to
17407 write_record_type_debug_info.
17408 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
17409 (update_pointer_to): Fix pasto.
17410 (convert) <UNION_TYPE>: Accept slight type variations when
17411 converting to an unchecked union type.
17413 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
17414 replace the N_Freeze_Entity with a null statement.
17416 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
17417 within a constrained subcomponent of an enclosing record, place the
17418 freeze nodes in the scope stack entry for the enclosing record.
17419 (Undelay_Type): New Subprogram.
17420 (Set_Small_Size): Pass T, the type to modify; all callers changed.
17421 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
17422 within records; allow them to have freeze nodes if their base types
17425 * exp_util.adb (Remove_Side_Effects): Properly test for
17426 Expansion_Delayed and handle case when it's inside an
17427 N_Qualified_Expression.
17429 * sem_ch3.adb (Derived_Type_Declaration): New predicate
17430 Comes_From_Generic, to recognize accurately that the parent type in a
17431 derived type declaration can be traced back to a formal type, because
17432 it is one or is derived from one, or because its completion is derived
17434 (Constrain_Component_Type): If component comes from source and has no
17435 explicit constraint, no need to constrain in in a subtype of the
17437 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
17438 Minor change to propagate Is_Ada_2005 flag
17440 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
17441 Expansion_Delayed is False.
17442 (assoc_to_constructor): Ignore fields that have a
17443 Corresponding_Discriminant.
17444 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
17445 function returns "by target", dereference the target pointer using the
17446 type of the actual return value.
17447 <all>: Be prepared for a null gnu_result.
17448 (processed_inline_subprograms): Check flag_really_no_inline
17449 instead of flag_no_inline.
17450 (set_second_error_entity): Remove unused function.
17451 (gnat_to_gnu, case N_Selected_Component): Call
17452 gnat_to_gnu_field_decl.
17453 (assoc_to_constructor): Likewise.
17455 2005-03-15 Robert Dewar <dewar@adacore.com>
17456 Ed Schonberg <schonberg@adacore.com>
17457 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17459 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
17460 Must_Be_Byte_Aligned for cases where we do not need to use a
17461 System.Pack_nn unit.
17463 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
17465 Needed now that we do some processing for IN parameters as well. This
17466 may well fix some unrelated errors.
17467 (Expand_Call): Handle case of unaligned objects (in particular those
17468 that come from packed arrays).
17469 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
17470 renamed entity is an inherited operation, re-expand the call using the
17471 original operation, which is the one to call.
17472 Detect attempt to inline parameterless recursive subprogram.
17473 (Represented_As_Scalar): Fix to work properly with private types
17474 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
17475 accurate estimate. Yields True in far fewer cases than before,
17476 improving the quality of code that depends on this test.
17478 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
17479 over both visible and private declarations to remove them from tree,
17480 and mark subprograms declared in package as eliminated, to prevent
17481 spurious use in subsequent compilation of generic units in the context.
17483 * exp_util.ads: Minor cleanup in variable names
17485 * sem_eval.ads, sem_eval.adb: Minor reformatting
17486 (Compile_Time_Known_Bounds): New function
17488 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17490 * exp_ch7.adb (Convert_View): Use base types of underlying types when
17491 determining whether an unchecked conversion is needed for the argument
17492 of an initialization call.
17494 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17496 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
17497 that appears in the instantiation rather than the internal subtype
17498 generated in the wrapper package, to avoid anomalies in gigi when the
17499 target is derived from a private type whose full view is an access type.
17501 2005-03-15 Robert Dewar <dewar@adacore.com>
17503 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
17505 Add documentation to replace the use of this flag
17506 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
17509 2005-03-15 Thomas Quinot <quinot@adacore.com>
17511 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
17512 here from exp_attr so it can be shared between exp_attr and exp_dist.
17513 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
17514 all TSS names, not a subset thereof, and the previous name introduced
17515 an unnecessarily confusion that a distinction might exist between
17516 "OK" TSS names and some "not OK" TSS names.
17518 2005-03-15 Doug Rupp <rupp@adacore.com>
17520 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
17523 2005-03-15 Pascal Obry <obry@adacore.com>
17524 Eric Botcazou <ebotcazou@adacore.com>
17528 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
17529 when IN_RTS. This is to work around a bootstrap path problem.
17531 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
17532 table and pass it to __gnat_install_SEH_handler().
17533 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
17535 * lang.opt: Fix specification of -fRTS=.
17537 2005-03-15 Doug Rupp <rupp@adacore.com>
17538 Bernard Banner <banner@adacore.com>
17539 Vincent Celier <celier@adacore.com>
17540 Arnaud Charlet <charlet@adacore.com>
17543 This change works fine when gnatlib is built from the gcc directory,
17544 but does not work when using the libada Makefile, since GCC_FOR_TARGET
17545 is not passed to ada/Makefile.in, so more work is needed by a
17546 Makefile/configure expert.
17548 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
17549 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
17550 Setup gnatlink switch -M for x86_64 linux, as it is already setup
17552 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
17553 Run ranlib on libgccprefix.a
17554 Define PREFIX_OBJS for Darwin, to build libgccprefix.
17555 (ADA_INCLUDE_SRCS): Split Ada packages.
17557 2005-03-15 Robert Dewar <dewar@adacore.com>
17559 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
17561 * impunit.adb: Add GNAT.UTF_32
17563 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
17565 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
17566 now uses GNAT.UTF_32).
17568 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
17569 capabilities for categorizing characters using Unicode categories
17571 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17573 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
17574 instantiation that has been rewritten as a package body, retrieve spec
17575 to generate proper name for implicit_with_clause.
17576 (Install_Parents): Recognize a parent that is an instantiation but has
17577 been rewritten as a package declaration during analysis.
17579 2005-03-15 Javier Miranda <miranda@adacore.com>
17580 Ed Schonberg <schonberg@adacore.com>
17582 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
17583 parameter reported some error we immediately return. This improves the
17584 behaviour of the frontend in case of errors.
17585 (Install_Parent, Remove_Parent): Introduce new flag
17586 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
17587 ancestor of a generic child unit, when the child is being instantiated.
17588 (Inline_Instance_Body): If we are compiling the private
17589 part or the body of a child unit, restore the proper visibility of the
17590 parents after compiling the instance body.
17592 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17593 Javier Miranda <miranda@adacore.com>
17596 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
17597 of a private type, in which case it is underlying_type that denotes
17598 the proper task. Also modified to use the new entity attribute
17599 that is directly available in the task type and task subtype entities
17600 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
17601 arrays when other dimensions than the first are constrained by
17602 discriminants of an enclosing record.
17603 (Insert_Explicit_Dereference): If the prefix is an indexed component or
17604 a combination of indexed and selected components, find ultimate entity
17605 and generate the appropriate reference for it, to suppress spurious
17607 (Note_Possible_Modification): If an entity name has no entity, return.
17608 (Is_Variable): A function call never denotes a variable.
17609 (Requires_Transient_Scope): For record types, recurse only on
17610 components, not on internal subtypes that may have been generated for
17611 constrained components.
17613 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17615 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
17616 Eliminated as candidates for resolution. Both efficient, and avoids
17617 anomalies with operators declared in deleted code.
17618 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
17619 expansion is disabled (as when compiling a generic) to prevent spurious
17620 warnings on prefixes of selected components.
17622 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17624 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
17625 attached to a list before checking whether it appears in the private
17626 declarations of the current package.
17627 (Make_Inequality_Operator): Insert declaration in proper declarative
17628 list rather than just setting the Parent field, so that
17629 Is_Private_Declaration can handle it properly.
17631 2005-03-15 Ed Schonberg <schonberg@adacore.com>
17633 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
17634 a renaming a body, check that the renamed subprogram in not intrinsic.
17635 (Find_Direct_Name): If several use_visible entities hide
17636 each other, and the context is a predefined file compiled through
17637 rtsfind, keep only the entity that comes from a predefined file.
17639 2005-03-15 Geert Bosch <bosch@adacore.com>
17641 * s-fatgen.adb (Valid): Extend special exceptions to account for long
17642 long float padding to also cover AMD64 and IA64.
17644 2005-03-15 Gary Dismukes <dismukes@adacore.com>
17646 * s-imgwch.adb: Add with and use of Interfaces.
17647 (Img_Wide_Character): Change type of Val to Unsigned_16.
17648 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
17650 2005-03-15 Matthew Gingell <gingell@adacore.com>
17652 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
17654 2005-03-15 Robert Dewar <dewar@adacore.com>
17656 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
17658 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
17660 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
17662 2005-03-15 Robert Dewar <dewar@adacore.com>
17664 * s-bitops.adb, s-bitops.ads,
17665 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
17666 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
17667 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
17668 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
17669 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
17670 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
17671 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
17672 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
17675 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
17677 * utils2.c (build_binary_op): Fix typo.
17679 2005-03-15 Doug Rupp <rupp@adacore.com>
17681 * s-crtl.ads (popen,pclose): New imports.
17683 2005-03-15 Cyrille Comar <comar@adacore.com>
17685 * comperr.adb (Compiler_Abort): remove references to obsolete
17686 procedures in the bug boxes for various GNAT builds.
17688 2005-03-15 Vincent Celier <celier@adacore.com>
17690 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
17692 2005-03-15 Geert Bosch <bosch@adacore.com>
17693 Arnaud Charlet <charlet@adacore.com>
17694 Robert Dewar <dewar@adacore.com>
17695 Cyrille Comar <comar@adacore.com>
17696 Sergey Rybin <rybin@adacore.com>
17698 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
17699 too specific and long-winded to be appropriate for the GNAT User's
17701 Warn about use of GCC switches not documented in the GNAT User's Guide,
17702 as these may cause generated code to not conform to Ada semantics.
17703 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
17704 Add documentation for -gnat95 and -gnat05 switches
17705 Remove paragraph documenting obsolete way to refer to third party
17707 Add a few references to Ada_05 that were missing.
17708 Update documentation on -gnatZ/-gnatL.
17709 Document limitation when using -m64 under Solaris.
17710 Change the "Name Casing" subsection of the pretty-printer section
17711 according to the changes in the dictionary processing.
17713 * gnat_rm.texi: Document the Ada_05 pragma.
17714 Section on record representation clauses describes the new more
17715 relaxed rules about placement of large packed bit array components.
17716 Add documentation of GNAT.UTF_32
17718 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
17720 * misc.c (gnat_post_options): Turn off structural
17723 2005-03-08 Laurent Guerby <laurent@guerby.net>
17725 * system-linux-sparc.ads: Fix typo in previous commit.
17727 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
17728 Laurent Guerby <laurent@guerby.net>
17731 * system-linux-sparc.ads: New.
17732 * Makefile.in: Add sparc linux entry.
17734 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
17736 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
17737 parameters as unused.
17739 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
17740 Partial merge from libada-gnattools-branch:
17742 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
17743 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
17744 into code in gnattools/Makefile.in. Remove direct dependencies on
17745 stamp-tools by tools clauses.
17746 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
17747 * config-lang.in: Add gnattools to $lang_dirs.
17749 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
17752 * utils.c (gnat_type_for_mode): Return null instead of ICE because
17753 we asked for an unknown mode.
17755 2005-02-12 Richard Henderson <rth@redhat.com>
17757 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
17758 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
17760 2005-02-10 Andreas Jaeger <aj@suse.de>
17762 * init.c (__gnat_initialize): Mark parameter as unused.
17764 2005-02-09 Doug Rupp <rupp@adacore.com>
17766 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
17767 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
17769 2005-02-09 Doug Rupp <rupp@adacore.com>
17771 * gnatchop.adb (dup, dup2),
17772 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
17774 * gnatlbr.adb (mkdir),
17775 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
17777 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
17779 2005-02-09 Doug Rupp <rupp@adacore.com>
17781 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
17783 2005-02-09 Robert Dewar <dewar@adacore.com>
17784 Thomas Quinot <quinot@adacore.com>
17785 Javier Miranda <miranda@adacore.com>
17786 Pascal Obry <obry@adacore.com>
17787 Ed Schonberg <schonberg@adacore.com>
17788 Doug Rupp <rupp@adacore.com>
17789 Gary Dismukes <dismukes@adacore.com>
17790 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17792 * g-zstspl.ads: New file.
17794 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
17796 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
17798 Add definition of Wide_Wide_Space for AI-285
17800 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
17801 interface (to support Ada 95 and Ada 2005 units).
17802 Add Unbounded_IO files
17803 Add entries for Wide_Wide packages for AI-285
17804 Add list of containers packages to Ada 2005 unit list
17806 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
17807 support new Unbounded_IO package cleanly.
17809 * g-utf_32.ads, g-utf_32.adb: New files.
17811 * Makefile.rtl: Add entry for g-utf_32
17812 Add new files for Unbounded_IO
17813 Adjust make file for new AI-285 wide wide packages
17814 Add AI-302 containers to the run time.
17816 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
17817 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
17818 subprograms for AI-301.
17820 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
17822 * a-stunau.ads: Minor comment correction
17824 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
17826 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
17827 (Check_RPC): Update to match changes in expanded code.
17828 Clean up unused entity.
17830 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
17831 was not taken into account.
17832 This includes proper initialization with Normalize_Scalars.
17833 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
17834 normalize scalars cases (particularly the latter) to do a better job
17835 of finding invalid representations.
17837 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
17839 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
17842 * exp_dist.adb: Add support for wide wide character type
17843 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
17844 private part, generate stub bodies at the end of the private part,
17845 not the visible part.
17846 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
17848 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
17849 generic wrapper to execute final processing after completing the
17850 expansion of the RPC receiver for an RACW.
17852 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
17853 packages and attributes.
17854 (Preset_Names): Addition of the new reserved words of Ada 2005,
17855 that is interface, overriding and synchronized.
17856 (Get_Pragma_Id): Give support to the use of the new reserved word
17857 "interface" as a pragma name.
17858 (Is_Pragma_Name): Give support to the use of the new reserved word
17859 "interface" as a pragma name.
17860 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
17861 attribute implementation.
17863 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
17864 checks to entities that are output parameters of Asm operations.
17865 Handle the Stream_Size attribute.
17866 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
17868 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
17870 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
17871 for second parameter being 0.0.
17872 Add support for wide wide character type.
17873 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
17875 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
17876 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
17877 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
17878 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
17879 for wide wide character cases.
17881 * cstand.adb: Create entities for Wide_Wide_Character and
17884 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
17885 accordance with AI-258.
17886 Add new declarations for 16/32 bit C character types (Part of AI285)
17888 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
17889 (Obsolescent_Warning): New field
17890 (Rep_Clause): New local subprogram used to share code. Returns the rep
17891 clause for which the name is given in parameter.
17892 (Has_Stream_Size_Clause): New routine.
17893 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
17894 (Address_Clause): Implementation is now using Rep_Clause.
17895 (Alignment_Clause): Idem.
17896 (Size_Clause): Idem.
17898 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
17899 entity in non-Ada 2005 mode and generate warning.
17901 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
17902 (Prag): Code cleanup. Remove old gnat pragma "overriding"
17904 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
17905 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
17906 on the named unit if the pragma is not in the current compilation unit,
17907 so that elaboration calls in the current unit can set up an elaboration
17908 dependency on the named unit, as needed.
17909 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
17910 subprogram as well as for subprograms declared within a package.
17911 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
17914 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
17915 to z) to avoid some instances of duplication for Wide_Wide packages.
17917 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
17920 * scn.adb: Char_Literal_Value field is now a Uint
17922 * scng.adb: Significant rewrite to handle new Ada 2005 features
17923 allowing wide and wide wide characters in program text, e.g. for
17924 identifiers, as described in AI-285.
17925 (Set_Reserved): New procedure, makes setting up keywords cleaner.
17926 (Initialize_Scanner): Register the new reserved words of Ada 2005.
17927 (Scan): Give support to the new reserved words.
17929 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
17930 warning notifying that interface, overriding, and synchronized are
17931 new reserved words.
17932 (P_Pragma): Allow the use of the new reserved word "interface" as
17935 * gnatls.adb, gnatbind.adb,
17936 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
17937 identifiers named "interface" to "SAL_Interface".
17939 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
17940 (Structured Exception handling).
17941 (Gen_Main_C): Idem.
17944 (Gen_Main_Ada): Set the default exit code if specified.
17945 (Gen_Main_C): Likewise.
17947 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
17948 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
17950 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
17953 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
17954 has a collision with the new Ada 2005 "interface" reserved word.
17956 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
17957 generate a warning notifying that interface, overriding, and
17958 synchronized are new reserved words.
17960 * scans.ads (Token_Type): Addition of the tokens corresponding to the
17961 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
17962 and Tok_Synchronized.
17964 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
17965 "dispatching" rather than "primitive" operations, since dispatching
17966 calls are now allowed to abstract formal subprograms (which are not
17968 Char_Literal_Value field is now a Uint
17969 (Resolve_Slice): If the prefix is an access to an unconstrained array,
17970 compute the actual subtype of the designated object to impose the proper
17972 (Resolve_Selected_Component): Do not insert an access check if the
17973 prefix is an access type: such a node is expanded into an explicit
17974 dereference, on which the access check is performed anyway. Removes
17975 expensive duplicate checks.
17976 (Resolve_Call): Use new flag Is_Obsolescent and field
17977 Obsolescent_Warning so that pragma Obsolescent works on library
17979 Add support for wide wide character type
17980 (Resolve_Allocator): Replace the error message on wrong null-exclusion
17981 value by a warning message.
17982 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
17983 as fixed-point, and one of the operands is non-static and universal, it
17984 can only be an illegal exponentiation operation, in which case there is
17985 no real value to retrieve.
17987 * exp_strm.adb: Add support for wide wide character type
17988 (Build_Elementary_Input_Call): Compute the size of the stream element by
17989 querying the rep chain to find the Stream_Attribute attribute value.
17990 (Build_Elementary_Write_Call): Ditto.
17992 * sem_aggr.adb: Char_Literal_Value field is now a Uint
17993 Add support for wide wide character type
17994 Replace the error messages on wrong null-exclusion value by warnings
17995 as described in Ada 2005.
17996 (Resolve_Extension_Aggregate): Document the fact that the error
17997 message on class-wide expressions in extensions aggregates.
17999 * sem_case.adb: Add support for wide wide character type
18001 * sem_ch13.adb: Add support for wide wide character type
18002 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
18004 * sem_ch3.adb: Add support for wide wide character type
18005 (Process_Subtype): If constraint is illegal for the type, set Ekind of
18006 now-useless Itype, to prevent cascaded errors on a compiler built
18009 * sem_ch8.adb: Add with and use of Sem_Disp.
18010 (Analyze_Subprogram_Renaming): Replace unclean uses of
18011 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
18012 of Corresponding_Spec to Empty).
18013 (Attribute_Renaming): Replace use of Corresponding_Spec with
18014 Corresponding_ Formal_Spec and simplify condition.
18015 (Use_One_Package): Check that scope of homonym of identifier is defined,
18016 before checking whether it is a wrapper package.
18017 Add support for wide wide character type
18019 * sem_eval.adb: Add support for wide wide character type.
18020 (Eval_Arithmetic_Op): Check for compile time known signed integer
18021 overflow in the non-static case.
18022 (Subtypes_Statically_Match): A formal scalar type and its base type do
18023 not statically match.
18025 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
18026 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
18028 (Unit_Declaration_Node): Ditto.
18029 (Is_Variable_Prefix): For the case of an indexed component whose prefix
18030 has a packed array type, the prefix has been rewritten into a type
18031 conversion. Determine variable-ness from the converted expression.
18032 Handle wide wide character cases.
18034 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
18036 * stringt.ads, stringt.adb: Handle full UTF-32 range.
18037 Remove ["0A"] from comment, since it can look like a line terminator.
18038 Currently we don't permit this, but this is under discussion by the
18039 ARG, and it is easy enough to use a different example.
18041 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
18042 handling UTF-32 encoding for wide wide character.
18043 Implement new brackets coding ["hhhhhhhh"]
18044 Add UTF-8 encodings for full UTF-32 range
18046 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
18048 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
18049 bit range Add full UTF-32 support.
18050 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
18051 notify that constraint error will be raised at run-time
18052 because a null value is assigned to a null-excluding object.
18053 Remove some obsolete declarations and make Char_Code
18056 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
18057 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
18058 Rcheck subprograms.
18060 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
18061 wrong null-exclusion value by a warning message.
18062 (Enable_Range_Check): Do range check if the prefix is an
18063 explicit dereference whose designated object is an unconstrained array.
18064 Current algorithm for removing duplicate checks is over-eager in this
18067 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
18068 null-exclusion value by a warning message
18070 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
18071 completely. Add support for Uint2 field
18073 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
18074 exp_prag.adb: Char_Literal_Value field is now a Uint.
18076 * exp_util.adb (Insert_Actions): Replace
18077 N_Formal_Subprogram_Declaration by
18078 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
18079 Char_Literal_Value field is now a Uint.
18081 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
18082 defined for subprogram renaming declarations. When set, the field
18083 indicates the defining entity of a corresponding formal subprogram
18084 when the renaming corresponds to a formal subprogram association in an
18086 (Set_Corresponding_Formal_Spec): New procedure to return
18087 Corresponding_Formal_Spec field.
18088 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
18089 (which is now a subtype).
18090 Char_Literal_Value field is now a Uint
18092 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
18093 pointer to the base of the dispatch table.
18094 Minor changes to comments.
18095 (Controlling_Type): New function for determining the tagged type
18096 associated with a tagged primitive subprogram.
18097 (Expand_Dispatching_Call): Add support for a controlling actual that is
18098 directly a value of type Ada.Tag rather than a tagged object.
18100 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
18101 describing the new layout.
18102 (Dispatch_Table): The expander computes the actual array size, allocates
18103 the Dispatch_Table record accordingly, and generates code that displaces
18104 the base of the record after the Typeinfo_Ptr component. The access to
18105 these components is done by means of local functions.
18106 (Offset_To_Top): New function.
18107 (Typeinfo_Ptr): New function.
18108 (Get_TSD): Modified to access the new position of the TSD.
18109 (Set_TSD): Modified to save the TSD in its new position.
18111 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
18112 case of formal abstract subprograms. Add check and message for -gnat05.
18115 * sem_ch12.adb: Add with and use for Sem_Disp.
18116 (Analyze_Associations): Minor change from "=" to "in" for use of
18117 N_Formal_Subtype_Declaration (which is now a subtype).
18118 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
18119 N_Formal_Subtype_Declaration (which is now a subtype).
18120 (Analyze_Formal_Subprogram): Add handling for
18121 N_Formal_Abstract_Subprogram, marking the formal as abstract and
18122 dispatching, setting the controlling status of the formal parameters
18123 and result, and issuing an error if there is no controlling type for
18124 the formal subprogram.
18125 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
18126 which is an unclean use of that field, we set the new field
18127 Corresponding_Formal_Spec to make the formal subprogram available to
18128 processing in Analyze_Subprogram_Declaration.
18129 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
18130 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
18131 Constrained, so that it is is does not statically match its anonymous
18134 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
18135 abstract formal subprograms in error check for functions returning
18136 abstract types. Set scope of new designator for
18137 a parameterless subprogram, so that it is available when checking the
18138 body for nested subprograms, before full analysis of said body.
18139 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
18140 subprogram only if inner one comes from source.
18141 (Analyze_Function_Call): If the call is given in object notation, the
18142 analysis of the name rewrites the node and analyzes it with the proper
18143 argument list. After analyzing the name, if the call has been rewritten
18144 and the result type is set, no further analysis is needed.
18145 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
18146 mark in function specification, in a context where the formals are
18147 visible and hide outer homographs.
18149 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
18150 as the tagged type for the cases of abstract formal subprograms and
18151 renamings of those. Clean up spec comments.
18152 (Check_Dispatching_Context): Add error message to indicate "abstract
18153 procedure", covering the case of a call to a formal abstract procedure
18154 that has statically tagged operands.
18155 (Check_Dispatching_Call): Check for the case of an actual given by
18156 a tag-indeterminate function call whose type is an ancestor of the
18157 containing call's associated tagged type. This situation can occur
18158 for inherited primitives with function defaults. In this case we
18159 use the tagged type's tag directly as the controlling argument for
18161 (Expand_Call): Name change on call to Expand_Dispatch_Call.
18163 * sprint.adb (Sprint_Node_Actual): Split
18164 N_Formal_Subprogram_Declaration into two alternatives for the new
18165 cases N_Formal_Abstract_Subprogram_Declaration and
18166 N_Formal_Concrete_Subprogram_Declaration.
18167 Char_Literal_Value field is now a Uint.
18169 * trans.c: Get rid of junk Uint2 reference.
18170 Char_Literal_Value field is now a Uint.
18171 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
18172 (gigi): Correct third arg to gimplify_body.
18174 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
18175 (TYPE_LANG_FLAG_0): Check for record or union.
18177 * treepr.adb: Char_Literal_Value field is now a Uint
18179 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
18182 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
18183 Add full UTF-32 support
18184 Char_Code is now 32 bits
18186 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
18187 wide character UTF_32 line terminators.
18188 Initialize Main_Source_File to avoid error when no main
18191 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
18192 (Main_Source_File) when no main source has been loaded, to avoid
18195 2005-02-09 Robert Dewar <dewar@adacore.com>
18197 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
18198 Fix name of Set routine
18200 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
18203 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
18204 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
18207 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
18208 forms of Get_Line subprograms for AI-301.
18210 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
18211 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
18212 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
18213 a-stwima.ads: Minor reformatting.
18215 2005-02-09 Doug Rupp <rupp@adacore.com>
18216 Thomas Quinot <quinot@adacore.com>
18218 * adaint.c, adaint.h
18219 [VMS] (to_ptr32): New function.
18220 (MAYBE_TO_PTR32): New macro.
18221 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
18223 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
18224 [VMS] (#define fork()): Remove since unneccessary.
18225 (__gnat_set_close_on_exec): New routine to support
18226 GNAT.OS_Lib.Set_Close_On_Exec.
18228 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
18229 the parent side as close-on-exec so that they are not inherited by the
18232 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
18233 set or clear the FD_CLOEXEC flag on a file descriptor.
18235 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
18236 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18240 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
18241 on the field if Pragma Component_Alignment (Storage_Unit).
18242 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
18243 side-effects as if it were a constant; also make SAVE_EXPR to protect
18245 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
18247 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
18248 (components_to_record): Test it.
18249 Fix improper usage of REFERENCE_CLASS_P.
18251 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
18254 * utils2.c: Minor reformatting.
18256 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
18257 handle other cases like RECORD_TYPE.
18259 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
18261 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18263 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
18264 component of an array of arrays in an assignment context, and the
18265 aggregate has component associations that require sliding on
18266 assignment, force reanalysis of the aggregate to generate a temporary
18267 before the assignment.
18268 (Must_Slide): Make global to the package, for use in Gen_Assign.
18270 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18272 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
18273 unchecked union with no inferable discriminants, return a
18274 Raise_Program_Error node, rather than inserting it at the point the
18276 (Expand_Record_Equality, Component_Equality): Handle properly the case
18277 where some subcomponent is an unchecked union whose generated equality
18278 code raises program error.
18280 2005-02-09 Doug Rupp <rupp@adacore.com>
18282 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
18283 [VMS] (#define exit hack): Remove.
18285 2005-02-09 Pascal Obry <obry@adacore.com>
18286 Arnaud Charlet <charlet@adacore.com>
18288 * init.c (__gnat_initialize): Add a new parameter eh which contains the
18289 address of the exception registration. The Win32 version of this
18290 routine calls __gnat_install_SEH_handler() to initialize the SEH
18291 (Structured Exception Handling) handler.
18292 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
18293 SEH (Structured Exception Handling) now.
18294 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
18295 (__gnat_initialize for ppc-vxworks): Adjust comments and the
18296 preprocessor condition protecting the call to the extra eh setup
18297 subprogram, which is only available for the ppc target.
18298 (__gnat_clear_exception_count): replaced reference to
18299 variable taskIdCurrent by call to taskIdSelf(), cleaner.
18301 * seh_init.c: New file.
18303 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
18304 (GNATBIND_OBJS): Idem.
18306 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
18307 routine takes a new parameter (a pointer to the exception registration
18308 for the SEH (Structured Exception Handling) support.
18310 * raise.h: (__gnat_install_SEH_handler): New prototype.
18311 Update copyright notice.
18313 * s-tassta.adb (Task_Wrapper): Declare the exception registration
18314 record and initialize it by calling __gnat_install_SEH_handler.
18316 2005-02-09 Vincent Celier <celier@adacore.com>
18318 * make.adb (Gnatmake): Do not fail when the main project has no object
18321 2005-02-09 Doug Rupp <rupp@adacore.com>
18323 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
18324 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
18325 [VMS]: Add translations for g-enblsp.adb.
18327 * s-asthan-vms.adb: Removed.
18328 * s-asthan-vms-alpha.adb: Added.
18330 2005-02-09 Pascal Obry <obry@adacore.com>
18332 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
18333 (LIBGNAT_OBJS): Add seh_init.o.
18335 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18338 * Makefile.in: Link all gnat tools with -static-libgcc, since
18339 -shared-libgcc is now used by default on some systems (e.g. linux with
18341 Remove references to Makefile.prolog/generic, no longer used.
18343 2005-02-09 Vincent Celier <celier@adacore.com>
18345 * prj-makr.adb (Process_Directory): Put file name in canonical case
18346 before matching against the patterns.
18347 If gnatname has been invoked as <prefix>-gnatname
18348 then invoke the compiler as <prefix>-gcc, not just "gcc".
18350 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18352 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
18353 with expansion disabled. The actual subtype is needed among other
18354 places when the selected component appears in the context of a loop
18355 bound, and denotes a packed array.
18356 (Operator_Check): Always use the first subtype in the
18357 error message, to avoid the appearance of internal base types.
18358 (Transform_Object_Operation): Copy each actual in full
18359 to the parameter associations of the constructed call, rather than
18360 using the shallow copy mechanism of New_Copy_List. This ensures that
18361 the chaining of named associations is done properly.
18362 (Complete_Object_Operation): Rewrite node, rather than
18363 replacing it, so that we can trace back to the original selected
18366 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
18367 and calls that use object notation, if the called function is not
18368 declared in a withed unit, place the elaboration constraint on the
18369 unit in the context that makes the function accessible.
18370 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
18371 imposes an elaboration constraint between two packages.
18373 2005-02-09 Ed Schonberg <schonberg@adacore.com>
18375 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
18376 views of a private type after handling its private dependents, to
18377 maintain proper stack discipline between entry and exit from the
18380 2005-02-09 Cyrille Comar <comar@adacore.com>
18382 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
18383 Minor reformatting.
18385 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18387 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
18388 fields for foreign threads.
18390 2005-02-09 Doug Rupp <rupp@adacore.com>
18392 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
18393 recursion warnings when compiled with -gnatdm.
18395 2005-02-09 Robert Dewar <dewar@adacore.com>
18397 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
18398 Slight fix to documentation of -gnaty with no parameters
18400 * xr_tabls.ads: Add ??? comment for missing overall comment
18402 * xsinfo.adb: Make default file name be sinfo.h, since this is what
18403 we now use by default.
18405 * xsnames.adb: Adjust end of file test to look for five space followed
18406 by '#' instead of six spaces. The format of xsnames.adb was modified
18407 in the last update.
18409 * a-numeri.ads: Add reference to AI-388 for greek letter pi
18412 * clean.adb: Minor reformatting.
18414 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
18415 gnatname.adb: Minor reformatting
18416 Add 2005 to copyright output when utility is run
18418 * csets.adb: Eliminate obsolete comment
18420 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
18423 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
18425 2005-02-09 Sergey Rybin <rybin@adacore.com>
18427 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
18428 the difference between compact and incompact layout and add the record
18429 representation clause to the example illustrating different layouts.
18430 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
18431 component clauses").
18433 2005-02-09 Florian Villoing <villoing@adacore.com>
18435 * gnat_ugn.texi: Fix typos.
18436 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
18438 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
18439 in the generated documentation.
18441 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18443 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
18445 Update linker wrapper when linking with non GNU C++.
18447 2005-02-09 Pascal Obry <obry@adacore.com>
18450 Document the procedure to debug the DllMain routine on Windows.
18451 Add note about -funwind-tables and mixed Ada and C/C++ programming in
18453 Document new BIND qualifer /RETURN_CODES=VMS.
18455 2005-02-09 Ben Brosgol <brosgol@adacore.com>
18457 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
18458 Edited gnatmetric chapter
18460 2005-02-09 Robert Dewar <dewar@adacore.com>
18463 Changes to document new wide wide character support
18465 Update documentation on Normalize_Scalars and Initialize_Scalars
18467 2005-02-09 Pascal Obry <obry@adacore.com>
18469 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
18471 2005-02-09 Jose Ruiz <ruiz@adacore.com>
18473 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
18474 from the VxWorks kernel) that is needed for getting the active
18475 priority of the different tasks.
18477 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
18478 Use a pragma Elaborate_Body in the spec file instead.
18479 Noticed by code reading.
18481 2005-02-09 Thomas Quinot <quinot@adacore.com>
18483 * exp_util.ads: Minor correction in comment.
18485 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18487 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
18488 since this procedure is now too complex to be worth inlining.
18490 2005-02-09 Richard Henderson <rth@redhat.com>
18492 * utils.c (gnat_define_builtin): Remove.
18493 (gnat_install_builtins): Use build_common_builtin_nodes.
18495 2005-02-09 Arnaud Charlet <charlet@adacore.com>
18497 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
18498 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
18499 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
18500 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
18501 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
18502 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
18503 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
18504 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
18505 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
18506 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
18507 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
18508 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
18509 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
18510 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
18511 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
18512 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
18513 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
18514 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
18515 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
18516 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
18517 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
18518 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
18519 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
18520 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
18521 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
18522 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
18523 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
18524 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
18525 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
18526 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
18527 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
18528 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
18529 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
18530 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
18533 2005-01-27 Laurent GUERBY <laurent@guerby.net>
18535 * Makefile.in: Fix a-intnam.ads from previous commit,
18536 add 2005 to copyright.
18537 * a-intman-rtems.ads: Renamed to...
18538 * a-intnam-rtems.ads:
18540 2005-01-27 Laurent GUERBY <laurent@guerby.net>
18542 * Makefile.in: Rename GNAT RTEMS specific files.
18543 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
18544 5rosinte.ads, 5rparame.adb: Replaced by files below.
18545 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
18546 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
18548 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
18549 Laurent GUERBY <laurent@guerby.net>
18552 * 5rosinte.ads: Add No_Key constant.
18553 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
18554 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
18556 2005-01-26 Laurent GUERBY <laurent@guerby.net>
18559 * i-cobol.adb (Valid_Numeric): Handle zero length case.
18561 2005-01-20 Richard Henderson <rth@redhat.com>
18563 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
18564 a-intnam-linux.ads and system-linux-alpha.ads.
18565 * a-intnam-linux-alpha.ads: Remove file.
18566 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
18567 * system-linux-alpha.ads: New file.
18569 2005-01-18 Jakub Jelinek <jakub@redhat.com>
18572 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
18573 set to the new string.
18575 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
18577 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
18580 2005-01-18 Richard Henderson <rth@redhat.com>
18582 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
18583 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
18585 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
18587 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
18589 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
18590 (GCC_ZCX_Support): Likewise.
18592 2005-01-11 Bastian Blank <waldi@debian.org>
18594 * system-linux-s390.ads: Define Preallocated_Stacks.
18595 * system-linux-s390x.ads: Likewise.
18597 2005-01-04 Arnaud Charlet <charlet@adacore.com>
18599 * gnat_ugn.texi: Fix texi errors with null variables.
18601 2005-01-03 Thomas Quinot <quinot@adacore.com>
18603 * gen-soccon.c: New utility program to generate g-soccon.ads
18606 * socket.c, gsocket.h: Split inclusion of system header files into a
18607 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
18609 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
18610 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
18611 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
18612 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
18613 should not be edited by hand anymore, but should be regenerated using
18616 2005-01-03 Robert Dewar <dewar@adacore.com>
18617 Ed Schonberg <schonberg@adacore.com>
18618 Vincent Celier <celier@adacore.com>
18620 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
18621 on/off, since this is an obsolescent feature, for which we now generate
18624 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
18625 warning mode is set and obsolescent usage of this attribute occurs.
18626 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
18627 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
18628 predates, and partly motivates, the adoption of the AI.
18629 Implement new Ada 2005 attribute Mod
18631 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
18634 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
18636 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
18637 pragma restrictions.
18638 New entry for Ada 2005 attribute Mod.
18641 Add recognition of new pragma Restrictions No_Dependence
18642 Recognize restriction No_Obsolescent_Features at parse time
18644 * bcheck.adb: Add circuitry for checking for consistency of
18645 No_Dependence restrictions.
18647 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
18650 * restrict.ads, restrict.adb: Add subprograms to deal with
18651 No_Dependence restrictions.
18653 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
18656 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
18657 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
18659 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
18660 dummy parameter to scng instantiation.
18661 Needed for new restriction No_Obsolescent_Features
18663 * scn.adb: (Obsolescent_Check): New procedure
18664 Needed for new restriction No_Obsolescent_Features
18666 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
18667 specified by AI-285, needed for implementation of AI-388 (adding greek
18668 pi to Ada.Numerics).
18669 Add new generic formal to scng, needed for new restriction
18670 No_Obsolescent_Features.
18672 * s-rident.ads: Add new restriction No_Obsolescent_Features.
18674 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
18675 restrictions lines.
18676 (Scan_ALI): When finding an unexpected character on an R line, raise
18677 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
18678 Ignore_Errors is True, default restrictions are set and scanning of the
18679 ALI file continues with the next line. Also, when Bad_R_Line is raised
18680 and Ignore_Errors is True, skip to the end of le line.
18682 * sem_ch10.adb: Check that explicit with's do not violate
18683 No_Dependence restrictions.
18684 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
18685 illegal context clauses containing child units of instance.
18687 * sem_prag.adb: Processing and checking for new No_Dependence
18689 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
18690 analyze and check the External argument.
18692 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
18694 2005-01-03 Robert Dewar <dewar@adacore.com>
18696 * atree.adb: Add a fifth component to entities
18697 This allows us to add 32 flags and four new fields
18699 * atree.ads: Add a fifth component to entities
18700 This allows us to add 32 flags and four new fields
18702 * einfo.ads, einfo.adb: Document new fields and new flags now available
18703 Add routines for printing new fields
18705 * treepr.adb: Call routines to print out additional fields if present
18707 2005-01-03 Arnaud Charlet <charlet@adacore.com>
18709 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
18710 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
18712 * Makefile.in: Add support to build shared Ada libraries on solaris x86
18713 Remove gpr2make, replaced by gprmake.
18714 Remove references to gnatmem and libaddr2line.
18715 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
18716 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
18717 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
18718 a-numaux-darwin.ads and a-numaux-darwin.adb
18719 Enable mlib-tgt-lynxos.adb on lynxos.
18721 * Make-lang.in: Remove rules for gpr2make.
18722 When generating sdefault.adb, do not call Relocate_Path
18723 on S3 for function Target_Name, as it is not a path.
18724 Remove references to gnatmem and libaddr2line.
18726 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
18729 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
18731 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
18732 address is incompatible with its base type alignment constraints when
18733 this can be decided statically.
18735 2005-01-03 Olivier Hainque <hainque@adacore.com>
18737 * decl.c (compatible_signatures_p): New function. The intended purpose
18738 is to check if two function signatures for a call-site and a callee are
18739 compatible enough for the call to be valid. The underlying purpose is
18740 to check if a call to a mapped builtin is using the right interface.
18741 The current code actually does not check antyhing - this a placeholder
18742 for future refinements.
18743 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
18744 builtin calls for convention Intrinsic.
18746 * gigi.h (builtin_decl_for): Declare (new function).
18748 * utils.c (gnat_install_builtins): Install the target specific builtins.
18749 (builtin_decl_for): New function, provide a dummy body for now.
18751 2005-01-03 Geert Bosch <bosch@adacore.com>
18753 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
18754 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
18755 (Pred): Implement in terms of Succ.
18757 * trans.c (convert_with_check): Reimplement conversion of float to
18760 2005-01-03 Ed Schonberg <schonberg@adacore.com>
18761 Vincent Celier <celier@adacore.com>
18763 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
18764 bounds can be negative, and must be declared Int, not Nat.
18766 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
18767 array is checked after using the index in the array.
18769 * makegpr.adb (Add_Switches): Check if there is a package for the
18770 processor. If there is no package, do not look for switches.
18772 2005-01-03 Ed Schonberg <schonberg@adacore.com>
18774 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
18775 generation of predefined stream operations (specs and bodies) should
18776 proceed. Under various restrictions these subprograms must not be
18779 2005-01-03 Thomas Quinot <quinot@adacore.com>
18782 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
18783 amount of PCS-specific code in RACW stubs generation.
18784 (Copy_Specification): Set Etype on copied formal parameter entities, as
18785 this information is needed for PolyORB stubs generation.
18786 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
18787 variable Dynamic_Async.
18788 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
18789 (Build_RPC_Receiver_Specification): Make generic again, as recent
18790 changes have allowed RPC receivers to have the same profile for both
18791 variants of the PCS.
18792 Reorganise RPC receiver generation to reduce differences between the
18793 structure of GARLIC and PolyORB RPC receivers.
18794 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
18796 Simplify elaboration code for RCI packages.
18798 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
18799 generation to reduce differences between the structure of GARLIC and
18800 PolyORB RPC receivers.
18802 * s-stratt.adb: Fix typo in comment.
18804 2005-01-03 Thomas Quinot <quinot@adacore.com>
18806 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
18807 copied from Make_Init_Call).
18809 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
18810 reads and assignments on a temporary variable declared with appropriate
18813 2005-01-03 Robert Dewar <dewar@adacore.com>
18815 * i-c.adb (To_C): Raise CE if string is null and Append_Null
18817 2005-01-03 Robert Dewar <dewar@adacore.com>
18819 * i-cstrin.adb (Update): Do not append a null in form called with a
18820 String. This avoids unintended behavior.
18822 2005-01-03 Arnaud Charlet <charlet@adacore.com>
18825 * init.c: Fix warnings on Free BSD section.
18827 2005-01-03 Arnaud Charlet <charlet@adacore.com>
18830 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
18833 2005-01-03 Vincent Celier <celier@adacore.com>
18835 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
18836 libraries when Unique_Compile is True (-u switch).
18839 2005-01-03 Robert Dewar <dewar@adacore.com>
18841 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
18842 upper case letter or underscore after W, as allowed by spec.
18844 2005-01-03 Arnaud Charlet <charlet@adacore.com>
18846 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
18847 darwin port by using proper type definitions from header files.
18848 Use SIGTERM instead of SIGABRT for SIGADAABORT.
18850 2005-01-03 Robert Dewar <dewar@adacore.com>
18852 * par.adb: Enhance error message handling for configuration file
18855 2005-01-03 Robert Dewar <dewar@adacore.com>
18857 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
18858 removed during the previous update (test properly for case of dividing
18859 largest negative number by -1, which generates overflow).
18861 2005-01-03 Ed Schonberg <schonberg@adacore.com>
18862 Sergey Rybin <rybin@adacore.com>
18864 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
18865 to use as the defining identifier for a formal package.
18866 (Remove_Parent): If the instance takes place within (an instance of)
18867 a sibling, preserve private declarations of common parent.
18869 2005-01-03 Ed Schonberg <schonberg@adacore.com>
18871 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
18872 to determine whether one of the operands is a fixed-point type for
18873 which a user-defined multiplication or division operation might be
18876 * sem_res.adb (Valid_Conversion): The legality rules for conversions
18877 of access types are symmetric in Ada 2005: either designated type can
18880 2005-01-03 Vincent Celier <celier@adacore.com>
18882 * s-fileio.adb (Temp_File_Record): Change length of string component
18883 Name from L_tmpnam + 1 to max_path_len + 1.
18885 2005-01-03 Arnaud Charlet <charlet@adacore.com>
18887 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
18888 Self_Id.Deferral_Level = 0.
18889 (Do_Pending_Action): Move this function to the spec.
18891 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
18892 Do_Pending_Action explicitely when needed, in case we're using
18893 No_Abort restrictions.
18895 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
18896 deferral level since it will not get changed by the generated code.
18897 Keeping a default value of 1 would prevent some operations (e.g.
18898 select or delay) to proceed successfully.
18900 2005-01-03 Ben Brosgol <brosgol@adacore.com>
18901 Robert Dewar <dewar@adacore.com>
18902 Cyrille Comar <comar@adacore.com>
18904 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
18905 porting guide chapter (vms version).
18906 Revised doc title (removed "for native platforms") and subtitle.
18907 Add discussion on warning flag for obsolescent features. First we
18908 note that it applies to obsolete GNAT features, which was previously
18909 omitted. Second we contrast the behavior with that of the new
18910 Ada 2005 AI-368 restriction No_Obsolescent_Features.
18911 Preliminary rewriting of GNAT & libraries chapter in order to take
18912 into account default project locations & new project manager
18915 2005-01-03 Robert Dewar <dewar@adacore.com>
18917 * cstand.adb (Create_Operators): Clean up format and documentation of
18918 unary and binary operator result tables. No change in code, just
18919 reformatting and addition of comments.
18921 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
18922 sem_ch2.adb: Minor reformatting
18924 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
18925 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
18926 comments for Tree_Read and Tree_Write.
18928 2005-01-03 Pascal Obry <obry@adacore.com>
18930 * exp_attr.ads: Minor reformatting.
18932 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
18934 * comperr.adb (Compiler_Abort): Add specialized message for GAP
18937 2005-01-03 Ed Schonberg <schonberg@adacore.com>
18939 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
18940 whether the ancestor type is private, as may be the case with nested
18943 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
18946 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
18948 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
18950 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
18951 * utils2.c (build_unary_op): Likewise.
18953 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18955 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
18957 2004-12-19 Richard Henderson <rth@redhat.com>
18959 * trans.c (gigi): Update gimplify_body call.
18961 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
18963 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
18965 2004-12-07 Ed Falis <falis@adacore.com>
18967 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
18968 current task being suspended.
18970 * init.c (__gnat_clear_exception): added to reset VxWorks exception
18972 (__gnat_map_signal): removed test for current task being suspended.
18974 2004-12-07 Gary Dismukes <dismukes@adacore.com>
18976 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
18977 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
18978 targets (such as AAMP).
18980 2004-12-07 Ed Schonberg <schonberg@adacore.com>
18982 * atree.adb (Visit_Itype): Create a new name for the generated itype,
18983 because the back-end may otherwise treat it as a redefinition of the
18986 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
18988 * back_end.adb (Scan_Back_End_Switches): Accept --param.
18990 * lang-specs.h: Accept --param.
18992 2004-12-07 Vincent Celier <celier@adacore.com>
18994 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
18995 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
18996 Current_Body_Suffix => Ada_Body_Suffix).
18997 Take into account Externally_Built attribute.
18999 * clean.adb (In_Extension_Chain): Always return False when one of the
19000 parameter is No_Project.
19001 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
19002 Ada_Language_Index).
19003 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
19004 Process_Languages for procedure Parse).
19006 * gnatcmd.adb (Carg_Switches): New table.
19007 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
19008 Adapt to name changes in package Prj (Current_Spec_Suffix =>
19009 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
19011 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
19012 Header_Num and function Hash are now declared in package Prj,
19015 * prj.adb (Suffix_Of): New function.
19016 (Set (Suffix)): New procedure.
19017 (Hash): One function moved from Prj.Com
19018 (Is_Present, Language_Processing_Data_Of): New functions
19019 (Set): Two new procedures
19020 (Add_Language_Name, Display_Language_Name): New procedures
19022 * prj.ads: (Suffix_Of): New function
19023 (Set (Suffix)): New procedure
19024 Add several types and tables for multi-language support.
19025 (Header_Num): Type moved from Prj.Com
19026 (Hash): Two functions moved from Prj.Com
19027 (Is_Present, Language_Processing_Data_Of): New functions
19028 (Set): Two new procedures
19029 (Add_Language_Name, Display_Language_Name): New procedures
19030 (Naming): Component name changes:
19031 Current_Spec_Suffix => Ada_Spec_Suffix,
19032 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
19033 Impl_Suffixes, Supp_Suffixes.
19034 (Project_Data): New components: Externally_Built, Supp_Languages,
19035 First_Language_Processing, Supp_Language_Processing, Default_Linker,
19036 Default_Linker_Path.
19038 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
19039 new package Language_Processing with its attributes (Compiler_Driver,
19040 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
19041 Binder_Driver, Default_Linker).
19043 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
19044 (Header_Num): Type moved to package Prj
19046 * prj-env.adb: Adapt to name changes in package Prj
19047 (Current_Spec_Suffix => Ada_Spec_Suffix,
19048 Current_Body_Suffix => Ada_Body_Suffix).
19050 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
19051 default to the project path, except the "-" is one of the directories
19052 in env var ADA_PROJECT_PATH.
19053 (Current_Project_Path): Global variable, replacing Project_Path
19054 that was in the body of Prj.Part.
19055 (Project_Path): New function
19056 (Set_Project_Path): New procedure
19057 Initialize Current_Project_Path during elaboration of the package
19058 Remove dependency on Prj.Com, no longer needed
19060 * prj-ext.ads (Project_Path): New function
19061 (Set_Project_Path): New procedure
19063 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
19064 suffix is defined for language <lang>.
19065 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
19066 accessing directly the components of Naming.
19067 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
19068 Reorganise of this package.
19069 Break procedure Check in several procedures.
19071 * prj-nmsc.ads: Replace all procedures (Ada_Check,
19072 Other_Languages_Check and Language_Independent_Check) with a single
19075 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
19076 Process_Languages, no longer needed.
19078 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
19079 Current_Project_Path.
19080 Remove elaboration code, moved to the body of Prj.Ext
19081 Use new function Prj.Ext.Project_Path instead of old variable
19083 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
19084 When comparing with project paths on the stack, first put the resolved
19085 path in canonical case.
19086 (Parse_Single_Project): Set the path name of the project file in the
19087 tree to the normalized path.
19089 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
19090 parameter Process_Languages, no longer needed.
19091 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
19092 Other_Languages_Check.
19094 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
19095 to store the resolved canonical path of the project file.
19096 Remove dependency to Prj.Com, no longer needed
19098 * prj-util.adb: Adapt to name changes in package Prj
19099 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
19102 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
19103 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
19104 Externally_Built, Include_Option, Language_Processing.
19106 * makegpr.adb: Numerous changes due to changes in packages
19109 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
19110 default to the project path, except whe "-" is one of the directories
19111 in env var ADA_PROJECT_PATH.
19112 (Gnatls): In verbose mode, add the new section "Project Search Path:"
19114 2004-12-07 Robert Dewar <dewar@adacore.com>
19116 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
19118 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
19121 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
19122 flag. No longer needed now that we handle this in gnat1drv.adb.
19124 * repinfo.ads: Minor reformatting
19126 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19127 Olivier Hainque <hainque@adacore.com>
19128 Eric Botcazou <ebotcazou@adacore.com>
19130 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
19131 TYPE_SIZE_UNIT of result type if SIZE is not specified.
19132 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
19133 of a bitfield, which we know is useless and causes trouble because of
19134 alignment implications.
19136 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
19138 (process_attributes): Clear DECL_COMMON again when a section attribute
19140 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
19141 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
19142 (create_field_decl): Special case ADDRESSABLE negative to mean
19143 "no bitfield creation", to be used by make_aligning_type. Don't
19144 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
19145 fields claimed addressable still have to be bitfields. Use
19146 value_factor_p instead of a raw binop construction to check for the
19147 position's alignment.
19149 2004-12-07 Geert Bosch <bosch@adacore.com>
19151 * eval_fat.adb: Revert previous change.
19153 2004-12-07 Thomas Quinot <quinot@adacore.com>
19154 Ed Schonberg <schonberg@adacore.com>
19156 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
19157 with an implicit dereference as its prefix, use
19158 Insert_Explicit_Dereference instead of merely rewriting the prefix into
19159 an explicit dereference. This ensures that a reference to the original
19160 prefix is generated, if appropriate.
19162 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
19163 dereference is rewritten to an explicit one, generate a reference to
19164 the entity denoted by its prefix using the original prefix node, so
19165 the dereference can be properly recorded as a read of the denoted
19166 access value, if appropriate.
19168 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
19169 emitting 'assigned but never read' warning on a variable on the basis
19170 that it has an access type.
19171 (Check_References): Emit unreferenced warning when the scope is a
19174 2004-12-07 Robert Dewar <dewar@adacore.com>
19175 Ed Schonberg <schonberg@adacore.com>
19177 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
19180 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
19181 leaving call unchanged.
19182 This deals with the case where the pragma Import specified
19183 an external name, to be handled by the back end.
19185 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
19186 subprogram which is Imported with convention Intrinsic if an
19187 External_Name argument is specified.
19188 (Process_Import_Or_Interface): Properly diagnose link name argument.
19189 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
19190 with Sem_Ch6.Cannot_Inline.
19191 (Process_Inline): Provide separate warning for inapplicable inline
19193 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
19194 treatment is uniform on different targets.
19196 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19198 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
19199 construct is rewritten, preserve end label to permit source navigation.
19201 2004-12-07 Thomas Quinot <quinot@adacore.com>
19203 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
19204 Specific_Build_Stub_Target): New subprograms.
19205 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
19206 the PCS implementation used, using the above PCS-customized subprograms.
19207 Minor reformatting.
19208 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
19209 for generation of DSA code targeted to the PolyORB PCS.
19210 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
19211 implementation of the partition communication subsystem in ancillary
19213 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
19214 PolyORB_Support.Build_Stub_Type): New subrograms containing the
19215 PCS-specific part of Add_Stub_Type.
19216 (Insert_Partition_Check): Use runtime library function to perform
19219 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
19220 (RE_Same_Partition): New entity, from s-parint.
19222 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
19224 2004-12-07 Gary Dismukes <dismukes@adacore.com>
19226 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
19227 Output the copyright message on a separate line from the version
19230 2004-12-07 Joel Brobecker <brobecker@adacore.com>
19232 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
19233 compile-time warning.
19235 2004-12-07 Robert Dewar <dewar@adacore.com>
19237 * g-regpat.adb: (Match): Change a misuse of or to or else
19239 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19242 (Generate_Reference): Handle properly a reference to an entry formal,
19243 when an accept statement has a pragma Unreferenced for it.
19245 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
19246 and the Has_Pragma_Unreferenced flag for each formal before analyzing
19247 the body, to ensure that warnings are properly emitted for each accept
19248 statement of a given task entry.
19250 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
19252 * Makefile.in: Add support for foreign threads on VMS.
19254 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19256 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
19258 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
19260 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
19262 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
19264 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
19266 2004-12-07 Robert Dewar <dewar@adacore.com>
19268 * nlists.adb (Prepend_Debug): Remove parameters and nest within
19270 (Remove_Next_Debug): Same fix
19272 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
19273 maintain back pointers now, though we did not used to, and comments
19275 (Prepend): Remove pragma Inline.
19276 (Remove_Next): Same cleanup
19278 2004-12-07 Thomas Quinot <quinot@adacore.com>
19280 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
19281 used to record an implicit dereference as a read operation on its
19282 prefix when operating under -gnatc. Necessary to avoid spurious
19283 'variable assigned but never read' warnings in that mode.
19284 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
19285 is a non-overloaded implicit dereference, call the above subprogram to
19286 ensure proper recording of references.
19288 2004-12-07 Gary Dismukes <dismukes@adacore.com>
19290 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
19291 to be resolved later as part of Analyze_Iteration_Scheme's call to
19294 2004-12-07 Ed Schonberg <schonberg@adacore.com>
19296 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
19297 prefix is not a scalar type, place error message on prefix, not on
19300 2004-12-07 Bernard Banner <banner@adacore.com>
19302 * vxaddr2line.adb: Add support for x86 vxworks
19304 2004-12-07 Thomas Quinot <quinot@adacore.com>
19306 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
19307 documentation of the behaviour of these functions when passed an IP
19308 address that has no record in the system hosts database and no reverse
19311 * cstand.adb, a-tags.ads: Fix typos in comment.
19313 2004-12-07 Robert Dewar <dewar@adacore.com>
19315 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
19316 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
19317 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
19318 s-poosiz.ads: Minor reformatting
19320 * make.adb: Minor reformatting
19321 Add some ??? comments asking for more comments
19323 * s-poosiz.adb: Minor reformatting
19324 Add comments on alignment requirement
19326 * sinfo.ads: Remove obsolete comment and fix typo.
19328 2004-12-07 Vincent Celier <celier@adacore.com>
19329 Sergey Rybin <rybin@adacore.com>
19331 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
19332 Files" with the new tool and package names.
19333 Reformatting to suppress most of the warnings for line too long
19334 Document the new section "Project Search Path:" in the output of
19336 Add gnatmetric section
19338 2004-12-07 Vincent Celier <celier@adacore.com>
19340 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
19341 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
19342 and -eit to -ept. Added qualifier
19343 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
19345 2004-11-27 Andreas Schwab <schwab@suse.de>
19347 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
19349 2004-11-25 Arnaud Charlet <charlet@adacore.com>
19351 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
19352 internal implementation unit GNAT.Sockets.Thin,
19353 as their usage for sockets is non-portable (using the read and write
19354 functions from the system runtime library is fine on UNIX but won't
19355 work under Windows).
19357 * mingw32.h: Update copyright notice.
19359 2004-11-25 Arnaud Charlet <charlet@adacore.com>
19361 * ada-tree.h: Minor reformatting of previous change to avoid lines
19362 longer than 79 characters.
19364 2004-11-25 Olivier Hainque <hainque@adacore.com>
19366 * tb-gcc.c: GCC infrastructure based implementation of
19369 2004-11-24 Steven Bosscher <stevenb@suse.de>
19371 * misc.c (gnat_post_options): Don't clear
19372 flag_inline_functions.
19374 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
19377 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
19380 2004-11-21 Andreas Jaeger <aj@suse.de>
19382 * stylesw.adb: Change Style_Check_Subprogram_Order to
19383 Style_Check_Order_Subprograms.
19385 2004-11-18 Arnaud Charlet <charlet@adacore.com>
19387 * adaint.h, adaint.c
19388 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
19390 Add also a cast to kill another warning.
19391 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
19392 parameter with the priority class of the parent process instead of
19393 always using the NORMAL_PRIORITY_CLASS.
19394 (__gnat_dup): New function.
19395 (__gnat_dup2): New function.
19396 (__gnat_is_symbolic_link): Enable the effective body of this
19397 function when __APPLE__ is defined.
19399 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
19402 2004-11-18 Olivier Hainque <hainque@adacore.com>
19404 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
19405 address of which may be used to represent "others" and "all others"
19406 choices in exception tables, instead of the current harcoded
19407 (void *)0 and (void *)1.
19408 (Setup_Exception): Do nothing in the GNAT SJLJ case.
19410 * gigi.h (others_decl, all_others_decl): New decls representing the
19411 new Others_Value and All_Others_Value objects.
19412 (struct attrib): Rename "arg" component as "args", since GCC expects a
19413 list of arguments in there.
19415 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
19416 corresponding objects exported by a-exexpr, instead of hardcoded dummy
19419 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
19420 others_decl and all_others_decl instead of hardcoded dummy addresses
19421 to represent "others" and "all others" choices, which is cleaner and
19422 more flexible with respect to the possible eh pointer encoding policies.
19424 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
19425 (process_attributes): Account for the naming change of the "args"
19426 attribute list entry component.
19428 * decl.c (build_attr_list): Rename into prepend_attributes to allow
19429 cumulating attributes for different entities into a single list.
19430 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
19431 attributes for the current entity and propagate first subtype
19432 attributes to other subtypes.
19433 <E_Procedure>: Attribute arguments are attr->args and not
19434 attr->arg any more.
19435 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
19436 argument provided, as this is what GCC expects. Use NULL_TREE instead
19439 2004-11-18 Robert Dewar <dewar@adacore.com>
19441 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
19442 Minor reformatting througout (including new function specs)
19443 Add ??? comments asking for clarification.
19445 2004-11-18 Thomas Quinot <quinot@adacore.com>
19447 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
19448 incomplete duplicate implementation of this subprogram from butil.
19450 2004-11-18 Thomas Quinot <quinot@adacore.com>
19452 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
19453 procedures factors the common processing for building an RPC receiver
19454 for an RCI package or an RACW type.
19455 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
19456 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
19457 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
19459 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
19461 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
19463 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
19464 distribution subprogram identifiers that are either subprogram numbers
19466 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
19467 string distribution identifiers assigned to a given subprogram.
19468 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
19469 (Add_RAS_Dereference_TSS): Add comments.
19470 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
19471 is not referenced yet because it will be used by the PolyORB DSA
19473 (Insert_Partition_Check): Remove fossile code.
19474 (First_RCI_Subprogram_Id): Document this constant.
19475 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
19477 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
19478 replaced with calls to Get_Library_Unit_Name_String. Previously there
19479 were several instances of the same code in different locations in the
19480 compiler; this checkin completes the replacement of all of these
19481 instances with calls to a common subprogram.
19482 Minor reformatting.
19484 * sem_dist.adb: Remove comment noting that RPC receiver generation
19485 should be disabled for RACWs that implement RASs.
19486 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
19488 * sem_util.ads, sem_util.adb (Has_Stream): New function
19489 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
19490 qualified name of a library unit into the name buffer.
19491 (Note_Possible_Modification): Generate a reference only
19492 if the context comes from source.
19494 * snames.ads (PCS_Names): New subtype corresponding to names of
19495 supported implementations of the Partition Communication Subsystem
19496 (PCS) (i.e. the runtime library support modules for the distributed
19499 2004-11-18 Robert Dewar <dewar@adacore.com>
19500 Ed Schonberg <schonberg@adacore.com>
19502 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
19503 (Has_Rep_Pragma): New function
19504 (Has_Attribute_Definition_Clause): New function
19505 (Record_Rep_Pragma): Moved here from sem_ch13.adb
19506 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
19508 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
19510 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
19511 (Expand_Pragma_Psect_Object): New procedure
19512 These procedures contain the revised and cleaned up processing for
19513 these two pragmas. This processing was formerly in Sem_Prag, but
19514 is more appropriately moved here. The cleanup involves making sure
19515 that the pragmas are properly attached to the tree, and that no
19516 nodes are improperly shared.
19518 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
19519 pragmas to Exp_Prag, which is more appropriate.
19520 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
19521 check for duplicates Remove use of Is_Psected flag, no longer needed.
19522 Use new Make_String_Literal function with string.
19524 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
19525 that are functions return universal values, that have to be converted
19526 to the context type.
19527 Use new Make_String_Literal function with string.
19528 (Get_Stream_Convert_Pragma): New function, replaces the use of
19529 Get_Rep_Pragma, which had to be kludged to work in this case.
19531 * freeze.adb: Use new Has_Rep_Pragma function
19533 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
19534 function with string.
19535 Use new Has_Rep_Pragma function.
19537 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
19540 2004-11-18 Robert Dewar <dewar@adacore.com>
19542 * errout.ads, errout.adb: (First_Sloc): New function
19544 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
19545 check (-gnatyx) instead of being included as a redundant construct
19548 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
19549 Style_Check_Order_Subprograms.
19551 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
19552 stylesw.adb: Add Style_Check_Xtra_Parens
19554 * usage.adb: Add line for -gnatyx (check extra parens)
19556 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
19558 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19559 Robert Dewar <dewar@adacore.com>
19561 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
19562 discriminant of a constrained subtype, analyze the copy of the
19563 corresponding constraint, because in some cases it may be only
19564 partially analyzed.
19565 Removes long-lived ??? comments.
19567 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
19568 handled controlled or secondary-stack expressions within the
19569 iteration_scheme of a loop.
19571 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
19572 bounds that may contain functions calls, to prevent memory leaks when
19573 the bound contains a call to a function that uses the secondary stack.
19574 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
19575 generate temporaries for loop bounds that might contain function calls
19576 that require secondary stack and/or finalization actions.
19578 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
19579 selected component and the selector is overloadable (not just a
19580 function) treat as function call, Analyze_Call will disambiguate if
19582 (Analyze_Selected_Component): Do not generate an actual subtype for the
19583 selected component if expansion is disabled. The actual subtype is only
19584 needed for constraint checks.
19585 (Analyze_Allocator): If restriction No_Streams is set, then do
19586 not permit objects to be declared of a stream type, or of a
19587 composite type containing a stream.
19589 * restrict.ads: Remove the a-stream entry from Unit_Array, since
19590 No_Streams no longer prohibits with'ing this package.
19592 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
19593 discriminants, but the parent base has unknown discriminants, there is
19594 no discriminant constraint to inherit. Such a discrepancy can arise
19595 when the actual for a formal type with unknown discriminants is a
19596 similar private type whose full view has discriminants.
19597 (Analyze_Object_Declaration): If restriction No_Streams is set, then
19598 do not permit objects to be declared of a stream type, or of a
19599 composite type containing a stream.
19601 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19603 * exp_dbug.ads: Update documentation to reflect simpler encoding for
19604 protected operations.
19606 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
19607 generated name, it complicates decoding in gdb and hinders debugging
19608 of protected operations.
19609 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
19610 flag for the protected entry barrier function.
19611 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
19612 flag for the protected entry function.
19614 2004-11-18 Nicolas Setton <setton@adacore.com>
19616 * expect.c: Define __unix__ when __APPLE__ is defined.
19618 * Makefile.in: Inform the value of the variable GMEM_LIB in the
19619 Darwin-specific section.
19621 * lang-specs.h: Change the placement of the %1 marker.
19622 Works around the fact that gcc adds -fPIC by default under Darwin.
19624 2004-11-18 Ed Schonberg <schonberg@adacore.com>
19626 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
19627 type of the object with the packed array type, set the Analyzed flag
19628 on the object if it is an entity or simple indexed component, to avoid
19629 spurious type errors.
19631 2004-11-18 Gary Dismukes <dismukes@adacore.com>
19633 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
19634 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
19635 separate line from the version message.
19637 2004-11-18 Ed Falis <falis@adacore.com>
19639 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
19641 (init_float): Eliminate initialization of floating point status for
19642 AE653. The instructions have no effect for vThreads.
19644 2004-11-18 Vincent Celier <celier@adacore.com>
19646 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
19647 gnatbind is invoked with -shared.
19649 2004-11-18 Jose Ruiz <ruiz@adacore.com>
19651 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
19652 for Detect_Blocking which is redundant with the check done within the
19653 procedure Protected_Single_Entry_Call.
19654 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
19655 Detect_Blocking which is redundant with the check done within the
19656 procedure Protected_Single_Entry_Call.
19658 2004-11-18 Vincent Celier <celier@adacore.com>
19660 * makegpr.adb (Compile): Put the compiling switches (in package
19661 Compiler and on the command line) immediately after "-c", instead of
19662 at the end of the command line invocation of the compiler, when
19663 compiling a non-Ada file.
19664 (Build_Global_Archive): When there is no need to rebuild the archive,
19665 set Global_Archive_Exists, so that the archive is passed to the linker
19668 2004-11-18 Robert Dewar <dewar@adacore.com>
19669 Sergey Rybin <rybin@adacore.com>
19672 Remove extra paren check from list of checks for redundant constructs
19673 Add documentation of new -gnatyx style check (check extra parens)
19674 Remove paragraph about gnatelim debug options.
19676 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
19677 objects rather than forbidding dependencies on the package Ada.Streams.
19679 * sinfo.ads: Add ??? note that we should document pragmas passed to
19682 * g-expect.ads: Fix a few typos in the comments.
19684 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
19686 * misc.c (gnat_handle_option): Use %< and %> for quoting in
19689 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19691 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
19693 2004-11-07 Andreas Schwab <schwab@suse.de>
19695 * Makefile.in (install-gnatlib): Remove spurious hyphen.
19697 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
19700 * Makefile.in (darwin): Set soext to .dylib.
19702 2004-10-26 Vincent Celier <celier@gnat.com>
19703 Thomas Quinot <quinot@act-europe.fr>
19705 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
19706 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
19707 there is no use of GNAT.Sockets.Constants.
19708 Remove remaining pragma Import for C_Write
19709 Remove C_Read and C_Write from internal implementation unit
19710 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
19711 the read and write functions from the system runtime library is fine
19712 on UNIX but won't work under Windows).
19714 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
19715 (Check_Selector): Use C_Recv instead of C_Read.
19716 Selectors are the GNAT.Sockets abstraction to perform a select()
19717 call on a set of descriptors. To allow abortion of an ongoing
19718 select operation, some data is written to a dedicated socket that
19719 is always monitored.
19720 Under Windows, the write and read library functions cannot operate
19721 on sockets, so we need to use send and recv instead, which is portable
19722 across all supported platforms.
19724 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
19725 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
19726 (using the read and write functions from the system runtime library is
19727 fine on UNIX but won't work under Windows).
19729 2004-10-26 Nicolas Setton <setton@act-europe.fr>
19731 * mlib-tgt-darwin.adb: New file.
19733 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
19734 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
19735 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
19736 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
19739 * Makefile.in: Add support for building shared libraries under Darwin.
19740 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
19741 the low level EH init subprogram to be called from __gnat_initialize.
19743 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
19744 indicates which options to pass to the archive indexer.
19746 * mlib-utl.adb: Add support for calling ranlib with additional
19747 options. This is needed for instance under Mac OS X.
19748 (Ranlib_Options): New global variable, used to store the potential
19749 options to pass to ranlib.
19750 (Ar): Use Ranlib_Options when spawning ranlib.
19751 (Initialize): Set the value of ranlib option.
19753 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
19755 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
19756 instead of 8K, to reflect the real potential needs for stack-checking
19759 2004-10-26 Pascal Obry <obry@gnat.com>
19761 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
19763 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
19764 Windows only the initial thread stack size can be set so it is good to
19765 start we a low stack size.
19766 The OS will adjust the size as needed.
19768 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
19769 Nicolas Setton <setton@act-europe.fr>
19771 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
19772 "__unix__" instead of "unix".
19773 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
19774 sections were just mistakenly ignored. The former is
19775 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
19776 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
19777 of hpux. This prevents an unwanted definition of the symbol
19778 convert_addresses in adaint.o.
19780 2004-10-26 Gary Dismukes <dismukes@gnat.com>
19782 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
19783 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
19785 2004-10-26 Cyrille Comar <comar@act-europe.fr>
19787 * a-filico.ads, a-filico.adb: fix incorrect header.
19789 2004-10-26 Javier Miranda <miranda@gnat.com>
19791 * a-ststio.ads: Fix typo in identifier
19793 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
19795 * sem_ch4.adb: Minor reformatting.
19797 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19799 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
19800 enabled, check the result of unary and binary operations when the
19801 expression is the right-hand side of an assignment.
19803 2004-10-26 Vincent Celier <celier@gnat.com>
19805 * clean.adb (Delete): Do not output warnings when in quiet output and
19806 not in verbose mode.
19807 (Force_Deletions): New Boolean flag, defaulted to False
19808 (Delete): Only delete a file if it is writable, and when
19809 Force_Deletions is True.
19810 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
19811 (Usage): Line for new switch -f
19812 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
19815 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
19817 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
19818 JM type only if its size matches that of the wrapper. When a size is
19819 prescribed and the field is not aliased, remove the wrapper of a JM
19820 type only if the size is not greater than that of the packed array.
19821 (gnat_to_gnu_entity): Change the extension of packed array wrappers
19824 2004-10-26 Geert Bosch <bosch@gnat.com>
19826 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
19827 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
19828 (Pred): Implement in terms of Succ.
19830 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19832 * exp_aggr.adb (Safe_Component): An aggregate component that is an
19833 unchecked conversion is safe for in-place use if the expression of the
19834 conversion is safe.
19835 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
19836 be expandable in place even if the aggregate does not come from source.
19837 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
19838 designated object of an allocator in place, rather than building it
19839 first on the stack. The previous scheme forces a full copy of the array,
19840 and may be altogether unsusable if the size of the array is too large
19841 for stack allocation.
19843 2004-10-26 Robert Dewar <dewar@gnat.com>
19845 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
19846 compares if the component is atomic.
19848 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
19849 array assignment if the component type is atomic.
19851 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19852 Eric Botcazou <ebotcazou@act-europe.fr>
19854 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
19855 is aliased and is a by_reference type, do not pass by copy.
19856 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
19857 detect whether the call is in the right side of an assignment or
19858 the expression of an object declaration. Recurse on component
19859 association within aggregates.
19860 Call it in the condition that determines whether the temporary is
19861 necessary for correct stack-checking.
19863 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
19865 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
19866 RACW_Type, used in the PolyORB version.
19867 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
19868 version and the GARLIC version.
19870 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
19871 Rename RCI_Info to RCI_Locator for better consistency between the
19872 GARLIC and PolyORB versions of the distributed systems annex.
19873 (DSA_Implementation_Name): This enumeration lists the possible
19874 implementations of the Partition Communication Subsystem for the
19875 Distributed Systems Annex (DSA). The three available implementations
19876 are the dummy stub implementation (No_DSA), and two versions based on
19877 two different distribution runtime libraries: GARLIC and PolyORB. Both
19878 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
19880 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
19883 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
19884 between the GARLIC and PolyORB versions of the distributed systems
19886 Remove RE_Unbounded_Reclaim_Pool since it is unused.
19888 2004-10-26 Gary Dismukes <dismukes@gnat.com>
19890 * gnat1drv.adb: Suppress calling the back end when
19891 Frontend_Layout_On_Target is true.
19893 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
19895 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
19896 Set_Read_Only): New subprograms.
19897 These new routines allow the user to set or unset the Owner execute
19898 and Owner write permission flags on a file.
19900 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
19901 GNAT.OS_Lib.Set_Executable instead of rolling our own.
19903 2004-10-26 Matthew Gingell <gingell@gnat.com>
19905 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
19907 2004-10-26 Pascal Obry <obry@gnat.com>
19909 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
19910 memory before the faulting page we properly test the process read
19911 access for this address using appropriate Win32 routine.
19912 (HPUX sections): guard with "__hpux__" instead of "hpux".
19914 2004-10-26 Robert Dewar <dewar@gnat.com>
19916 * lib-xref.adb (Generate_Reference): Don't complain about reference to
19917 entry parameter if pragma Unreferenced set, since we do not properly
19918 handle the case of multiple parameters.
19920 2004-10-26 Vincent Celier <celier@gnat.com>
19922 * prj-env.adb: (Contains_ALI_Files): New Boolean function
19923 (Ada_Objects_Path.Add): For a library project, add to the object path
19924 the library directory only if there is no object directory or if the
19925 library directory contains ALI files.
19926 (Set_Ada_Paths.Add.Recursive_Add): Ditto
19928 2004-10-26 Vincent Celier <celier@gnat.com>
19930 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
19931 extension of library projects.
19933 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
19934 path defaults to ".:<prefix>/lib/gnat".
19935 (Parse): For an extending all project, allow direct import of a project
19936 that is virtually extended.
19938 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
19939 the specified name is directly imported, return its ID. Otherwise, if
19940 an extension of this project is imported, return the ID of the
19943 2004-10-26 Robert Dewar <dewar@gnat.com>
19945 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
19946 (Sub3): New procedure, used by Scaled_Divide
19947 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
19948 correct more than one instance of failure to propagate carries
19950 (Double_Divide): Handle overflow case of largest negative number
19951 divided by minus one.
19953 * s-arit64.ads (Double_Divide): Document that overflow can occur in
19954 the case of a quotient value out of range.
19957 2004-10-26 Robert Dewar <dewar@gnat.com>
19959 * s-bitops.adb (Bit_Eq): Remove redundant check.
19961 * s-bitops.ads: Minor comment updates
19962 Change some occurrences of Address to System.Address
19964 * s-carsi8.ads: Fix minor cut-and-paste error in comments
19966 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19968 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
19969 accessibility check to prefix that is a protected operation.
19971 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19973 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
19974 empty, post message on stub.
19976 2004-10-26 Ed Schonberg <schonberg@gnat.com>
19977 Javier Miranda <miranda@gnat.com>
19979 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
19980 current instance appears within a unit that is directly in the context
19982 Used to determine whether the body of the instance should be analyzed
19983 immediately after its spec, to make its subprogram bodies available
19984 for front-end inlining.
19985 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
19986 constraint is not allowed on the component type (AARM 12.5.3(3))
19988 2004-10-26 Cyrille Comar <comar@act-europe.fr>
19990 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
19991 'Storage_Pool): enhance, document & limit detection of non-sharable
19994 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
19996 * s-pooglo.ads: Add more documentation now that this pool is properly
19999 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20001 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
20002 or protected type with discriminants, do not constrain the
20003 corresponding record type if the subtype declaration has no
20004 discriminant constraints. This can be the case in source code, or in
20005 the subtype declaration created to rename an actual type within an
20008 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20010 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
20011 different kind of stub (possibly wrong name for file), do not check
20013 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
20014 includes call to some function that returns an unconstrained type, do
20017 2004-10-26 Ed Schonberg <schonberg@gnat.com>
20019 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
20020 appear in the code for the main unit. Dependencies among units in the
20021 context of the main unit are established when those other units are
20022 compiled. Otherwise spurious elaboration constraints can generate
20023 incorrect elaboration circularities.
20025 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
20026 Ed Schonberg <schonberg@gnat.com>
20028 * sem_util.adb (Is_Aliased_View): Defend against the case where this
20029 subprogram is called with a parameter that is not an object name. This
20030 situation arises for some cases of illegal code, which is diagnosed
20031 later, and in this case it is wrong to call Is_Aliased, as that might
20032 cause a compiler crash.
20033 (Explain_Limited_Type): Refine previous fix to include
20034 inherited components of derived types, to provide complete information.
20036 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
20037 is the prival for a protected object.
20038 It is necessary to mark this entity as a variable, in addition to
20039 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
20040 modified to avoid checking the Aliased flag on entities that are not
20041 objects. (Checking that flag for non-objects is erroneous and could
20042 lead to a compiler crash).
20044 2004-10-26 Robert Dewar <dewar@gnat.com>
20046 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
20047 X_Frac = 0.5, then we know that the number X must be positive.
20048 (Succ): Remove the same redundant test, and also fix the primary test
20049 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
20051 (Decompose): Add fuller comments to spec
20053 2004-10-26 Pascal Obry <obry@gnat.com>
20055 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
20056 validity (process must have read access). Set to 0 in all other cases.
20057 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
20058 violation on Win32.
20059 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
20060 segmentation violation.
20062 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
20064 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
20065 whose type is a constructed subtype of an aliased object with an
20066 unconstrained nominal subtype, convert the actual to the constructed
20067 subtype before taking its address.
20069 2004-10-26 Vincent Celier <celier@gnat.com>
20071 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
20072 (Is_Path_Name_Case_Sensitive): New function
20074 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
20075 (Base_Name, Simple_Name, Current_Directory, Compose,
20076 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
20079 2004-10-26 Cyrille Comar <comar@act-europe.fr>
20080 Vasiliy Fofanov <fofanov@act-europe.fr>
20081 Vincent Celier <celier@gnat.com>
20083 * gnat_ugn.texi: Generalize "finding memory problems" section into a
20084 "memory management issues" section and document some of the useful
20085 memory pools provided as part of the GNAT library.
20086 Remove "virtual" from declaration of A::method2 in
20087 the simple example of Ada/C++ mixed system.
20088 Library Projects may be virtually extended: their virtual extensions
20089 are not Library Projects.
20090 Added section on extending project hierarchies.
20092 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
20094 * adaint.c (__gnat_get_libraries_from_registry): Cast value
20096 (__gnat_portable_spawn): Remove const.
20098 * mingw32.h (MAXPATHLEN): Check for previous definition.
20100 2004-10-17 Matthias Klose <doko@debian.org>
20102 * gnatvsn.ads: Set gnat library version to 4.0.
20104 2004-10-05 Vincent Celier <celier@gnat.com>
20106 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
20108 2004-10-04 Laurent GUERBY <laurent@guerby.net>
20111 * Makefile.in: Define and use RANLIB_FLAGS.
20113 2004-10-04 Pascal Obry <obry@gnat.com>
20115 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
20116 other x86 platforms).
20118 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
20120 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
20121 in general and triggers stack alignment adjustment for thread entry
20122 points on targets where this is necessary.
20124 2004-10-04 Bernard Banner <banner@gnat.com>
20127 * Makefile.in: Add section for powerpc linux
20128 Add variant i-vxwork-x86.ads
20130 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
20132 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
20134 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
20135 table registration calls when need be. Ensures no reference to the crt
20136 ctors symbol are issued in the SJLJ case, which avoids possible
20137 undefined symbol errors in the case of modules to be statically linked
20140 2004-10-04 Javier Miranda <miranda@gnat.com>
20142 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
20143 in-line the code corresponding to subprogram Analyze_Actuals. In
20144 addition, analyze the actuals only in case of subprogram call.
20146 2004-10-04 Ed Falis <falis@gnat.com>
20148 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
20150 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
20152 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
20153 in the documentation.
20155 2004-10-04 Robert Dewar <dewar@gnat.com>
20157 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
20159 (Analyze_Block_Statement): Add circuitry to detect following dead code
20160 (Check_Unreachable_Code): Handle case of block exit
20162 2004-10-04 Robert Dewar <dewar@gnat.com>
20164 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
20165 (XMatchD): Avoid warning for Logic_Error call
20167 2004-10-04 Robert Dewar <dewar@gnat.com>
20169 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
20170 consider expressions buried within a procedure actual to be an actual.
20171 This caused some blowups with uses of packed slices within a procedure
20174 2004-10-04 Robert Dewar <dewar@gnat.com>
20176 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
20177 longer need to be initialized to zero.
20178 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
20179 initialized to zero.
20181 * checks.adb (Expr_Known_Valid): Packed arrays are now always
20182 considered valid, even if the representation is modular. That's correct
20183 now that we no longer initialize packed modular arrays to zero.
20185 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
20186 suffixes. These are now documented as the only cases in which the
20187 debugger ignores outer records.
20188 Previously, the spec allowed arbitrary suffixes for this purpose.
20189 Change name of LJM to JM for packed array pad records
20190 Create separate section on packed array handling, and add a whole new
20191 set of comments to this section describing the situation with packed
20192 modular types and justification requirements depending on endianness.
20194 2004-10-04 Robert Dewar <dewar@gnat.com>
20196 * a-except.adb: Add a comment for last change
20198 * einfo.ads: Minor spelling correction in comment
20200 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
20202 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
20205 * sem_util.ads: Minor comment update
20207 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20209 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
20210 Inline_Always when in Configurable_Run_Time mode.
20212 * sem_prag.adb (Process_Convention): If entity is an inherited
20213 subprogram, apply convention to parent subprogram if in same scope.
20214 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
20215 when in Configurable_Run_Time mode.
20217 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20219 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
20220 class_wide type after component list has been inherited.
20222 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20224 * sem_ch12.adb (Check_Generic_Actuals): New predicate
20225 Denotes_Previous_Actual, to handle properly the case of a private
20226 actual that is also the component type of a subsequent array actual.
20227 The visibility status of the first actual is not affected when the
20228 second is installed.
20229 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
20230 make fully recursive the treatment of formals of packages declared
20232 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
20233 the above on exit from an instantiation.
20234 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
20235 current instantiation which is now complete.
20236 (Analyze_Package_Instantiation): No instantiated body is needed if the
20237 main unit is generic. Efficient, and avoid anomalies when a instance
20238 appears in a package accessed through rtsfind.
20240 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20242 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
20243 do not generate a declaration for a temporary if the call is part of a
20244 library-level instantiation.
20246 2004-10-04 Ed Schonberg <schonberg@gnat.com>
20248 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
20249 searching for a limited component to flag.
20251 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
20252 expansion of Input, to account for the fact that the implicit call
20253 generated by the attribute reference must freeze the user-defined
20254 stream subprogram. This is only relevant to 'Input, because it can
20255 appear in an object declaration, prior to the body of the subprogram.
20257 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
20258 expansion can proceed and further errors uncovered.
20259 (Minor clean up): Fix cases of using | instead of \ for continuation
20262 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20264 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
20266 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
20267 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
20268 Use gcc_assert and gcc_unreachable.
20270 * decl.c (gnat_to_gnu_entity, case object): Check and process a
20271 specified alignment before validating size.
20272 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
20273 stripped-down declaration for the type of the inner field when making
20276 * utils.c (finish_record_type): Do not compute the size in units
20277 incrementally. Instead compute it once for the rep clause case.
20278 Use gcc_assert and gcc_unreachable.
20280 2004-10-04 Vincent Celier <celier@gnat.com>
20282 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
20284 (Is_Valid_Path_Name): Take '/' as a directory separator.
20286 2004-10-04 Vincent Celier <celier@gnat.com>
20288 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
20289 (Extended_Project) only if Extended_Project is defined, to avoid
20291 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
20293 (Parse_Single_Project): Ditto.
20295 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
20296 Add_To_Project_Path for virtual projects.
20298 2004-10-04 Vincent Celier <celier@gnat.com>
20300 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
20301 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
20302 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
20303 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
20304 parameter Options_2.
20306 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
20307 Build_Dynamic_Library with an empty Options_2.
20309 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
20312 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
20313 directory separator, if any.
20314 (Gprmake): Do not allow mains on the command line for library projects.
20315 Do not attempt to link when the project is a library project.
20316 (Library_Opts): New table to store Library_Options.
20317 (Build_Library): If Library_Options is specified, pass these options
20318 when building a shared library.
20320 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
20322 * s-tposen.adb (Service_Entry): The object must be always unlocked at
20323 the end of this procedure now that the unlock operation was inserted
20326 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
20328 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
20329 corresponding to the Preallocated_Stacks flags in System.
20330 (Get_Target_Parameters): Including the processing for
20331 Preallocated_Stacks.
20333 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
20334 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
20335 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
20336 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
20337 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
20338 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
20339 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
20340 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
20341 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
20342 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
20343 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
20344 used to signal whether the compiler creates the required stacks and
20345 descriptors for the different tasks (when True) or it is done by the
20346 underlying operating system at run time (when False).
20347 It is initially set to False in all targets.
20349 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
20350 if it is supported by the target.
20351 (Make_Task_Create_Call): Pass the stack address if it has been
20352 previously created. Otherwise pass a Null_Address.
20354 * snames.adb: Add _stack.
20356 * snames.ads: Add Name_uStack. Required to allow the expander to
20357 statically allocated task stacks.
20359 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
20360 Stack_Address argument.
20361 Check that its value is equal to Null_Address because this target does
20362 not support the static stack allocation.
20364 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20366 * usage.adb: Change "pragma inline" to "pragma Inline" in information
20369 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20371 * exp_dist.adb: Split declaration of asynchronous flag out of
20372 Add_RACW_Read_Attribute.
20373 Minor reformatting for better alignment with PolyORB version.
20374 Store the entity for the asynchronous flag of an RACW, rather than the
20375 expression, in the asynchronous flags table. This will allow this flag
20376 to be used in other subprograms beside Add_RACW_Read_Attribute.
20378 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
20380 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
20381 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
20382 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
20383 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
20384 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
20385 sockets constant MSG_NOSIGNAL (Linux-specific).
20386 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
20387 all Send operations.
20388 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
20389 from trigerring SIGPIPE.
20390 Rename components to avoid clash with Ada 2005 possible reserved
20392 (Check_Selector): When the select system call returns with an error
20393 condition, propagate Socket_Error to the caller.
20395 2004-10-01 Jan Hubicka <jh@suse.cz>
20397 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
20399 2004-09-23 Robert Dewar <dewar@gnat.com>
20402 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
20403 instead do this at freeze time (we won't do it if there is an address
20405 Change "pragma inline" to "pragma Inline" in information and error
20407 Minor reformatting.
20409 * freeze.adb (Check_Address_Clause): Remove previous change, not the
20410 right way of doing things after all.
20411 (Freeze_Entity): For object, set Is_Public for imported entities
20412 unless there is an address clause present.
20414 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
20416 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
20417 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
20418 ensures proper handling of types with rep clauses, which might have
20419 their TYPE_SIZE set already.
20421 2004-09-21 Robert Dewar <dewar@gnat.com>
20423 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
20424 packed array types in both little- and big-endian cases. This change
20425 ensures that we no longer count on the unused bits being initialized
20426 for such types (and in particular ensures that equality testing will
20427 only read the relevant bits).
20428 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
20429 These changes mean that we no longer need to initialize small packed
20431 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
20432 optimization to an LJM field as to its parent field.
20434 * ada-tree.h, trans.c, utils.c, utils2.c:
20435 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
20437 2004-09-20 Jan Hubicka <jh@suse.cz>
20439 * utils.c (gnat_finalize): Remove.
20440 (end_subprog_body): Directly call cgraph_finalize_function;
20441 do not lower the nested functions.
20443 2004-09-20 Robert Dewar <dewar@gnat.com>
20446 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
20447 if an address clause is present, since that means that the Import
20450 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
20452 * 5tsystem.ads: Removed, no longer used.
20454 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
20455 Zack Weinberg <zack@codesourcery.com>
20457 * ada-tree.def: Use tree_code_class enumeration constants
20458 instead of code letters.
20459 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
20460 Update for new tree-class enumeration constants.
20462 2004-09-17 Vincent Celier <celier@gnat.com>
20464 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
20465 capabilities of the general project manager.
20467 2004-09-09 Vincent Celier <celier@gnat.com>
20469 * a-direct.ads: Add pragma Ada_05
20470 (Directory_Entry_Type): Give default value to component Kind to avoid
20471 not initialized warnings.
20473 * a-direct.adb (Current_Directory): Remove directory separator at the
20475 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
20476 an existing directory.
20477 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
20478 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
20479 Convert the result to File_Size.
20481 * prj.ads: (Project_Error): New exception
20483 * prj-attr.adb: Except in procedure Initialize, Fail comes from
20484 Prj.Com, not from Osint.
20485 (Attrs, Package_Attributes): Tables moved to private part of spec
20486 (Add_Attribute, Add_Unknown_Package): Moved to new child package
20488 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
20489 Prj.Project_Error after call to Fail.
20490 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
20491 Fail. Check that package name is not already in use.
20493 * prj-attr.ads: Comment updates to indicate that all subprograms may be
20494 used by tools, not only by the project manager, and to indicate that
20495 exception Prj.Prj_Error may be raised in case of problem.
20496 (Add_Unknown_Package, Add_Attribute): Moved to new child package
20498 (Attrs, Package_Attributes): Table instantiations moved from the body to
20499 the private part to be accessible from Prj.Attr.PM body.
20501 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
20502 from new package Prj.Attr.PM.
20503 (Parse_Attribute_Declaration): Call Add_Attribute from new package
20506 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
20508 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
20509 instead of Elaboration_Checks).
20511 * a-calend.adb: Minor reformatting
20513 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20515 * gigi.h (maybe_pad_type): New declaration.
20516 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
20518 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
20520 * cuintp.c: Convert to use buildN.
20522 * decl.c (maybe_pad_type): No longer static.
20523 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
20525 Convert to use buildN.
20527 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
20528 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
20529 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
20531 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
20532 (gnat_gimplify_expr, case ADDR_EXPR): New case.
20533 Convert to use buildN.
20535 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
20536 TREE_READONLY for const.
20537 Convert to use buildN.
20539 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
20540 (create_var_decl): Refine when TREE_STATIC is set.
20541 Convert to use buildN.
20543 2004-09-09 Gary Dismukes <dismukes@gnat.com>
20545 * gnat_ugn.texi: Delete text relating to checking of ali and object
20548 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
20551 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
20553 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
20554 pragmas recognized by GNAT.
20556 * gnat_rm.texi: Document pragma Detect_Blocking.
20558 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
20559 raise Program_Error if called from a protected operation.
20561 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
20562 the protected action nesting level.
20563 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
20564 protected action nesting level.
20565 (Unlock): When pragma Detect_Blocking is active decrease the protected
20566 action nesting level.
20568 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
20569 Protected_Action_Nesting.
20571 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
20572 Common_ATCB record. It contains the dynamic level of protected action
20573 nesting for each task. It is needed for checking whether potentially
20574 blocking operations are called from protected operations.
20575 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
20576 Detect_Blocking is active or not in the partition.
20578 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
20579 raise Program_Error if called from a protected operation.
20580 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
20581 Program_Error if called from a protected operation.
20582 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
20583 Program_Error if called from a protected operation.
20585 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
20586 raise Program_Error if called from a protected operation.
20588 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
20589 raise Program_Error if called from a protected operation, and increase
20590 the protected action nesting level.
20591 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
20592 Program_Error if called from a protected operation, and increase the
20593 protected action nesting level.
20594 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
20595 protected action nesting level.
20597 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
20598 raise Program_Error if called from a protected operation, and increase
20599 the protected action nesting level.
20600 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
20601 Program_Error if called from a protected operation, and increase the
20602 protected action nesting level.
20603 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
20604 raise Program_Error if called from a protected operation.
20605 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
20606 active, raise Program_Error if called from a protected operation.
20607 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
20608 protected action nesting level.
20610 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
20611 insertion of the statement raising Program_Error. The run time
20612 contains the required machinery for handling that.
20614 * sem_util.ads: Change comment associated to procedure
20615 Check_Potentially_Blocking_Operation.
20616 This procedure does not insert a call for raising the exception because
20617 that is currently done by the run time.
20619 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
20621 * init.c: Add the global variable __gl_detect_blocking that indicates
20622 whether pragma Detect_Blocking is active (1) or not (0). Needed for
20623 making the pragma available at run time.
20624 (__gnat_set_globals): Pass and update the detect_blocking parameter.
20626 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
20627 pragma Detect_Blocking is active.
20629 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
20631 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
20632 DB is found in the ali file. Any unit compiled with pragma
20633 Detect_Blocking active forces its effect in the whole partition.
20635 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
20636 Detect_Blocking is active and delay is called from a protected
20639 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
20640 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
20641 Detect_Blocking is active (0 otherwise).
20642 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
20643 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
20646 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
20648 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
20649 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
20652 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
20653 (Register_Receiving_Stub): Add Subp_Info formal parameter.
20654 Update API in placeholder implemetation of s-parint to reflect changes
20655 in distribution runtime library.
20657 * sem_ch3.adb (Expand_Derived_Record): Rename to
20658 Expand_Record_Extension.
20660 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
20661 primitive operations of potentially distributed object types that have
20662 non-controlling anonymous access formals.
20664 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
20666 New implementation of expansion for remote access-to-subprogram types,
20667 based on the RACW infrastructure.
20668 This version of sem_dist is compatible with PolyORB/DSA as well as
20671 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
20672 Asynchrronous that applies to a remote access-to-subprogram type, mark
20673 the underlying RACW type as asynchronous.
20675 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
20676 __gnat_using_gnu_linker to 1.
20678 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
20679 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
20680 GNAT.Perfect_Hash_Generators, and remove the empty
20681 GNAT.Perfect_Hash package.
20683 * atree.adb: Minor reformatting
20685 * exp_ch3.adb (Expand_Derived_Record): Rename to
20686 Expand_Record_Extension.
20687 (Build_Record_Init_Proc.Build_Assignment): The default expression in
20688 a component declaration must remain attached at that point in the
20689 tree so New_Copy_Tree copies it if the enclosing record type is derived.
20690 It is therefore necessary to take a copy of the expression when building
20691 the corresponding assignment statement in the init proc.
20692 As a side effect, in the case of a derived record type, we now see the
20693 original expression, without any rewriting that could have occurred
20694 during expansion of the ancestor type's init proc, and we do not need
20695 to go back to Original_Node.
20697 * exp_ch3.ads (Expand_Derived_Record): Rename to
20698 Expand_Record_Extension.
20700 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
20701 Returns the RACW type used to implement a remote access-to-subprogram
20703 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
20704 New subprograms. Used to create a proxy tagged object for a remote
20705 subprogram. The proxy object is used as the designated object
20706 for RAS values on the same partition (unless All_Calls_Remote applies).
20707 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
20708 System.Partition_Interface.Get_Unique_Remote_Pointer.
20709 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
20710 Renamed from Add_RAS_*_Attribute.
20711 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
20713 New implementation of expansion for remote access-to-subprogram types,
20714 based on the RACW infrastructure.
20716 * exp_dist.ads (Copy_Specification): Update comment to note that this
20717 function can copy the specification from either a subprogram
20718 specification or an access-to-subprogram type definition.
20720 2004-09-09 Ed Schonberg <schonberg@gnat.com>
20722 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
20723 in an instance, between an explicit subprogram an one inherited from a
20724 type derived from an actual.
20726 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
20727 add a polling call if the subprogram is to be inlined by the back-end,
20728 to avoid repeated calls with multiple inlinings.
20730 * checks.adb (Apply_Alignment_Check): If the expression in the address
20731 clause is a call whose name is not a static entity (e.g. a dispatching
20732 call), treat as dynamic.
20734 2004-09-09 Robert Dewar <dewar@gnat.com>
20736 * g-trasym.ads: Minor reformatting
20738 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
20739 packed arrays, since unused bits are expected to be zero for a
20742 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
20744 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
20747 2004-09-09 Pascal Obry <obry@gnat.com>
20749 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
20750 enable map file generation. Add the right option to generate the map
20751 file if Map_File is set to True.
20753 * gnatdll.adb (Gen_Map_File): New variable.
20754 (Syntax): Add info about new -m (Map_File) option.
20755 (Parse_Command_Line): Add support for -m option.
20756 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
20757 Minor reformatting.
20759 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
20761 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
20762 new gnatdist implementation.
20763 Define a subpackage isolating the output routines specific to this
20766 2004-09-09 Joel Brobecker <brobecker@gnat.com>
20768 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
20770 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
20772 2004-09-09 Cyrille Comar <comar@act-europe.fr>
20774 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
20777 * opt.ads: Add Ada_Version_Runtime constant used to decide which
20778 version of the language is used to compile the run time.
20780 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
20782 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
20783 of variable length temporaries for function return now that the
20784 back-end and gigi support it.
20786 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20788 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
20790 * trans.c (struct stmt_group): Delete field GLOBAL.
20791 (gnat_init_stmt_group): Do not initialize it.
20792 (call_to_gnu): Use save_expr, not protect_multiple_eval.
20793 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
20794 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
20795 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
20796 (start_stmt_group): Likewise.
20797 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
20799 * utils2.c (ggc.h): Include.
20800 (build_call_raise): Call build_int_cst, not build_int_2.
20802 * utils.c (gnat_init_decl_processing): Fix arg to
20803 build_common_tree_nodes.
20804 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
20805 (gnat_define_builtin): Set built_in_decls.
20806 (init_gigi_decls): Call build_int_cst, not build_int_2.
20808 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
20809 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
20810 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
20811 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
20812 SET_TYPE_MODULE): Use them.
20813 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
20814 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
20815 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
20816 SET_TYPE_ADA_SIZE): Likewise.
20817 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
20818 (DECL_CONST_CORRESPONDING_VAR,
20819 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
20820 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
20821 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
20822 (TYPE_RM_SIZE_NUM): New macro.
20823 (TYPE_RM_SIZE): Modified to use above.
20825 * cuintp.c: (build_cst_from_int): New function.
20826 (UI_To_gnu): Use it.
20828 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
20829 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
20830 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
20831 MIN_EXPR for the size, copy it into new.
20833 2004-09-01 Robert Dewar <dewar@gnat.com>
20835 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
20836 packed indexed component where array is an IN OUT formal. This
20837 generated garbage code previously.
20839 * gnat_ugn.texi: Document -fverbose-asm
20841 * gnat-style.texi: Minor updates (note that boolean constants and
20842 variables are joined with AND/OR rather than short circuit forms).
20844 2004-09-01 Ed Schonberg <schonberg@gnat.com>
20846 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
20847 it is an upward conversion of an untagged type with no representation
20850 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
20852 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
20853 System.Partition_Interface.
20855 * checks.adb (Apply_Access_Checks): Do not generate checks when
20856 expander is not active (but check for unset reference to prefix of
20859 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
20860 pragma Debug as an if statement with a constant condition, for
20861 consistent treatment of entity references contained within the
20862 enclosed procedure call.
20864 2004-09-01 Vincent Celier <celier@gnat.com>
20866 * bindgen.adb: (Set_EA_Last): New procedure
20867 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
20869 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
20870 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
20871 linked without errors.
20872 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
20874 (Gen_Exception_Table_C): Correct same bugs
20876 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
20878 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
20879 on Windows, make sure that the drive letter is in upper case.
20881 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
20882 Windows, when the drive letter is added and Case_Sensitive is True, the
20883 drive letter is forced to upper case.
20885 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
20886 to Options_2 for the call to MLib.Utl.Gcc.
20888 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
20889 directory separator when defining BASE_DIR.
20891 2004-09-01 Pascal Obry <obry@gnat.com>
20893 * gprcmd.adb (Extend): Do not output trailing directory separator. This
20894 is not needed and it confuses Windows GNU/make which does not report
20895 directory terminated by a slash as a directory.
20896 (gprcmd): Idem for "pwd" internal command.
20898 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
20899 target names rewrite to fix regressions with recent version of
20900 GNU/make. Starting with GNU/make 3.80 the pipe character was not
20901 handled properly anymore.
20903 2004-09-01 Andreas Schwab <schwab@suse.de>
20905 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
20906 * raise.c [!IN_RTS]: Undef abort.
20908 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
20910 * utils2.c (build_allocator): Use ssize_int.
20912 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
20914 2004-08-27 Andreas Schwab <schwab@suse.de>
20916 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
20918 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
20919 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20921 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
20923 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
20925 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
20926 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
20927 * utils.c (init_gigi_decls): Likewise.
20928 * utils2.c (build_call_raise, build_allocator): Likewise.
20930 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
20932 * utils.c (gnat_init_decl_processing): Adjust
20933 build_common_tree_nodes call.
20935 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
20937 * utils2.c (build_allocator): Use build_int_cst for negative
20940 2004-08-18 Richard Henderson <rth@redhat.com>
20942 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
20944 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
20946 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
20948 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
20949 (gnat_to_gnu): Likewise.
20951 2004-08-16 Pascal Obry <obry@gnat.com>
20953 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
20954 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
20955 option and not mdll anymore. Update comment.
20957 2004-08-16 Pascal Obry <obry@gnat.com>
20959 * bld.adb (Put_Include_Project): Properly handle directory separators
20962 2004-08-16 Ed Schonberg <schonberg@gnat.com>
20964 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
20965 decreasing the number of allocated junk nodes while searching for the
20966 appropriate subprogram.
20968 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
20970 * cuintp.c (UI_To_gnu): Use build_int_cst..
20971 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
20972 * utils.c (init_gigi_decls): Likewise.
20973 * utils2.c (build_call_raise): Likewise.
20975 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
20977 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
20978 for a global aliased object with a variable size and an unconstrained
20979 nominal subtype, pretend there is no initializer if the one we have is
20980 incomplete, and avoid referencing an inexistant component in there. The
20981 part we have will be rebuilt anyway and the reference may confuse
20982 further operations.
20984 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
20986 * einfo.ads: Minor reformatting
20988 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
20989 restrictions in the ALI if we only want to warn about violations.
20991 2004-08-13 Vincent Celier <celier@gnat.com>
20993 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
20994 when creating a new Unit_Record in table Units.
20996 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
20997 that are violated, if any.
20999 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
21000 add directory separator if path already ends with a directory separator.
21002 2004-08-13 Ed Schonberg <schonberg@gnat.com>
21004 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
21005 unit, this is an attempt to inline a construct that is not available in
21006 the current restricted mode, so abort rather than trying to continue.
21008 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
21009 discriminants that rename those of the parent, recover names of
21010 original discriminants for the constraint on the full view of the
21012 (Complete_Private_Subtype): Do not create a subtype declaration if the
21013 subtype is an itype.
21015 * gnat_rm.texi: Added section on implementation of discriminated
21016 records with default values for discriminants.
21018 2004-08-13 Ed Schonberg <schonberg@gnat.com>
21021 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
21022 the second operand is overloaded.
21024 2004-08-10 Richard Henderson <rth@redhat.com>
21026 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
21027 add __builtin_alloca.
21029 2004-08-10 Richard Henderson <rth@redhat.com>
21031 * config-lang.in (boot_language): Yes.
21033 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
21035 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
21036 from complaining on potential uninitialized reference.
21037 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
21038 new specification and test explicitly for non-zero return value.
21040 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
21041 returning C.int, to avoid using a derived boolean type.
21043 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
21044 Duplicate_Subexpr_No_Checks in preference to direct use of
21045 Remove_Side_Effects and New_Copy_Tree.
21046 Clear Comes_From_Source on prefix of 'Size attribute reference.
21048 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
21049 g-socthi-vxworks.adb: Change calls to
21050 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
21051 and test explicitly for non-zero return value.
21053 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
21054 (Is_Socket_In_Set): Declare imported function as returning C.int, to
21055 avoid using a derived boolean type.
21057 2004-08-09 Albert Lee <lee@gnat.com>
21059 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
21061 2004-08-09 Pascal Obry <obry@gnat.com>
21063 * gnat_ugn.texi: Document new way to build DLLs on Windows using
21064 GCC's -shared option.
21066 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
21067 Options_2 parameter (options put after object files).
21069 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
21071 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
21072 ignore overflows on low and high bounds of an index to also account for
21073 differences in signedness between sizetype and gnu_index_subtype.
21074 These are as legitimate as the ones caused by a lower TYPE_PRECISION
21077 2004-08-09 Robert Dewar <dewar@gnat.com>
21079 * s-solita.ads, s-solita.adb: Minor reformatting
21081 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
21082 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
21083 obsolescent section
21084 Add note that No_Implicit_Conditionals does not suppress
21085 run time constraint checks.
21087 * vms_conv.ads: Minor reformatting
21089 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
21090 and necessary for following change).
21091 (Mark): Return new format Mark_Id containing sec stack address
21092 (Release): Use sec stack address from Mark_Id avoiding Self call
21094 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
21095 pointer (cleanup and necessary for following change).
21096 Define Mark_Id as record containing address of secondary stack, that way
21097 Release does not need to find the stack again, decreasing the number of
21098 calls to Self and improving efficiency.
21100 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
21102 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
21103 case variable into the individual case branches when possible.
21105 * sem_ch11.adb: Minor reformatting
21107 * prj.ads: Correct spelling of suffixs
21109 * prj-nmsc.adb: Minor reformatting
21110 Correct spelling suffixs throughout (also in identifiers)
21112 * freeze.adb: Minor spelling correction
21114 * exp_ch2.adb: Cleanups to handling of Current_Value
21115 (no functional effect).
21117 * bld.adb: Correct spelling of suffixs
21119 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
21121 2004-08-09 Ed Schonberg <schonberg@gnat.com>
21124 * sem_ch7.adb (Install_Private_Declarations): In the body of the
21125 package or of a child, private entities are both immediately_visible
21128 2004-08-09 Ed Schonberg <schonberg@gnat.com>
21130 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
21131 there are no range checks on the value of the literal.
21133 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
21134 wrapped is the triggering alternative of an asynchronous select, action
21135 statements mustbe inserted before the select itself.
21137 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
21138 case where the prefix is a protected function call.
21139 (Resolve_Attribute, case 'Access): The attribute reference on a
21140 subprogram is legal in a generic body if the subprogram is declared
21143 2004-08-09 Vincent Celier <celier@gnat.com>
21145 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
21146 languages, otherwise building the library may fail with unresolved
21148 (Compile_Sources): Do not build libraries if -c switch is used
21150 * gnatlink.adb (Process_Args): New switches -M and -Mmap
21151 (Write_Usage): If map file creation is supported, output new switches
21153 (Gnatlink): When -M is specified, add the necessary switch(es) to the
21154 gcc call, when supported.
21156 * Makefile.in: Added indepsw.o to the object list for gnatlink
21157 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
21159 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
21160 indepsw.adb, indepsw.ads: New files.
21162 2004-08-09 Bernard Banner <banner@gnat.com>
21164 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
21166 * Makefile.in: add section for vxworks x86
21168 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
21170 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
21171 per-object constrained components where the discriminant is of an
21173 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
21174 the parent initialization procedure for derived Unchecked_Unions.
21175 Instead, derived Unchecked_Unions build their own initialization
21177 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
21178 Check the body of the subprogram for details.
21179 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
21180 functions for derived Unchecked_Union types by introducing a condition.
21181 Allow the creation of TSS equality functions for Unchecked_Unions.
21182 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
21183 Add formal parameter Discr to function signature. Discr is used to
21184 control the generated case statement for Unchecked_Union types.
21185 (Make_Eq_If): Rename formal parameter Node to E in function signature.
21187 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
21189 Check the body of the subprogram for details.
21190 (Expand_Composite_Equality): Augment composite type equality to include
21191 correct handling of Unchecked_Union components.
21192 (Expand_N_In): Add condition to detect illegal membership tests when the
21193 subtype mark is a constrained Unchecked_Union and the expression lacks
21194 inferable discriminants, and build a Raise_Program_Error node.
21195 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
21196 to detect types that contain components of unconstrained Unchecked_Union
21197 subtype. Add condition to detect equality between types that have an
21198 unconstrained Unchecked_Union component, and build a Raise_Program_Error
21199 node. Add condition to detect equality between Unchecked_Union types
21200 that lack inferable discriminants, and build a Raise_Program_Error node.
21201 Otherwise build a TSS equality function call.
21202 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
21203 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
21204 with the operand lacking inferable discriminants, and build a Raise_
21205 Program_Error node.
21206 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
21207 composite equality.
21208 (Has_Inferable_Discriminants): Implement new predicate for objects and
21209 expressions of Unchecked_Union type. Check the body of subprogram for
21211 (Has_Unconstrained_UU_Components): Add function
21212 Component_Is_Unconstrained_UU. It is used to detect whether a single
21213 component is of an unconstrained Unchecked_Union subtype. Add function
21214 Variant_Is_Unconstrained_UU. It is used to detect whether a single
21215 component inside a variant is of an unconstrained Unchecked_Union type.
21217 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
21218 inferred discriminant values. Add condition to generate a case
21219 statement with an inferred discriminant as the switch.
21220 (Make_Component_List_Assign): Introduce a Boolean flag that determines
21221 the behaviour of the subprogram in the presence of an Unchecked_Union.
21222 Add condition to trigger the usage of the inferred discriminant value
21223 as the generated case statement switch.
21224 (Make_Field_Assign): Introduce a Boolean flag that determines the
21225 behaviour of the subprogram in the presence of an Unchecked_Union. Add
21226 condition to trigger the usage of the inferred discriminant value as
21227 the right-hand side of the generated assignment.
21229 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
21230 parameter generation when dealing with Unchecked_Unions.
21232 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
21233 checks for Unchecked_Unions.
21235 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
21237 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
21238 Raise_Program_Error nodes for the execution of Read and Write
21239 attributes of Unchecked_Union types and the execution of Input and
21240 Output attributes of Unchecked_Union types that lack default
21241 discriminant values.
21243 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
21244 Unchecked_Union. Add procedure Check_Component. It is used to inspect
21245 per-object constrained components of Unchecked_Unions for being
21246 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
21247 check individual components withing a variant.
21249 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
21250 comparison of Unchecked_Unions.
21251 (Resolve_Equality_OP): Remove guard that prevents equality between
21254 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
21255 of component subtypes for Unchecked_Union components.
21256 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
21257 since it is the actual subtype.
21259 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
21260 pass of Unchecked_Union subtypes as generic actuals to formal types
21261 that lack known_discriminant_parts or that are derived Unchecked_Union
21262 types, and do nothing. In any other case, produce an error message.
21264 * sem_ch3.adb (Analyze_Component_Declaration): Add function
21265 Contains_POC. It determines whether a constraint uses the discriminant
21266 of an enclosing record type.
21267 Add condition to detect per-object constrained component and set the
21269 (Derived_Type_Declaration): Remove guard that prevents derivation from
21270 Unchecked_Union types.
21271 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
21274 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
21275 references to Unchecked_Union discriminants.
21277 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
21278 formal generation when dealing with Unchecked_Unions.
21279 (Set_Actual_Subtypes): Add condition to prevent generation of actual
21280 subtypes for Unchecked_Unions.
21282 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
21283 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
21284 completions of discriminated partial views by Unchecked_Unions and
21285 produce an error message.
21287 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21289 * trans.c (struct stmt_group): New field, GLOBAL.
21290 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
21291 (struct elab_info): New struct.
21292 (elab_info_list, gnu_elab_proc_stack): New variables.
21293 (Compilation_Unit_to_gnu): New procedure.
21294 (gigi): Call it and also handle elaboration procs we've saved.
21295 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
21296 global field from parent.
21297 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
21298 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
21299 (start_stmt_group): Initialize global field from parent.
21300 (add_decl_expr): Set to global for current statement group.
21301 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
21304 * utils.c (global_bindings_p): True when no current_function_decl; no
21305 longer check current_binding_level.
21307 2004-08-09 Ben Brosgol <brosgol@gnat.com>
21309 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
21312 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
21314 2004-08-06 Andreas Schwab <schwab@suse.de>
21316 * utils.c (gnat_define_builtin): Remove second parameter of
21318 (begin_subprog_body): Likewise.
21320 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
21322 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
21323 optimization, not supported by the tree-ssa back-end.
21325 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
21327 * s-mastop-irix.adb: Update comments.
21329 * a-except.adb (Exception_Information): Raise Constraint_Error if
21330 exception Id is Null_Id.
21331 This is required behavior, which is more reliably and clearly checked
21332 at the top level interface level.
21334 2004-07-26 Javier Miranda <miranda@gnat.com>
21336 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
21337 call if a component has no default_expression and the box is used.
21339 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
21340 default_expression and you use box, it behaves as if you had declared a
21341 stand-alone object.
21342 (Resolve_Record_Aggregate): If a component has no default_expression and
21343 you use box, it behaves as if you had declared a stand-alone object.
21345 * sem_ch10.adb (Install_Siblings): Do not make visible the private
21346 entities of private-with siblings.
21348 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21350 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
21351 for a component of an itype, set the parent pointer for analysis,
21352 there is no list in which to insert it.
21354 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
21355 bona-fide renamings, not for inherited operations.
21357 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
21358 actual for a formal that is an access parameter, create local
21359 finalization list even if the expression is not an aggregate.
21361 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21364 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
21365 Diagnose properly illegal subprogram renamings that are library units.
21367 2004-07-26 Ed Schonberg <schonberg@gnat.com>
21370 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
21371 conversion rewritten as an unchecked conversion, check that original
21372 expression is a variable.
21374 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
21375 unchecked_conversion, create new node rather than rewriting in place,
21376 to preserve original construct.
21378 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21380 * gigi.h (gnat_expand_body): Deleted.
21382 * Make-lang.in: (trans.o): Depends on function.h.
21384 * misc.c: (gnat_expand_body): Moved to here.
21386 * trans.c (gnat_expand_body_1): Deleted.
21387 (gnat_expand_body): Moved from here.
21388 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
21389 (add_stmt): Check for marked visited with global_bindings_p.
21390 (gnat_gimplify_expr, case COMPONENT_REF): New case.
21391 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
21393 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
21394 VIEW_CONVERT_EXPR if not operation type.
21396 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
21399 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
21400 changes: reformatting of negation operators, removing unneeded
21401 inequality comparison with zero, converting equality comparisons with
21402 zero to negations, changing int/0/1 to bool/false/true, replace calls
21403 to gigi_abort with abort, and various other similar changes.
21405 2004-07-26 Vincent Celier <celier@gnat.com>
21407 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
21410 * make.adb (Gnatmake): Fail when a library is not present and there is
21411 no object directory.
21413 * mlib-prj.adb (Check_Library): No need to check if the library needs
21414 to be rebuilt if there is no object directory, hence no object files
21415 to build the library.
21417 * opt.ads (Setup_Projects): New Boolean flag.
21419 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
21421 Create directory when Kind /= "" and in "gnat setup". Report error if
21422 directory cannot be created.
21423 (Ada_Check): Create library interface copy dir if it does not exist
21424 and we are in "gnat setup".
21425 (Find_Sources): No error if in "gnat setup" and no Ada sources were
21427 (Language_Independent_Check): Create object directory, exec directory
21428 and/or library directory if they do not exist and we are in
21431 * vms_conv.ads: (Command_Type): New command Setup.
21433 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
21435 * vms_data.ads: Add qualifiers/switches for new built-in command
21438 2004-07-25 Richard Henderson <rth@redhat.com>
21440 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
21441 DECL_IGNORED_P on RESULT_DECL.
21443 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
21445 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
21446 allocation and potentially overflowing update with
21447 Tailored_Exception_Information. Use the sec-stack free procedural
21448 interface to output Exception_Information instead.
21450 * a-except.adb (To_Stderr): New subprogram for character, and string
21451 version moved from a-exextr to be visible from other separate units.
21452 (Tailored_Exception_Information): Remove the procedural version,
21453 previously used by the default Last_Chance_Handler and not any more.
21454 Adjust various comments.
21456 * a-exexda.adb: Generalize the exception information procedural
21457 interface, to minimize the use of secondary stack and the need for
21458 local buffers when the info is to be output to stderr:
21459 (Address_Image): Removed.
21460 (Append_Info_Character): New subprogram, checking for overflows and
21461 outputing to stderr if buffer to fill is of length 0.
21462 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
21463 (Append_Info_Address, Append_Info_Exception_Name,
21464 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
21465 Append_Info_Basic_Exception_Traceback,
21466 Append_Info_Exception_Information): New subprograms.
21467 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
21468 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
21469 Exception_Info_Maxlength, Exception_Name_Length,
21470 Exception_Message_Length): New subprograms.
21471 (Exception_Information): Use Append_Info_Exception_Information.
21472 (Tailored_Exception_Information): Use
21473 Append_Info_Basic_Exception_Information.
21474 Export services for the default Last_Chance_Handler.
21476 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
21477 other separate units.
21479 2004-07-20 Vincent Celier <celier@gnat.com>
21481 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
21483 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21485 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
21486 emit itype references for the designated types of component types that
21487 are declared outside of the full record declaration, and that may
21488 denote a partial view of that record type.
21490 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21493 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
21494 which is the designated type in an access component declaration, to the
21495 list of incomplete dependents of the parent type, to avoid elaboration
21496 issues with out-of-scope subtypes.
21497 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
21498 full view of the parent.
21500 2004-07-20 Ed Schonberg <schonberg@gnat.com>
21503 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
21504 entities that are hidden, such as references to generic actuals
21505 outside an instance.
21507 2004-07-20 Javier Miranda <miranda@gnat.com>
21509 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
21510 support to the new notation.
21511 (Analyze_Selected_Component): Add call to Try_Object_Operation.
21513 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
21515 * s-taprob.adb: Adding the elaboration code required for initializing
21516 the tasking soft links that are common to the full and the restricted
21519 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
21520 restricted run time has been moved to the package
21521 System.Soft_Links.Tasking.
21523 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
21524 restricted run time has been moved to the package
21525 System.Soft_Links.Tasking.
21527 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
21529 * s-solita.ads, s-solita.adb: New files.
21531 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21533 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
21534 Case_Statement_to_gnu): Split off from gnat_to_gnu.
21535 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
21536 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
21537 Exception_Handler_to_gnu_zcx): Likewise.
21539 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
21541 * gigi.h (builtin_function): Declare.
21543 2004-07-15 Robert Dewar <dewar@gnat.com>
21545 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
21548 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
21549 access values as an example of a warning.
21551 * gnat_rm.texi: Document new attribute Has_Access_Values
21553 * gnat-style.texi: Document that box comments belong on nested
21556 * sem_util.ads (Has_Access_Values): Improved documentation
21558 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
21560 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
21561 (Process_Interface_Name): Call to this new procedure
21562 (Set_Extended_Import_Export_External_Name): Call to this new procedure
21564 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
21566 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
21568 * einfo.ads: Minor comment typo fixed
21570 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
21572 * snames.adb: Add _atcb.
21574 * snames.ads: Add Name_uATCB.
21576 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
21577 (in the expanded code) when using the restricted run time.
21579 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
21580 a in parameter in order to allow ATCBs to be preallocated (in the
21583 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
21584 order to allow ATCBs to be preallocated. In case of error, the ATCB is
21585 deallocated in System.Tasking.Stages.
21587 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
21588 order to allow ATCBs to be preallocated.
21590 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
21591 here. It was previously done in Initialize_ATCB.
21593 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
21595 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
21596 Restricted run time.
21598 * exp_ch3.adb: When using the Restricted run time, pass the
21599 preallocated Ada_Task_Control_Block when creating a task.
21601 2004-07-15 Ed Schonberg <schonberg@gnat.com>
21603 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
21604 function call that is itself an actual in an enclosing call, diagnose
21605 problem here rather than assuming that resolution will catch it.
21607 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
21608 the local copy of a generic unit for a formal package, and the generic
21609 is a child unit, install private part of ancestors before compiling
21610 private part of spec.
21612 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
21613 use scope entities rather than tree structures, to handle properly
21614 parent units that are instances rewritten as bodies for inlining
21617 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
21618 Remove_Parents): Handle properly a parent unit that is an
21619 instantiation, when the unit has been rewritten as a body for inlining
21622 * par.adb (Goto_List): Global variable to collect goto statements in a
21623 given unit, for use in detecting natural loops.
21625 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
21626 use in detecting natural loops.
21628 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
21629 backwards goto's, and rewrite as a infinite loop, to improve locality
21632 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
21633 subcomponent that includes an indexed reference, to prevent the
21634 generation of copies that would miscompile the desired assignment
21636 (Build_Task_Image_Decls): Add a numeric suffix to
21637 generated name for string variable, to avoid spurious conflicts with
21638 the name of the type of a single protected object.
21640 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
21641 loop with an explicit exit statement, to avoid generating an
21642 out-of-range value with 'Succ leading to spurious constraint_errors
21643 when compiling with -gnatVo.
21645 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
21647 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
21648 might not be analyzed yet, even if its Etype is already set (case of an
21649 unchecked conversion built using Unchecked_Convert_To, for example).
21650 If the prefix has already been analyzed, this will be a nop anyway.
21652 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
21653 controller type, or an assignment of a record type with controlled
21654 components, copy only user data, and leave the finalization chain
21655 pointers untouched.
21657 2004-07-15 Vincent Celier <celier@gnat.com>
21659 * make.adb (Collect_Arguments): Improve error message when attempting
21660 to compile a source not part of any project, when -x is not used.
21662 * prj.ads: (Defined_Variable_Kind): New subtype
21664 * prj-attr.adb (Register_New_Package): Two new procedures to register
21665 a package with or without its attributes.
21666 (Register_New_Attribute): Mew procedure to register a new attribute in a
21668 New attribute oriented subprograms: Attribute_Node_Id_Of,
21669 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
21670 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
21672 New package oriented subprograms: Package_Node_Id_Of,
21673 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
21675 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
21677 (Package_Node_Id): Now a private, self initialized type
21678 (Register_New_Package): New procedure to register a package with its
21680 New attribute oriented subprograms: Attribute_Node_Id_Of,
21681 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
21682 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
21684 New package oriented subprograms: Package_Node_Id_Of,
21685 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
21687 * prj-dect.adb (Parse_Attribute_Declaration,
21688 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
21690 * prj-makr.adb (Make): Parse existing project file before creating
21691 other files. Fail if there was an error during parsing.
21693 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
21694 new spec of Prj.Attr.
21696 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
21697 to new spec of Prj.Attr.
21699 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21701 * utils2.c: Fix typo in comment.
21703 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21705 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
21706 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
21708 2004-07-14 Andreas Schwab <schwab@suse.de>
21710 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
21712 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21714 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
21716 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
21719 * misc.c (gnat_types_compatible_p): New function.
21720 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
21721 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
21723 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
21724 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
21725 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
21726 (mark_visited): Don't mark dummy type.
21727 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
21728 parameter, we must remove any LJM building from GNU_NAME.
21729 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
21730 (pos_to_constructor): Use int_const_binop.
21731 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
21734 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
21735 (gnat_pushlevel): Set TREE_USE on BLOCK node.
21736 (gnat_install_builtins): Add __builtin_memset.
21738 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
21740 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
21741 for a renaming, stabilize the initialization expression if we are at a
21742 local level. At the local level, uses of the renaming may be performed
21743 by a direct dereference of the initializing expression, and we don't
21744 want possible variables there to be evaluated for every use.
21746 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
21747 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
21748 them on the way. Account for the fact that we may introduce side
21749 effects in the process.
21751 2004-07-13 Richard Henderson <rth@redhat.com>
21753 * misc.c (default_pass_by_ref): Use pass_by_reference.
21755 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
21757 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
21758 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
21760 2004-07-08 Richard Henderson <rth@redhat.com>
21762 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
21765 2004-07-06 Vincent Celier <celier@gnat.com>
21767 * vms_conv.ads: Minor reformatting.
21768 Alphabetical order for enumerated values of type Command_Type, to have
21769 the command in alphabetical order for the usage.
21771 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
21772 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
21774 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
21776 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
21777 (Add_Archive_Path): Only add the global archive if there is one.
21778 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
21779 or not any object file to put in the global archive, and don't build
21780 a global archive if there is none.
21781 (X_Switches): New table
21782 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
21783 in the X_Switches table, if any.
21784 (Initialize): Make sure the X_Switches table is empty
21785 (Scan_Arg): Record -X switches in table X_Switches
21787 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
21789 * make.adb: Minor comment fix
21791 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
21792 invoked with directory information, add the directory in front of the
21795 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
21796 invoked with directory information, add the directory in front of the
21799 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
21800 when Keep_Temporary_Files is False.
21801 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
21802 directory information, add the directory in front of the path.
21803 When not on VMS, handle new switch -dn before the command to set
21804 Keep_Temporary_Files to True.
21805 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
21808 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
21809 invoked with directory information, add the directory in front of the
21812 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
21814 * snames.ads, snames.adb (Name_Stub): New name for the distributed
21817 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
21818 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
21820 * g-socket.adb (To_Timeval): Fix incorrect conversion of
21821 Selector_Duration to Timeval for the case of 0.0.
21823 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
21824 documentation from Evolve_And_Then.
21826 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
21828 * s-taprop-tru64.adb, s-taprop-os2.adb,
21829 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
21831 2004-07-06 Robert Dewar <dewar@gnat.com>
21833 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
21834 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
21835 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
21836 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
21837 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
21838 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
21839 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
21840 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
21841 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
21842 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
21843 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
21844 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
21845 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
21846 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
21847 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
21848 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
21849 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
21850 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
21851 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
21852 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
21853 vms_data.ads: Minor reformatting,
21854 Fix bad box comment format.
21856 * gnat_rm.texi: Fix minor grammatical error
21858 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
21860 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
21861 more cases of discriminated records to be recognized as not needing a
21863 (Has_Access_Values): New function.
21865 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
21867 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
21868 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
21869 with LRM terminology).
21870 Change terminology in comments primitive type => elementary type.
21872 2004-07-06 Ed Schonberg <schonberg@gnat.com>
21875 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
21876 parameters do not impose any requirements on the presence of a body.
21878 2004-07-06 Ed Schonberg <schonberg@gnat.com>
21881 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
21882 compilation unit and is in an open scope at the point of instantiation,
21883 assume that a body may be present later.
21885 2004-07-06 Ed Schonberg <schonberg@gnat.com>
21887 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
21888 Improve error message when specified size is not supported.
21890 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
21891 is never a primitive operation.
21893 2004-07-05 Andreas Schwab <schwab@suse.de>
21895 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
21896 RECORD_OR_UNION_CHECK.
21897 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
21899 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
21901 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
21902 dependency on xgnatugn, instead build it via a submake.
21903 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
21905 2004-07-04 Richard Henderson <rth@redhat.com>
21907 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
21909 2004-07-01 Richard Henderson <rth@redhat.com>
21911 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
21912 * utils.c (max_size): Likewise.
21914 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21916 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
21917 and rest_of_type_compilation; add arg to create_*_decl.
21918 (annotate_decl_with_node): Deleted.
21919 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
21920 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
21921 (get_current_block_context, gnat_pushdecl): New declarations.
21922 (gnat_init_stmt_group): Likewise.
21923 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
21924 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
21925 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
21926 (gnat_init): Call gnat_init_stmt_group.
21927 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
21928 (gnu_pending_elaboration_list): Deleted.
21929 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
21930 (gigi): Rearrange initialization calls and move some to last above.
21931 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
21932 Delete calls to add_decl_expr; add arg to create_*_decl.
21933 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
21934 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
21935 begin_subprog_body and call it.
21936 Don't push and pop ggc context.
21937 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
21938 (add_stmt): Remove handling of DECL_EXPR from here.
21939 If not in function, mark visited.
21940 (add_decl_expr): Put global at top level.
21941 Check for cases of DECL_INITIAL we have to handle here.
21942 (process_type): Add extra arg to create_type_decl.
21943 (build_unit_elab): Rework to just gimplify.
21944 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
21945 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
21946 (get_pending_elaborations, pending_elaborations_p): Likewise.
21947 (push_pending_elaborations, pop_pending_elaborations): Likewise.
21948 (get_elaboration_location, insert_elaboration_list): Likewise.
21949 (gnat_binding_level): Renamed from ada_binding_level.
21950 (init_gnat_to_gnu): Don't clear pending_elaborations.
21951 (global_bindings_p): Treat as global if no current_binding_level.
21952 (set_current_block_context): New function.
21953 (gnat_pushdecl): Renamed from pushdecl; major rework.
21954 All callers changed.
21955 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
21956 (finish_record_type): Call call pushdecl for stub decl.
21957 (function_nesting_depth): Deleted.
21958 (begin_subprog_body): Delete obsolete code.
21959 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
21961 2004-06-28 Robert Dewar <dewar@gnat.com>
21963 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21964 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21965 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
21966 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
21967 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
21969 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
21970 deal with problem of inefficient slices on machines with strict
21971 alignment, when the slice is a component of a composite.
21973 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
21974 machines, we need the check there as well.
21976 2004-06-28 Ed Schonberg <schonberg@gnat.com>
21978 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
21979 determine safe copying direction for overlapping slice assignments
21980 when component is controlled.
21982 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
21983 formal derived type in the actual for a formal package are visible in
21984 the enclosing instance.
21986 2004-06-28 Ed Schonberg <schonberg@gnat.com>
21989 * sem_util.adb (Trace_Components): Diagnose properly an illegal
21990 circularity involving a private type whose completion includes a
21991 self-referential component.
21992 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
21993 renaming or an instantiation from an implicit derived operation.
21995 2004-06-28 Pascal Obry <obry@gnat.com>
21997 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
21999 (Library_File_Name_For): Idem.
22001 2004-06-28 Matthew Gingell <gingell@gnat.com>
22003 * g-traceb.ads: Add explanatory note on the format of addresses
22004 expected by addr2line.
22006 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
22008 * Makefile.in: Force debugging information on s-tasdeb.adb,
22009 a-except.adb and s-assert.adb needed by the debugger.
22011 2004-06-28 Vincent Celier <celier@gnat.com>
22013 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
22017 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
22019 * prj.adb: Minor reformatting
22020 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
22022 * prj.ads: Comment updates
22024 (Project_Data): Change Flag1 to Need_To_Build_Lib.
22025 Remove Flag2: not used.
22027 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
22030 * gnat_ugn.texi: Put a "null;" declaration in one project file example
22032 * gnat_rm.texi: Document Empty declarations "null;".
22034 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
22035 front of the linker options.
22036 (Link_Foreign): Put the global archives and the libraries in front of
22037 the linker options.
22039 2004-06-28 Javier Miranda <miranda@gnat.com>
22041 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
22042 (RTU_Loaded): Code cleanup
22043 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
22044 withed predefined units.
22046 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
22047 explicitly withed predefined units.
22048 Fix typo in comment
22050 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
22051 explicitly withed predefined units.
22053 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22055 * ada-tree.def (DECL_STMT): Deleted.
22056 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
22057 (DECL_STMT_VAR): Deleted.
22058 * decl.c: add_decl_stmt now add_decl_expr.
22059 * gigi.h: Likewise.
22060 * trans.c: Likewise.
22061 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
22062 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
22063 (add_stmt): Only handle padded type here.
22064 (add_stmt_with_node): Allow gnat_node to not be present.
22065 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
22066 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
22067 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
22068 make a SAVE_EXPR for the entire fat pointer.
22069 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
22070 (create_index_type): Make a DECL_EXPR.
22071 (end_subprog_body): Don't call allocate_struct_function here but
22074 2004-06-25 Pascal Obry <obry@gnat.com>
22076 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
22077 Relocatable from Build_Dynamic_Library call.
22079 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
22080 Relocatable are now synonym.
22082 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
22084 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
22085 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
22088 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
22089 Lib_Address and Relocatable.
22090 (Default_DLL_Address): Removed.
22092 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
22093 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
22094 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
22095 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
22096 (Default_DLL_Address): Removed.
22098 * mlib-tgt-mingw.adb: Ditto.
22099 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
22101 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
22102 the initial thread stack size.
22104 * a-strmap.ads: Move package L to private part as it is not used in
22105 the spec. Found while reading code.
22107 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
22109 * tracebak.c: Introduce support for a GCC infrastructure based
22110 implementation of __gnat_backtrace.
22112 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
22113 any more. Use accessors instead. This eases maintenance and relaxes
22114 some alignment constraints.
22115 (_GNAT_Exception structure): Remove the Ada specific fields
22116 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
22118 (is_handled_by, __gnat_eh_personality): Replace component references to
22119 exception structure by use of the new accessors.
22121 * init.c (__gnat_initialize): Adjust comments to match the just
22122 reverted meaning of the -static link-time option.
22124 * adaint.c (convert_addresses): Arrange not to define a stub for
22125 mips-irix any more, as we now want to rely on a real version from a
22126 recent libaddr2line.
22128 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
22129 the personality routine can use them and not have to rely on a C
22130 counterpart of the record anymore. This simplifies maintenance and
22131 relaxes the constraint of having Standard'Maximum_Alignment match
22133 Update comments, and add a section on the common header alignment issue.
22135 2004-06-25 Geert Bosch <bosch@gnat.com>
22137 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
22138 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
22140 2004-06-25 Robert Dewar <dewar@gnat.com>
22142 * gnat_rm.texi: Fix section on component clauses to indicate that the
22143 restriction on byte boundary placement still applies for bit packed
22145 Add comment on stack usage from Initialize_Scalars
22147 * gnat_ugn.texi: Add documentation for -gnatyLnnn
22149 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
22150 limiting nesting level.
22152 * usage.adb: Add line for -gnatyLnnn switch
22154 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
22155 sem_ch13.adb, exp_aggr.adb: Minor reformatting
22157 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
22158 type as well as on the subtype. This corrects a problem in freeze in
22159 setting alignments of atomic types.
22161 * sem_eval.ads: Minor comment typo fixed
22163 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
22164 level. Minor reformatting.
22166 * fname.adb (Is_Predefined_File_Name): Require a letter after the
22167 minus sign. This means that file names like a--b.adb will not be
22168 considered predefined.
22170 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
22171 record Test new flag and give diagnostic for bad component clause.
22172 (Freeze_Entity): Set alignment of array from component alignment in
22173 cases where this is safe to do.
22175 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
22178 * cstand.adb: (Create_Standard): Set alignment of String to 1
22180 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
22182 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
22183 code in the common constrained array cases.
22185 * a-storio.adb: Change implementation to avoid possible alignment
22186 problems on machines requiring strict alignment (data should be moved
22187 as type Buffer, not type Elmt).
22189 * checks.adb (Apply_Array_Size_Check): Improve these checks by
22190 killing the overflow checks which we really do not need (64-bits is
22193 2004-06-25 Vincent Celier <celier@gnat.com>
22195 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
22196 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
22197 inconditionally for the main project.
22198 (Recursive_Add_Archives.Add_Archive_Path): New procedure
22199 (Link_Executables.Check_Time_Stamps): New procedure
22200 (Link_Executables.Link_Foreign): New procedure
22201 Changes made to reduce nesting level of this package
22202 (Check): New procedure
22203 (Add_Switches): When not in quiet output, check that a switch is not
22204 the concatenation of several valid switches. If it is, issue a warning.
22205 (Build_Global_Archive): If the global archive is rebuilt, linking need
22207 (Compile_Sources): Rebuilding a library archive does not imply
22208 rebuilding the global archive.
22209 (Build_Global_Archive): New procedure
22210 (Build_Library): New name for Build_Archive, now only for library
22212 (Check_Archive_Builder): New procedure
22213 (Create_Global_Archive_Dependency_File): New procedure
22214 (Gprmake): Call Build_Global_Archive before linking
22215 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
22217 (Scan_Arg): Display the Copyright notice when -v is used
22219 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
22222 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
22224 Add new GNAT LIST qualifier /FILES=
22225 Added qualifier /DIRECTORY= to GNAT METRIC
22226 Added qualifier /FILES= to GNAT METRIC
22227 Added qualifier /FILES to GNAT PRETTY
22229 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
22230 to take into account both versions of the switch.
22232 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
22233 always be the last switch to the gcc driver. Disable switch storing so
22234 that switches automatically added by the gcc driver are not put in the
22237 * prj.adb (Project_Empty): Take into account changes in components of
22240 * prj.ads (Languages_Processed): New enumaration value All_Languages.
22242 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
22243 used. Split Boolean component Ada_Sources_Present in two Boolean
22244 components Ada_Sources_Present and Other_Sources_Present.
22247 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
22248 instead of Sources_Present.
22249 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22251 * prj-nmsc.adb: Minor reformatting
22252 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
22253 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
22254 Check_Ada_Naming_Scheme.
22255 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
22258 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
22260 Make sure that all cycles where there is at least one "limited with"
22262 (Parse_Single_Project): New Boolean parameter In_Limited
22264 * prj-proc.adb (Recursive_Check): When Process_Languages is
22265 All_Languages, call first Prj.Nmsc.Ada_Check, then
22266 Prj.Nmsc.Other_Languages_Check.
22268 * prj-proc.adb (Process): Use Ada_Sources_Present or
22269 Other_Sources_Present (instead of Sources_Present) depending on
22272 * lang-specs.h: Keep -g and -m switches in the same order, and as the
22275 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
22276 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
22278 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
22281 * lib.ads (Disable_Switch_Storing): New procedure.
22283 * make.adb: Modifications to reduce nesting level of this package.
22284 (Check_Standard_Library): New procedure
22285 (Gnatmake.Check_Mains): New procedure
22286 (Gnatmake.Create_Binder_Mapping_File): New procedure
22287 (Compile_Sources.Compile): Add switch -gnatez as the last option
22288 (Display): Never display -gnatez
22290 * Makefile.generic:
22291 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
22293 * gnatcmd.adb (Check_Project): New function
22294 (Process_Link): New procedure to reduce nesting depth
22295 (Check_Files): New procedure to reduce the nesting depth.
22296 For GNAT METRIC, include the inherited sources in extending projects.
22297 (GNATCmd): When GNAT LS is invoked with a project file and no files,
22298 add the list of files from the sources of the project file. If this list
22299 is too long, put it in a temp text files and use switch -files=
22300 (Delete_Temp_Config_Files): Delete the temp text file that contains
22301 a list of source for gnatpp or gnatmetric, if one has been created.
22302 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
22303 in the project file is too large, create a temporary text file that
22304 list them and pass it to the tool with "-files=<temp text file>".
22305 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
22307 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
22308 generated file is in not in Ada.
22310 * gnatls.adb: Remove all parameters And_Save that are no longer used.
22311 (Scan_Ls_Arg): Add processing for -files=
22312 (Usage): Add line for -files=
22314 * g-os_lib.adb (On_Windows): New global constant Boolean flag
22315 (Normalize_Pathname): When on Windows and the path starts with a
22316 directory separator, make sure that the resulting path will start with
22319 * clean.adb (Clean_Archive): New procedure
22320 (Clean_Project): When there is non-Ada code, delete the global archive,
22321 the archive dependency files, the object files and their dependency
22322 files, if they exist.
22323 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
22325 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
22327 * sinfo.ads: Fix typo in comment.
22329 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
22330 the TSS for remote access-to-subprogram types, since these TSS are
22331 always present once the type has been analyzed.
22332 (RAS_E_Dereference): Same.
22334 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
22335 reference raises Bad_Attribute, mark the reference as analyzed so the
22336 node (and any children resulting from rewrites that could have occurred
22337 during the analysis that ultimately failed) is not analyzed again.
22339 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
22341 * exp_dist.adb: Minor comment fix.
22343 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
22344 type is an anonymous access type, no unchecked deallocation of the
22345 allocated object can occur. If the object is controlled, attach it with
22346 a count of 1. This allows attachment to the Global_Final_List, if
22347 no other relevant list is available.
22348 (Get_Allocator_Final_List): For an anonymous access type that is
22349 the type of a discriminant or record component, the corresponding
22350 finalisation list is the one of the scope of the type.
22352 2004-06-25 Ed Schonberg <schonberg@gnat.com>
22354 * sem_ch3.adb (Replace_Type): When computing the signature of an
22355 inherited subprogram, use the first subtype if the derived type
22356 declaration has no constraint.
22358 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
22359 before applying previous optimization. Minor code cleanup.
22361 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
22362 placed at the beginning of an unpacked record without explicit
22363 alignment, a slice of it will be aligned and does not need a copy when
22366 2004-06-25 Ed Schonberg <schonberg@gnat.com>
22370 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
22371 reference is written with expressions mimicking parameters.
22373 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
22376 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
22377 STEP 2a. The constraints of a full type declaration of a derived record
22378 type are checked for conformance with those declared in the
22379 corresponding private extension declaration. The message
22380 "not conformant with previous declaration" is emitted if an error is
22383 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
22385 * g-traceb.ads: Document the need for -E binder switch in the spec.
22387 * g-trasym.ads: Document the need for -E binder switch in the spec.
22389 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
22391 * sem_prag.adb: Add handling of pragma Detect_Blocking.
22393 * snames.h, snames.ads, snames.adb: Add entry for pragma
22396 * s-rident.ads: Change reference to pragma Detect_Blocking.
22398 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
22401 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
22402 to indicate whether pragma Detect_Blocking is active.
22404 * par-prag.adb: Add entry for pragma Detect_Blocking.
22406 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
22407 of not handling WITH.
22408 Note that this replaces the previous update which was incorrect.
22410 2004-06-25 Javier Miranda <miranda@gnat.com>
22412 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
22413 use-clauses to have a clean environment.
22415 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
22416 the installation of the use-clauses to stablish a clean environment in
22417 case of compilation of a separate unit; otherwise the call to
22418 use_one_package is protected by the barrier Applicable_Use.
22420 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
22421 the installation of the use-clauses to stablish a clean environment in
22422 case of compilation of a separate unit.
22423 (End_Use_Clauses): Minor comment cleanup.
22425 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
22427 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
22429 2004-06-23 Richard Henderson <rth@redhat.com>
22431 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
22433 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22435 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
22436 now bool instead of int.
22437 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
22438 * trans.c (gnu_switch_label_stack): New function.
22439 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
22440 elaboration of renamed entity returns.
22441 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
22442 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
22443 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
22444 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
22445 DECL_SIZE_UNIT and simplify variable-sized case.
22446 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
22447 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
22448 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
22449 (build_unit_elab): Disable for now.
22450 * utils.c (mark_visited): New function.
22451 (pushdecl): Walk tree to call it for global decl.
22452 (update_pointer_to): Update all variants of pointer and ref types.
22453 Add arg to COMPONENT_REF.
22454 (convert): Likewise.
22455 Move check for converting between variants lower down.
22456 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
22457 (build_allocator): Don't force type of MODIFY_EXPR.
22458 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
22459 put_var_into_stack.
22461 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22463 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
22464 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
22465 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
22467 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
22468 all callers changed.
22469 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
22470 the way that EXIT_STMT finds the loop label.
22471 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
22472 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
22473 (add_stmt): Use annotate_with_locus insted of setting directly.
22474 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
22475 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
22476 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
22477 (build_vms_descriptor): Add extra args to ARRAY_REF.
22478 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
22479 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
22481 (build_binary_op): Don't make explicit CONVERT_EXPR.
22482 Add extra rgs to ARRAY_REF.
22484 2004-06-14 Pascal Obry <obry@gnat.com>
22486 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
22487 Windows. Fix minor typo.
22489 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
22490 which is now supported on Windows. With this implementation using the
22491 Library Project feature is no different on Windows than on UNIX.
22493 2004-06-14 Vincent Celier <celier@gnat.com>
22495 * makegpr.adb (Compile_Sources): Nothing to do when there are no
22498 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
22500 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
22501 found, show the project name and the path of the previously parsed
22504 2004-06-14 Ed Schonberg <schonberg@gnat.com>
22506 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
22507 array, avoid copying the actual before the call.
22509 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
22511 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
22512 Instead, allocate memory on worst-case alignment assumptions, and then
22513 return an aligned address within the allocated zone.
22515 2004-06-14 Robert Dewar <dewar@gnat.com>
22517 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
22518 elab entities in predefined units in No_Run_Time_Mode.
22519 (Gen_Adainit_C): Same fix
22520 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
22521 units in No_Run_Time_Mode
22522 (Gen_Elab_Calls_C): Same fix
22524 * symbols-vms-alpha.adb: Minor reformatting
22526 * g-debpoo.ads: Minor reformatting
22528 * lib.adb (In_Same_Extended_Unit): Version working on node id's
22530 * lib.ads (In_Same_Extended_Unit): Version working on node id's
22532 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
22535 * make.adb: Minor reformatting
22537 * par-ch12.adb: Minor reformatting
22539 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
22541 * prj-strt.adb: Minor reformatting
22543 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
22546 * sem_attr.adb: Minor reformatting
22548 * sem_ch7.adb: Minor reformatting
22550 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
22551 for type in the same unit as the object declaration.
22553 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
22554 static string expressions and not just string literals.
22556 (Set_Warning): Reset restriction warning flag for restriction pragma
22557 Implement pragma Profile_Warnings
22558 Implement pragma Profile (Restricted)
22559 Give obolescent messages for old restrictions and pragmas
22561 * snames.h, snames.ads, snames.adb: Add new entry for pragma
22564 * s-rident.ads: Add declarations for restrictions required by profile
22565 Restricted and profile Ravenscar.
22567 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
22569 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
22570 configuration pragmas.
22572 2004-06-11 Vincent Celier <celier@gnat.com>
22574 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
22575 gnatsym, when symbol policy is Restricted.
22577 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
22578 gnatsym, when symbol policy is Restricted.
22580 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
22581 read the symbol file.
22582 (Finalize): Fail in symbol policy Restricted if a symbol in the original
22583 symbol file is not in the object files. Do not create a new symbol file
22584 when symbol policy is Restricted.
22586 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
22589 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
22591 (Usage): Line for new switch -R
22593 * make.adb (Initialize): When the platform is not VMS, add the
22594 directory where gnatmake is invoked in the front of the path, if
22595 gnatmake is invoked with directory information. Change the Scan_Args
22596 while loop to a for loop.
22597 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
22598 if Depth is equal or greater than the proposed depth, there is nothing
22600 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
22603 * prj.ads: Add new symbol policy Restricted.
22605 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
22606 with the new parameters Check_All_Labels and Case_Location.
22608 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
22609 (Library_Symbol_File needs to be defined).
22611 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
22612 and Case_Location If Check_All_Labels is True, check that all values of
22613 the string type are used, and output warning(s) if they are not.
22615 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
22618 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
22620 * gnat_ugn.texi: Update documentation about the library directory in
22623 * makegpr.adb (Display_Command): In verbose mode, also display the
22624 value of the CPATH env var, when the compiler is gcc.
22625 (Initialize): Change the Scan_Args while loop to a for loop
22626 (Compile_Individual_Sources): Change directory to object directory
22627 before compilations.
22629 * symbols.ads: New symbol policy Restricted.
22631 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
22633 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
22634 is now taken care of internally in the Exception_Propagation package
22635 and does not require clients assistance any more.
22637 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
22638 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
22639 functions. Helpers to maintain a predicate required in the handling of
22640 occurrence transfer between tasks.
22641 This is now handled internally and does not require clients assistance
22642 for the setup/propagate separation anymore.
22643 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
22644 allocation strategy, handle the Setup_And_Not_Propagated predicate and
22647 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
22648 raise_after_setup, now that everything is handled internally within the
22649 setup/propagation engine.
22651 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
22653 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
22654 Add additional conditions for the case of an actual being a simple
22655 name or literal. Improve inlining by preventing the generation
22656 of temporaries with a short lifetime (one use).
22658 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
22661 * einfo.ads: Minor comment updates for Has_Completion and
22662 E_Constant list of flags.
22664 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
22665 and constant redeclarations now set the Has_Completion flag of their
22666 defining identifiers.
22668 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
22669 Inspect_Deferred_Constant_Completion.
22670 Used to detect private deferred constants that have not been completed
22671 either by a constant redeclaration or pragma Import. Emits error message
22672 "constant declaration requires initialization expression".
22674 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
22675 completes a deferred constant.
22677 2004-06-11 Geert Bosch <bosch@gnat.com>
22679 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
22681 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
22682 calculating exponent for scaling denormal numbers.
22683 (Leading_Part): Properly raise Constraint_Error for zero or negative
22685 (Remainder): Properly raise Constraint_Error for zero divisor.
22687 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
22689 * sem_util.adb: Minor reformatting.
22691 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
22692 dereference when accessing the entry parameter record.
22693 (Check_Array_Type): Always check for possible implicit dereference.
22694 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
22695 Abort if a pointer is still present (denoting that an implicit
22696 dereference was left in the tree by the front-end).
22698 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
22699 dereference when accessing the entry parameter record.
22700 (Check_Array_Type): Always check for possible implicit dereference.
22701 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
22702 Abort if a pointer is still present (denoting that an implicit
22703 dereference was left in the tree by the front-end).
22705 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
22707 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
22708 message, like the compiler itself does. Easier to parse the output.
22710 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
22712 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
22713 be base names, and not includes directories.
22715 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
22717 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
22718 so that dependencies are properly taken into account by make.
22720 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
22723 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
22724 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
22726 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
22728 * Makefile.in (install-gnatlib): install target-specific run-time files.
22730 * Make-lang.in: Remove obsolete targets.
22732 2004-06-11 Ed Schonberg <schonberg@gnat.com>
22734 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
22735 specification, to catch misuses of program unit names.
22737 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
22738 superfluous conversions in an instance.
22740 2004-06-11 Ed Schonberg <schonberg@gnat.com>
22743 * sem_ch12.adb (Save_References): If operator node has been folded to
22744 enumeration literal, associated_node must be discarded.
22746 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
22748 * s-stchop-vxworks.adb: Add required pragma Convention to
22749 Task_Descriptor because it is updated by a C function.
22751 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
22754 * Makefile.in: Remove target specific SO_OPT on IRIX
22756 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22758 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
22759 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
22760 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
22761 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
22762 (STMT_STMT, USE_STMT): New statement codes.
22763 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
22764 * ada-tree.h: Reflect above changes.
22765 (struct tree_loop_id): Deleted.
22766 (union lang_tree_node, struct lang_decl, struct lang_type):
22767 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
22768 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
22769 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
22770 (IS_ADA_STMT): New macro.
22771 * decl.c (annotate_decl_with_node): New function.
22772 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
22773 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
22774 Call add_stmt_with_node to do needed assignments.
22775 Add call to update setjmp buffer directly, not via EXPR_STMT.
22776 (maybe_variable): Argment GNAT_NODE deleted.
22777 * gigi.h (maybe_variable): Likewise.
22778 (make_transform, add_stmt_with_node, set_block_for_group): New.
22779 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
22780 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
22781 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
22782 (set_lineno, set_lineno_from_sloc): Likewise.
22783 (record_code_position, insert_code_for): Likewise.
22784 (gnat_poplevel): Now returns void.
22785 (end_subprog_body): Now takes argument.
22786 * misc.c (cgraph.h, tree-inline.h): New includes.
22787 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
22788 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
22789 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
22790 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
22791 (gnat_parse_file): Don't set immediate_size_expand.
22792 Call cgraph functions.
22793 (gnat_expand_expr): Remove most cases.
22794 (record_code_position, insert_code_for): Remove from here.
22795 * trans.c (toplev.h, tree-gimple.h): Now included.
22796 (discard_file_names): Deleted.
22797 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
22798 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
22799 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
22800 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
22801 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
22802 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
22803 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
22804 (set_block_for_group, add_stmt_list): Likewise.
22805 (start_stmt_group): Renamed from start_block_stmt.
22806 (end_stmt_group): Likewise, from end_block_stmt.
22807 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
22808 (gigi): Don't set discard_file_names or call set_lineno.
22809 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
22810 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
22811 Numerous changes throughout to reflect new names and complete
22812 function-at-a-time implementation.
22813 (gnat_expand_stmt): Delete or comment out all cases.
22814 (process_inlined_subprograms): Use add_stmt.
22815 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
22816 call set_lineno; also remove unneeded block handling.
22817 (process_type): Remove unneeded block handling.
22818 (build_unit_elab): Remove calls to deleted functions.
22819 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
22820 (tree-dump.h): Likewise.
22821 (struct ada_binding_level): Add field jmpbuf_decl.
22822 (gnat_define_builtin, gnat_install_builtins): New.
22823 (gnat_gimplify_function, gnat_finalize): Likewise.
22824 (gnat_poplevel): No longer return BLOCK, set it instead.
22825 Remove code dealing with nested functions.
22826 (gnat_init_decl_processing): Also set size_type_node.
22827 Call gnat_install_builtins.
22828 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
22829 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
22830 Remove special-case for "main".
22831 (end_subprog_body): Add arg and rework for tree-ssa.
22832 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
22833 Add case for BOOLEAN_TYPE.
22834 * utils2.c (rtl.h): Now include.
22835 (build_call_raise): Test Debug_Flag_NN directly.
22836 (build_call_alloc_dealloc): Don't use local stack allocation for now.
22837 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
22838 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
22840 2004-06-07 Robert Dewar <dewar@gnat.com>
22842 * a-direct.ads, einfo.ads: Minor comment updates
22844 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
22845 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
22846 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
22847 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
22848 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
22850 * s-interr-sigaction.adb: Remove unreferenced variable
22851 (Attached_Interrupts). Minor reformatting.
22852 Avoid use of variable I (replace by J).
22854 * par-ch10.adb: Fix text of one error message
22856 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
22857 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
22858 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
22859 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
22860 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
22861 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
22862 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
22863 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
22864 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
22865 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
22866 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
22869 2004-06-07 Doug Rupp <rupp@gnat.com>
22871 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
22873 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
22875 * mlib-tgt-vms-ia64.adb: New file.
22877 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
22878 Add mlib-tgt-vms-ia64.adb
22879 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
22880 Move to alpha specific ifeq section.
22881 Add VMS specific versions of symbols.adb
22882 Renaming of 5q vms files.
22884 * 5qsystem.ads renamed to system-vms_64.ads.
22886 2004-06-07 Vincent Celier <celier@gnat.com>
22888 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
22889 explain that when a time of day corresponding to the non existing hour
22890 on the day switching to DST is specified, Split may return a different
22893 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
22896 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
22897 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
22899 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
22901 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
22902 the linking options.
22903 (Build_Library.Check_Libs): On VMS, if there is a dependency on
22904 g-trasym.ads, set Gtrasymobj_Needed to True.
22906 * prj-attr.adb: Add new package Metrics for gnatmetric
22908 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
22909 canonical case to take into account files with upper case characters on
22911 (Ada_Check): Load the reference symbol file name in the name buffer to
22912 check it, not the symbol file name.
22914 * snames.ads, snames.adb: Add standard name Metrics (name of project
22915 file package for gnatmetric).
22917 * vms_conv.ads: Add Metric to Comment_Type
22919 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
22921 * vms_data.ads: Add qualifiers for GNAT METRIC
22923 * makegpr.adb (Link_Executables): Take into account the switches
22924 specified in package Linker of the main project.
22926 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
22928 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
22929 the index of the last element is Units.Last, not Units.Table'Last
22930 (which is usually not a valid index within the actually allocated
22931 storage for the table).
22933 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
22934 determines whether to generate a call to a checked storage pool
22935 Dereference action.
22936 Generate such a call only for a dereference that either comes from
22937 source, or is the result of rewriting a dereference that comes from
22940 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
22942 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
22944 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
22946 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
22947 file level, elaborate the stride for inner dimensions in alignment
22950 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
22953 2004-06-07 Javier Miranda <miranda@gnat.com>
22955 * exp_ch6.adb: Correct wrong modification in previous patch
22957 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
22959 * g-trasym.ads: Corrected comment to properly reflect level of support
22962 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
22964 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
22965 includes case of a variable referenced on the left hand side of an
22966 assignment, therefore remove redundant code. Variables and prefixes of
22967 indexed or selected components are now marked as referenced on left
22968 hand side. Warnings are now properly emitted when variables or prefixes
22969 are assigned but not read.
22971 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
22972 left hand side referenced variables. Private access types do not
22973 produce the warning "variable ... is assigned but never read".
22974 Add also additional checks to left hand side referenced variables.
22975 Aliased, renamed objects and access types do not produce the warning
22976 "variable ... is assigned but never read" since other entities may read
22977 the memory location.
22979 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
22981 * Makefile.in: In the powerpc/vxworks-specific section, restore
22982 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
22985 2004-06-07 Ed Schonberg <schonberg@gnat.com>
22987 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
22988 predefined operators.
22989 Removes spurious type errors from g-trasym-vms.adb.
22991 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
22992 distinct from the operator appearing in the source, call appropriate
22993 routine to insert conversions when needed, and complete resolution of
22995 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
22996 interpretations for rewritten right operand.
22997 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
22998 the other operand is overloaded and the context is a type conversion.
23000 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23002 * ada-tree.def (BLOCK_STMT): Now has two operands.
23005 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
23007 * gigi.h: (gnat_poplevel): Now returns a tree.
23009 * trans.c (end_block_stmt): Add arg; all callers changed.
23010 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
23011 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
23012 (add_stmt): Set TREE_TYPE.
23013 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
23014 (gnat_expand_stmt, case BREAK_STMT): New case.
23016 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
23018 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
23020 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
23021 procedure Set_Stack_Size that is not needed.
23023 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
23025 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
23026 used for gnatpp input file and for the files upon which it depends
23028 2004-06-07 Ben Brosgol <brosgol@gnat.com>
23030 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
23032 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
23034 * gnatvsn.ads: Bump version numbers appropriately.
23035 Add new build type.
23037 2004-06-07 Pascal Obry <obry@gnat.com>
23039 * gnat_ugn.texi: Improve comments about imported names and link names
23040 on Windows. Add a note about the requirement to use -k gnatdll's option
23041 when working with a DLL which has stripped stdcall symbols (no @nn
23044 2004-05-27 Vincent Celier <celier@gnat.com>
23046 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
23047 COMMENTS_LAYOUT=UNTOUCHED
23049 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
23050 symbols-vms-alpha.adb
23052 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
23054 * sem.ads: Clarify documentation on checks suppression.
23056 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
23058 2004-05-27 Ed Schonberg <schonberg@gnat.com>
23060 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
23061 the case of multiple derivations.
23062 (Is_Object_Reference): For a selected component, verify that the prefix
23063 is itself an object and not a value.
23065 * sem_ch12.adb (Same_Instantiated_Constant): New name for
23066 Same_Instantiated_Entity.
23067 (Same_Instantiated_Variable): Subsidiary to
23068 Check_Formal_Package_Instance, to recognize actuals for in-out generic
23069 formals that are obtained from a previous formal package.
23070 (Instantiate_Subprogram_Body): Emit proper error when
23071 generating code and the proper body of a stub is missing.
23073 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
23074 has a universal interpretation, do the disambiguation here.
23076 * exp_ch4.adb (Expand_N_Type_Conversion,
23077 Expand_N_Unchecked_Type_Conversion): Special handling when target type
23078 is Address, to avoid typing anomalies when Address is a visible integer
23081 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
23082 to determine whether a subprogram should not be marked Pure, even when
23083 declared in a pure package.
23085 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
23087 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
23089 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
23090 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
23091 Update the documentation about the Ravenscar profile, following the
23092 definition found in AI-249.
23094 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
23095 setting the Profile (Ravenscar). This must be done in addition to
23096 setting the required restrictions.
23098 * rtsfind.ads: Add the set of operations defined in package
23101 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
23104 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
23106 lang-specs.h: Always require -c or -S and always redirect to /dev/null
23107 if -gnatc or -gnats is passed.
23109 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
23111 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
23112 a significant reference. Warnings are now properly emitted when a
23113 discriminated type is not referenced.
23115 * lib-xref.adb (Generate_Reference): A deferred constant completion,
23116 record representation clause or record type discriminant does not
23117 produce a reference to its corresponding entity. Warnings are now
23118 properly emitted when deferred constants and record types are not
23121 2004-05-27 Geert Bosch <bosch@gnat.com>
23123 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
23124 Fixes ACATS Annex G tests.
23126 2004-05-27 Robert Dewar <dewar@gnat.com>
23128 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
23131 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
23133 * s-interr.adb (Server_Task): Take into account case of early return
23134 from sigwait under e.g. linux.
23136 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
23138 * gnat_ugn.texi: Add description for the new gnatpp options:
23139 -rnb - replace the original source without creating its backup copy
23140 -c0 - do not format comments
23142 2004-05-24 Geert Bosch <bosch@gnat.com>
23144 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
23145 with 192 bits of precision, sufficient to reduce a double-extended
23146 arguments X with a maximum relative error of T'Machine_Epsilon, for X
23147 in -2.0**32 .. 2.0**32.
23148 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
23149 reduction by the processor, which only uses a 68-bit approximation of
23151 (Tan): Always reduce arguments and compute function either using
23152 the processor's fptan instruction, or by dividing sin and cos as needed.
23154 2004-05-24 Doug Rupp <rupp@gnat.com>
23156 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
23157 gcc error on 32/64 bit VMS.
23159 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
23161 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
23162 since this is what we get for stack overflows although not documented
23164 Document the issues which may require adjustments to our signal
23167 2004-05-24 Ed Schonberg <schonberg@gnat.com>
23169 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
23170 enclosing dynamic scope if the instantiation is within a generic unit.
23172 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
23174 * exp_dbug.ads: Fix typo.
23176 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
23177 Rename it to its proper name: system-linux-ia64.ads
23178 (stamp-gnatlib1): Remove extra target specific run time files when
23179 setting up the rts directory.
23181 2004-05-24 Javier Miranda <miranda@gnat.com>
23183 * einfo.ads, einfo.adb (Limited_Views): Removed.
23184 (Limited_View): New attribute that replaces the previous one. It is
23185 now a bona fide package with the limited-view list through the
23186 first_entity and first_private attributes.
23188 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
23189 limited-private-with clause.
23190 (Install_Limited_Withed_Unit): Install the private declarations of a
23191 limited-private-withed package. Update the installation of the shadow
23192 entities according to the new structure (see Build_Limited_Views)
23193 (Build_Limited_Views): Replace the previous implementation of the
23194 limited view by a package entity that references the first shadow
23195 entity plus the first shadow private entity (required for limited-
23196 private-with clause)
23197 (New_Internal_Shadow_Entity): Code cleanup.
23198 (Remove_Limited_With_Clause): Update the implementation to undo the
23199 new work carried out by Build_Limited_Views.
23200 (Build_Chain): Complete documentation.
23201 Replace Ada0Y by Ada 0Y in comments
23204 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
23205 types the level of accessibility depends on the enclosing type
23208 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
23209 entities. Complete documentation of previous change.
23211 2004-05-24 Robert Dewar <dewar@gnat.com>
23213 * namet.adb: Minor reformatting
23214 Avoid use of name I (replace by J)
23215 Minor code restructuring
23217 * sem_ch6.adb: Minor reformatting
23219 * lib-writ.adb: Do not set restriction as active if this is a
23220 Restriction_Warning case.
23222 * sem_prag.adb: Reset restriction warning flag if real pragma
23223 restriction encountered.
23225 * s-htable.adb: Minor reformatting
23226 Change rotate count to 3 in Hash (improves hash for small strings)
23228 * 5qsystem.ads: Add comments for type Address (no literals allowed).
23230 * gnat_ugn.texi: Add new section of documentation "Code Generation
23231 Control", which describes the use of -m switches.
23233 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
23235 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
23236 through the DECL_INITIAL for renamed variables.
23238 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
23240 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
23242 2004-05-19 Joel Brobecker <brobecker@gnat.com>
23244 * exp_dbug.ads: Correct comments concerning handling of overloading,
23245 since we no longer use $ anymore.
23247 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
23249 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
23250 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
23251 with illegal subunits.
23253 2004-05-19 Ed Schonberg <schonberg@gnat.com>
23255 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
23256 body with front-end inlining enabled, check whether an inline pragma
23257 appears immediately after the body and applies to it.
23259 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
23260 enabled and the pragma appears after the body of the subprogram.
23262 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23264 Part of function-at-a-time conversion
23266 * misc.c (adjust_decl_rtl): Deleted.
23267 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
23270 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
23271 (add_decl_stmt, add_stmt, block_has_vars): New functions.
23272 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
23274 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
23275 when making a decl.
23276 (gnat_to_gnu_entity): Likewise.
23277 Use add_stmt to update setjmp buffer.
23278 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
23280 No longer call adjust_decl_rtl.
23281 (DECL_INIT_BY_ASSIGN_P): New macro.
23282 (DECL_STMT_VAR): Likewise.
23284 * trans.c (gigi): Call start_block_stmt to make the outermost
23286 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
23287 Call start_block_stmt and end_block_stmt temporarily.
23288 Use gnat_expand_stmt instead of expand_expr_stmt.
23289 (add_decl_stmt): New function.
23290 (tree_transform): Call it.
23291 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
23292 (end_block_stmt): Set type and NULL_STMT.
23293 (gnat_expand_stmt): Make recursize call instead of calling
23295 (gnat_expand_stmt, case DECL_STMT): New case.
23296 (set_lineno_from_sloc): Do nothing if global.
23297 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
23298 (start_block_stmt, add_stmt, end_block_stmt): New functions.
23299 (build_block_stmt): Call them.
23300 (gnat_to_code): Don't expand NULL_STMT.
23301 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
23303 (tree_transform): Likewise.
23304 (tree_transform, case N_Null_Statement): Return NULL_STMT.
23305 (gnat_expand_stmt, case NULL_STMT): New case.
23306 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
23309 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
23312 * utils.c (create_var_decl): Do not call expand_decl or
23314 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
23315 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
23317 (struct e_stack): Add chain_next to GTY.
23318 (struct binding_level): Deleted.
23319 (struct ada_binding_level): New struct.
23320 (free_block_chain): New.
23321 (global_binding_level, clear_binding_level): Deleted.
23322 (global_bindings_p): Rework to see if no chain.
23323 (kept_level_p, set_block): Deleted.
23324 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
23325 new data structure and work directly on BLOCK node.
23326 (gnat_poplevel): Similarly.
23327 (get_decls): Look at BLOCK_VARS.
23328 (insert_block): Work directly on BLOCK node.
23329 (block_has_var): New function.
23330 (pushdecl): Rework for new binding structures.
23331 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
23333 (build_subprog_body): Likewise.
23334 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
23336 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
23338 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
23339 (DECL_STMT_VAR): Likewise.
23341 2004-05-17 Robert Dewar <dewar@gnat.com>
23343 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
23346 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
23347 of restriction synonyums by using
23348 Restrict.Process_Restriction_Synonyms.
23350 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
23352 * s-restri.ads (Tasking_Allowed): Correct missing comment
23354 * s-rident.ads: Add entries for restriction synonyms
23356 * ali.adb: Fix some problems with badly formatted ALI files that can
23357 result in infinite loops.
23359 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
23360 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
23361 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
23362 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
23363 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
23364 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
23365 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
23366 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
23367 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
23368 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
23369 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
23370 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
23371 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
23372 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
23373 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
23374 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
23375 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
23376 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23377 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
23378 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
23379 to Task_Id (minor cleanup).
23381 2004-05-17 Vincent Celier <celier@gnat.com>
23383 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
23384 directory separator.
23386 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
23387 project being extended, if Languages is not declared in extending
23390 2004-05-17 Javier Miranda <miranda@gnat.com>
23392 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
23393 limited view of a visible sibling.
23395 2004-05-14 Robert Dewar <dewar@gnat.com>
23397 * gnat_ugn.texi: Minor change to -gnatS documentation
23399 * sprint.adb: Remove some instances of Assert (False) and for this
23400 purpose replace them by output of a ??? string.
23402 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
23405 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
23406 flag processing. This was suppressing required dependencies in
23407 No_Run_Time mode and is not needed since the binder does not generate
23408 references for things in libgnat anyway.
23410 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
23413 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
23415 * gnat_ugn.texi: Document AIX-specific issue with initialization of
23418 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
23419 action for the case of an actual parameter in an init proc call.
23421 2004-05-14 Ed Schonberg <schonberg@gnat.com>
23423 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
23424 subtype, check visible entities in base type.
23426 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
23427 actions if the object is a renaming.
23429 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
23430 Check_Formal_Package_Instance, to determine more precisely when the
23431 formal and the actual denote the same entity.
23433 2004-05-14 Javier Miranda <miranda@gnat.com>
23435 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
23437 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
23438 corresponding to a private_with must be removed from visibility; it
23439 will be made visible later, just before we analyze the private part of
23441 (Check_Private_Child_Unit): Allow private_with clauses in public
23443 (Install_Siblings): Make visible the private entities of private-withed
23445 (Install_Withed_Unit): Do not install the private withed unit if we
23446 are compiling a package declaration and the Private_With_OK flag was
23447 not set by the caller. These declarations will be installed later,
23448 just before we analyze the private part of the package.
23450 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
23451 during the evaluation of the expression that initializes the object,
23452 decorate it with the expected type to avoid cascade errors.
23455 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
23456 subprogram we have to install the private_with clauses after its
23457 specification has been analyzed (as documented in AI-262.TXT).
23459 * sem_ch8.adb (Has_Private_With): New function. Determines if the
23460 current compilation unit has a private with on a given entity.
23461 (Find_Direct_Name): Detect the Beaujolais problem described in
23464 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
23465 provides the functionality of the function Is_Ancestor that was
23466 previously available in sem_ch10. It has been renamed to avoid
23469 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
23471 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23473 * utils.c (build_vms_descriptor): Use SImode pointers.
23475 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
23477 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
23479 2004-05-14 GNAT Script <nobody@gnat.com>
23481 * Make-lang.in: Makefile automatically updated
23483 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
23485 Renaming of target specific files for clarity
23487 * Makefile.in: Rename GNAT target specific files.
23489 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
23490 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
23491 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
23492 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
23493 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
23494 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
23495 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
23496 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
23497 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
23498 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
23499 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
23500 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
23501 51osinte.adb, 51osinte.ads, 51system.ads,
23502 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
23503 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
23504 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
23505 56tpopsp.adb, 57system.ads, 58system.ads,
23506 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
23507 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
23508 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
23509 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
23510 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
23511 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
23512 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
23513 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
23514 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
23515 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
23516 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
23517 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
23518 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
23519 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
23520 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
23521 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
23522 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
23523 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
23524 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
23525 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
23526 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
23527 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
23528 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
23529 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
23530 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
23531 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
23532 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
23533 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
23534 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
23535 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
23536 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
23537 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
23538 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
23539 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
23540 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
23541 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
23542 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
23543 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
23544 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
23545 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
23547 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
23548 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
23549 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
23550 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
23551 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
23552 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
23553 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
23554 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
23555 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
23556 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
23557 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
23558 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
23559 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
23560 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
23561 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
23562 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
23563 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
23564 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
23565 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
23566 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
23567 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
23568 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
23569 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
23570 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
23571 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
23572 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
23573 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
23574 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
23575 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
23576 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
23577 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
23578 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
23579 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
23580 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
23581 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
23582 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
23583 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
23584 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
23585 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
23586 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
23587 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
23588 s-osinte-vms.ads, s-osinte-vxworks.adb,
23589 s-osinte-vxworks.ads, s-osprim-mingw.adb,
23590 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
23591 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23592 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
23593 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
23594 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
23595 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23596 s-stchop-vxworks.adb, s-taprop-dummy.adb,
23597 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
23598 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
23599 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
23600 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
23601 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
23602 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
23603 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
23604 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
23605 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
23606 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
23607 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
23608 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
23609 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
23610 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
23611 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
23612 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
23613 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
23614 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
23615 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
23616 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
23617 system-irix-o32.ads, system-linux-x86_64.ads,
23618 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
23619 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
23620 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
23621 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
23622 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
23623 system-vxworks-mips.ads, system-vxworks-ppc.ads,
23624 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
23627 2004-05-13 Zack Weinberg <zack@codesourcery.com>
23629 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
23631 2004-05-13 Diego Novillo <dnovillo@redhat.com>
23633 Merge from tree-ssa-20020619-branch.
23635 * config-lang.in (boot_language, build_by_default): Set
23637 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
23638 (max_size): Add static chain op for call_expr.
23640 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
23643 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
23645 2004-05-11 Roger Sayle <roger@eyesopen.com>
23647 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
23650 2004-05-10 Doug Rupp <rupp@gnat.com>
23652 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
23655 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
23657 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
23659 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
23660 Fixes undefined symbols in IA64 gnatlib.
23662 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
23664 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
23665 Short_Address). This will be moved to system.auxdec.
23667 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
23669 * sem_util.adb: Replace test for presence of a node that is always
23670 present with a call to Discard_Node.
23672 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
23673 Analyze on the library unit node after generation of distribution stub
23674 constructs. The call was a no-op because Unit_Node has already been
23675 Analyzed, and the tree fragments for the distribution stubs are
23676 analyzed as they are inserted in Exp_Dist.
23677 Update comment regarding to distribution stubs to reflect that we
23678 do not generate stub in separate files anymore.
23680 * einfo.ads: Clarify the fact that a tagged private type has the
23681 E_Record_Type_With_Private Ekind.
23683 * erroutc.adb: Minor reformatting
23685 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
23686 values if line length is increased using -gnatyM (noticed during code
23689 * eval_fat.adb: Minor reformatting
23690 Put spaces around exponentiation operator
23692 2004-05-10 Ed Schonberg <schonberg@gnat.com>
23695 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
23696 has been rewritten as an explicit dereference, retrieve type of
23697 original node to check for possibly unconstrained record type.
23699 2004-05-10 Ed Schonberg <schonberg@gnat.com>
23701 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
23702 overriding, use the operation of the parent unconditionally.
23704 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
23705 operation when either operand is a literal, to avoid further
23708 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
23709 overridden by a previous explicit declaration, mark the previous entity
23712 * sem_disp.adb (Check_Dispatching_Operation): New predicate
23713 Is_Visibly_Controlled, to determine whether a declaration of a
23714 primitive control operation for a derived type overrides an inherited
23715 one. Add warning if the explicit declaration does not override.
23717 2004-05-10 Vincent Celier <celier@gnat.com>
23719 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
23720 some cases when the sources are no longer present.
23722 * make.adb (Collect_Arguments): Fail if an external source, not part
23723 of any project need to be compiled, when switch -x has not been
23726 * makeusg.adb: Document new switch -x
23728 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
23729 defaulted to False.
23731 * switch-m.adb (Scan_Make_Switches): New switch -x
23733 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
23734 gnatmake switch -x.
23736 * gnat_ugn.texi: Document new gnatmake switch -x
23738 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
23740 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
23742 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
23743 (process_attributes): Likewise.
23745 2004-05-10 Joel Brobecker <brobecker@gnat.com>
23747 * s-inmaop.ads: Fix spelling mistake in one of the comments.
23749 2004-05-10 Robert Dewar <dewar@gnat.com>
23751 * gnat_ugn.texi: Document that for config pragma files, the maximum
23752 line length is always 32767.
23754 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
23755 literals is now allowed.
23757 * gnat-style.texi: Remove statement about splitting long lines before
23758 an operator rather than after, since we do not follow this rule at all.
23759 Clarify rule (really lack of rule) for spaces around exponentiation
23761 * sem_elim.adb: Allow concatenation of string literals as well as a
23762 single string literal for pragma arguments.
23764 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
23766 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
23767 written for append case.
23769 * frontend.adb: Changes to avoid checking max line length in config
23772 * g-os_lib.ads: Minor reformatting
23774 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
23775 wrong in any case. Instead use standard value. Noticed during code
23778 * opt.ads (Max_Line_Length): New field, used to implement removal of
23779 limitation on length of lines when scanning config pragma files.
23781 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
23782 makeutl.ads, makeutl.adb: Minor reformatting
23784 * scn.adb: Do not check line length while scanning config pragma files
23785 Do not check line length while scanning out license information
23787 * scng.adb: Changes to avoid line length checks while parsing config
23790 2004-05-10 GNAT Script <nobody@gnat.com>
23792 * Make-lang.in: Makefile automatically updated
23794 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
23796 * osint.adb (Find_Program_Name): Fix handling of VMS version
23799 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
23801 * g-os_lib.ads (Invalid_Time): New constant
23803 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
23804 return OS_Time instead of time_t to match what is imported by Ada.
23805 Now return -1 if the file doesn't exist, instead of a random value
23807 2004-05-05 Robert Dewar <dewar@gnat.com>
23809 * usage.adb: Add line for -gnatR?s switch
23811 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
23813 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
23814 and for Match (Data_First, Data_last)
23816 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
23817 written when we are dealing with multi-unit files.
23819 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
23821 * Makefile.in: Remove unused targets and variables.
23823 2004-05-05 Vincent Celier <celier@gnat.com>
23825 * switch-m.adb: New gnatmake switch -eI
23827 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
23828 of new gnatmake switch -eInnn.
23830 * makegpr.adb: Take into account new parameters Index and Src_Index in
23833 * clean.adb: Implement support for multi-unit sources, including new
23836 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
23839 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
23840 (Extract_From_Q): New out parameter Index
23841 (Mark, Is_Marked): Subprograms moved to Makeutl
23842 (Switches_Of): New parameter Source_Index
23843 (Add_Switch): New parameter Index
23844 (Check): New parameter Source_Index
23845 (Collect_Arguments): New parameter Source_Index
23846 (Collect_Arguments_And_Compile): New parameter Source_Index
23847 (Compile): New parameter Source_Index
23848 Put subprograms in alphabetical order
23849 Add support for multi-source sources, including in project files.
23851 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
23852 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
23855 * makeusg.adb: New gnatmake switch -eInnn
23857 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
23860 * opt.ads (Main_Index): New variable, defaulted to 0.
23862 * osint.ads, osinte.adb (Add_File): New parameter Index
23863 (Current_Source_Index): New function
23865 * prj.adb: Take into account new components Index and Src_Index
23867 * prj.ads (String_Element): New component Index
23868 (Variable_Value): New component Index
23869 (Array_Element): New component Src_Index
23871 * prj-attr.adb: Indicate that optional index may be specified for
23872 attributes Main, Executable, Spec, Body and some of Switches.
23874 * prj-attr.ads (Attribute_Kind): New values for optional indexes
23875 (Attribute_Record): New component Optional_Index
23877 * prj-com.ads (File_Name_Data): New component Index
23879 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
23881 * prj-env.adb (Put): Output optional index
23883 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
23884 attributes Spec and Body.
23886 * prj-nmsc.adb: Process optional indexes
23888 * prj-pp.adb: Ouput "at" for optional indexes
23890 * prj-proc.adb: Take into account optional indexes
23892 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
23893 Optional_Index. For string literal,
23894 process optional index when Optional_Index is True.
23895 (Parse_Expresion): New Boolean parameter Optional_Index
23897 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
23898 (Set_Source_Index_Of): New procedure
23900 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
23903 * prj-util.ads (Executable_Of): New parameter Index
23904 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
23905 New parameter Src_Index, defaulted to 0.
23907 2004-05-05 Ed Schonberg <schonberg@gnat.com>
23910 * sem_ch3.adb (Access_Definition): If this is an access parameter
23911 whose designated type is imported through a limited_with clause, do
23912 not add the enclosing subprogram to the list of private dependents of
23915 2004-05-05 Ed Schonberg <schonberg@gnat.com>
23918 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
23919 a limited_with clause, and the other is its non-limited view.
23921 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
23923 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
23925 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
23926 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
23927 Stand.Boolean_Literals to produce references to entities
23928 Standard_False and Standard_True from compile-time computed boolean
23931 * stand.ads (Boolean_Literals): New variable, provides the entity
23932 values for False and True, for use by the expander.
23934 2004-05-05 Doug Rupp <rupp@gnat.com>
23936 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
23937 5vinmaop.adb: Unchecked convert Short_Address vice Address
23939 * adaint.c, raise.c: Caste CRTL function return value
23940 to avoid gcc error on 32/64 bit IVMS.
23942 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
23945 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
23947 * 5qsystem.ads (Address): Declare as Long_Integer
23948 (Short_Address): Declare as 32 bit subtype of Address
23949 Declare abstract address operations to avoid gratuitous ambiguities.
23951 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
23953 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
23954 instead of the old Boolean_Entry_Barriers.
23955 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
23957 2004-05-05 GNAT Script <nobody@gnat.com>
23959 * Make-lang.in: Makefile automatically updated
23961 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
23963 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
23965 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
23968 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
23969 alone. Replacing object references by literals is inappropriate in a
23970 so low level context.
23972 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
23974 * a-exexpr.adb: Add comments
23976 2004-05-03 Joel Brobecker <brobecker@gnat.com>
23978 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
23979 declare the Ancestor_Tags array in Type_Specific_Data with a small size
23980 without risking a bounds check error when accessing one of its
23982 (Type_Specific_Data): Define Ancestor_Tags as a small array.
23983 This prevents us from hitting a limitation during the debug info
23984 generation when using stabs.
23986 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
23988 This prevents us from hitting a limitation during the debug info
23989 generation when using stabs.
23991 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
23993 lang-specs.h: Remove -gnatz* from specs.
23995 2004-05-03 Vincent Celier <celier@gnat.com>
23997 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
23999 * Make-lang.in, Makefile.in: Add gprmake
24001 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
24003 * sem_aggr.adb: Fix typo in comment.
24005 2004-05-03 Robert Dewar <dewar@gnat.com>
24007 * make.adb: Minor reformatting
24009 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
24011 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
24012 so that it works when address is not a private type.
24014 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
24015 properly with rewritten unchecked conversions. This prevents
24016 order-of-elaboration issues that can otherwise arise.
24017 (Minimum_Size): Don't check size of access types under VMS
24019 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
24020 interpretations of integer literals as type System.Address.
24022 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
24023 (Is_Descendent_Of): New function
24025 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
24027 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
24028 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
24029 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
24031 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
24032 of the old Max_Entry_Queue_Depth.
24034 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
24035 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
24036 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
24038 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
24039 New entry for proper handling of Max_Entry_Queue_Depth.
24040 New entry for proper handling of No_Dynamic_Interrupts.
24042 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
24043 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
24044 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
24045 the GNAT specific restriction Max_Entry_Queue_Depth.
24046 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
24047 the GNAT specific restriction No_Dynamic_Interrupts.
24049 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
24050 instead of the old Boolean_Entry_Barriers.
24051 Use the new restriction No_Dynamic_Attachment instead of the old
24052 No_Dynamic_Interrupts.
24054 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
24055 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
24057 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
24058 of the old Max_Entry_Queue_Depth.
24060 2004-05-03 GNAT Script <nobody@gnat.com>
24062 * Make-lang.in: Makefile automatically updated
24064 2004-04-29 Ed Schonberg <schonberg@gnat.com>
24066 * checks.adb (Enable_Range_Check): If the prefix of an index component
24067 is an access to an unconstrained array, perform check unconditionally.
24069 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24071 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
24074 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
24076 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
24077 alternate stack setting. There was no support for the tasking cases
24078 and the changes eventually caused a number of side-effect failures in
24079 the non-tasking case too.
24081 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
24083 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
24086 2004-04-29 Vincent Celier <celier@gnat.com>
24088 * make.adb (Gnatmake): Increase max size of argument array for
24089 gnatbind for the potential addition of -F.
24090 If there are Stand-Alone Library projects, invoke gnatbind with -F to
24091 be sure that elaboration flags will be checked.
24093 * switch-c.adb: Correct call to Scan_Pos for -gnateI
24095 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
24097 * sem_warn.adb (Check_References): Move '<access-variable> may be
24098 null' warning out of under Warn_On_No_Value_Assigned.
24100 2004-04-29 Ed Falis <falis@gnat.com>
24102 * gnat_ugn.texi: Fixed texi error
24104 2004-04-29 Robert Dewar <dewar@gnat.com>
24106 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
24107 abstract operations if they come from predefined files.
24109 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
24112 * s-addope.adb: Correct obvious error in mod function
24114 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
24116 * Makefile.in: Add target pairs for powerpc darwin*
24119 * a-intnam-darwin.ads, s-osinte-darwin.adb,
24120 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
24122 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
24124 * Makefile.in: Add target macro definitions for s390*-linux*.
24125 * system-linux-s390.ads: New file.
24126 * system-linux-s390x.ads: New file.
24128 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
24130 * gnat_ugn.texi: Correct argument to @setfilename.
24132 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
24134 * a-exexpr.adb (Unwind_Word): New data type.
24135 (Unwind_Exception): Use it as type of Private1 and Private2.
24137 * raise.c (db_action_for): Fix debug printf.
24139 2004-04-27 Ed Schonberg <schonberg@gnat.com>
24141 * a-wtmoio.ads: Formal type must be a modular type, not a signed
24144 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24146 * decl.c (gnat_to_gnu_entity, case object): Call
24147 __builtin_update_setjmp_buf.
24149 * gigi.h (update_setjmp_buf): Deleted.
24150 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
24152 * misc.c: (update_setjmp_buf): Deleted.
24154 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
24155 around block of RTL.
24157 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
24159 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
24161 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
24162 subprogram for which no pragma All_Calls_Remote applies, store the
24163 address of the real subprogram in the underlying record type, so local
24164 dereferences do not go through the PCS.
24166 2004-04-26 Robert Dewar <dewar@gnat.com>
24168 * i-c.ads: Add some type qualifications to avoid ambiguities when
24169 compiling with s-auxdec.ads and a non-private address type.
24171 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
24173 * Makefile.rtl: Fix error in previous check-in:
24174 Add s-addope.o to non tasking object list (rather than tasking object
24177 2004-04-26 Javier Miranda <miranda@gnat.com>
24179 * sem_aggr.adb: Fix typo in comments
24180 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
24181 Required to check the null-exclusion attribute.
24183 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
24184 case of anonymous access types in record and array components. For a
24185 component definition the level is the same of the enclosing composite
24188 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
24189 that are anonymous access types the level of accessibility depends on
24190 the enclosing type declaration. In order to have this information, set
24191 the scope of the anonymous access type to the enclosing record type
24193 (Array_Type_Declaration): In case of components that are anonymous
24194 access types the level of accessibility depends on the enclosing type
24195 declaration. In order to have this information, set the scope of the
24196 anonymous access type to the enclosing array type declaration.
24198 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
24201 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
24202 renaming of anonymous access-to-constant types allowed if and only if
24203 the renamed object is access-to-constant.
24205 * sem_util.adb (Type_Access_Level): In case of anonymous access types
24206 that are component_definition or discriminants of a nonlimited type,
24207 the level is the same as that of the enclosing component type.
24209 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
24211 * sem_elim.adb: Some minor code reorganization from code reading. Fix
24212 misprint in the function name (File_Name_Match).
24214 2004-04-23 Laurent GUERBY <laurent@guerby.net>
24216 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
24219 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24221 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
24223 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
24225 * adaint.c (__gnat_try_lock): No longer requires that the parent
24226 directory be writable, the directory itself is enough.
24227 (gnat_is_absolute_path): Change profile, so that the call from
24228 GNAT.OS_Lib can be made more efficient.
24230 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
24231 from GNAT.OS_Lib can be made more efficient.
24233 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
24234 one copy of the file name. Found by code reading.
24236 2004-04-23 Vincent Celier <celier@gnat.com>
24238 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
24239 Correct documentation on gnatmake switches transmitted to the compiler
24241 * ali.ads: Minor comment fix
24243 2004-04-23 Javier Miranda <miranda@gnat.com>
24245 * sem_ch6.adb: (Confirming Types): Code cleanup
24247 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
24248 subprogram types: E_Anonymous_Access_Subprogram_Type and
24249 E_Anonymous_Access_Protected_Subprogram_Type.
24251 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
24253 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
24254 whether a pragma All_Calls_Remote applies to the subprogram on which
24256 No functional change is introduced by this revision; the new parameter
24257 will be used to allow calls to local RCI subprograms to be optimized
24258 to not use the PCS in the case where no pragma All_Calls_Remote applies,
24259 as is already done in the PolyORB implementation of the DSA.
24261 * exp_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 2004-04-23 Robert Dewar <dewar@gnat.com>
24271 * Makefile.rtl: Add entry for s-addope.o in run time library list
24272 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
24273 * s-addope.ads, s-addope.adb: New files.
24275 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
24276 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
24277 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
24278 System.Address to be non-private and signed.
24280 * sem_elim.adb: Minor reformatting (fairly extensive)
24281 Some minor code reorganization from code reading
24282 Add a couple of ??? comments
24284 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24286 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
24287 (tree_transform, case N_If_Statement): Remove non-determinism.
24289 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
24291 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
24293 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
24294 Eliminate' section.
24296 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
24297 no longer used as a parameter name for Eliminate pragma).
24299 2004-04-22 Laurent GUERBY <laurent@guerby.net>
24301 PR optimization/14984
24302 PR optimization/14985
24303 * trans.c (gigi): Fix non determinism leading to bootstrap
24304 comparison failures.
24306 2004-04-21 Pascal Obry <obry@gnat.com>
24308 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
24309 passed to spawnvp() to properly handle program pathname with spaces on
24312 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
24314 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
24315 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
24316 unlocked in case of exceptions.
24318 2004-04-21 Joel Brobecker <brobecker@gnat.com>
24320 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
24321 This function does not exist anymore.
24323 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
24325 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
24327 * link.c: Move variables to the __gnat name space.
24329 * Makefile.in: list link.o explicitly when needed.
24331 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
24333 2004-04-21 Javier Miranda <miranda@gnat.com>
24335 * einfo.adb (Original_Access_Type): New subprogram
24336 (Set_Original_Access_Type): New subprogram
24337 (Write_Field21_Name): Write the name of the new field
24339 * einfo.ads (Original_Access_Type): New field present in access to
24341 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
24342 E_Anonymous_Access_Protected_Subprogram_Type.
24344 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
24347 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
24348 to anonymous access to subprogram types.
24350 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
24351 to subprogram types.
24353 * sem_ch3.adb (Access_Definition): Complete decoration of entities
24354 corresponding to anonymous access to subprogram types.
24355 (Analyze_Component_Declaration): Add new actual to the call to
24356 subprogram replace_anonymous_access_to_protected_subprogram.
24357 (Array_Type_Declaration): Add new actual to the call to subprogram
24358 replace_anonymous_access_to_protected_subprogram.
24359 (Process_Discriminants): Add new actual to the call to subprogram
24360 replace_anonymous_access_to_protected_subprogram.
24361 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
24363 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
24366 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
24367 access to subprogram types.
24369 * sem_util.adb (Has_Declarations): Addition of package_specification
24372 2004-04-21 Ed Schonberg <schonberg@gnat.com>
24374 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
24375 inlined flags to renamed entity only if in current unit.
24377 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
24379 * s-parint.ads: Add DSA implementation marker.
24381 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
24382 value of System.Partition_Interface.DSA_Implementation to determine
24383 what version of the distributed systems annex is available (no
24384 implementation, GLADE, or PolyORB).
24386 2004-04-21 Joel Brobecker <brobecker@gnat.com>
24388 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
24390 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24392 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
24393 with new type if alias sets differ.
24394 Fixes ACATS c41103b.
24396 2004-04-21 Vincent Celier <celier@gnat.com>
24398 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
24399 Add array Lang_Args for the language specific compiling argument
24402 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
24404 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
24406 * gnat_rm.texi: Update the descripton of the Eliminate pragma
24407 according to the recent changes in the format of the parameters of the
24408 pragma (replacing Homonym_Number with Source_Location).
24410 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
24412 * 5isystem.ads: Removed, unused.
24414 * gnat_rm.texi: Redo 1.13 change.
24416 2004-04-19 Robert Dewar <dewar@gnat.com>
24418 * s-stoele.ads: Clean up definition of Storage_Offset (the new
24419 definition is cleaner, avoids the kludge of explicit Standard operator
24420 references, and also is consistent with a visible System.Address with
24421 no visible operations.
24423 * s-geveop.adb: Add declarations to avoid assumption of visible
24424 operations on type System.Address (since these might not be available
24425 if Address is a non-private type for which the operations
24426 are made abstract).
24428 * sem_eval.adb: Minor reformatting
24430 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
24431 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
24432 reformatting (new function spec format).
24434 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
24435 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
24436 s-caun64.adb: Add declarations to avoid assumption of visible
24437 operations on type System.Address (since these might not be available
24438 if Address is a non-private type for which the operations are made
24441 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
24443 * exp_intr.adb: Minor comment update
24445 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
24447 * 5omastop.adb: Add declarations to avoid assumption of visible
24448 operations on type System.Address (since these might not be available
24449 if Address is a non-private type for which the operations
24450 are made abstract).
24452 2004-04-19 Vincent Celier <celier@gnat.com>
24454 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
24456 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
24459 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
24461 Call Check with Process_Languages.
24462 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
24463 with Process_Languages.
24464 (Recursive_Check): New Boolean parameter Process_Languages. Call
24465 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
24468 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
24470 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
24471 parameter Ada_Main, defaulted to True.
24472 Check for Ada specific characteristics only when Ada_Main is True.
24474 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
24476 * prj.adb: (Project_Empty): Add new Project_Data components.
24478 * prj.ads: New types and tables for non Ada languages.
24479 (Project_Data): New components Languages, Impl_Suffixes,
24480 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
24481 Include_Path, Include_Data_Set.
24483 * prj-env.ads, prj-env.adb: Minor reformatting
24485 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
24486 Put subprograms in alphabetical order
24488 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
24489 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
24492 * mlib-prj.adb: Back out modification in last version, as they are
24494 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
24496 * make.adb: (Mains): Moved to package Makeutl
24497 (Linker_Opts): Moved to package Makeutl
24498 (Is_External_Assignment): Moved to package Makeutl
24499 (Test_If_Relative_Path): Moved to package Makeutl
24500 (Gnatmake): Move sorting of linker options to function
24501 Makeutl.Linker_Options_Switches.
24503 * makeutl.ads, makeutl.adb: New files.
24505 * Makefile.in: Add makeutl.o to the object files for gnatmake
24507 * makeusg.adb: Add line for new switch -eL.
24509 * gnatls.adb (Image): New function.
24510 (Output_Unit): If in verbose mode, output the list of restrictions
24511 specified by pragmas Restrictions.
24513 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
24516 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
24517 needed, to put it in the range 1970 (included) - 2026 (excluded).
24518 (Time_Of): Do not shift Unix_Min_Year (1970).
24519 Shift the date by multiple of 56 years, if needed, to put it in the
24520 range 1970 (included) - 2026 (excluded).
24522 * adaint.h, adaint.c (__gnat_set_executable): New function.
24524 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24526 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
24527 and pop GC context.
24528 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
24529 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
24530 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
24531 (tree_transform, case N_Code_Statement): Likewise.
24532 (gnat_expand_stmt, case LABEL_STMT): Don't look at
24533 LABEL_STMT_FIRST_IN_EH.
24534 (gnat_expand_stmt, case ASM_STMT): New case.
24536 * utils2.c (build_unary_op): Properly set TREE_READONLY of
24537 UNCONSTRAINED_ARRAY_REF.
24539 * utils.c (poplevel): Temporarily push/pop GC context around inline
24540 function expansion.
24542 * decl.c (maybe_variable): Properly set TREE_READONLY of
24543 UNCONSTRAINED_ARRAY_REF.
24544 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
24546 * ada-tree.def: (ASM_STMT): New.
24548 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
24549 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
24550 ASM_STMT_INPUT): New.
24551 (ASM_STMT_CLOBBER): Likewise.
24553 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
24555 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
24556 general rcheck mechanism to raise Program_Error for E.4(18), instead
24557 of a custom raiser in System.Partition_Interface.
24558 Part of general cleanup work before PolyORB integration.
24560 * snames.ads, snames.adb: Add new runtime library entities and names
24563 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
24565 (Build_Subprogram_Id): New subprogram provided by exp_dist
24566 Code reorganisation in preparation for PolyORB integration.
24568 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
24570 (Build_Subprogram_Id): New subprogram provided by exp_dist
24572 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
24573 actual parameter types for call to dereference of an
24574 access-to-subprogram type.
24576 * rtsfind.ads: Add new runtime library entities and names for PolyORB
24579 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
24580 instead, which has the same behaviour here since we never pass it a
24583 * link.c (run_path_option, Solaris case): Use -Wl, as for other
24586 * Makefile.in: adjust object file lists for gnatlink and gnatmake
24587 to account for new dependency upon Interfaces.C.Strings + link.o
24588 For x86 FreeBSD, use 86numaux.
24590 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
24591 from Mlib.Tgt to Mlib.
24593 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
24594 target-independent.
24596 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
24597 target-specific versions of this subprogram, now implemented as a
24598 target-independent function in Mlib.
24600 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
24601 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
24602 (Linker_Library_Path_Option): Remove target-specific versions of this
24603 subprogram, now implemented as a target-independent function in Mlib.
24605 * atree.adb: (Allocate_Initialize_Node): New subprogram.
24606 Factors out node table slots allocation.
24607 (Fix_Parents): New subprogram.
24608 Encapsulate the pattern of fixing up parent pointers for syntactic
24609 children of a rewritten node.
24610 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
24611 (Rewrite): Use New_Copy when creating saved copy of original node.
24612 (Replace): Use Copy_Node to copy nodes.
24614 2004-04-19 Javier Miranda <miranda@gnat.com>
24616 * sprint.adb (Sprint_Node_Actual): Give support to the new
24617 Access_To_Subprogram node available in Access_Definition nodes. In
24618 addition, give support to the AI-231 node fields: null-exclusion,
24619 all-present, constant-present.
24621 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
24623 * sinfo.ads, sinfo.adb:
24624 New field Access_To_Subprogram_Definition in Access_Definition nodes
24626 * sem_ch6.adb (Process_Formals): Move here the code that creates and
24627 decorates internal subtype declaration corresponding to the
24628 null-excluding formal. This code was previously in Set_Actual_Subtypes.
24629 In addition, carry out some code cleanup on this code. In case of
24630 access to protected subprogram call
24631 Replace_Anonymous_Access_To_Protected_Subprogram.
24632 (Set_Actual_Subtypes): Code cleanup.
24634 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
24635 Find_Type in case of anonymous access renamings. Add warning in case of
24636 null-excluding attribute used in anonymous access renaming.
24638 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
24641 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
24643 (Access_Definition): In case of anonymous access to subprograms call
24644 the corresponding semantic routine to decorate the node.
24645 (Access_Subprogram_Declaration): Addition of some comments indicating
24646 some code that probably should be added here. Detected by comparison
24647 with the access_definition subprogram.
24648 (Analyze_Component_Declaration): In case of access to protected
24649 subprogram call Replace_Anonymous_Access_To_Protected.
24650 (Array_Type_Declaration): In case of access to protected subprogram call
24651 Replace_Anonymous_Access_To_Protected_Subprogram.
24652 (Process_Discriminants): In case of access to protected subprogram call
24653 Replace_Anonymous_Access_To_Protected_Subprogram.
24655 * par.adb (P_Access_Definition): New formal that indicates if the
24656 null-exclusion part was present.
24657 (P_Access_Type_Definition): New formal that indicates if the caller has
24658 already parsed the null-excluding part.
24660 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
24661 (P_Identifier_Declarations): Code cleanup and give support to renamings
24662 of anonymous access to subprogram types.
24663 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
24664 (P_Array_Type_Definition): Give support to AI-254.
24665 (P_Component_Items): Give support to AI-254.
24666 (P_Access_Definition): New formal that indicates if the header was
24667 already parsed by the caller.
24668 (P_Access_Type_Definition): New formal that indicates if the caller has
24669 already parsed the null-excluding part.
24671 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
24672 call to P_Access_Definition.
24674 2004-04-19 Geert Bosch <bosch@gnat.com>
24676 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
24677 the delicate semantics of floating-point to integer conversion.
24678 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
24680 * eval_fat.adb (Machine_Mantissa): Moved to spec.
24681 (Machine_Radix): New function.
24683 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
24685 (Machine_Radix): New function also for use in conversion checks.
24687 2004-04-19 Ed Schonberg <schonberg@gnat.com>
24689 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
24691 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
24692 to decorate the access-to-protected subprogram and the equivalent type.
24694 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
24695 to anonymous access to subprogram types.
24697 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
24698 constant-folding, for legality checks in contexts that require an RM
24701 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
24702 temporary but stack checking is not enabled, increment serial number
24703 to so that symbol generation is consistent with and without stack
24706 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
24707 independent on whether stack checking is enabled, caller must check
24708 the corresponding flag.
24710 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
24712 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
24713 parent if it has discriminants.
24714 (Build_Derived_Private_Type): Constructed full view does
24715 not come from source.
24716 (Process_Discriminants): Default discriminants on a tagged type are
24717 legal if this is the internal completion of a private untagged
24720 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
24721 no constraint checks, because it corresponds to an existing object.
24723 * sem_prag.adb (Process_Convention): Pragma applies
24724 only to subprograms in the same declarative part, i.e. the same unit,
24725 not the same scope.
24727 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
24728 ignore type mismatch on a numeric conversion if expression comes from
24731 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
24733 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
24734 Homonym_Number parameter, add processing for Source_Location parameter
24736 (Check_Eliminated): Remove the check for homonym numbers, add the check
24737 for source location traces.
24739 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
24740 with Arg_Source_Location corresponding to the changes in the format of
24743 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
24744 Eliminate pragma corresponding to the changes in the format of the
24745 pragma: Homonym_Number is replaced with Source_Location, two ways of
24746 distinguishing homonyms are mutially-exclusive.
24748 2004-04-19 Joel Brobecker <brobecker@gnat.com>
24750 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
24752 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
24753 No_Dollar_In_Label, no longer necessary, as it is always True.
24754 (Strip_Suffixes): Likewise.
24756 2004-04-19 Gary Dismukes <dismukes@gnat.com>
24758 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
24759 modulus for compatibility with size clause on targets with 16-bit
24762 * layout.adb (Discrimify): In the case of private types, set Vtyp to
24763 full type to fix type mismatches on calls to size functions for
24764 discriminant-dependent array components.
24766 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
24768 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
24771 2004-04-19 Pascal Obry <obry@gnat.com>
24773 * mdll-utl.adb (Locate): New version is idempotent.
24775 2004-04-17 Laurent Guerby <laurent@guerby.net>
24777 PR ada/14988 (partial)
24778 * impunit.adb: Fix typo.
24780 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
24782 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
24783 and install-rts-cert targets. Remove all gnatlib and gnattools
24784 targets and all other rts-* targets (moved to libada). Remove (now)
24785 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
24786 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
24788 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24790 * trans.c (tree_transform): Shortcut returning error_mark_node for
24791 statements in annotate_only_mode.
24792 (tree_transform, case N_Label, case N_Return_Statement,
24793 N_Goto_Statement): Make statement tree instead of generating code.
24794 (tree_transform, case N_Assignment_Statement): No longer check
24795 type_annotate_only.
24796 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
24798 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
24800 (gnat_to_gnu): Collect any RTL generated and deal with it.
24801 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
24802 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
24803 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
24805 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
24807 * ada-tree.def (EXPR_STMT): Fix typo in name.
24808 (BLOCK_STMT, IF_STMT): New nodes.
24810 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
24811 LABEL_STMT_FIRST_IN_EH): New macros.
24812 (RETURN_STMT_EXPR): Likewise.
24814 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
24815 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
24817 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
24819 * atree.ads: Correct documentation on extended nodes.
24821 * link.c: Set run_path_option for FreeBSD.
24823 2004-04-08 Vincent Celier <celier@gnat.com>
24825 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
24826 one of the ALI file, do not link with DEC lib.
24828 * par.adb Remove the last two characters ("%s" or "%b") when checking
24829 if a language defined unit may be recompiled.
24831 2004-04-08 Ed Schonberg <schonberg@gnat.com>
24833 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
24834 removal of abstract operation leaves no possible interpretation for
24837 * sem_eval.adb (Eval_Qualified_Expression): Use
24838 Set_Raises_Constraint_Error on node when needed, so that it does not
24839 get optimized away by subsequent optimizations.
24841 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
24842 operands even when they are not wrapped in a type conversion.
24844 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
24846 * sem_prag.adb (Set_Exported): Warn about making static as result of
24847 export only when the export is coming from source. This may be not
24848 be true e.g. on VMS where we expand export pragmas for exception codes
24849 together with imported or exported exceptions, and we don't want the
24850 user to be warned about something he didn't write.
24852 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
24854 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
24855 duplication between normal entities and those declared as renamings.
24856 No functional change.
24858 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
24859 inline functions returning an unconstrained result.
24861 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
24863 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
24864 conform to what other front-ends do.
24866 2004-04-08 Doug Rupp <rupp@gnat.com>
24868 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
24871 2004-04-06 Pascal Obry <obry@gnat.com>
24873 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
24875 * osint.adb (Program_Name): Do not look past a directory separator.
24877 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
24879 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
24881 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
24882 requirement for preserving a copy of the original assignment node.
24884 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
24886 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
24888 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
24891 2004-04-06 Ed Schonberg <schonberg@gnat.com>
24893 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
24894 operator calls in functional notation, and apply
24895 Universal_Interpretation to operands, not to their type.
24897 2004-04-06 Robert Dewar <dewar@gnat.com>
24899 * 5wdirval.adb: Minor reformatting
24901 2004-04-06 Ed Falis <falis@gnat.com>
24903 * gnat_rm.texi: Improve a reference to the GCC manual
24905 2004-04-05 Vincent Celier <celier@gnat.com>
24907 * adaint.h, adaint.c: Add function __gnat_named_file_length
24909 * impunit.adb: Add Ada.Directories to the list
24911 * Makefile.in: Add VMS and Windows versions of
24912 Ada.Directories.Validity package body.
24914 * Makefile.rtl: Add a-direct and a-dirval
24916 * mlib-tgt.ads: Minor comment update.
24918 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
24919 a-direct.ads, a-direct.adb: New files.
24921 2004-04-05 Vincent Celier <celier@gnat.com>
24924 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
24925 just to the compiler.
24927 2004-04-05 Robert Dewar <dewar@gnat.com>
24929 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
24930 returned string is 1.
24932 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
24934 * eval_fat.ads: Minor reformatting
24936 * g-curexc.ads: Document that lower bound of returned string values
24939 * gnatlink.adb: Add ??? comment for previous change
24940 (need to document why this is VMS specific)
24942 * s-stoele.ads: Minor reformatting
24944 * tbuild.ads: Minor reformatting throughout (new function specs)
24946 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
24949 * scng.adb: Minor reformatting
24951 2004-04-05 Geert Bosch <bosch@gnat.com>
24953 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
24954 (Leading_Part): Still perform truncation to machine number if the
24955 specified radix_digits is greater or equal to machine_mantissa.
24957 2004-04-05 Javier Miranda <miranda@gnat.com>
24959 * par-ch3.adb: Complete documentation of previous change
24960 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
24961 (aliased must appear before constant).
24963 * par-ch4.adb: Complete documentation of previous change.
24965 * par-ch6.adb: Complete documentation of previous change.
24967 * sinfo.ads: Fix typo in commment.
24969 2004-04-05 Ed Schonberg <schonberg@gnat.com>
24971 * sem_ch3.adb (Inherit_Components): If derived type is private and has
24972 stored discriminants, use its discriminants to constrain parent type,
24973 as is done for non-private derived record types.
24975 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
24976 Ada 2005 AI-310: an abstract non-dispatching operation is not a
24977 candidate interpretation in an overloaded call.
24979 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
24980 expression is Null and target type is not an access type (e.g. a
24981 non-private address type).
24983 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
24985 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
24986 statement whose right-hand side is an inlined call, save a copy of the
24987 original assignment subtree to preserve enough consistency for
24988 Analyze_Assignment to proceed.
24990 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
24991 complete assignment subtree which is now unnecessary, as the expansion
24992 of inlined call has been improved to preserve a consistent assignment
24993 tree. Note_Possible_Modification must be called only
24994 after checks have been applied, or else unnecessary checks will
24997 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
24998 of explicit dereferences that do not Come_From_Source:
24999 - be selective on cases where we must go back to the dereferenced
25000 pointer (an assignment to an implicit dereference must not be
25001 recorded as modifying the pointer);
25002 - do not rely on Original_Node being present (Analyze_Assignment
25003 calls Note_Possible_Modification on a copied tree).
25005 * sem_warn.adb (Check_References): When an unset reference to a pointer
25006 that is never assigned is encountered, prefer '<pointer> may be null'
25007 warning over '<pointer> is never assigned a value'.
25009 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
25011 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
25014 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
25016 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
25017 libexc. We currently don't reference anything in this library and
25018 linking it in triggers linker warnings we don't want to see.
25020 * init.c: Update comments.
25022 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25024 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
25025 * utils.c (create_field_decl): Likewise.
25026 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
25028 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
25030 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
25031 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
25032 Add info directory entry and category.
25034 2004-04-02 Jan Hubicka <jh@suse.cz>
25036 * utils.c: Include function.h
25037 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
25039 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
25042 * Make-lang.in: Clean up generation of documentation
25044 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
25046 * xgnatug.adb: Removed, replaced by xgnatugn.adb
25048 * xgnatugn.adb: Replaces xgnatug.adb
25050 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
25052 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
25054 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
25055 gnat_ug_wnt.texi: Removed.
25057 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
25059 * utils2.c: Update copyright notice.
25061 2004-04-01 Robert Dewar <dewar@gnat.com>
25063 * checks.adb: Minor reformatting throughout
25064 Note that prev checkin added RM reference to alignment warning
25066 2004-04-01 Ed Schonberg <schonberg@gnat.com>
25068 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
25069 non-static when building aggregate for bit-packed array.
25071 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
25072 function call that is itself the actual in a procedure call, build
25075 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
25076 a string literal, create a temporary for it, constant folding only
25077 handles scalars here.
25079 2004-04-01 Vincent Celier <celier@gnat.com>
25081 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
25082 Error_Msg_SP): New empty procedures to instantiate the Scanner.
25083 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
25085 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
25086 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
25087 and get the checksum.
25089 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
25091 Increase the Marking_Label at the end of the Multiple_Main_Loop,
25092 instead of at the beginning.
25094 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
25096 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
25099 * osint.ads (Multi_Unit_Index_Character): New Character global variable
25101 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
25104 * par.adb: Remove test on file name to detect language defined units.
25105 Add test on unit name, after parsing, to detect language defined units
25106 that are not compiled with -gnatg (except System.RPC and its children)
25108 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
25109 following units without style checking.
25111 * switch-c.adb: Change -gnatC to -gnateI
25113 * usage.adb: Document new switch -gnateInnn
25115 * scng.adb (Accumulate_Token_Checksum): New procedure
25116 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
25117 word or literal number.
25118 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
25121 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
25124 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
25125 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
25126 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
25127 5vtpopde.adb: Add missing 'constant' keywords.
25129 2004-04-01 Javier Miranda <miranda@gnat.com>
25131 * par-ch4.adb: (P_Allocator): Code cleanup
25133 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
25136 * sinfo.ads: Complete documentation of previous change
25138 2004-04-01 Pascal Obry <obry@gnat.com>
25140 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
25141 only on VMS. This special handling was done because an old GNU/ld bug
25142 on Windows which has been fixed.
25144 2004-04-01 GNAT Script <nobody@gnat.com>
25146 * Make-lang.in: Makefile automatically updated
25148 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25150 * decl.c (gnat_to_gnu_entity, make_type_from_size):
25151 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
25152 * trans.c (tree_transform, convert_with_check): Likewise.
25153 * utils.c (gnat_signed_or_unsigned_type): Likewise.
25154 (build_vms_descriptor, unchecked_convert): Likewise.
25155 * utils2.c (nonbinary_modular_operation): Likewise.
25157 2004-03-29 Javier Miranda <miranda@gnat.com>
25159 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
25160 (Install_Null_Excluding_Check): Local subprogram that determines whether
25161 an access node requires a runtime access check and if so inserts the
25162 appropriate run-time check.
25163 (Apply_Access_Check): Call Install_Null_Excluding check if required
25164 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
25166 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
25168 * einfo.ads: Fix typo in comment
25170 * exp_ch3.adb (Build_Assignment): Generate conversion to the
25171 null-excluding type to force the corresponding run-time check.
25172 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
25173 type to force the corresponding run-time check.
25175 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
25176 the null-excluding type to force the corresponding run-time check.
25178 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
25179 case of access types unless they have the null-excluding attribute.
25181 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
25184 * exp_util.ads: Fix typo in comment
25186 * par.adb (P_Null_Exclusion): New subprogram
25187 (P_Subtype_Indication): New formal that indicates if the null-excluding
25188 part has been scanned-out and it was present
25190 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
25192 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
25193 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
25194 type to force the corresponding run-time check
25195 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
25197 (Resolve_Array_Aggregate): Carry out some static checks
25198 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
25200 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
25201 attribute must be set only if specified by means of the null-excluding
25202 part. In addition, we must also propagate the access-constant attribute
25204 (Access_Subprogram_Declaration, Access_Type_Declaration,
25205 Analyze_Component_Declaration, Analyze_Object_Declaration,
25206 Array_Type_Declaration, Process_Discriminants,
25207 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
25208 and carry out some static checks.
25209 (Build_Derived_Access_Type): Set the null-excluding attribute
25210 (Derived_Type_Declaration, Process_Subtype): Carry out some static
25213 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
25215 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
25217 * sem_ch6.adb (Process_Formals): Carry out some static checks.
25218 (Set_Actual_Subtypes): Generate null-excluding subtype if the
25219 null-excluding part was present; it is not required to be done here in
25220 case of anonymous access types.
25221 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
25224 * sem_res.adb (Resolve_Actuals): Carry out some static check
25225 (Resolve_Null): Allow null in anonymous access
25227 * sinfo.adb: New subprogram Null_Exclusion_Present
25228 All_Present and Constant_Present available on access_definition nodes
25230 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
25231 object_declaration, derived_type_definition, component_definition,
25232 discriminant_specification, access_to_object_definition,
25233 access_function_definition, allocator, access_procedure_definition,
25234 access_definition, parameter_specification, All_Present and
25235 Constant_Present flags available on access_definition nodes.
25237 2004-03-29 Robert Dewar <dewar@gnat.com>
25239 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
25240 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
25241 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
25242 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
25243 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
25244 sem_prag.adb: Updates to handle multiple units/file
25246 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
25248 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
25249 sem_util.adb: Minor reformatting
25251 * sem_ch12.adb: Add comment for previous change
25253 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
25255 * osint.adb (Executable_Prefix): Set Exec_Name to the current
25256 executable name when not initialized. Otherwise, use its current value.
25258 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
25259 initialize it to another executable name than the current one. This
25260 allows to configure paths for an executable name (gnatmake) different
25261 from the current one (gnatdist).
25263 2004-03-29 Ed Schonberg <schonberg@gnat.com>
25265 * exp_ch6.adb (Expand_Call): A call to a function declared in the
25266 current unit cannot be inlined if it appears in the body of a withed
25267 unit, to avoid order of elaboration problems in gigi.
25269 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
25270 information for protected (wrapper) operation as well, to simplify gdb
25273 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
25274 protected body, indicate that the entity for the generated spec comes
25275 from source, to ensure that references are properly generated for it.
25276 (Build_Body_To_Inline): Do not inline a function that returns a
25279 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
25280 apply convention to homonyms that are declared explicitly.
25282 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
25283 that renames an equality operator and the operands are overloaded,
25284 resolve them with the declared formal types, before rewriting as an
25287 2004-03-29 GNAT Script <nobody@gnat.com>
25289 * Make-lang.in: Makefile automatically updated
25291 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
25293 * memtrack.adb: Log realloc calls, which are treated as free followed
25296 2004-03-25 Vincent Celier <celier@gnat.com>
25298 * prj-makr.adb (Process_Directories): Detect when a file contains
25299 several units. Do not include such files in the config pragmas or
25300 in the naming scheme.
25302 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
25303 Resolve links only when not in Trusted_Mode.
25304 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
25305 Do not resolve links for the display names.
25307 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
25308 resolve links when computing the display names.
25310 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
25312 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
25313 attribute reference does not denote a subtype, it can be any
25314 expression that has a classwide type, potentially after an implicit
25315 dereference. In particular, the prefix can be a view conversion for
25316 a classwide type (for which Is_Object_Reference holds), but it can
25317 also be a value conversion for an access-to-classwide type. In the
25318 latter case, there is an implicit dereference, and the original node
25319 for the prefix does not verify Is_Object_Reference.
25321 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
25322 conversion of a discriminant-dependent component of a mutable object
25325 2004-03-25 Ed Schonberg <schonberg@gnat.com>
25327 * freeze.adb (Freeze_Entity): When an inherited subprogram is
25328 inherited, has convention C, and has unconstrained array parameters,
25329 place the corresponding warning on the derived type declaration rather
25330 than the original subprogram.
25332 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
25333 indication on renaming declaration, if formal has a box and actual
25336 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
25337 determine whether to generate an implicit or explicit reference to
25338 the renamed entity.
25340 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
25341 subprogram renaming comes from a defaulted formal subprogram in an
25344 2004-03-25 Gary Dismukes <dismukes@gnat.com>
25346 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
25347 value expressions to ensure that calls within a component definition
25348 will be checked (since those are evaluated during the record type's
25351 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
25353 * s-tpobop.adb: Code clean up:
25354 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
25356 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
25358 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
25360 * Makefile.in: Clean up in the ravenscar run time.
25362 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25364 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
25365 of No_Strict_Aliasing to build_pointer_type_for_mode.
25366 * utils.c (update_pointer_to): Walk pointer and ref chains.
25368 2004-03-22 Cyrille Comar <comar@act-europe.fr>
25370 * ali.ads: Fix Comment about Dynamic_Elab.
25372 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
25373 Has_RACW, Is_Generic, etc.)
25374 (Output_Object, Gnatls): Take into account ALI files not attached to
25377 2004-03-22 Vincent Celier <celier@gnat.com>
25379 * gprep.adb: Change all String_Access to Name_Id
25380 (Is_ASCII_Letter): new function
25381 (Double_File_Name_Buffer): New procedure
25382 (Preprocess_Infile_Name): New procedure
25383 (Process_Files): New procedure
25384 (Gnatprep): Check if output and input are existing directories.
25385 Call Process_Files to do the real job.
25387 2004-03-22 Robert Dewar <dewar@gnat.com>
25389 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
25390 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
25392 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
25394 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
25395 case when the source contains only comments.
25397 2004-03-22 Ed Schonberg <schonberg@gnat.com>
25399 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
25400 declaration for a child subprogram body that acts as a spec, indicate
25401 that the entity in the declaration needs debugging information.
25403 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
25404 full view if the subtype is created for a constrained record component;
25405 gigi has enough information to construct the record, and there is no
25406 place in the tree for the declaration.
25408 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
25409 serial number for the dummy body that is built for analysis, to avoid
25410 inconsistencies in the generation of internal names when compiling
25413 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
25415 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
25418 2004-03-22 GNAT Script <nobody@gnat.com>
25420 * Make-lang.in: Makefile automatically updated
25422 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25424 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
25425 * trans.c (tree_transform, emit_index_check): Likewise.
25426 * utils.c (build_template): Likewise.
25427 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
25428 (maybe_unconstrained_array, unchecked_convert): Likewise.
25429 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
25430 (build_unary_op): Likewise.
25431 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
25432 (fill_vms_descriptor): Likewise.
25433 (build_call_alloc_dealloc): Likewise.
25435 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
25437 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
25440 * gnat_ug.texi: Add info directory category and entry.
25441 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
25442 gnat_ug_wnt.texi: Regenerate.
25444 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
25446 * ada-tree.h: Update copyright notice.
25447 Minor reformatting.
25449 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
25451 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
25452 as regular exception objects and not as mere integers representing the
25453 condition code. The latter approach required some dynamics to mask off
25454 severity bits, which did not fit well into the GCC table based model.
25455 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
25456 exception data objects. We don't it and it would conflict with the other
25457 external symbol we have to generate for such exceptions.
25459 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
25460 the special code for VMS exceptions, since these are now represented
25461 as regular exceptions objects.
25463 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25465 * decl.c (debug_no_type_hash): Remove.
25466 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
25467 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
25469 2004-03-19 Laurent Guerby <laurent@guerby.net>
25471 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
25472 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
25474 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25476 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
25477 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
25478 (TYPE_RM_SIZE_INT): Directly use type.values.
25479 (TREE_LOOP_ID): Clean up check.
25480 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
25481 TYPE_VALUES, not TYPE_FIELDS.
25482 * trans.c (convert_with_check): Delay access of bounds of basetype
25483 until sure is numeric.
25485 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
25487 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
25490 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
25491 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
25492 Specific.Set instead of direct call to e.g pthread_setspecific.
25494 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
25496 * adaint.c: Update comments.
25498 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
25499 GNATLIB_SHARED for FreeBSD.
25501 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
25503 * init.c [VxWorks]: Do not fix the stack size for the environment task.
25504 When needed (stack checking) the stack size is retrieved
25505 from the VxWorks kernel.
25507 * Makefile.in: Flag -nostdinc is required when building the run time
25508 for avoiding looking for files in the base compiler.
25509 Add the VxWorks specific version of the package body for
25510 System.Stack_checking.Operations (5zstchop.adb).
25512 * Make-lang.in: Add the object file for
25513 System.Stack_Checking.Operations.
25515 * Makefile.rtl: Add object file for the package
25516 System.Stack_Checking.Operations.
25518 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
25520 * s-stache.ads, s-stache.adb: Move the operations related to stack
25521 checking from this package to package System.Stack_Checking.Operations.
25522 This way, stack checking operations are only linked in the final
25523 executable when using the -fstack-check flag.
25525 2004-03-18 Doug Rupp <rupp@gnat.com>
25527 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
25530 * 5qsystem.ads, 5xcrtl.ads: New files.
25532 2004-03-18 Vincent Celier <celier@gnat.com>
25534 * prj.adb (Reset): Reset hash table Files_Htable
25536 * prj-env.adb (Source_Paths, Object_Paths): New tables.
25537 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
25538 the procedures Add_To_Path_File.
25539 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
25540 making sure that each directory is present only once and, for object
25541 dirs, when a directory already present is added, the duplicate is
25542 removed and the directory is always put as the last in the table.
25543 Write the path files at the end of these accumulations.
25545 * prj-nmsc.adb (Record_Source): Add source file name in hash table
25546 Files_Htable for all sources.
25548 * prj-proc.adb (Process): Remove restrictions between not directly
25549 related extending projects.
25551 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
25553 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
25554 (Find_Sources): Minor speed optimization.
25556 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
25557 parameter Trusted_Mode.
25559 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
25561 * scn.adb (Determine_License): Take into account a degenerated case
25562 when the source contains only comments.
25564 2004-03-18 Ed Schonberg <schonberg@gnat.com>
25566 * sem_warn.adb (Check_References): For a warning on a selected
25567 component that does not come from source, locate an uninitialized
25568 component of the record type to produce a more precise error message.
25570 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
25572 * 3zsoccon.ads: Fix multicast options.
25574 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
25577 2004-03-15 Robert Dewar <dewar@gnat.com>
25579 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
25580 pragma used for a private type.
25582 * lib-xref.adb (Generate_Reference): Do not generate warning if
25583 reference is in a different unit from the pragma Unreferenced.
25585 * 5vtpopde.adb: Minor reformatting
25586 Fix casing of To_Task_ID
25588 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
25589 flag if we have an unchecked conversion to an access type in the same
25592 2004-03-15 Geert Bosch <bosch@gnat.com>
25594 * a-ngcoty.adb (Modulus): In alternate formula for large real or
25595 imaginary parts, use Double precision throughout.
25597 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
25598 we want to be able to compile run-time with -gnata for testing, but
25599 this may also be instantiated in user code that is compiled with -gnata.
25601 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
25603 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
25604 codes. Having a separate type for this is useful to enforce consistency
25605 throughout the various run-time units.
25606 (Exception_Data): Use Exception_Code for Import_Code.
25608 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
25609 Natural and Integer in various places.
25610 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
25611 with the severity bits masked off.
25612 (Register_VMS_Exception): Handle the additional exception data pointer
25615 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
25616 component, now reflected by an exported accessor.
25617 (is_handled_by): New routine to compute whether the propagated
25618 occurrence matches some handler choice specification. Extracted out of
25619 get_action_description_for, and expanded to take care of the VMS
25621 (get_action_description_for): Use is_handled_by instead of an explicit
25622 complex condition to decide if the current choice at hand catches the
25623 propagated occurrence.
25625 * raise.h (Exception_Code): New type for C.
25627 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
25628 System.Standard_Library.Exception_Code, to allow references from the
25629 pragma import/export expander.
25631 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
25632 New accessors to allow easy access to GNAT exception data
25634 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
25635 redundant Handled_By_Others component, helper for the personality
25636 routine which will now be able to call the appropriate exception data
25639 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
25640 component of Standard_Exception_Type to be the closest possible to
25641 Exception_Code in System.Standard_Library, that we cannot get at this
25642 point. Expand a ??? comment to notify that this type node should
25643 probably be rewritten later on.
25645 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
25646 registration call to include a pointer to the exception object in the
25649 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
25650 instead of int and explicit bitmasks.
25652 2004-03-15 Vincent Celier <celier@gnat.com>
25654 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
25655 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
25657 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
25658 longer needed now that it is in the spec of
25659 System.Tasking.Task_Attributes.
25661 * adaint.h, adaint.c: (__gnat_create_output_file): New function
25663 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
25665 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
25667 * make.adb (Gnatmake): Do not check the executable suffix; it is being
25668 taken care of in Scan_Make_Arg.
25669 (Scan_Make_Arg): Add the executable suffix only if the argument
25670 following -o, in canonical case, does not end with the executable
25671 suffix. When in verbose mode and executable file name does not end
25672 with executable suffix, output the executable name, in canonical case.
25674 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
25675 to avoid warnings when instantiating Ada.Task_Attributes.
25678 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
25679 in the correct order.
25681 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
25682 redirect standard output and error to a file for the invocation of the
25683 compiler, then read the file.
25685 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
25686 directory, instead of the Value.
25687 (Find_Source_Dirs): Remove useless code & comments.
25689 2004-03-15 Ed Schonberg <schonberg@gnat.com>
25691 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
25692 tagged type is inherited, and the parent operation is not frozen yet,
25693 force generation of a freeze node for the inherited operation, so the
25694 corresponding dispatch entry is properly initialized.
25695 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
25696 when looking for user-defined equality operation.
25698 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
25699 boolean when locating primitive equality of tagged component.
25701 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
25702 bit-aligned field and the right-hand side a string literal, introduce
25703 a temporary before expanding assignment into a loop.
25705 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
25706 priority in full, to ensure that any expanded subepxressions of it are
25707 elaborated in the scope of the init_proc.
25709 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
25710 after object declaration, skipping over code that may have been
25711 generated for validity checks.
25713 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
25714 discriminants, ignore the known discriminants of its full view, if
25715 any, to check legality.
25717 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
25718 component if type has unknown discriminants.
25719 (Analyze_Private_Extension_Declaration): Discriminant constraint is
25720 null if type has unknown discriminants.
25722 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
25723 for end label when present.
25725 * s-fileio.adb (Open): When called with a C_Stream, use given name for
25726 temporary file, rather than an empty string.
25728 2004-03-15 Ed Falis <falis@gnat.com>
25730 * s-thread.adb: Removed, no longer used.
25732 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25734 * decl.c (target.h): Now include.
25735 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
25736 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
25737 (validate_size): For POINTER_TYPE, get smallest size permitted on
25740 * fe.h: Sort Einfo decls and add Set_Mechanism.
25742 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
25743 (ada/decl.o): Depends on target.h.
25745 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
25746 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
25748 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
25750 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
25752 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
25753 Insert_Dereference_Action when rewriting an implicit dereference into
25754 an explicit one, this will be taken care of during expansion of the
25755 explicit dereference.
25756 (Expand_N_Slice): Same. Always do the rewriting, even for the case
25757 of non-packed slices, since the dereference action generated by
25758 expansion of the explicit dereference is needed in any case.
25759 (Expand_N_Selected_Component): When rewriting an implicit dereference,
25760 analyze and resolve the rewritten explicit dereference so it is seen
25762 (Insert_Dereference_Action): This procedure is now called only for the
25763 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
25764 dereferences that do not come from source (including explicit
25765 dereferences resulting from rewriting implicit ones), but do not
25766 recursively insert a check for the dereference nodes contained within
25768 (Insert_Dereference_Action): Clarify and correct comment.
25770 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
25773 Move language detection to the top level.
25774 * config-lang.in: Build by default.
25776 2004-03-05 Robert Dewar <dewar@gnat.com>
25778 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
25780 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
25781 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
25782 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
25783 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
25784 unchecked conversion to spec to avoid warnings.
25786 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
25789 * 7stpopsp.adb: Correct casing in To_Task_ID call
25791 * a-strsea.ads, a-strsea.adb: Minor reformatting
25793 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
25795 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
25796 Adjust Max_Msg_Length to be clearly large enough.
25798 * fe.h: Define In_Same_Source_Unit
25800 * osint.adb: Add pragma Warnings Off to suppress warnings
25801 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
25804 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
25806 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
25808 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
25810 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
25812 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
25814 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
25815 node. We now do generate them for gcc back end.
25817 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
25820 * sinput-c.adb: Fix bad name in header.
25821 Add pragma Warnings Off to suppress aliasing warning.
25823 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
25825 * snames.h, snames.ads, snames.adb: Add entry for pragma
25826 No_Strict_Aliasing.
25828 2004-03-05 Vincent Celier <celier@gnat.com>
25830 * prj-com.ads: Add hash table Files_Htable to check when a file name
25831 is already a source of another project.
25833 * prj-nmsc.adb (Record_Source): Before recording a new source, check
25834 if its file name is not already a source of another project. Report an
25837 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
25838 source file name, call gnatpp with all the sources of the main project.
25840 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
25843 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
25844 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
25845 /RUNTIME_SYSTEM=, converted to --RTS=
25846 /NOTABS, converted to -notabs
25848 2004-03-05 Pascal Obry <obry@gnat.com>
25850 * make.adb: Minor reformatting.
25852 2004-03-05 Ed Schonberg <schonberg@gnat.com>
25854 Part of implemention of AI-262.
25855 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
25857 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
25860 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
25861 when component type is a partially constrained class-wide subtype.
25862 (Constrain_Discriminated_Type): If parent type has unknown
25863 discriminants, a constraint is illegal, even if full view has
25865 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
25866 with unknown discriminants whose full view is a discriminated record.
25868 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
25869 flag, to handle properly derivations of tagged types with unknown
25871 (Analyze_Package_Spec, Analyze_Package_Body): Install
25872 Private_With_Clauses before analyzing private part or body.
25874 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
25875 Has_Discriminants can be true for a given type (documentation).
25877 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
25879 * s-restri.ads: Fix license (GPL->GMGPL).
25881 * s-tassta.adb: Minor reformatting.
25883 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
25884 by calls to Exit_One_ATC_Level, since additional clean up is performed
25887 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
25888 by calls to Exit_One_ATC_Level, since additional clean up is performed
25891 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25893 * trans.c: Reflect GCC changes to fix bootstrap problem.
25894 Add warning for suspicious aliasing unchecked conversion.
25896 2004-03-05 GNAT Script <nobody@gnat.com>
25898 * Make-lang.in: Makefile automatically updated
25900 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
25902 * ali.adb (Read_Instantiation_Instance): Do not modify the
25903 current_file_num when reading information about instantiations, since
25904 this corrupts files in later references.
25906 2004-03-02 Vincent Celier <celier@gnat.com>
25908 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
25909 before checking if it is read-only.
25911 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
25912 of SRC_DIRS and eliminate duplicates.
25914 * gprcmd.adb: Replace command "path" with command "path_sep" to return
25915 the path separator.
25916 (Usage): Document path_sep
25918 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
25919 C++ compiler. No need for a script.
25920 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
25921 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
25924 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
25925 where there are Ada sources.
25926 (Set_Ada_Paths): Only add to the include path the source dirs of project
25928 (Add_To_Path): Add the Display_Values of the directories, not their
25931 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
25934 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
25936 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
25937 Value is canonicalized.
25938 (Language_Independent_Check): Do not copy Value to Display_Value when
25939 canonicalizing Value.
25941 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
25942 path to find limited with cycles.
25943 (Parse_Single_Project): Use canonical cased path to find the end of a
25946 2004-03-02 Ed Schonberg <schonberg@gnat.com>
25948 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
25949 and not a child unit.
25951 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
25952 appear in a with_clause.
25954 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
25955 only happen in type_annotate mode, do not try to elaborate it.
25957 * exp_util.adb (Force_Evaluation): If expression is a selected
25958 component on the left of an assignment, use a renaming rather than a
25959 temporary to remove side effects.
25961 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
25962 inlined instance body, which is analyzed before the end of the
25965 2004-03-02 Robert Dewar <dewar@gnat.com>
25967 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
25968 sem_ch4.adb: Use new feature for substitution of keywords in VMS
25970 * errout.ads, errout.adb: Implement new circuit for substitution of
25973 * sem_case.adb (Analyze_Choices): Place message properly when case is
25974 a subtype reference rather than an explicit range.
25976 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
25978 2004-03-02 Doug Rupp <rupp@gnat.com>
25980 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
25982 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
25984 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
25986 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25988 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
25991 2004-02-25 Robert Dewar <dewar@gnat.com>
25993 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
25994 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
25995 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
25996 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
25997 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
25998 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
25999 the defining instance of the type to avoid aliasing problems.
26000 Fix copyright header. Fix bad comments in package header.
26002 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
26004 2004-02-25 Ed Schonberg <schonberg@gnat.com>
26006 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
26007 rewritten as references when aliased through an address clause.
26009 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
26010 whether call can be interpreted as an indirect call to the result of a
26011 parameterless function call returning an access subprogram.
26013 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
26016 * exp_ch7.adb (Make_Clean): Remove generation of calls to
26017 Unlock[_Entries], since this is now done by Service_Entries directly.
26019 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
26021 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
26022 Requeue_Call for better code readability. Change spec and update calls:
26023 PO_Service_Entries now unlock the PO on exit.
26024 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
26025 PO_Service_Entries.
26027 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
26029 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
26031 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
26033 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
26034 protected subprogram call and analyzing the result of such expanding
26035 in case when the called protected subprogram is eliminated.
26037 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
26040 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
26042 * Makefile.in: Clean ups.
26044 2004-02-23 Ed Schonberg <schonberg@gnat.com>
26046 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
26047 protected operations if original subprogram is flagged as eliminated.
26048 (Expand_N_Subprogram_Body): For a protected operation, create
26049 discriminals for next operation before checking whether the operation
26052 * exp_ch9.adb (Expand_N_Protected_Body,
26053 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
26054 for internal protected operations if the original subprogram is
26057 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
26058 declared in a single protected object.
26060 2004-02-23 Vincent Celier <celier@gnat.com>
26062 * prj-attr.adb: Make attribute Builder'Executable an associative array,
26063 case insensitive if file names are case insensitive, instead of a
26064 standard associative array.
26066 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
26067 them as case insensitive on platforms where the file names are case
26070 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
26071 project file has already been parsed that canonical path are compared.
26073 2004-02-23 Robert Dewar <dewar@gnat.com>
26075 * sinput-c.ads: Correct bad unit title in header
26077 * freeze.adb: Minor reformatting
26079 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26081 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
26082 nonaddressable COMPONENT_REF that is removing padding that we are
26083 taking the address of, take the address of the padded record instead
26084 if item is variable size.
26086 2004-02-20 Robert Dewar <dewar@gnat.com>
26088 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
26090 2004-02-20 Ed Schonberg <schonberg@gnat.com>
26092 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
26093 itype references for the constrained designated type of a component
26094 whose base type is already frozen.
26096 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
26098 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
26099 avoid GCC warnings.
26101 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
26103 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
26104 identifier for a phantom package that rewrites the formal package
26105 declaration with a box. The Add semantic decorations for the defining
26106 identifier from the original node (that represents the formal package).
26108 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
26110 * Make-lang.in (ada/stamp-sdefault): Use the top level
26113 2004-02-19 Richard Henderson <rth@redhat.com>
26115 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
26117 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
26119 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
26120 Scan_ALI can be used for multiple ALI files without reinitializing
26123 2004-02-18 Robert Dewar <dewar@gnat.com>
26125 * debug.adb: Minor reformatting.
26127 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26129 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
26130 to zero if there is an address clause.
26132 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
26134 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
26136 2004-02-18 Gary Dismukes <dismukes@gnat.com>
26138 * layout.adb (Layout_Component_List): Revise generation of call to
26139 discriminant-checking function to pass selections of all of the type's
26140 discriminants rather than just the variant-controlling discriminant.
26142 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
26144 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
26145 fail in the current setup and triggers spurious system error messages.
26146 Pretend it occurred and failed instead.
26148 2004-02-18 Vincent Celier <celier@gnat.com>
26150 * bld.adb: Mark FLDFLAGS as saved
26151 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
26152 it is not the root project. Put each directory to be
26153 extended between double quotes to prevent it to be expanded on Windows.
26154 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
26155 the project file. Set them back to their initial values if they have not
26156 been set in the project file.
26158 * gprcmd.adb: (Gprdebug, Debug): New global variables
26159 (Display_Command): New procedure
26160 (Usage): Document new command "linkopts"
26161 Call Display_Command when env var GPRDEBUG has the value "TRUE"
26162 Implement new command "linkopts"
26163 Remove quotes that may be around arguments for "extend"
26164 Always call Normalize_Pathname with arguments formatted for the platform
26166 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
26167 Change @echo to @$(display) in target clean to be able to clean silently
26169 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
26171 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
26174 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
26175 = Extending_All when current project is an extending all project.
26177 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
26178 set to True only for LINK command, after Unix switch -o.
26179 (Process_Arguments): Set Output_File_Expected to True for LINK command
26180 after Unix switch -o. When Output_File_Expected is True, never add an
26181 extension to a file name.
26183 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
26184 option file name, only to the --for-linker= switch.
26185 (Option_File_Name): If option file name do not end with ".opt", append
26188 2004-02-18 GNAT Script <nobody@gnat.com>
26190 * Make-lang.in: Makefile automatically updated
26192 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
26194 * Make-lang.in (stamp-sdefault): Do not depend on
26197 2004-02-12 Zack Weinberg <zack@codesourcery.com>
26199 * config-lang.in: Disable Ada by default until probe logic for
26200 a bootstrap Ada compiler can be moved to the top level configure
26203 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
26205 * decl.c (components_to_record): Don't claim that the internal fields
26206 we make to hold the variant parts are semantically addressable, because
26209 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
26210 adjust the comment describing the modular type form when we can use it.
26211 (Install_PAT): Account for the Esiz renaming.
26213 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
26214 sc_onstack context indication before raising the exception to which
26215 the signal is mapped. Allows better handling of later signals possibly
26216 triggered by the resumed user code if the exception is handled.
26218 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
26220 * 5zinit.adb: Removed, no longer used.
26222 2004-02-12 Robert Dewar <dewar@gnat.com>
26224 * ali.adb: Remove separating space between parameters on R line. Makes
26225 format consistent with format used by the binder for Set_Globals call.
26227 * atree.ads, atree.adb: Minor reformatting (new function header format)
26229 * bindgen.adb: Add Run-Time Globals documentation section containing
26230 detailed documentation of the globals passed from the binder file to
26233 * gnatls.adb: Minor reformatting
26235 * init.c (__gnat_set_globals): Add note pointing to documentation in
26238 * lib-writ.ads, lib-writ.adb: Remove separating space between
26239 parameters on R line.
26240 Makes format consistent with format used by the binder for Set_Globals
26243 * osint.ads: Add 2004 to copyright notice
26246 * snames.ads: Correct capitalization of FIFO_Within_Priorities
26247 Noticed during code reading, documentation issue only
26249 * usage.adb: Remove junk line for obsolete C switch
26250 Noticed during code reading
26252 2004-02-12 Vincent Celier <celier@gnat.com>
26254 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
26255 extend for each directory, so that multiple /** directories are
26256 extended individually.
26257 (Recursive_Process): Set the default for LANGUAGES to ada
26259 * gprcmd.adb: Define new command "ignore", to do nothing.
26260 Implement new comment "path".
26262 * Makefile.generic: Suppress output when SILENT is set
26263 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
26264 used, so that the correct compiler is invoked.
26265 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
26266 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
26268 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
26270 * Makefile.in: Clean ups and remove obsolete targets.
26272 2004-02-12 Ed Schonberg <schonberg@gnat.com>
26274 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
26275 predicate declared in exp_util.
26277 * exp_util.adb: Add comments.
26279 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
26280 visibility before compiling context of the subunit.
26282 * sem_res.adb (Check_Parameterless_Call): If the context expects a
26283 value but the name is a procedure, do not attempt to analyze as a call,
26284 in order to obtain more telling diagnostics.
26286 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
26287 'Access on parameterless function calls.
26288 (Normalize_Actuals): For a parameterless function call with missing
26289 actuals, defer diagnostic until resolution of enclosing call.
26291 * sem_util.adb (Wrong_Type): If the context type is an access to
26292 subprogram and the expression is a procedure name, suggest a missing
26295 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
26296 Nathanael Nerode <neroden@gcc.gnu.org>
26300 Merge with libada-branch:
26301 * config-lang.in: Build libada only when ada is built.
26303 2004-02-09 Ed Schonberg <schonberg@gnat.com>
26305 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
26306 for a tagged type, verify that both formals have the same type.
26308 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
26309 temporary when the formal is an in-parameter and the actual a possibly
26312 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
26313 when expansion is disabled, to ensure proper name capture with
26314 overloaded literals. Condition can be of any boolean type, resolve
26317 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
26318 renaming is for a formal subprogram with a default operator name, and
26319 there is a usable operator that is visible at the point of
26322 2004-02-09 Robert Dewar <dewar@gnat.com>
26324 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
26325 rewrite to ignore errors in ali files, intended to allow tools downward
26326 compatibility with new versions of ali files.
26328 * ali.ads: Add new parameter Ignore_Errors
26330 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
26331 duplicating the error message giving the file with restrictions.
26333 * debug.adb: Add debug flag I for gnatbind
26335 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
26336 operators for the case where the operator is a defining operator.
26338 * exp_ch3.adb: Minor reformatting (new function spec format).
26340 * exp_ch4.adb: Add comment for previous change, and make minor
26341 adjustment to loop to always check for improper loop termination.
26342 Minor reformatting throughout (new function spec format).
26344 * gnatbind.adb: Implement -di debug flag for gnatbind
26346 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
26348 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
26350 * lib-load.adb: Fix bad assertion.
26351 Found by testing and code reading.
26352 Minor reformatting.
26354 * lib-load.ads: Minor reformatting.
26356 * lib-writ.adb: There is only one R line now.
26358 * lib-writ.ads: Add documentation on making downward compatible changes
26359 to ali files so old tools work with new ali files.
26360 There is only one R line now.
26361 Add documentation on format incompatibilities (with special GPS note)
26363 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
26365 * par-load.adb: Minor reformatting
26367 * sem_ch8.adb: Fix to error message from last update
26368 Minor reformatting and restructuring of code from last update
26370 * par-prag.adb, snames.adb, snames.ads, snames.h,
26371 sem_prag.adb: Implement pragma Profile.
26373 * stylesw.adb: Implement -gnatyN switch to turn off all style check
26376 * usage.adb: Add line for -gnatyN switch
26378 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
26380 2004-02-09 Albert Lee <lee@gnat.com>
26382 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
26384 2004-02-09 Ed Schonberg <schonberg@gnat.com>
26386 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
26389 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
26390 is nested in an instance that is not frozen yet, to avoid
26391 order-of-elaboration problems in gigi.
26393 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
26394 body the attribute is legal.
26396 2004-02-09 Robert Dewar <dewar@gnat.com>
26398 * s-rident.ads: Minor comment correction
26400 * targparm.adb: Remove dependence on uintp completely. There was
26401 always a bug in Make in that it called Targparm before initializing
26402 the Uint package. The old code appeared to get away with this, but
26403 the new code did not! This caused an assertion error in gnatmake.
26405 * targparm.ads: Fix bad comment, restriction pragmas with parameters
26406 are indeed fully supported.
26408 2004-02-06 Alan Modra <amodra@bigpond.net.au>
26410 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
26412 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
26414 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
26415 with targetm.calls.promote_prototypes.
26417 2004-02-04 Robert Dewar <dewar@gnat.com>
26419 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
26420 ali.ads, gprcmd.adb: Minor reformatting
26422 * bindgen.adb: Output restrictions string for new style restrictions
26425 * impunit.adb: Add s-rident.ads (System.Rident) and
26426 s-restri (System.Restrictions)
26428 * lib-writ.adb: Fix bug in writing restrictions string (last few
26431 * s-restri.ads, s-restri.adb: Change name Restrictions to
26432 Run_Time_Restrictions to avoid conflict with package name.
26433 Add circuit to read and acquire run time restrictions.
26435 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
26437 * restrict.ads, restrict.adb: Use the new restriction
26438 No_Task_Attributes_Package instead of the old No_Task_Attributes.
26440 * sem_prag.adb: No_Task_Attributes is a synonym of
26441 No_Task_Attributes_Package.
26443 * snames.ads, snames.adb: New entry for proper handling of
26444 No_Task_Attributes.
26446 * s-rident.ads: Adding restriction No_Task_Attributes_Package
26447 (AI-00249) that supersedes the GNAT specific restriction
26448 No_Task_Attributes.
26450 2004-02-04 Ed Schonberg <schonberg@gnat.com>
26453 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
26454 body, an identifier may be wrapped in an unchecked conversion.
26456 2004-02-04 Vincent Celier <celier@gnat.com>
26458 * lib-writ.ads: Comment update for the W lines
26460 * bld.adb: (Expression): An empty string list is static
26462 * fname-uf.adb: Minor comment update
26464 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
26466 * gnatbind.adb: Initialize Cumulative_Restrictions with the
26467 restrictions on the target.
26469 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
26471 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
26474 2004-02-02 Arnaud Charlet <charlet@gnat.com>
26476 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
26478 2004-02-02 Vincent Celier <celier@gnat.com>
26480 * gprcmd.adb (Check_Args): If condition is false, print the invoked
26481 comment before the usage.
26482 Gprcmd: Fail when command is not recognized.
26483 (Usage): Document command "prefix"
26485 * g-md5.adb (Digest): Process last block.
26486 (Update): Do not process last block. Store remaining characters and
26489 * g-md5.ads (Update): Document that several call to update are
26490 equivalent to one call with the concatenated string.
26491 (Context): Add fields to allow new Update behaviour.
26493 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
26494 defaulted to False.
26495 When May_Fail is True and no existing file can be found, return No_File.
26497 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
26500 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
26501 spec file name instead on the W line.
26503 2004-02-02 Robert Dewar <dewar@gnat.com>
26505 * ali.adb: Read and acquire info from new format restrictions lines
26507 * bcheck.adb: Add circuits for checking restrictions with parameters
26509 * bindgen.adb: Output dummy restrictions data
26510 To be changed later
26512 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
26513 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
26514 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
26515 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
26516 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
26518 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
26519 the warning message on access to possibly uninitialized variable S)
26520 Minor changes for new restrictions handling.
26522 * gnatbind.adb: Minor reformatting
26523 Minor changes for new restrictions handling
26524 Move circuit for -r processing here from bcheck (cleaner)
26526 * gnatcmd.adb, gnatlink.adb: Minor reformatting
26528 * lib-writ.adb: Output new format restrictions lines
26530 * lib-writ.ads: Document new R format lines for new restrictions
26533 * s-restri.ads/adb: New files
26535 * Makefile.rtl: Add entry for s-restri.ads/adb
26537 * par-ch3.adb: Fix bad error messages starting with upper case letter
26540 * restrict.adb: Major rewrite throughout for new restrictions handling
26541 Major point is to handle restrictions with parameters
26543 * restrict.ads: Major changes in interface to handle restrictions with
26544 parameters. Also generally simplifies setting of restrictions.
26546 * snames.ads/adb: New entry for proper handling of No_Requeue
26548 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
26549 restriction counting.
26550 Other minor changes for new restrictions handling
26552 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
26553 Restriction_Warnings now allows full parameter notation
26554 Major rewrite of Restrictions for new restrictions handling
26556 2004-02-02 Javier Miranda <miranda@gnat.com>
26558 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
26559 syntax rule for object renaming declarations.
26560 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
26561 component definitions.
26563 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
26565 (Array_Type_Declaration): Give support to access components. In addition
26566 it was also modified to reflect the name of the object in anonymous
26567 array types. The old code did not take into account that it is possible
26568 to have an unconstrained anonymous array with an initial value.
26569 (Check_Or_Process_Discriminants): Allow access discriminant in
26571 (Process_Discriminants): Allow access discriminant in non-limited types
26572 Initialize the new Access_Definition field in N_Object_Renaming_Decl
26573 node. Change Ada0Y to Ada 0Y in comments
26575 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
26576 equality operators.
26577 Change Ada0Y to Ada 0Y in comments
26579 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
26580 renamings Change Ada0Y to Ada 0Y in comments
26582 * sem_type.adb (Find_Unique_Type): Give support to the equality
26583 operators for universal access types
26584 Change Ada0Y to Ada 0Y in comments
26586 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
26588 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
26590 (N_Object_Renaming_Declaration): Addition of Access_Definition field
26591 Change Ada0Y to Ada 0Y in comments
26593 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
26594 component definition and object renaming nodes
26595 Change Ada0Y to Ada 0Y in comments
26597 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
26599 * restrict.adb: Use the new restriction identifier
26600 No_Requeue_Statements instead of the old No_Requeue for defining the
26601 restricted profile.
26603 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
26604 No_Requeue_Statements.
26606 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
26607 that supersedes the GNAT specific restriction No_Requeue. The later is
26608 kept for backward compatibility.
26610 2004-02-02 Ed Schonberg <schonberg@gnat.com>
26612 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
26613 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
26614 pragma and fix incorrect ones.
26616 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
26617 warning if the pragma is redundant.
26619 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
26621 * 5staprop.adb: Add missing 'constant' keywords.
26623 * Makefile.in: use consistent value for SYMLIB on
26624 platforms where libaddr2line is supported.
26626 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26628 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
26631 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
26633 * init.c (__gnat_install_handler): Setup an alternate stack for signal
26634 handlers in the environment thread. This allows proper propagation of
26635 an exception on stack overflows in this thread even when the builtin
26636 ABI stack-checking scheme is used without support for a stack reserve
26639 * utils.c (create_field_decl): Augment the head comment about bitfield
26640 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
26641 here, because the former is not accurate enough at this point.
26642 Let finish_record_type decide instead.
26643 Don't make a bitfield if the field is to be addressable.
26644 Always set a size for the field if the record is packed, to ensure the
26645 checks for bitfield creation are triggered.
26646 (finish_record_type): During last pass over the fields, clear
26647 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
26648 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
26649 from DECL_BIT_FIELD.
26651 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
26653 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
26654 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
26655 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
26657 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
26659 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
26661 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
26662 (ZCX_By_Default): Likewise.
26663 (Front_End_ZCX_Support): Likewise.
26665 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
26666 (Initialize_Lock): Mark Level unreferenced.
26667 (Sleep): Mark Reason unreferenced.
26668 (Timed_Sleep): Likewise.
26669 (Wakeup): Likewise.
26670 (Exit_Task): Use Result.
26671 (Check_No_Locks): Mark Self_ID unreferenced.
26673 * 5gtasinf.adb (New_Sproc): Make Attr constant.
26674 (Bound_Thread_Attributes): Make Sproc constant.
26675 (New_Bound_Thread_Attributes): Likewise.
26677 2004-01-26 Ed Schonberg <schonberg@gnat.com>
26679 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
26680 one-dimensional array an slice assignments, when component type is
26683 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
26684 component type is controlled, and control_actions are in effect, use
26685 TSS procedure rather than generating inline code.
26687 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
26688 arrays with controlled components.
26690 2004-01-26 Vincent Celier <celier@gnat.com>
26692 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
26693 command line for the non VMS case.
26695 * gnatlink.adb (Process_Binder_File): When building object file, if
26696 GNU linker is used, put all object paths between quotes, to prevent ld
26697 error when there are unusual characters (such as '!') in the paths.
26699 * Makefile.generic: When there are sources in Ada and the main is in
26700 C/C++, invoke gnatmake with -B, instead of -z.
26702 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
26703 from VMS_Conversion.
26704 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
26705 specification of argument file on the command line.
26707 2004-01-26 Bernard Banner <banner@gnat.com>
26709 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
26711 2004-01-26 Ed Schonberg <schonberg@gnat.com>
26713 * snames.adb: Update copyright notice.
26714 Add info on slice assignment for controlled arrays.
26716 2004-01-23 Robert Dewar <dewar@gnat.com>
26718 * exp_aggr.adb: Minor reformatting
26720 * exp_ch9.adb: Minor code clean up
26722 Fix bad character in comment
26725 * targparm.adb (Get_Target_Parameters): Give clean abort error on
26726 unexpected end of file, along with more detailed message.
26728 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26730 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
26733 * decl.c (copy_alias_set): New function.
26734 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
26736 2004-01-23 Doug Rupp <rupp@gnat.com>
26738 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
26739 lib$${file} in case subsequent character is not a separator.
26741 2004-01-23 Vincent Celier <celier@gnat.com>
26743 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
26744 when the GCC version is at least 3.
26746 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
26747 Remove all "Opt.", to prepare for opt split
26749 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
26750 Extends_All. Set to True when the project parsed is an extending all
26751 project. Fails for importing an extending all project only when the
26752 imported project is an extending all project.
26753 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
26754 depending on the value of Extends_All returned.
26756 * prj-proc.adb (Process): Check that no project shares its object
26757 directory with a project that extends it, directly or indirectly,
26758 including a virtual project.
26759 Check that no project extended by another project shares its object
26760 directory with another also extended project.
26762 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
26763 Kind = N_With_Clause
26765 * prj-tree.ads: Minor reformatting
26766 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
26768 2004-01-23 Ed Schonberg <schonberg@gnat.com>
26770 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
26771 applies to a type with an incomplete view, use full view in Name of
26772 clause, for consistency with uses of Get_Attribute_Definition_Clause.
26774 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
26776 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
26777 SCHED_RR, since other values are not supported by this policy.
26778 (Initialize): Move initialization of mutex attribute to package
26779 elaboration, to prevent early access to this variable.
26781 * Makefile.in: Remove mention of Makefile.adalib, unused.
26783 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
26784 1ssecsta.ads: Removed, unused.
26786 2004-01-21 Javier Miranda <miranda@gnat.com>
26788 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
26789 entity if already built in the current scope.
26791 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
26792 reminder in internal scopes. Required for nested limited aggregates.
26794 2004-01-21 Doug Rupp <rupp@gnat.com>
26796 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
26797 VMS. Replace all occurences of libgnat- and libgnarl- with
26798 libgnat$(hyphen) and libgnarl$(hyphen).
26799 Fixed shared library build problem on VMS.
26801 2004-01-21 Robert Dewar <dewar@gnat.com>
26803 * mlib-prj.adb: Minor reformatting
26805 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
26807 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
26808 'constant' keywords for declaration of pointers that are not modified.
26810 * exp_pakd.adb: Fix English in comment.
26812 2004-01-21 Ed Schonberg <schonberg@gnat.com>
26815 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
26816 copy all attributes of the parent, including the foreign language
26819 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
26822 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
26823 for 'delay until' statement.
26825 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
26827 * Make-lang.in: Replace $(docdir) with doc.
26828 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
26829 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
26830 to use consistent MAKEINFO rule.
26831 (ada.man, ada.srcman): Dummy entry.
26832 (ADA_INFOFILES): Define.
26833 (ada.info, ada.srcinfo): New rules.
26835 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
26837 * utils.c: Update copyright notice, missed in previous change.
26839 2004-01-19 Vincent Celier <celier@gnat.com>
26841 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
26842 args if Bind is True. Set First_ALI, if not already done.
26843 (Build_Library): For Stand Alone Libraries, extract from one ALI file
26844 an eventual --RTS switch, for gnatbind, and all backend switches +
26845 --RTS, for linking.
26847 2004-01-19 Robert Dewar <dewar@gnat.com>
26849 * sem_attr.adb, memtrack.adb: Minor reformatting
26851 2004-01-19 Ed Schonberg <schonberg@gnat.com>
26853 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
26854 that rename enumeration literals. This is properly done in sem_eval.
26856 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
26857 to functions that rename enumeration literals.
26859 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
26860 functions that rename enumeration literals.
26862 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
26864 * Make-lang.in (utils.o): Depend on target.h.
26865 * utils.c: Include target.h.
26866 (process_attributes): Use targetm.have_named_sections instead
26867 of ASM_OUTPUT_SECTION_NAME.
26869 2004-01-16 Andreas Jaeger <aj@suse.de>
26871 * Makefile.in: Add $(DESTDIR).
26873 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
26875 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
26876 also when not defining if a Size clause applies. That information is
26879 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
26881 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
26882 symbolic links for the shared gnat run time when needed.
26884 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
26886 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
26887 for writing, and terminate with an error message if not.
26889 2004-01-15 Ed Schonberg <schonberg@gnat.com>
26891 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
26892 warning on an access to subprogram in an instance, when the target
26893 type is declared in the same generic unit.
26894 (Eval_Attribute): If 'access is known to fail accessibility check,
26895 rewrite as a raise statement.
26897 2004-01-15 GNAT Script <nobody@gnat.com>
26899 * Make-lang.in: Makefile automatically updated
26901 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
26903 * Make-lang.in (ada.srcextra): Dummy entry.
26905 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
26907 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
26909 2004-01-13 Ed Schonberg <schonberg@gnat.com>
26911 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
26912 components that are initialized with aggregates.
26914 2004-01-13 Vincent Celier <celier@gnat.com>
26916 * gnatlink.adb (Process_Binder_File): To find directory of shared
26917 libgcc, if "gcc-lib" is not a subdirectory, look for the last
26918 subdirectory "lib" in the path of the shared libgnat or libgnarl.
26920 * make.adb (Gnatmake): If GCC version is at least 3, link with
26921 -shared-libgcc, when there is at least one shared library project.
26923 * opt.ads (GCC_Version): New integer constant.
26925 * adaint.c (get_gcc_version): New function.
26927 2004-01-13 Robert Dewar <dewar@gnat.com>
26929 * sem_dist.adb, sem_res.adb, sem_util.adb,
26930 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
26931 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
26933 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
26935 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
26936 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
26939 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
26941 * misc.c: Remove trailing spaces.
26942 Update copyright notice missed in previous change.
26945 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
26948 * Makefile.generic: Update copyright.
26949 Add license notice.
26951 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
26952 of prefix/share/make.
26954 * Makefile.prolog: Update copyright.
26955 Add license notice.
26957 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
26959 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
26960 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
26961 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
26964 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
26967 2004-01-12 Javier Miranda <miranda@gnat.com>
26969 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
26970 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
26971 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
26972 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
26973 Component_Definition node.
26975 2004-01-12 Ed Falis <falis@gnat.com>
26977 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
26979 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
26981 * link.c: Change default libgnat kind to STATIC for FreeBSD.
26983 2004-01-12 Bernard Banner <banner@gnat.com>
26985 * Makefile.in: map 86numaux to a-numaux for x86_64
26987 2004-01-12 Ed Schonberg <schonberg@gnat.com>
26989 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
26990 generated to rename a generic actual, go to the actual itself, the
26991 subtype is not a user-visible entity.
26993 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
26994 part is a private subtype, reset the visibility of its full view, if
26995 any, to be consistent.
26998 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
26999 to use a generic package G as a formal package for another generic
27002 2004-01-12 Robert Dewar <dewar@gnat.com>
27004 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
27006 * usage.adb: Remove mention of obsolete -gnatwb switch
27007 Noticed during code reading
27009 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
27011 * 1ssecsta.adb: Minor changes for -gnatwa warnings
27013 2004-01-12 GNAT Script <nobody@gnat.com>
27015 * Make-lang.in: Makefile automatically updated
27017 2004-01-09 Mark Mitchell <mark@codesourcery.com>
27019 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
27021 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27023 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
27025 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
27027 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
27028 Update comment and copyright date.
27029 * stamp-xgnatug: Delete.
27031 2004-01-05 Robert Dewar <dewar@gnat.com>
27033 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
27034 be modified by the binder generated main program if the -D switch is
27037 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
27038 imported functions (since now we expect this to be done for imported
27041 * 5vtaprop.adb: Add several ??? for sections requiring more comments
27042 Minor reformatting throughout
27044 * 5zinit.adb: Minor reformatting
27045 Add 2004 to copyright date
27046 Minor changes to avoid -gnatwa warnings
27047 Correct some instances of using OR instead of OR ELSE (noted while
27048 doing reformatting)
27050 * sprint.adb: Minor updates to avoid -gnatwa warnings
27052 * s-secsta.ads, s-secsta.adb:
27053 (SS_Get_Max): New function to obtain high water mark for ss stack
27054 Default_Secondary_Stack is not a constant since it may be modified by
27055 the binder generated main program if the -D switch is used.
27057 * switch-b.adb: New -Dnnn switch for binder
27060 Make -gnatg imply all warnings currently in -gnatwa
27062 * vms_conv.adb: Minor reformatting
27063 Add 2004 to copyright notice
27064 Add 2004 to printed copyright notice
27066 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
27067 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
27068 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
27069 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
27070 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
27071 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
27072 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
27073 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
27074 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
27075 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
27076 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
27077 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
27078 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
27079 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
27080 checks.adb, clean.adb, cstand.adb, einfo.ads,
27081 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
27082 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
27083 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
27084 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
27085 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
27086 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
27087 Minor reformatting and code clean ups.
27088 Minor changes to prevent -gnatwa warnings
27090 * ali.adb: Minor reformatting and cleanup of code
27091 Acquire new SS indication of secondary stack use from ali files
27093 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
27094 (since now we expect this to be done for imported functions)
27096 * bindgen.adb: Generate call to modify default secondary stack size if
27099 * bindusg.adb: Add line for new -D switch
27101 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
27102 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
27103 Add circuitry for both records and arrays to avoid gigi
27104 processing if the type involved has non-bit-aligned components
27106 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
27107 N_String_Literal node always references an E_String_Literal_Subtype
27108 entity. This may not be true in the future.
27109 (Possible_Bit_Aligned_Component): Move processing of
27110 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
27112 * exp_ch6.adb (Expand_Thread_Body): Pick up
27113 Default_Secondary_Stack_Size as variable so that we get value modified
27114 by possible -Dnnn binder parameter.
27116 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
27117 (Type_May_Have_Bit_Aligned_Components): New function.
27119 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
27120 (Type_May_Have_Bit_Aligned_Components): New function.
27122 * fe.h: (Set_Identifier_Casing): Fix prototype.
27123 Add declaration for Sem_Elim.Eliminate_Error_Msg.
27124 Minor reformatting.
27126 * freeze.adb (Freeze_Entity): Add RM reference to error message about
27127 importing constant atomic/volatile objects.
27128 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
27129 unless explicit Pure_Function pragma given, to avoid insidious bug of
27130 call to non-pure imported function getting eliminated.
27132 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
27133 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
27134 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
27135 Add 2004 to printed copyright notice
27137 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
27140 * Makefile.rtl: Add entry for g-sestin.o
27141 g-sestin.ads: New file.
27143 * mdll.adb: Minor changes to avoid -gnatwa warnings
27145 * mlib-tgt.adb: Minor reformatting
27147 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
27148 New switch Sec_Stack_Used (GNAT, GNATBIND)
27149 Make Default_Secondary_Stack_Size a variable instead of a constant,
27150 so that it can be modified by the new -Dnnn bind switch.
27152 * rtsfind.adb (Load_Fail): Give full error message in configurable
27153 run-time mode if all_errors mode is set. This was not done in the case
27154 of a file not found, which was an oversight.
27155 Note if secondary stack unit is used by compiler.
27157 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
27158 ineffective elaborate all pragmas on non-visible packages (this
27159 happened when a renamed subprogram was called). Now the elaborate all
27160 always goes on the package containing the renaming rather than the one
27161 containing the renamed subprogram.
27163 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
27164 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
27166 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
27167 has an Etype that references an E_String_Literal.
27168 (Eval_String_Literal): Avoid assumption that N_String_Literal node
27169 always references an E_String_Literal_Subtype entity. This may not
27170 be true in the future.
27172 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
27175 * sem_res.adb (Resolve): Specialize msg for function name used in proc
27178 2004-01-05 Ed Falis <falis@gnat.com>
27180 * g-debuti.adb: Replaced direct boolean operator with short-circuit
27183 2004-01-05 Vincent Celier <celier@gnat.com>
27185 * bld.adb: Minor comment updates
27186 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
27189 * make.adb (Gnatmake): Special process for files to compile/check when
27190 -B is specified. Fail when there are only foreign mains in attribute
27191 Main of the project file and -B is not specified. Do not skip bind/link
27192 steps when -B is specified.
27194 * makeusg.adb: Document new switch -B
27196 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
27198 * switch-m.adb: (Scan_Make_Switches): Process -B switch
27200 * vms_data.ads: Add new GNAT PRETTY qualifier
27201 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
27203 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27205 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
27208 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
27209 Set_Identifier_Casing.
27211 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
27212 has size that overflows.
27214 2004-01-05 Gary Dismukes <dismukes@gnat.com>
27216 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
27217 -gnatwa warning on static condition.
27219 2004-01-05 Doug Rupp <rupp@gnat.com>
27221 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
27223 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
27225 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
27226 all attributes, including read-only attribute.
27228 2004-01-05 Pascal Obry <obry@gnat.com>
27230 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
27231 library naming scheme.
27233 * mlib-prj.adb (Build_Library): Generate different names for the static
27234 or dynamic version of the GNAT runtime. This is needed to support the
27235 new shared library naming scheme.
27236 (Process_Binder_File): Add detection of shared library in binder file
27237 based on the new naming scheme.
27239 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
27240 scheme for the shared runtime libraries.
27243 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
27245 (install-gnatlib): Do not create symlinks for shared libraries.
27246 (gnatlib-shared-default): Idem.
27247 (gnatlib-shared-dual-win32): New target. Not used for now as the
27248 auto-import feature does not support arrays/records.
27249 (gnatlib-shared-win32): Do not create copy for the shared libraries.
27250 (gnatlib-shared-vms): Fix shared runtime libraries names.
27252 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
27253 dependent runtime shared library name.
27255 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
27257 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
27260 2004-01-05 Ed Schonberg <schonberg@gnat.com>
27262 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
27263 protected objects when allocator has a subtype indication, not a
27264 qualified expression. Note that qualified expressions may have to be
27265 checked when limited aggregates are implemented.
27267 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
27268 pure, emit warning.
27269 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
27270 subprogram is imported, remove warning.
27272 2004-01-05 Geert Bosch <bosch@gnat.com>
27274 * s-poosiz.adb: Update copyright notice.
27275 (Allocate): Use Task_Lock to protect against concurrent access.
27276 (Deallocate): Likewise.
27278 2004-01-05 Joel Brobecker <brobecker@gnat.com>
27280 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
27283 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
27285 * gnat_ug.texi: Force a CVS commit by updating copyright.
27286 * gnat_ug_vxw.texi: Regenerate.
27287 * gnat_ug_wnt.texi: Regenerate.
27288 * gnat_ug_vms.texi: Regenerate.
27289 * gnat_ug_unx.texi: Regenerate.
27291 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
27293 * trans.c: Remove uses of "register" specifier in
27294 declarations of local variables.
27296 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
27298 * stamp-xgnatug: New stamp file.
27299 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
27300 (ada/doctools/xgnatug): Add $(build_exeext).
27301 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
27302 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
27304 2003-12-17 Ed Falis <falis@gnat.com>
27306 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
27309 * a-exextr.adb: Add context clause for
27310 Ada.Exceptions.Last_Chance_Handler.
27312 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
27314 * cstand.adb (Create_Standard): Change the way how the declaration of
27315 the Duration type is created (making it the same way as it is for all
27316 the other standard types).
27318 2003-12-17 Robert Dewar <dewar@gnat.com>
27320 * s-crtl.ads: Fix header format
27321 Change Pure to Preelaborate
27323 2003-12-17 Ed Schonberg <schonberg@gnat.com>
27325 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
27326 the expression type only if it is declared in the current unit.
27328 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
27329 are universal and already analyzed, as can occur in constrained
27330 subcomponents that depend on discriminants, when one constraint is a
27333 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
27334 type Any_Fixed is legal as the argument of a conversion, if only one
27335 fixed-point type is in context.
27337 2003-12-17 GNAT Script <nobody@gnat.com>
27339 * Make-lang.in: Makefile automatically updated
27341 2003-12-15 Robert Dewar <dewar@gnat.com>
27343 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
27346 2003-12-15 Vincent Celier <celier@gnat.com>
27348 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
27349 (Gnatchop): Do not set failure status when reporting the number of
27352 2003-12-15 Doug Rupp <rupp@gnat.com>
27354 * s-ctrl.ads: New file.
27356 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
27358 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
27359 (GNATBIND_OBJS): Add ada/s-crtl.o.
27361 * Makefile.in [VMS]: Clean up ifeq rules.
27363 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
27364 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
27365 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
27366 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
27367 s-tasdeb.adb: Update copyright.
27368 Import System.CRTL.
27369 Make minor modifications to use System.CRTL declared functions instead
27370 of importing locally.
27372 2003-12-15 GNAT Script <nobody@gnat.com>
27374 * Make-lang.in: Makefile automatically updated
27376 2003-12-11 Ed Falis <falis@gnat.com>
27378 * 5zinit.adb: Clean up.
27380 * 5zintman.adb (Notify_Exception): replaced case statement with a call
27381 to __gnat_map_signal, imported from init.c to support
27382 signal -> exception mappings that depend on the vxWorks version.
27385 Created and exported __gnat_map_signal to support signal -> exception
27386 mapping that is dependent on the VxWorks version.
27387 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
27389 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
27391 * 5wosinte.ads: Link with -mthreads switch.
27393 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
27395 * init.c (__gnat_install_handler [NetBSD]): Set
27396 __gnat_handler_installed, as done on all other platforms.
27397 Remove duplicated code.
27399 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
27401 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
27403 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
27405 * sinfo.ads: Fix inconsistent example code in comment.
27407 2003-12-11 Robert Dewar <dewar@gnat.com>
27409 * a-tiinau.adb: Add a couple of comments
27411 * sem_ch3.adb: Minor reformatting
27414 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
27415 Minor reformatting throughout
27417 2003-12-11 Ed Schonberg <schonberg@gnat.com>
27419 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
27420 bounds of a loop, create a separate block in order to generate proper
27421 cleanup actions to prevent memory leaks.
27423 * sem_res.adb (Resolve_Call): After a call to
27424 Establish_Transient_Scope, the call may be rewritten and relocated, in
27425 which case no further processing is needed.
27427 * sem_util.adb: (Wrong_Type): Refine previous fix.
27428 Fixes ACATS regressions.
27431 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
27434 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
27436 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
27437 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
27440 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
27443 2003-12-08 Robert Dewar <dewar@gnat.com>
27445 * 7sintman.adb: Minor reformatting
27447 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
27448 standard linker options to get standard libraries linked. We now plan
27449 to provide dummy versions of these libraries to match the appropriate
27450 configurable run-time (e.g. if a library is not needed at all, provide
27451 a dummy empty library).
27453 * targparm.ads: Configurable_Run_Time mode no longer affects linker
27454 options (-L parameters and standard libraries). What we plan to do is
27455 to provide dummy libraries where the libraries are not required.
27457 * gnatbind.adb: Minor comment improvement
27459 2003-12-08 Javier Miranda <miranda@gnat.com>
27461 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
27462 aggregate in the parent. Otherwise constants with limited aggregates
27463 are not supported. Add new formal to pass the component type (Ctype).
27464 It is required to call the corresponding IP subprogram in case of
27465 default initialized components.
27466 (Gen_Assign): In case of default-initialized component, generate a
27467 call to the IP subprogram associated with the component.
27468 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
27469 of aggregate with default initialized components.
27470 (Has_Default_Init_Comps): Improve implementation to recursively check
27471 all the present expressions.
27473 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
27474 to indicate that the initialization call corresponds to a
27475 default-initialized component of an aggregate.
27476 In case of default initialized aggregate with tasks this parameter is
27477 used to generate a null string (this is just a workaround that must be
27478 improved later). In case of discriminants, this parameter is used to
27479 generate a selected component node that gives access to the discriminant
27482 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
27483 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
27484 allocated aggregates with default-initialized components.
27486 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
27487 the box notation is used in positional aggregates.
27489 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
27491 * lib.ads: Fix typo in comment
27493 2003-12-08 Vincent Celier <celier@gnat.com>
27495 * prj.adb (Project_Empty): New component Unkept_Comments
27496 (Scan): Remove procedure; moved to Prj.Err.
27498 * prj.ads (Project_Data): New Boolean component Unkept_Comments
27499 (Scan): Remove procedure; moved to Prj.Err.
27501 * prj-dect.adb: Manage comments for the different declarations.
27503 * prj-part.adb (With_Record): New component Node
27504 (Parse): New Boolean parameter Store_Comments, defaulted to False.
27505 Set the scanner to return ends of line and comments as tokens, if
27506 Store_Comments is True.
27507 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
27508 comments are associated with these nodes. Store the node IDs in the
27510 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
27512 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
27513 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
27514 current project. Call Tree.Restore afterwards. Set the various nodes
27515 for comment storage (Next_End, End_Of_Line, Previous_Line,
27518 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
27519 defaulted to False.
27521 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
27522 to False. When Truncated is True, truncate the string, never go to the
27524 (Write_End_Of_Line_Comment): New procedure
27525 (Print): Process comments for nodes N_With_Clause,
27526 N_Package_Declaration, N_String_Type_Declaration,
27527 N_Attribute_Declaration, N_Typed_Variable_Declaration,
27528 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
27529 Process nodes N_Comment.
27531 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
27532 without comments and there are some comments, set the flag
27533 Unkept_Comments to True.
27534 (Scan): If there are comments, set the flag Unkept_Comments to True and
27535 clear the comments.
27536 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
27537 (Next_End_Nodes: New table
27538 (Comment_Zones_Of): New function
27539 (Scan): New procedure; moved from Prj. Accumulate comments in the
27540 Comments table and set end of line comments, comments after, after end
27542 (Add_Comments): New procedure
27543 (Save, Restore, Seset_State): New procedures
27544 (There_Are_Unkept_Comments): New function
27545 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
27546 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
27548 (First_Comment_After, First_Comment_After_End): New functions
27549 (First_Comment_Before, First_Comment_Before_End): New functions
27550 (Next_Comment): New function
27551 (End_Of_Line_Comment, Follows_Empty_Line,
27552 Is_Followed_By_Empty_Line): New functions
27553 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
27554 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
27555 (Set_Next_Comment): New procedure
27556 (Default_Project_Node): Associate comment before if the node can store
27559 * scans.ads (Token_Type): New enumeration value Tok_Comment
27560 (Comment_Id): New global variable
27562 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
27563 defaulted to False.
27564 (Scan): Store position of start of comment. If comments are tokens, set
27565 Comment_Id and set Token to Tok_Comment when scanning a comment.
27566 (Set_Comment_As_Token): New procedure
27568 * sinput-p.adb: Update Copyright notice
27569 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
27570 that no longer exists.
27572 2003-12-08 Javier Miranda <miranda@gnat.com>
27574 * sem_aggr.adb: Add dependence on Exp_Tss package
27575 Correct typo in comment
27576 (Resolve_Aggregate): In case of array aggregates set the estimated
27577 type of the aggregate before calling resolve. This is needed to know
27578 the name of the corresponding IP in case of limited array aggregates.
27579 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
27580 in case of default initialized array components.
27582 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
27583 types. Required to give support to limited aggregates in generic
27586 2003-12-08 Ed Schonberg <schonberg@gnat.com>
27588 * sem_ch3.adb (Check_Initialization): For legality purposes, an
27589 inlined body functions like an instantiation.
27590 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
27591 until bounds are analyzed, to diagnose premature use of type.
27593 * sem_util.adb (Wrong_Type): Improve error message when the type of
27594 the expression is used prematurely.
27596 2003-12-08 GNAT Script <nobody@gnat.com>
27598 * Make-lang.in: Makefile automatically updated
27600 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
27602 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
27603 they are automatically generated by Make-lang.in and cause nothing but
27604 maintenance troubles.
27606 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
27608 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
27609 version of this unit).
27611 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
27613 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
27614 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
27615 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
27616 the body of System.Interrupt_Management common to several targets.
27617 Update copyright notice when appropriate.
27619 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
27622 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
27623 to ensure that the kernel fills in the interrupted context structure
27624 before calling a signal handler, which is necessary to be able to
27625 unwind past it. Update the copyright notice.
27627 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
27629 * a-elchha.ads: New file.
27631 * a-elchha.adb: New default last chance handler. Contents taken from
27632 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
27634 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
27635 is moved to a-elchha.adb to provide a target-independent default last
27638 * Makefile.rtl: Add a-elchha.o
27640 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
27642 2003-12-05 Ed Schonberg <schonberg@gnat.com>
27644 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
27645 declared in an instance, do not inline the call if the instance is not
27646 frozen yet, to prevent order of elaboration problems.
27648 * sem_prag.adb: Add comments for previous fix.
27650 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
27652 * g-table.adb: Use the right variable in Set_Item.
27653 Update copyright notice.
27655 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
27657 * Makefile.in: Remove unused rules.
27659 2003-12-05 Vincent Celier <celier@gnat.com>
27661 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
27662 -nostdlib. Not needed here after all.
27664 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
27667 * adaint.h, adaint.c, g-os_lib.ads:
27668 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
27669 on some platforms (including FreeBSD), it is a 64 bit value.
27670 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
27672 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
27674 * gnatvsn.ads (Library_Version): Now contain only the relevant
27676 (Verbose_Library_Version): New constant.
27678 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
27679 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
27680 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
27682 * gnatlbr.adb: Clean up: replace Library_Version by
27683 Verbose_Library_Version.
27685 * make.adb, lib-writ.adb, exp_attr.adb:
27686 Clean up: replace Library_Version by Verbose_Library_Version.
27688 * 5lintman.adb: Removed.
27691 Update and simplify computation of LIBRARY_VERSION.
27692 Fix computation of GSMATCH_VERSION.
27693 5lintman.adb is no longer used: replaced by 7sintman.adb.
27695 2003-12-03 Robert Dewar <dewar@gnat.com>
27698 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
27699 name. Modified to consider small non-bit-packed arrays as troublesome
27700 and in need of component-by-component assigment expansion.
27702 2003-12-03 Vincent Celier <celier@gnat.com>
27704 * lang-specs.h: Process nostdlib as nostdinc
27706 * back_end.adb: Update Copyright notice
27707 (Scan_Compiler_Arguments): Process -nostdlib directly.
27709 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
27712 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
27713 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
27714 included in HIE_NONE_TARGET_PAIRS.
27716 2003-12-03 Ed Schonberg <schonberg@gnat.com>
27719 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
27720 is legal in an instance, because legality is cheched in the template.
27723 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
27724 appplied to an unchecked conversion of a formal parameter.
27727 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
27730 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
27732 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
27733 routines. The second one is new functionality to deal with backtracing
27734 through signal handlers.
27735 (unwind): Split into the two separate subroutines above.
27736 Update the documentation, and deal properly with sizeof (REG) different
27737 from sizeof (void*).
27739 2003-12-01 Nicolas Setton <setton@act-europe.fr>
27741 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
27742 so that the debugger can reliably access the value of the parameter,
27743 and therefore is able to display the exception name when an exception
27744 breakpoint is reached.
27746 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
27748 * fmap.adb: Fix typo in warning message.
27750 * g-socket.ads, g-socket.adb: Make Free a visible instance of
27751 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
27753 2003-12-01 Vincent Celier <celier@gnat.com>
27755 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
27757 (Build_Library): Get the switches only if Default_Switches is declared
27760 2003-12-01 Ed Schonberg <schonberg@gnat.com>
27762 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
27763 actuals that are indexed components, reanalyze actual to ensure that
27764 packed array references are properly expanded.
27766 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
27767 attempted assignment to a discriminant.
27769 2003-12-01 Robert Dewar <dewar@gnat.com>
27771 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
27774 * switch-c.adb: Minor reformatting of comments
27776 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
27778 * Makefile.in: Clean ups.
27780 2003-12-01 GNAT Script <nobody@gnat.com>
27782 * Make-lang.in: Makefile automatically updated
27784 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
27786 * 5wsystem.ads: Disable zero cost exception, not ready yet.
27788 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
27790 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
27791 to force serialization.
27793 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
27795 * g-socket.ads, g-socket.adb:
27796 Clarify documentation of function Stream. Introduce a Free procedure
27797 to release the returned Stream once it becomes unused.
27799 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
27801 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
27803 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
27804 since NT 4 cannot handle timeout values that are too large,
27805 e.g. DWORD'Last - 1.
27807 2003-11-26 Ed Schonberg <schonberg@gnat.com>
27810 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
27811 in procedure calls and whose expansion must be deferred.
27813 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
27817 (Build_Derived_Array_Type): Create operator for unconstrained type
27818 if ancestor is unconstrained.
27820 2003-11-26 Vincent Celier <celier@gnat.com>
27822 * make.adb (Project_Object_Directory): New global variable
27823 (Change_To_Object_Directory): New procedure
27824 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
27825 of Change_Dir directly. Do not change working directory to object
27826 directory of main project after each compilation.
27827 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
27829 Change to object directory of main project before binding step.
27830 (Initialize): Initialize Project_Object_Directory to No_Project
27833 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
27834 binding a Stand-Alone Library.
27836 * output.adb: Update Copyright notice
27837 (Write_Char): Output buffer when full
27839 2003-11-26 Robert Dewar <dewar@gnat.com>
27841 * sem_ch13.adb: (Check_Size): Reset size if size is too small
27844 (Check_Size): Fix documentation to include bit-packed array case
27846 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
27848 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
27850 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
27852 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
27855 * utils.c (init_gigi_decls): Change name of built-in setjmp to
27856 __builtin_setjmp, since this is apparently needed by recent
27859 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
27861 * adadecode.c: Only include ctype.h if not IN_GCC.
27862 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
27864 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
27867 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
27868 signals and interrupts.
27870 * 5zintman.ads: New File.
27872 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
27873 add exception signals to the set of unmasked signals.
27876 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
27877 between signals and interrupts.
27878 Add to Unblocked_Signal_Mask the set of signals that are in
27882 Adding a check to see whether the Interrupt_ID we want to unmask is in
27883 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
27884 reason is that the index type of the Keep_Unmasked array is not always
27885 Interrupt_ID; it may be a subtype of Interrupt_ID.
27887 2003-11-24 Gary Dismukes <dismukes@gnat.com>
27890 (Remove_Side_Effects): Condition constantness of object created for a
27891 an unchecked type conversion on the constantness of the expression
27892 to ensure the correct value for 'Constrained when passing components
27893 of view-converted class-wide objects.
27895 2003-11-24 Robert Dewar <dewar@gnat.com>
27897 * par-load.adb (Load): Improve handling of misspelled and missing units
27898 Removes several cases of compilation abandoned messages
27900 * lib.adb: (Remove_Unit): New procedure
27902 * lib.ads: (Remove_Unit): New procedure
27904 * lib-load.adb: Minor reformatting
27906 2003-11-24 Vincent Celier <celier@gnat.com>
27909 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
27910 (Marking_Label): Label to mark processed source files. Incremented for
27912 (Gnatmake): Increase Marking_Labet for each executable
27913 (Is_Marked): Compare against marking label
27914 (Mark): Mark with marking label
27916 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
27919 Move the declaration of the TSD for System.Threads to System.Soft_Links.
27922 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
27923 (rts-cert): build a single relocatable object for the run-time lib.
27926 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
27929 Use gnatls rather than gcc to obtain the location of GNAT RTL for
27932 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
27934 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
27935 can not use it as before (that is, as a variable) when dumping it into
27936 the tree file. Add a local variable to store the result of this
27937 function and to be used as the string to be written into the tree.
27939 * scn.adb (Initialize_Scanner): Add comments explaining the recent
27942 * sinput.adb (Source_First, Source_Last): In case of
27943 Internal_Source_File, replace returning attributes of
27944 Internal_Source_Ptr (which is wrong) with returning attributes of
27947 2003-11-24 Ed Schonberg <schonberg@gnat.com>
27950 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
27951 used for implicit concatenation operators.
27955 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
27956 task bodies that are in the scope of a Suppress pragma.
27957 (Check_A Call): Use the flag to prevent spurious elaboration checks.
27959 * sinfo.ads, sinfo.adb:
27960 New flag No_Elaboration_Check on function/procedure calls, to properly
27961 suppress checks on calls in task bodies that are within a local suppress
27965 (Expand_Concatenate_Other): Use the proper integer type for the
27966 expression for the upper bound, to avoid universal_integer computations
27969 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
27971 * .cvsignore: Delete.
27973 2003-11-21 Andreas Schwab <schwab@suse.de>
27975 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
27977 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
27979 * 5wsystem.ads: Enable zero cost exception.
27981 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
27983 * 5ztiitho.adb: Remove an unreferenced variable.
27985 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
27987 * adaint.c: For FreeBSD, use mkstemp.
27989 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
27991 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
27993 2003-11-21 Robert Dewar <dewar@gnat.com>
27995 * bld.adb: Remove useless USE of gnatvsn
27997 * gnatchop.adb: Minor reformatting
27998 Clean up version handling to be more consistent
28000 * gnatxref.adb: Minor reformatting
28002 * gprcmd.adb: Minor reformatting
28003 Fix output of copyright to be more consistent with other tools
28005 2003-11-21 Vincent Celier <celier@gnat.com>
28007 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
28009 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
28011 * atree.adb (Initialize): Add initializations for global variables
28012 used in New_Copy_Tree.
28014 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
28015 Internal_Source_File as the actual).
28016 Put the set of statements creating Any_Character before the set of
28017 statements creating Any_Array to have Any_Character fully initialized
28018 when it is used in creating Any_Array.
28020 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
28021 not call Scan in case if the actual is Internal_Source_File
28022 Add 2003 to copyright note.
28024 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
28025 processing Internal_Source_File.
28027 * types.ads: Add the constant Internal_Source_File representing the
28028 source buffer for artificial source-code-like strings created within
28029 the compiler (the definition of Source_File_Index is changed).
28031 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
28033 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
28034 56system.ads: New file, FreeBSD version.
28036 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
28038 * Make-lang.in (ada.extraclean): Delete.
28040 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
28042 * gnatmem.adb: Clean up verbose output.
28044 * gprcmd.adb: Change copyright to FSF.
28046 2003-11-19 Vincent Celier <celier@gnat.com>
28048 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
28049 and Version (ignored).
28051 * symbols.ads: (Policy): New type
28052 (Initialize): New parameter Reference, Symbol_Policy and
28054 Remove parameter Force.
28055 Minor reformatting.
28057 * snames.ads, snames.adbadb: New standard names
28058 Library_Reference_Symbol_File and Library_Symbol_Policy
28061 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
28065 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
28067 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
28069 * prj.adb: (Project_Empty): New component Symbol_Data
28071 * prj.ads: (Policy, Symbol_Record): New types
28072 (Project_Data): New component Symbol_Data
28075 New attributes Library_Symbol_File, Library_Symbol_Policy and
28076 Library_Reference_Symbol_File.
28079 (Ada_Check): When project is a Stand-Alone library project, process
28080 attribute Library_Symbol_File, Library_Symbol_Policy and
28081 Library_Reference_Symbol_File.
28083 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
28084 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
28085 5sml-tgt.adb (Build_Dynamic_Library): New parameter
28086 Symbol_Data (ignored).
28088 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
28089 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
28090 functions Option_File_Name and Version_String. Set new options of
28091 gnatsym related to symbol file, symbol policy and reference symbol
28095 Extensive modifications to take into account the reference symbol file,
28096 the symbol policy, the library version and to put in the symbol file the
28097 minor and major IDs.
28099 * bld.adb (Process_Declarative_Items): Put second argument of
28100 gprcmd to_absolute between single quotes, to avoid problems with
28103 * bld-io.adb: Update Copyright notice.
28104 (Flush): Remove last character of a line, if it is a back slash, to
28105 avoid make problems.
28108 Implement new scheme with reference symbol file and symbol policy.
28110 * g-os_lib.ads: (Is_Directory): Clarify comment
28112 2003-11-19 Robert Dewar <dewar@gnat.com>
28114 * atree.adb: Move New_Copy_Tree global variables to head of package
28116 * errout.adb: Minor reformatting
28118 2003-11-19 Javier Miranda <miranda@gnat.com>
28120 * sem_ch4.adb: (Diagnose_Call): Improve error message.
28121 Add reference to Ada0Y (AI-50217)
28123 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
28124 sem_util.adb: Add reference to AI-50217
28126 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
28128 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
28130 * sem_aggr.adb: Complete documentation of AI-287 changes
28132 * par-ch4.adb: Document previous changes.
28134 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
28135 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
28138 * exp_aggr.adb: Add references to AI-287 in previous changes
28140 2003-11-19 Ed Schonberg <schonberg@gnat.com>
28143 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
28144 in the rewriting is the result of an inlined call.
28146 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
28147 parameter is a type conversion, use original node to construct the
28148 post-call assignment, because expression may have been rewritten, e.g.
28149 if it is a packed array.
28152 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
28153 body, just as it is in an instance.
28154 Categorization routines
28156 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
28157 Instantiate_Object): Set proper sloc reference for message on missing
28160 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
28162 * Makefile.in: Add FreeBSD libgnat pairs.
28164 * usage.adb: Fix typo in usage message.
28166 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
28168 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
28169 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
28170 pragma Thread_Body.
28171 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
28173 * s-thread.adb: This file is now a dummy implementation of
28176 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
28178 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
28180 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
28182 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
28183 instanciation references in the parent type description.
28185 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28187 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
28189 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
28190 TYPE_PRECISION directly from esize.
28192 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
28195 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
28197 * init.c: Initialization routines for FreeBSD
28199 * link.c: Link info for FreeBSD
28201 * sysdep.c: Add the case of FreeBSD
28203 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
28205 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
28206 already called in System.Threads.
28208 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
28209 environment task, as it has been moved to System.Threads.Initialization.
28211 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
28213 * adaint.c (__gnatlib_install_locks): Only reference
28214 __gnat_install_locks on VMS, since other platforms can avoid using
28215 --enable-threads=gnat
28217 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28219 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
28221 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
28222 TYPE_PACKED_ARRAY_TYPE_P.
28223 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
28225 Part of PR ada/12806
28226 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
28227 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
28229 2003-11-17 Vincent Celier <celier@gnat.com>
28231 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
28233 Do not set exit status to Failure when Warning is True.
28234 (Gnatchop): Make errors "no compilation units found" and
28235 "no source files written" warnings only.
28237 * make.adb (Gnatmake): When using a project file, set
28238 Look_In_Primary_Dir to False.
28239 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
28240 and Local_Configuration_Pragmas in the project where they are declared
28241 not an extending project which might have inherited them.
28243 * osint.adb (Locate_File): If Name is already an absolute path, do not
28244 look for a directory.
28246 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
28247 -gnats (Check_Syntax) is used, issue only a warning, not an error.
28249 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
28250 in objects of type Variable_Value.
28252 * prj.ads: (Variable_Value): New component Project
28254 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
28255 is in a project extended by Project.
28257 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
28258 Project of Variable_Values to this new parameter value.
28259 (Expression): Set component Project of Variable_Values.
28260 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
28261 Set the component Project in array elements.
28263 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
28265 * errout.adb: (Initialize): Add initialization for error nodes.
28267 * sem_ch12.adb (Initialize): Add missing initializations for
28268 Exchanged_Views and Hidden_Entities.
28270 2003-11-17 Ed Schonberg <schonberg@gnat.com>
28272 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
28273 already instantiated tree for use in subsequent inlining.
28274 (Analyze_Associations, Instantiate_Formal_Subprogram,
28275 Instantiate_Object): improve error message for mismatch in
28278 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
28279 instantiations of subprograms declared in instances.
28281 2003-11-17 Javier Miranda <miranda@gnat.com>
28283 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
28284 executed only under the Extensions_Allowed flag.
28286 2003-11-17 Robert Dewar <dewar@gnat.com>
28288 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
28290 (Address_Image): Fix bug of returning 0x instead of 0x0
28291 Minor reformatting (function specs).
28293 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
28294 (missed case of 33-63)
28296 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
28298 * s-thread.adb: Add comments for pragma Restriction
28300 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
28301 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
28303 2003-11-17 Ed Falis <falis@gnat.com>
28305 * s-thread.adb: Added No_Tasking restriction for this implementation.
28307 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
28309 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
28310 instanciation references in the parent type description.
28312 2003-11-17 GNAT Script <nobody@gnat.com>
28314 * Make-lang.in: Makefile automatically updated
28316 2003-11-16 Jason Merrill <jason@redhat.com>
28318 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
28319 and TAGS files that include them for each front end.
28321 2003-11-14 Andreas Jaeger <aj@suse.de>
28323 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
28324 is the canonical version.
28325 * misc.c (gnat_handle_option): Likewise.
28327 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
28329 * 5nsystem.ads: New file for x86_64-linux-gnu.
28331 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
28333 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
28335 * comperr.adb: Fix logic in previous change.
28337 2003-11-13 Vincent Celier <celier@gnat.com>
28339 * 5bml-tgt.adb (Build_Dynamic_Library): Use
28340 Osint.Include_Dir_Default_Prefix instead of
28341 Sdefault.Include_Dir_Default_Name.
28343 * gnatlbr.adb: Update Copyright notice
28344 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
28345 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
28346 instead of Sdefault.Object_Dir_Default_Name
28349 (Process_Binder_File): Never suppress the option following -Xlinker
28352 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
28353 Sdefault.Object_Dir_Default_Name.
28355 * osint.ads, osint.adb:
28356 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
28357 Minor reformatting.
28359 * vms_conv.ads: Minor reformating
28360 Remove GNAT STANDARD and GNAT PSTA
28363 Allow GNAT MAKE to have several files on the command line.
28364 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
28365 Sdefault.Object_Dir_Default_Name.
28367 Remove data for GNAT STANDARD
28370 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
28371 Remove data for GNAT STANDARD
28372 Remove options and documentation for -gnatwb/-gnatwB: these warning
28373 options no longer exist.
28375 2003-11-13 Ed Falis <falis@gnat.com>
28377 * 5zthrini.adb: (Init_RTS): Made visible
28380 (Register): Removed unnecessary call to taskVarGet that checked whether
28381 an ATSD was already set as a task var for the argument thread.
28384 Updated comment to reflect that this is a VxWorks version
28385 Added context clause for System.Threads.Initialization
28386 Added call to System.Threads.Initialization.Init_RTS
28388 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
28391 (Init_RTS): New procedure, for the initialization of the run-time lib.
28394 Remove dependancy on System.Init, so that this file can be used in the
28395 AE653 sequential run-time lib.
28397 2003-11-13 Robert Dewar <dewar@gnat.com>
28399 * bindgen.adb: Minor reformatting
28401 2003-11-13 Ed Schonberg <schonberg@gnat.com>
28404 (Apply_Discriminant_Check): Do no apply check if target type is derived
28405 from source type with no applicable constraint.
28408 (Ensure_System_Dependency): Do not apply the style checks that may have
28409 been specified for the main unit.
28412 (Find_Selected_Component): Further improvement in error message, with
28416 (Resolve): Handle properly the case of an illegal overloaded protected
28419 2003-11-13 Javier Miranda <miranda@gnat.com>
28422 (Has_Default_Init_Comps): New function to check the presence of
28423 default initialization in an aggregate.
28424 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
28425 extension aggregate of a limited record. In addition, a new formal
28426 was added to do not initialize the record controller (if any) during
28427 this recursive expansion of ancestors.
28428 (Init_Controller): Add support for limited record components.
28429 (Expand_Record_Aggregate): In case of default initialized components
28430 convert the aggregate into a set of assignments.
28432 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
28433 describing the new syntax.
28434 Nothing else needed to be done because this subprogram delegates part of
28435 its work to P_Precord_Or_Array_Component_Association.
28436 (P_Record_Or_Array_Component_Association): Give support to the new
28437 syntax for default initialization of components.
28440 (Resolve_Aggregate): Relax the strictness of the frontend in case of
28441 limited aggregates.
28442 (Resolve_Record_Aggregate): Give support to default initialized
28444 (Get_Value): In case of default initialized components, duplicate
28445 the corresponding default expression (from the record type
28446 declaration). In case of default initialization in the *others*
28447 choice, do not check that all components have the same type.
28448 (Resolve_Extension_Aggregate): Give support to limited extension
28452 (Check_Initialization): Relax the strictness of the front-end in case
28453 of aggregate and extension aggregates. This test is now done in
28454 Get_Value in a per-component manner.
28456 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
28457 expression corresponds to a limited aggregate. This test is now done
28460 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
28463 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
28464 present in an N_Component_Association node
28466 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
28468 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
28469 type-conformant entry only if they are homographs.
28471 2003-11-13 GNAT Script <nobody@gnat.com>
28473 * Make-lang.in: Makefile automatically updated
28475 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28477 * adadecode.c: Use <> form of include for ctype.h.
28478 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
28480 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28482 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
28483 Works around PR middle-end/6552.
28485 2003-11-10 Ed Falis <falis@gnat.com>
28487 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
28489 * 5zinit.adb: (Install_Handler): Moved back to spec
28490 (Install_Signal_Handlers): Deleted
28492 * 5zthrini.adb: Added context clause for System.Storage_Elements
28493 (Register): Only handles creation of taskVar; initialization moved to
28495 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
28496 Added declaration of environment task secondary stack and
28499 * s-thread.adb: Implement bodies for thread body processing
28502 Added comment identifying supported targets for pragma Thread_Body.
28504 2003-11-10 Pascal Obry <obry@gnat.com>
28506 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
28510 (Open): Properly check for string length before copying into the buffer.
28511 Raises Name_Error if buffer is too small. Note that this was a potential
28514 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
28516 * bindgen.adb, comperr.adb: Code clean ups.
28517 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
28519 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
28521 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
28523 2003-11-10 Vincent Celier <celier@gnat.com>
28526 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
28529 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
28531 * prj.adb: (Project_Empty): Add new boolean component Virtual
28533 * prj.ads: (Virtual_Prefix): New constant string
28534 (Project_Data): New boolean component Virtual
28536 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
28537 a library project is extended by a virtual extending project.
28540 Modifications throughout to implement extending-all project, including:
28541 (Virtual_Hash, Processed_Hash): New hash tables
28542 (Create_Virtual_Extending_Project): New procedure
28543 (Look_For_Virtual_Projects_For): New procedure
28546 (Process): After checking the projects, if main project is an
28547 extending-all project, set the object directory of all virtual extending
28548 project to the object directory of the main project.
28549 Adjust error message when a virtual extending project has the same
28550 object directory as an project being extended.
28551 (Recursive_Process): If name starts with the virtual prefix, set Virtual
28552 to True in the project data.
28555 (Default_Project_Node): Add new boolean component Extending_All
28556 (Is_Extending_All): New function
28557 (Set_Is_Extending_All): New procedure
28559 * prj-tree.ads: (Is_Extending_All): New function
28560 (Set_Is_Extending_All): New procedure
28561 (Project_Node_Record): New boolean component Extending_All
28563 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
28566 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
28568 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
28569 "gprcmd prefix" to define it.
28571 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
28573 * einfo.ads: Fix a typo and remove an extraneous word in comments.
28576 (Create_Dummy_Package_Unit): Set the scope of the entity for the
28577 created dummy package to Standard_Standard, not to itself, to
28578 defend other parts of the front-end against encoutering a cycle in
28582 (Analyze_With_Clause): When setting the entities for the successive
28583 N_Expanded_Names that constitute the name of a child unit, do not
28584 attempt to go further than Standard_Standard in the chain of scopes.
28585 This case arises from the placeholder units created by
28586 Create_Dummy_Package_Unit in the case of a with_clause for a
28587 nonexistent child unit.
28589 2003-11-10 Ed Schonberg <schonberg@gnat.com>
28592 (Expand_Thread_Body): Place subprogram on scope stack, so that new
28593 declarations are given the proper scope.
28596 (Check_Expr_Constants): Reject an expression that contains a constant
28597 created during expansion, and that appears after the object to which
28598 the address clause applies.
28600 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
28601 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
28602 that uses 'Range of a function call with controlled components, so
28603 that the function result can be finalized before starting the loop.
28606 (Find_Selected_Component): Improve error message when prefix is
28607 an implicit dereference of an incomplete type.
28609 2003-11-10 Robert Dewar <dewar@gnat.com>
28611 * opt.ads: New Print_Standard flag for -gnatS switch
28613 * sem_ch13.adb: Remove some additional checks for unaligned arrays
28615 * cstand.adb (Create_Standard): Print out package standard if -gnatS
28618 * debug.adb: Update doc for -gnatds to discuss relationship with new
28621 * sinfo.adb: Add new field Entity_Or_Associated_Node
28623 * sinfo.ads: Add new field Entity_Or_Associated_Node
28624 Update documentation for Associated_Node and Entity fields to clarify
28625 relationship and usage.
28628 (Write_Id): Properly process Associated_Node field in generic template
28631 Recognize new -gnatS switch for printing package Standard
28632 This replaces gnatpsta
28635 Add line for new -gnatS switch for printing package Standard
28636 This replaces gnatpsta
28638 2003-11-10 Andreas Jaeger <aj@suse.de>
28640 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
28643 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
28645 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
28648 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
28650 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
28653 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
28655 * sysdep.c: Add handling of cygwin.
28657 2003-11-10 GNAT Script <nobody@gnat.com>
28659 * Make-lang.in: Makefile automatically updated
28661 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
28664 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
28665 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
28666 Replace GNAT_ROOT by GCC_ROOT.
28668 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
28670 2003-11-06 Zack Weinberg <zack@codesourcery.com>
28672 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
28673 and update for changed meaning of GET_MODE_BITSIZE.
28675 2003-11-04 Doug Rupp <rupp@gnat.com>
28677 * sysdep.c: Problem discovered during IA64 VMS port.
28678 [VMS] #include <unixio.h> to get proper prototypes.
28681 Issues discovered/problems fixed during IA64 VMS port.
28682 [VMS] #define _POSIX_EXIT for proper semantics.
28683 [VMS] #include <unixio.h> for proper prototypes.
28684 [VMS] (fork): #define IA64 version.
28685 (__gnat_os_exit): Remove unnecessary VMS specific code.
28687 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28689 Part of PR ada/12806
28690 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
28694 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
28697 * targtyps.c, decl.c, misc.c,
28698 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
28699 routines to work around change in FP sizing semantics in GCC.
28702 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
28704 * gigi.h: (enumerate_modes): New function.
28706 * Make-lang.in: (ada/misc.o): Add real.h.
28708 * misc.c: (enumerate_modes): New function.
28710 2003-11-04 Robert Dewar <dewar@gnat.com>
28712 * 3vtrasym.adb: Minor reformatting
28713 Use terminology encoded/decoded name, rather than C++ specific notion
28714 of mangling (this is the terminology used throughout GNAT).
28716 * einfo.h: Regenerated
28718 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
28721 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
28723 * par-prag.adb: Add dummy entry for Thread_Body pragma
28726 Add entries for System.Threads entities for thread body processing
28729 (Analyze_Pragma, Access attributes): Check these are not applied to a
28730 thread body, since this is not permitted
28732 * sem_prag.adb: Add processing for Thread_Body pragma.
28736 (Resolve_Call): Check for incorrect attempt to call a thread body
28737 procedure with a direct call.
28739 * snames.ads, snames.adb: Add entry for Thread_Body pragma
28740 Add names associated with thread body expansion
28742 * snames.h: Add entry for Thread_Body pragma
28744 * s-thread.adb: Add entries for thread body processing
28745 These are dummy bodies so far
28747 * s-thread.ads: Add documentation on thread body handling.
28748 Add entries for thread body processing.
28750 2003-11-04 Javier Miranda <miranda@gnat.com>
28753 (Build_Limited_Views): Return after posting an error in case of limited
28754 with_clause on subprograms, generics, instances or generic renamings
28755 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
28756 on subprograms, generics, instances or generic renamings
28758 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
28760 * raise.c (setup_to_install): Correct mistake in last revision; two
28761 arguments out of order.
28763 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
28764 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
28765 notice, missed in previous change.
28766 Remove trailing blanks and other style errors introduced in previous
28769 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
28771 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
28772 rid of the wrapper for a LJM type, ensuring we don't do that if the
28773 field is addressable. This avoids potential low level type view
28774 mismatches later on, for instance in a by-reference argument passing
28777 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28779 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
28780 aligned at byte boundary.
28782 2003-11-04 Joel Brobecker <brobecker@gnat.com>
28784 * decl.c (components_to_record): Do not delete the empty variants from
28785 the end of the union type.
28787 2003-11-04 Ed Schonberg <schonberg@gnat.com>
28789 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
28790 operation for a derived type, an explicit declaration may use a local
28791 subtype of Boolean.
28793 2003-11-04 Vincent Celier <celier@gnat.com>
28795 * make.adb (Gnatmake): Allow main sources on the command line with a
28796 library project when it is only for compilation (no binding or
28799 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
28801 * Makefile.in: Remove many duplicate variables.
28803 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
28805 * Make-lang.in (dvi): Move targets to $(docobjdir).
28806 (gnat_ug_vms.dvi): Simplify rule and adjust target.
28807 (gnat_ug_wnt.dvi): Likewise.
28808 (gnat_ug_unx.dvi): Likewise.
28809 (gnat_ug_vxw.dvi): Likewise.
28810 (gnat_rm.dvi): Likewise.
28811 (gnat-style.dvi): Likewise.
28813 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
28815 * gigi.h: Missed commit from update for C90.
28817 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
28819 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
28821 2003-10-31 Andreas Schwab <schwab@suse.de>
28823 * raise.c (get_action_description_for): Fix typo in last change.
28825 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
28828 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
28829 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
28831 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
28833 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
28834 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
28835 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
28836 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
28837 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
28839 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
28842 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
28843 numbers when symbol name is too long.
28845 2003-10-30 Ed Falis <falis@gnat.com>
28847 * g-signal.ads, g-signal.adb: New files
28849 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
28851 * Makefile.rtl: Introduce GNAT.Signals
28853 2003-10-30 Robert Dewar <dewar@gnat.com>
28855 * freeze.adb: Minor reformatting
28857 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
28859 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
28860 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
28861 New handling of Id_Check parameter to improve recognition of keywords
28862 used as identifiers.
28863 Update copyright notice to include 2003
28865 2003-10-29 Robert Dewar <dewar@gnat.com>
28867 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
28868 sem_ch10.adb: Minor reformatting
28870 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
28871 (Expand_Assign_Record): Test right hand side for bit unaligned as well
28873 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
28875 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
28876 Support for TBK$SYMBOLIZE-based symbolic traceback.
28878 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
28881 Revert previous change, that did not work well when pragma No_Run_Time
28882 was used in conjunction with a run-time other than ZFP.
28884 2003-10-29 Vincent Celier <celier@gnat.com>
28887 (Gnatmake): When there are no Ada mains in attribute Main, disable the
28888 bind and link steps only is switch -z is not used.
28890 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
28892 * Makefile.generic: Remove duplicated setting of CC.
28894 * Makefile.prolog: Set CC to gcc by default, to override make's
28897 * einfo.h: Regenerated.
28899 2003-10-29 Ed Schonberg <schonberg@gnat.com>
28901 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
28902 current body, after compiling subunit.
28904 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
28905 when in deleted code, because gigi needs properly ordered freeze
28906 actions to annotate types.
28908 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
28909 prevent the premature freezing of record type that contains
28910 subcomponents with a private type that does not yet have a completion.
28912 2003-10-29 Javier Miranda <miranda@gnat.com>
28915 (Analyze_Package_Instantiation): Check that instances can not be used in
28916 limited with_clauses.
28919 (Analyze_Package_Renaming): Check that limited withed packages cannot
28920 be renamed. Improve text on error messages related to limited
28923 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
28925 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
28926 Update copyright notice.
28928 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
28929 (Install_Limited_Context_Clauses): New subprogram that isolates all the
28930 checks required for limited context_clauses and installs the limited
28932 (Install_Limited_Withed_Unit): Complete its documentation.
28933 (Analyze_Context): Check that limited with_clauses are only allowed in
28935 (Install_Context): Call Install_Limited_Context_Clauses after the
28936 parents have been installed.
28937 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
28938 package as 'From_With_Type'; this mark indicates that the limited view
28939 is installed. Used to check bad usages of limited with_clauses.
28940 (Build_Limited_Views): Do not add shadow entities to the scope's list
28941 of entities. Do not add real entities to the Non_Limited_Views chain.
28942 Improve error notification.
28943 (Remove_Context_Clauses): Remove context clauses in two phases:
28944 limited views first and regular views later (to maintain the
28946 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
28947 its visible entities.
28949 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
28951 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
28952 with any type that Is_Fixed_Point_Type.
28954 * sinfo.ads: Fix documentation for Associated_Node attribute.
28956 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
28958 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
28959 both '-gnatc' and '-gnatt' are specified.
28961 * atree.adb (Initialize): Add initialization for Node_Count (set to
28964 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28966 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
28967 do not consider as Pure.
28969 Part of implementation of function-at-a-time:
28971 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
28972 (tree_transform): Add new argument to build_component_ref.
28973 (tree_transform, case N_Assignment_Statement): Make and return an
28975 (tree_transform): If result IS_STMT, set flags and return it.
28976 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
28978 * utils2.c (build_simple_component_ref, build_component_ref): Add new
28980 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
28981 (build_allocator): Likewise.
28983 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
28984 Add new arg to build_component_ref.
28985 (maybe_unconstrained_array, unchecked_convert): Likewise.
28987 * ada-tree.def (EXPR_STMT): New code.
28989 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
28991 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
28992 build_component_ref calls.
28994 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
28996 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
28997 (build_component_ref): Add new argument, NO_FOLD_P.
28999 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
29001 * Makefile.generic: Add missing substitution on object_deps handling.
29004 * Make-lang.in (check-ada): Enable ACATS test suite.
29006 2003-10-27 Robert Dewar <dewar@gnat.com>
29009 (Freeze_Array_Type): We do not need an initialization routine for types
29010 derived from String or Wide_String. They should be treated the same
29011 as String and Wide_String themselves. This caused problems with the
29012 use of Initialize_Scalars.
29015 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
29016 composites. This allows use of component clauses that are not byte
29020 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
29021 is an attempt to pack an array of atomic objects.
29023 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
29025 2003-10-27 Pascal Obry <obry@gnat.com>
29028 (Basename): Check for drive letters in a pathname only on DOS based OS.
29030 2003-10-27 Vincent Celier <celier@gnat.com>
29033 (Gnatmake): When unable to change dir to the object dir, display the
29034 content of the parent dir of the obj dir, to try to understand why this
29037 2003-10-27 GNAT Script <nobody@gnat.com>
29039 * Make-lang.in: Makefile automatically updated
29041 2003-10-27 Ed Schonberg <schonberg@gnat.com>
29044 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
29045 should not be done in Save/Restore_Scope_Stack, because it is performed
29049 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
29050 whether use clauses should be removed/restored.
29053 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
29054 whether use clauses should be removed/restored.
29056 2003-10-26 Andreas Jaeger <aj@suse.de>
29058 * Makefile.in: Remove duplicated lines.
29060 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29062 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
29063 minimize the differences with ACT tree.
29065 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
29066 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
29067 Gnatvsn.Gnat_Static_Version_String to reduce differences between
29070 2003-10-24 Pascal Obry <obry@gnat.com>
29073 * adadecode.c (ostrcpy): New function.
29074 (__gnat_decode): Use ostrcpy of strcpy.
29075 (has_prefix): Set first parameter a const.
29076 (has_suffix): Set first parameter a const.
29077 Update copyright notice. Fix source name in header.
29078 Removes a trailing space.
29080 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
29083 Remove the test against being in No_Run_Time_Mode before generating a
29084 call to Register_Tag. It is redundant with the test against the
29085 availability of the function Register_Tag.
29087 2003-10-24 Vincent Celier <celier@gnat.com>
29089 * g-catiio.adb: (Month_Name): Correct spelling of February
29091 * make.adb: (Mains): New package
29092 (Initialize): Call Mains.Delete
29093 (Gnatmake): Check that each main on the command line is a source of a
29094 project file and, if there are several mains, each of them is a source
29095 of the same project file.
29096 (Gnatmake): When a foreign language is specified in attribute Languages,
29097 no main is specified on the command line and attribute Mains is not
29098 empty, only build the Ada main. If there is no Ada main, just compile
29099 the Ada sources and their closure.
29100 (Gnatmake): If a main is specified on the command line with directory
29101 information, check that the source exists and, if it does, that the path
29102 is the actual path of a source of a project.
29105 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
29106 Full_Path is True, return the full path instead of the simple file name.
29107 (Project_Of): New function
29110 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
29111 defaulted to False.
29112 (Project_Of): New function
29114 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29116 * Makefile.generic:
29117 Ensure objects of main project are always checked and rebuilt if needed.
29118 Set CC to gcc by default.
29119 Prepare new handling of link by creating a global archive (not activated
29122 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
29123 stringt.h: Update copyright notice. Remove trailing blanks.
29124 Fix source name in header.
29126 2003-10-24 Robert Dewar <dewar@gnat.com>
29128 * sem_ch12.adb: Minor reformatting
29131 Minor reformatting (including new function return style throughout)
29134 Minor reformatting (including new function return style throughout)
29136 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
29138 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
29139 stringt.h: Update copyright notice. Remove trailing blanks.
29140 Fix source name in header.
29142 2003-10-24 GNAT Script <nobody@gnat.com>
29144 * Make-lang.in: Makefile automatically updated
29146 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
29148 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
29149 stringt.h: Convert to ISO C90 declarations and definitions.
29151 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
29154 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
29155 External_Tag attribute definition clauses.
29157 2003-10-23 Ed Schonberg <schonberg@gnat.com>
29160 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
29161 child unit, generate a fully qualified name to avoid spurious errors
29162 when the context contains renamings of different child units with
29163 the same simple name.
29165 * exp_dbug.ads: Add documentation on name qualification for renamings
29168 2003-10-23 Robert Dewar <dewar@gnat.com>
29170 * g-regpat.ads, g-regpat.adb: Minor reformatting
29172 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
29174 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
29176 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29178 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
29181 * urealp.h: (Machine): Update to proper definition.
29183 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
29185 * init.c, adaint.c: Minor reformatting.
29187 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
29189 * adaint.c (w32_epoch_offset): Define static const at file level.
29190 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
29191 rather than t_create, t_access in call to GetFileTime. Use union
29192 to convert between FILETIME and unsigned long long.
29193 (__gnat_file_time_name): Test for invalid file handle.
29194 (__gnat_set_filetime_name): Support win32 targets using
29195 w32api SetFileTime.
29197 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
29199 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
29201 * ctrl_c.c (__gnat_int_handler): Remove declaration.
29203 * decl.c (creat_concat_name): Const-ify prefix.
29205 * adaint.c: Include ctype.h if __MINGW32__.
29206 (__gnat_readlink): Mark arguments as possibly unused.
29207 (__gnat_symlink): Likewise.
29208 (__gnat_is_symbolic_link): Likewise.
29209 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
29211 (__gnat_file_time_name): Don't declare struct stat statbuf when
29213 (__gnat_is_absolute_path): Add parenthesis around condition of
29214 'if' statement to avoid warning.
29215 (__gnat_plist_init): Specify void as parameter.
29216 (plist_enter): Likewise.
29217 (plist_leave): Likewise.
29218 (remove_handle): Make static. Initialize prev.
29220 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
29223 * Makefile.in: Disable build of gnatpsta.
29224 * cstreams.c (__gnat_full_name): Minor improvements and clean up
29225 of previous change.
29227 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29229 * tracebak.c (MAX): Avoid redefinition warning.
29231 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
29232 Change msg to const char *.
29233 (__gnat_install_handler): Remove ss, unused.
29234 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
29236 * cstreams.c (__gnat_full_name): Declare p only when used.
29237 (__gnat_full_name) [sgi] Return buffer.
29239 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
29241 * mingw32.h: New file.
29242 * gnat_wrapper.adb: New file.
29244 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
29246 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
29247 string match a pre compiled regular expression (the corresponding
29248 version of the function working on a raw regular expression)
29249 Fix typos in various comments
29250 Update copyright notice in spec
29252 2003-10-21 Gary Dismukes <dismukes@gnat.com>
29255 (Component_Needs_Simple_Initialization): Return False when the type is a
29256 packed bit array. Revise spec comments to document this case.
29259 (Expand_Pragma_Import): Set any expression on the imported object to
29260 empty to avoid initializing imported objects (in particular this
29261 covers the case of zero-initialization of bit arrays).
29262 Update copyright notice.
29264 2003-10-21 Ed Schonberg <schonberg@gnat.com>
29267 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
29268 a subunit is missing.
29269 (Instantiate_Subprogram_Body): If body of function is missing, set type
29270 of return expression explicitly in dummy body, to prevent cascaded
29271 errors when a subunit is missing.
29275 (Access_Subprogram_Declaration): Verify that return type is valid.
29279 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
29284 (Corresponding_Discriminant): If the scope of the discriminant is a
29285 private type without discriminant, use its full view.
29288 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
29290 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
29291 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
29292 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
29293 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
29294 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
29295 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
29296 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
29297 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
29298 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
29299 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
29300 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
29301 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
29302 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
29303 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
29304 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
29305 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
29306 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
29307 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
29308 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
29309 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
29310 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
29311 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
29312 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
29313 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
29314 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
29315 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
29316 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
29317 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
29318 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
29319 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
29320 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
29321 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
29322 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
29323 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
29324 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
29325 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
29326 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
29327 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
29328 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
29329 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
29330 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
29331 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
29332 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
29333 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
29334 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
29335 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
29336 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
29337 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
29338 vms_conv.ads, vms_conv.adb, vms_data.ads,
29339 vxaddr2line.adb: Files added. Merge with ACT tree.
29341 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
29342 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
29343 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
29344 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
29345 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
29346 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
29347 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
29348 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
29349 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
29350 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
29352 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
29353 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
29354 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
29355 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
29356 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
29357 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
29358 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
29359 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
29360 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
29361 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
29362 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
29363 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
29364 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
29365 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
29366 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
29367 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
29368 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
29369 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
29370 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
29371 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
29372 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
29373 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
29374 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
29375 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
29376 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
29377 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
29378 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
29379 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
29380 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
29381 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
29382 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
29383 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
29384 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
29385 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
29386 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
29387 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
29388 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
29389 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
29390 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
29391 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
29392 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
29393 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
29394 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
29395 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
29396 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
29397 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
29398 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
29399 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
29400 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
29401 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
29402 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
29403 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
29404 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
29405 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
29406 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
29407 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
29408 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
29409 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
29410 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
29411 checks.adb, checks.ads, cio.c, comperr.adb,
29412 comperr.ads, csets.adb, cstand.adb, cstreams.c,
29413 debug_a.adb, debug_a.ads, debug.adb, decl.c,
29414 einfo.adb, einfo.ads, errout.adb, errout.ads,
29415 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
29416 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
29417 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
29418 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
29419 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
29420 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
29421 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
29422 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
29423 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
29424 fe.h, fmap.adb, fmap.ads, fname.adb,
29425 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
29426 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
29427 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
29428 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
29429 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
29430 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
29431 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
29432 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
29433 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
29434 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
29435 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
29436 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
29437 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
29438 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
29439 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
29440 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
29441 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
29442 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
29443 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
29444 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
29445 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
29446 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
29447 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
29448 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
29449 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
29450 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
29451 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
29452 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
29453 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
29454 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
29455 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
29456 layout.adb, lib.adb, lib.ads, lib-list.adb,
29457 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
29458 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
29459 link.c, live.adb, make.adb, make.ads,
29460 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
29461 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
29462 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
29463 misc.c, mkdir.c, mlib.adb, mlib.ads,
29464 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
29465 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
29466 namet.adb, namet.ads, namet.h, nlists.ads,
29467 nlists.h, nmake.adt, opt.adb, opt.ads,
29468 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
29469 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
29470 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
29471 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
29472 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
29473 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
29474 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
29475 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
29476 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
29477 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
29478 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
29479 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
29480 prj-util.adb, prj-util.ads, raise.c, raise.h,
29481 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
29482 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
29483 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
29484 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
29485 scans.ads, scn.adb, scn.ads, s-crc32.adb,
29486 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
29487 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
29488 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
29489 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
29490 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
29491 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
29492 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
29493 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
29494 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
29495 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
29496 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
29497 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
29498 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
29499 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
29500 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
29501 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
29502 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
29503 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
29504 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
29505 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
29506 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
29507 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
29508 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
29509 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
29510 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
29511 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
29512 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
29513 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
29514 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
29515 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
29516 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
29517 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
29518 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
29519 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
29520 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
29521 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
29522 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
29523 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
29524 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
29525 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
29526 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
29527 stringt.adb, stringt.ads, stringt.h, style.ads,
29528 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
29529 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
29530 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
29531 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
29532 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
29533 table.adb, table.ads, targparm.adb, targparm.ads,
29534 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
29535 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
29536 ttypes.ads, types.ads, types.h, uintp.adb,
29537 uintp.ads, uintp.h, uname.adb, urealp.adb,
29538 urealp.ads, urealp.h, usage.adb, utils2.c,
29539 utils.c, validsw.adb, validsw.ads, widechar.adb,
29540 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
29541 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
29542 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
29543 gnatvsn.ads: Merge with ACT tree.
29545 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
29547 2003-10-20 Mark Mitchell <mark@codesourcery.com>
29549 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
29550 (gnat_ug_vmx.info): Likewise.
29551 (gnat_ug_vxw.info): Likewise.
29552 (gnat_ug_wnt.info): Likewise.
29553 (gnat_rm.info): Likewise.
29554 (gnat-style.info): Likewise.
29556 * Make-lang.in (ada.install-info): Remove target.
29557 (info): New target.
29558 (install-info): Likewise.
29559 (gnat_ug_unx.info): Simplify rule.
29560 (gnat_ug_vmx.info): Likewise.
29561 (gnat_ug_vxw.info): Likewise.
29562 (gnat_ug_wnt.info): Likewise.
29563 (gnat_rm.info): Likewise.
29564 (gnat-style.info): Likewise.
29566 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
29568 * Make-lang.in: Replace uses of $(target_alias) with
29569 $(target_noncanonical).
29570 * ada/Makefile.in: Remove unused mention of $(target_alias).
29572 2003-10-06 Mark Mitchell <mark@codesourcery.com>
29574 * Make-lang.in (ada.info): Replace with ...
29576 (ada.dvi): Replace with ...
29579 2003-09-29 Zack Weinberg <zack@codesourcery.com>
29581 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
29582 initialize dconstp5 and dconstmp5.
29584 2003-09-28 Richard Henderson <rth@redhat.com>
29586 * trans.c (tree_transform): Update call to expand_asm_operands.
29588 2003-09-21 Richard Henderson <rth@redhat.com>
29590 * trans.c, utils.c: Revert.
29592 2003-09-21 Richard Henderson <rth@redhat.com>
29594 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
29597 2003-09-04 Michael Matz <matz@suse.de>
29599 * misc.c: Include "target.h".
29600 * Make-lang.in (misc.o): Add dependency on target.h.
29602 2003-09-03 DJ Delorie <dj@redhat.com>
29604 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
29607 2003-08-30 Zack Weinberg <zack@codesourcery.com>
29609 * Makefile.in: Update substitutions to match changes to
29610 configure. Use include directives instead of @-insertions
29611 to read in host and target fragments. Add a rule to
29612 regenerate ada/Makefile.
29614 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
29616 * lang-options.h: Remove.
29617 * lang.opt: Add help text.
29619 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
29621 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
29624 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
29626 * misc.c (gnat_handle_option): Don't handle filenames.
29628 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
29630 * Make-lang.in: Replace PWD with PWD_COMMAND.
29631 * Makefile.adalib: Likewise.
29632 * Makefile.in: Likewise.
29634 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
29636 * misc.c (gnat_argv): Revert last change.
29637 (gnat_handle_option, gnat_init_options): Copy arguments.
29639 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
29641 * misc.c (gnat_argv): Make const.
29643 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
29645 * misc.c (save_argc, save_argv): Keep non-static!
29647 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
29649 * misc.c (save_argc, save_argv): Make static.
29650 (gnat_init_options): New prototype.
29651 (gnat_init_options): Update.
29653 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
29655 * gnat_ug.texi: Remove unlikely characters from @vars.
29656 * gnat_ug_vms.texi: Regenerate.
29658 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
29660 * misc.c (record_code_position): Adjust emit_note call.
29662 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
29664 * misc.c (gnat_handle_option): Don't check for missing arguments.
29666 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
29668 * utils.c (end_subprog_body): Adjust expand_function_end call.
29670 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
29672 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
29675 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
29677 * lang.opt: Declare Ada.
29678 * misc.c (gnat_init_options): Update.
29680 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
29682 * utils.c (begin_subprog_body): Adjust init_function_start call.
29684 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
29686 * Make-lang.in: Update to use options.c and options.h.
29687 * misc.c: Include options.h not aoptions.h.
29688 (gnat_handle_option): Abort on unrecognized switch.
29689 (gnat_init_options): Request Ada switches.
29691 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
29693 * lang.opt: Add -Wall.
29694 * misc.c (gnat_handle_option): Handle it.
29696 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
29698 * misc.c (gnat_handle_option): Fix warnings.
29700 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
29702 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
29704 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
29706 * Make-lang.in: Update to handle command-line options.
29707 * lang.opt: New file.
29708 * misc.c: Include aoptions.h.
29709 (cl_options_count, cl_options): Remove.
29710 (gnat_handle_option): New.
29711 (gnat_decode_option): Remove.
29712 (LANG_HOOKS_DECODE_OPTION): Remove.
29713 (LANG_HOOKS_HANDLE_OPTION): Override.
29715 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
29717 * init.c, misc.c, trans.c, utils.c: Remove dead code.
29719 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
29721 * Makefile.in: Replace "host_canonical" with "host" for autoconf
29724 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
29726 * Make-lang.in: Update.
29727 * misc.c: Include opts.h. Define cl_options_count and cl_options.
29729 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
29731 * misc.c (gnat_init_options): Update.
29733 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
29735 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
29736 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
29737 __attribute__ ((__unused__)).
29739 2003-06-05 Jan Hubicka <jh@suse.cz>
29741 * Make-lang.in: Add support for stageprofile and stagefeedback
29743 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
29745 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
29746 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
29748 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
29750 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
29751 Remove non-VMS directive.
29752 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
29754 (Examples of gnatls Usage): Remove VMS alternative.
29756 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
29759 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
29760 and turn ZCX_By_Default back to False since the underlying support
29761 is not quite there yet.
29763 2003-06-01 Andreas Jaeger <aj@suse.de>
29765 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
29766 and ROUND_TYPE_SIZE_UNIT.
29768 2003-05-22 Geert Bosch <bosch@gnat.com>
29770 * gnat_rm.texi : Remove reference to Ada Core Technologies.
29772 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
29774 * trans.c (tree_transform): Use location_t and input_location
29776 (build_unit_elab): Likewise.
29777 * utils.c (create_label_decl): Likewise.
29779 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
29781 * trans.c (tree_transform, build_unit_elab,
29782 set_lineno): Rename lineno to input_line.
29783 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
29784 end_subprog_body): Likewise.
29785 * utils2.c (build_call_raise): Likewise.
29787 2003-05-01 Laurent Guerby <guerby@acm.org>
29790 * 5iosinte.ads: Increase pthread_cond_t size to match recent
29791 LinuxThread and NPTL version, merge from ACT.
29793 2003-04-28 Zack Weinberg <zack@codesourcery.com>
29795 * utils.c (convert): No need to clear TREE_CST_RTL.
29797 2003-04-23 Geert Bosch <bosch@gnat.com>
29799 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
29800 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
29801 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
29802 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
29803 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
29804 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
29805 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
29806 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
29807 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
29808 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
29809 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
29810 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
29811 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
29812 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
29813 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
29814 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
29815 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
29816 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
29817 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
29818 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
29819 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
29820 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
29821 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
29822 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
29823 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
29824 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
29825 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
29826 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
29827 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
29828 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
29829 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
29830 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
29831 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
29832 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
29833 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
29834 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
29835 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
29836 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
29837 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
29838 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
29839 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
29840 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
29841 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
29842 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
29843 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
29844 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
29845 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
29846 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
29847 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
29848 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
29849 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
29850 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
29851 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
29852 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
29853 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
29854 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
29855 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
29856 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
29857 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
29858 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
29859 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
29860 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
29861 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
29862 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
29863 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
29864 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
29865 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
29866 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
29867 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
29868 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
29869 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
29870 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
29871 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
29872 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
29873 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
29874 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
29875 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
29876 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
29877 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
29878 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
29879 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
29880 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
29881 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
29882 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
29883 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
29884 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
29885 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
29886 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
29887 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
29888 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
29889 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
29890 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
29891 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
29892 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
29893 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
29894 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
29895 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
29896 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
29897 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
29898 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
29899 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
29900 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
29901 ali.adb, ali.ads, alloc.ads, argv.c,
29902 atree.adb, atree.ads, atree.h, aux-io.c,
29903 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
29904 binde.adb, binde.ads, binderr.adb, binderr.ads,
29905 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
29906 butil.adb, butil.ads, cal.c, calendar.ads,
29907 casing.adb, casing.ads, ceinfo.adb, checks.adb,
29908 checks.ads, cio.c, comperr.adb, comperr.ads,
29909 config-lang.in, csets.adb, csets.ads, csinfo.adb,
29910 cstand.adb, cstand.ads, cuintp.c, debug.adb,
29911 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
29912 dec-io.ads, dec.ads, deftarg.c, directio.ads,
29913 einfo.adb, einfo.ads, elists.adb, elists.ads,
29914 elists.h, errno.c, errout.adb, errout.ads,
29915 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
29916 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
29917 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
29918 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
29919 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
29920 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
29921 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
29922 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
29923 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
29924 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
29925 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
29926 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
29927 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
29928 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
29929 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
29930 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
29931 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
29932 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
29933 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
29934 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
29935 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
29936 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
29937 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
29938 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
29939 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
29940 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
29941 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
29942 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
29943 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
29944 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
29945 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
29946 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
29947 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
29948 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
29949 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
29950 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
29951 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
29952 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
29953 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
29954 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
29955 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
29956 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
29957 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
29958 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
29959 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
29960 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
29961 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
29962 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
29963 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
29964 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
29965 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
29966 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
29967 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
29968 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
29969 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
29970 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
29971 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
29972 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
29973 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
29974 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
29975 lib.adb, lib.ads, live.adb, live.ads,
29976 machcode.ads, make.adb, make.ads, makeusg.adb,
29977 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
29978 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
29979 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
29980 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
29981 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
29982 mlib.ads, namet.adb, namet.ads, nlists.adb,
29983 nlists.ads, opt.adb, opt.ads, osint-b.adb,
29984 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
29985 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
29986 osint.ads, output.adb, output.ads, par-ch10.adb,
29987 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
29988 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
29989 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
29990 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
29991 par-tchk.adb, par-util.adb, par.adb, par.ads,
29992 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
29993 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
29994 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
29995 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
29996 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
29997 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
29998 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
29999 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
30000 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
30001 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
30002 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
30003 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
30004 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
30005 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
30006 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
30007 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
30008 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
30009 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
30010 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
30011 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
30012 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
30013 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
30014 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
30015 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
30016 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
30017 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
30018 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
30019 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
30020 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
30021 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
30022 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
30023 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
30024 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
30025 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
30026 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
30027 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
30028 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
30029 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
30030 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
30031 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
30032 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
30033 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
30034 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
30035 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
30036 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
30037 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
30038 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
30039 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
30040 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
30041 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
30042 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
30043 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
30044 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
30045 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
30046 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
30047 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
30048 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
30049 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
30050 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
30051 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
30052 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
30053 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
30054 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
30055 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
30056 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
30057 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
30058 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
30059 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
30060 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
30061 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
30062 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
30063 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
30064 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
30065 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
30066 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
30067 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
30068 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
30069 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
30070 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
30071 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
30072 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
30073 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
30074 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
30075 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
30076 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
30077 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
30078 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
30079 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
30080 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
30081 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
30082 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
30083 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
30084 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
30085 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
30086 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
30087 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
30088 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
30089 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
30090 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
30091 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
30092 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
30093 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
30094 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
30095 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
30096 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
30097 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
30098 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
30099 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
30100 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
30101 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
30102 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
30103 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
30104 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
30105 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
30106 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
30107 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
30108 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
30109 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
30110 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
30111 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
30112 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
30113 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
30114 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
30115 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
30116 snames.ads, sprint.adb, sprint.ads, stand.adb,
30117 stand.ads, stringt.adb, stringt.ads, style.adb,
30118 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
30119 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
30120 switch-m.ads, switch.adb, switch.ads, system.ads,
30121 table.adb, table.ads, targparm.adb, targparm.ads,
30122 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
30123 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
30124 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
30125 ttypef.ads, ttypes.ads, types.adb, types.ads,
30126 uintp.adb, uintp.ads, uname.adb, uname.ads,
30127 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
30128 usage.adb, usage.ads, validsw.adb, validsw.ads,
30129 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
30130 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
30131 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
30132 formatting and other trivial changes from ACT.
30134 2003-04-12 Zack Weinberg <zack@codesourcery.com>
30136 * gigi.h, utils2.c (build_constructor):
30137 Rename gnat_build_constructor. Use build_constructor.
30138 * decl.c (gnat_to_gnu_entity)
30139 * trans.c (tree_transform, pos_to_constructor, extract_values)
30140 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
30141 (unchecked_convert)
30142 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
30143 (fill_vms_descriptor):
30146 2003-04-06 Zack Weinberg <zack@codesourcery.com>
30148 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
30149 * misc.c (gnat_tree_size): New function.
30150 (LANG_HOOKS_TREE_SIZE): Override.
30152 2003-04-03 Jason Merrill <jason@redhat.com>
30154 * misc.c (gnat_adjust_rli): #if 0.
30156 2003-03-31 Geert Bosch <bosch@gnat.com>
30159 * link.c : Fix misspelled "const" keyword
30161 2003-03-23 Mark Mitchell <mark@codesourcery.com>
30164 * utils2.c: Adjust calls to put_var_into_stack.
30166 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
30168 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
30170 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
30172 * misc.c (gnat_init): Update for new prototype.
30174 2003-03-05 Olivier Hainque <hainque@gnat.com>
30177 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
30178 warning, and fix return type for the IN_RTS && !SJLJ case.
30180 2003-03-04 Tom Tromey <tromey@redhat.com>
30182 * Make-lang.in (ada.tags): New target.
30184 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
30187 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
30188 wrapper, which name remains constant whatever underlying GCC
30191 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
30192 the stable interface needed for a-except.
30194 2003-03-02 Andreas Jaeger <aj@suse.de>
30196 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30197 gnat_ug_wnt.texi: Regenerate.
30199 2003-03-02 Laurent Guerby <guerby@acm.org>
30201 * Makefile.in (install-gnatlib): Match previous change there
30204 2003-02-28 Andreas Schwab <schwab@suse.de>
30206 * Make-lang.in (install-gnatlib): Change to ada directory before
30207 running make instead of using ada/Makefile directly.
30209 2003-02-18 Ben Elliston <bje@redhat.com>
30211 Part of PR ada/9406
30212 * gnat_ug.texi (Binder output file): Grammar fix.
30214 2003-02-18 Ben Elliston <bje@redhat.com>
30217 * 5qtaprop.adb (Sleep): Fix typo in comment.
30219 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
30221 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
30222 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30223 gnat_ug_wnt.texi: Regenerate.
30225 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
30227 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
30228 be created if necessary.
30229 (ada.install-common): Let $(DESTDIR)$(bindir) be created
30230 if necessary. Remove erroneous and redundant gnatchop
30231 installation commands. Test for gnatdll before attempting
30233 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
30234 and gnatdll from all plausible locations.
30236 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
30238 * utils2.c (build_unary_op): Don't check flag_volatile.
30239 * gnat_ug.texi: Remove -fvolatile from example.
30240 * gnat_ug_vxw.texi: Likewise.
30242 2003-01-29 Laurent Guerby <guerby@acm.org>
30245 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
30246 * Makefile.in: match previous change.
30247 * Make-lang.in: match previous change.
30249 2003-01-29 Joel Sherrill <joel@OARcorp.com>
30251 * 5rosinte.ads: Add SIGXCPU.
30252 * 5rtpopsp.adb: New file.
30253 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
30254 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
30255 specific file 5rtpopsp.adb.
30256 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
30257 is likely needed for all newlib targets.
30258 * init.c: Add RTEMS specific version of __gnat_initialize().
30260 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30262 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
30264 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30266 * init.c (__gnat_error_handler): Make msg const.
30268 * gmem.c (convert_addresses): Move declaration ...
30269 * adaint.h: ... here.
30270 * adaint.c (convert_addresses): Adapt addrs type to match
30273 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
30275 2003-01-24 Andreas Schwab <schwab@suse.de>
30277 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
30278 size_t to avoid warning.
30280 2003-01-21 Zack Weinberg <zack@codesourcery.com>
30282 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
30284 2003-01-09 Geoffrey Keating <geoffk@apple.com>
30286 * gnat_rm.texi: Remove RCS version number.
30288 * ada-tree.h (union lang_tree_node): Add chain_next option.
30290 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
30292 * Make-lang.in (ada.install-info, ada.install-common,
30293 ada.uninstall): Prepend $(DESTDIR) to the destination
30294 directory in all (un)installation commands.
30295 * Makefile.in (install-gnatlib, install-rts): Ditto.
30297 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
30299 * gnat_rm.texi, gnat_ug.texi: Use @copying.
30300 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30301 gnat_ug_wnt.texi: Regenerate.
30303 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
30305 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
30307 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
30308 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
30309 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
30310 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
30311 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
30312 $(srcdir)/doc/include/gcc-common.texi.
30314 2002-12-15 Geert Bosch <bosch@gnat.com>
30316 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
30318 2002-12-14 Geert Bosch <bosch@gnat.com>
30321 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
30322 case of a body created for a Renaming_As_Body, on which
30323 conformance checks are not performed.
30325 2002-11-30 Zack Weinberg <zack@codesourcery.com>
30327 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
30328 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
30329 not already included.
30330 * Make-lang.in: Update dependencies.
30332 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
30333 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
30334 solution to buffer overflow bug on GNU/Linux.
30336 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
30340 * bindgen.adb: Remove all references to Public_Version.
30341 * comperr.adb: Remove all references to Public_Version and
30342 GNATPRO_Version; correct bug reporting instructions.
30343 * comperr.ads: Change to match bug box.
30344 * gnatvsn.ads: Remove all references to Public version and
30347 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
30350 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
30354 * config-lang.in: Remove diff_excludes.
30356 2002-11-05 Graham Stott <graham.stott@btinternet.com>
30359 * trans.c (gnu_pending_elaboration_lists): New GC root.
30360 (build_unit_elab): Use..
30362 2002-10-30 Geert Bosch <bosch@gnat.com>
30365 * misc.c : Include optabs.h
30367 * Make-lang.in (misc.o): Add dependency on optabs.h
30369 2002-10-29 Geert Bosch <bosch@gnat.com>
30372 * Make-lang.in (gnatbind): Depend on CONFIG_H
30374 2002-10-29 Geert bosch <bosch@gnat.com>
30377 * misc.c: Unrevert misc.c (1.13)
30379 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
30381 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
30382 maintainership comments.
30384 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
30387 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
30388 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
30389 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
30390 7staprop.adb: Correct statements in comments about
30391 maintainership of GNAT.
30394 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
30395 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
30396 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
30397 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
30398 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
30399 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
30400 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
30401 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
30402 comments about maintainership of GNAT.
30404 PR ada/6919 (forward port of patch for PR ada/5904)
30405 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
30406 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
30407 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
30408 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
30409 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
30410 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
30411 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
30412 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
30413 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
30414 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
30415 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
30416 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
30417 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
30418 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
30419 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
30420 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
30421 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
30422 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
30423 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
30424 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
30425 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
30426 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
30427 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
30428 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
30429 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
30430 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
30431 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
30432 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
30433 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
30434 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
30435 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
30436 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
30437 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
30438 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
30439 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
30440 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
30441 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
30442 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
30443 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
30444 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
30445 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
30446 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
30447 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
30448 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
30449 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
30450 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
30451 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
30452 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
30453 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
30454 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
30455 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
30456 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
30457 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
30458 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
30459 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
30460 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
30461 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
30462 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
30463 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
30464 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
30465 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
30466 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
30467 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
30468 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
30469 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
30470 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
30471 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
30472 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
30473 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
30474 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
30475 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
30476 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
30477 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
30478 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
30479 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
30480 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
30481 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
30482 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
30483 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
30484 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
30485 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
30486 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
30487 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
30488 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
30489 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
30490 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
30491 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
30492 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
30493 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
30494 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
30495 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
30496 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
30497 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
30498 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
30499 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
30500 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
30501 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
30502 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
30503 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
30504 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
30505 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
30506 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
30507 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
30508 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
30509 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
30510 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
30511 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
30512 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
30513 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
30514 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
30515 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
30516 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
30517 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
30518 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
30519 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
30520 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
30521 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
30522 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
30523 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
30524 par-endh.adb par-labl.adb par-load.adb par-prag.adb
30525 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
30526 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
30527 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
30528 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
30529 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
30530 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
30531 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
30532 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
30533 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
30534 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
30535 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
30536 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
30537 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
30538 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
30539 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
30540 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
30541 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
30542 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
30543 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
30544 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
30545 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
30546 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
30547 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
30548 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
30549 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
30550 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
30551 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
30552 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
30553 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
30554 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
30555 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
30556 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
30557 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
30558 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
30559 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
30560 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
30561 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
30562 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
30563 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
30564 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
30565 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
30566 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
30567 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
30568 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
30569 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
30570 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
30571 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
30572 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
30573 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
30574 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
30575 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
30576 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
30577 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
30578 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
30579 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
30580 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
30581 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
30582 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
30583 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
30584 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
30585 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
30586 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
30587 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
30588 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
30589 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
30590 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
30591 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
30592 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
30593 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
30594 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
30595 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
30596 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
30597 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
30598 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
30599 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
30600 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
30601 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
30602 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
30603 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
30604 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
30605 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
30606 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
30607 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
30608 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
30609 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
30610 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
30611 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
30612 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
30613 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
30614 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
30615 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
30616 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
30617 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
30618 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
30619 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
30620 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
30621 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
30622 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
30623 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
30624 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
30625 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
30626 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
30627 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
30628 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
30629 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
30630 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
30631 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
30632 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
30633 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
30634 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
30635 stringt.ads stringt.h style.adb style.ads stylesw.adb
30636 stylesw.ads switch.adb switch.ads sysdep.c system.ads
30637 table.adb table.ads targparm.adb targparm.ads targtyps.c
30638 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
30639 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
30640 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
30641 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
30642 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
30643 usage.ads utils.c utils2.c validsw.adb validsw.ads
30644 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
30645 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
30646 xtreeprs.adb: Correct statements in comments about maintainership
30649 2002-09-23 Zack Weinberg <zack@codesourcery.com>
30651 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
30652 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
30653 * gnatvsn.ads: Gnat_Version_String is now a function.
30654 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
30655 copy the C version_string into a String and return it.
30656 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
30657 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
30658 Remove pragma Ident (Gnat_Version_String). If this was the
30659 sole use of package Gnatvsn, remove the with statement too.
30660 * gnat1drv.adb: Tweak -gnatv output.
30662 2002-09-17 Richard Henderson <rth@redhat.com>
30664 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
30665 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
30666 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
30667 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
30668 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
30669 and real_2expN instead of a loop.
30670 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
30671 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
30673 2002-08-25 Andre Leis <a.leis@gmx.net>
30674 David Billinghurst (David.Billinghurst@riotinto.com>
30676 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
30678 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30680 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
30681 Remove $(CONFIG_H) dependency.
30683 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
30685 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
30687 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30689 * adadecode.c (ada_demangle): Use xstrdup in lieu of
30691 * misc.c (gnat_decode_option): Likewise.
30693 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
30695 * make.adb (Add_Switch): Make Generic_Position a procedure. The
30696 function approach did not work well because of a side effect (the
30697 function call could reallocate the table which was being indexed
30698 using its result). Fixes ada/4851. [RESURRECTED]
30700 2002-07-01 Roger Sayle <roger@eyesopen.com>
30702 * ada/utils.c (builtin_function): Accept an additional parameter.
30704 2002-06-28 Andreas Jaeger <aj@suse.de>
30707 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
30710 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30712 * Makefile.in (SHELL): Set to @SHELL@.
30714 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30716 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
30717 array size calculation.
30719 2002-06-04 Andreas Jaeger <aj@suse.de>
30721 * Make-lang.in (gnatbind): Readd rule that has been lost in last
30724 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
30726 Merge from pch-branch:
30728 * config-lang.in (gtfiles): Add ada-tree.h.
30729 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
30730 (SET_TYPE_MODULUS): New.
30731 (SET_TYPE_INDEX): New.
30732 (SET_TYPE_DIGITS_VALUE): New.
30733 (SET_TYPE_RM_SIZE): New.
30734 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
30735 (SET_TYPE_ADA_SIZE): New.
30736 (SET_TYPE_ACTUAL_BOUNDS): New.
30737 (SET_DECL_CONST_CORRESPONDING_VAR): New.
30738 (SET_DECL_ORIGINAL_FIELD): New.
30739 (TREE_LOOP_ID): Correct typo.
30740 * decl.c: Use new macros.
30741 * utils.c: Include debug.h, use new macros.
30742 * utils2.c: Use new macros.
30744 * ada-tree.h: Update all macros for new tree description.
30745 (struct tree_loop_id): New.
30746 (union lang_tree_node): New.
30747 (struct lang_decl): New.
30748 (struct lang_type): New.
30749 * misc.c (gnat_mark_tree): Delete.
30750 (LANG_HOOKS_MARK_TREE): Delete.
30751 * trans.c (tree_transform): No longer any need to cast
30754 * utils.c (struct language_function): New dummy structure.
30756 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
30757 (misc.o): Likewise.
30758 (utils.o): Likewise; also gtype-ada.h.
30759 * Make-lang.in (gnat1): Add dependency on s-gtype.
30760 (gnatbind): Add dependency on $(CONFIG_H).
30761 * utils.c: Correct last #include.
30762 (stuct e_stack): Remove unnecessary 'static'.
30763 (mark_e_stack): Remove unused prototype.
30765 * scn-nlit.adb: Remove whitespace after version number to
30766 keep lines under 80 chars.
30767 * snames.adb: Likewise.
30768 * treepr.ads: Likewise.
30770 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
30771 (misc.o): Likewise.
30772 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
30773 * config-lang.in (gtfiles): New.
30774 * decl.c: Use gengtype for roots.
30775 * gigi.h: Use gengtype for roots.
30776 * trans.c: Use gengtype for roots.
30777 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
30779 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
30781 * misc.c (gnat_init): Adjust setting of internal_error_function.
30783 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
30785 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
30786 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
30787 gnat_ug_wnt.texi: Regenerate.
30789 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
30791 * 5ntaprop.adb (with System.OS_Primitives): Remove.
30793 * cstreams.c (max_path_len): Move from here ...
30794 * adaint.c (__gnat_max_path_len): ... to here.
30795 * adaint.c (__gnat_max_path_len): Declare.
30796 * g-dirope.adb (Max_Path): Adjust.
30797 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
30798 * i-cstrea.ads (max_path_len): Adjust.
30799 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
30800 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
30802 * Makefile.in, Make-lang.in: Documentation is now built in
30803 Make-lang.in. Store Info and generated Texinfo files in the
30805 * gnat_ug.texi: Remove CVS keywords, correct version number.
30806 Set file name correctly.
30808 * gnat_ug_*.texi: Add.
30809 * .cvsignore: Ignore generated Texinfo files.
30811 2002-05-30 Zack Weinberg <zack@codesourcery.com>
30813 * ada.h: Add MI guard macro.
30814 (SUBTYPE): Define constants with an anonymous enum, not static
30816 (IN): Cast constants to appropriate type before use.
30818 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
30820 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
30823 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30825 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
30826 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
30827 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
30828 (ALL_ADA_CFLAGS): Likewise.
30829 (ADA_INCLUDES): Likewise.
30830 Adapt for new working dir.
30831 (GNATBIND): Use Makefile.in version.
30832 (.SUFFIXES): Copy from Makefile.in.
30833 (ada-warn): Define.
30834 (.adb.o, .ads.o): Copy from Makefile.in.
30835 Added $(OUTPUT_OPTION).
30836 (GNAT1_C_OBJS): Moved from Makefile.in.
30837 Prefix with ada subdir.
30838 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
30839 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
30840 Adapt for new working dir.
30841 (EXTRA_GNATBIND_OBJS): Likewise.
30842 (ADA_BACKEND): Moved from Makefile.in.
30843 Renamed to avoid conflict with global BACKEND.
30845 (TARGET_ADA_SRCS): Moved from Makefile.in.
30846 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
30848 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
30849 (ada_extra_files): Moved from Makefile.in.
30850 Prefix with ada subdir.
30851 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
30852 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
30853 (ada/nmake.ads): Likewise.
30854 (update-sources): Moved from Makefile.in.
30855 Prefix with ada subdir.
30856 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
30857 (ADA_TREE_H): Likewise.
30858 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
30859 (ada/memtrack.o): Likewise.
30860 (ada/adadecode.o): Likewise.
30861 Update dependencies.
30862 (ada/adaint.o): New.
30863 (ada/argv.o): Moved from Makefile.in.
30864 Prefix with ada subdir.
30865 Update dependencies.
30866 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
30867 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
30868 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
30869 Prefix with ada subdir.
30870 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
30871 (GNAT DEPENDENCIES): Regenerate.
30872 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
30873 toplevel Makefile.in.
30874 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
30875 (TARGET_ADA_SRCS): Removed.
30876 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
30877 (GNATBIND_OBJS): Likewise.
30878 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
30879 (BACKEND): Removed.
30880 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
30881 (TREE_H): Likewise.
30882 (ada_extra_files): Likewise.
30883 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
30884 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
30885 (update-sources): Likewise.
30886 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
30887 (ADA_TREE_H): Likewise.
30888 (adadecoce.o): Likewise.
30889 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
30890 (GNAT DEPENDENCIES): Likewise.
30892 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30894 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
30895 * Makefile.in: Likewise.
30897 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
30899 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
30900 Restore $(CONFIG_H) and prefix.o dependencies.
30901 (ada.stage[1-4]): Depend on stage?-start.
30903 * Makefile.in (b_gnatb.c): Depend on interfac.o.
30905 2002-05-02 Jim Wilson <wilson@redhat.com>
30907 * utils.c (finish_record_type): Change record_size to record_type.
30909 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
30911 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
30912 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
30913 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
30915 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
30917 * misc.c (gnat_parse_file): Update.
30919 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
30921 * misc.c (gnat_init): Don't set lang_attribute_common.
30923 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
30925 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
30927 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
30929 * gnat_ug.texi: New file.
30931 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
30932 instead of gfdl.texi
30934 * xgnatug.adb, ug_words: New files.
30936 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
30937 gnat_rm and gnat-style manuals.
30939 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
30941 * gigi.h (incomplete_type_error): Remove.
30942 * utils.c (incomplete_type_error): Remove.
30944 2002-04-16 Mark Mitchell <mark@codesourcery.com>
30946 * trans.c (tree_transform): Add has_scope argument to
30947 expand_start_stmt_expr.
30949 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
30951 * gigi.h (truthvalue_conversion): Rename.
30952 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
30953 * trans.c (tree_transform): Update.
30954 * utils2.c (truthvalue_conversion): Rename, update.
30955 (build_binary_op, build_unary_op): Update.
30957 2002-04-04 Laurent Guerby <guerby@acm.org>
30959 * make.adb: Implement -margs, remove restriction about file name placement.
30960 * makeusg.adb: Documentation update.
30961 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
30962 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
30964 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
30966 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
30967 (builtin_function): Similarly.
30969 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
30971 * decl.c (gnat_to_gnu_entity): Update.
30972 * gigi.h (mark_addressable): Rename.
30973 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
30974 * trans.c (tree_transform): Update.
30975 * utils.c (create_var_decl): Update.
30976 * util2.c (build_binary_op, build_unary_op,
30977 fill_vms_descriptor): Update.
30978 (mark_addressable): Rename, update.
30980 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
30982 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
30984 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
30985 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
30986 * trans.c (tree_transform, convert_with_check): Update.
30987 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
30990 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
30992 * gigi.h (finish_incomplete_decl): Rename.
30993 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
30994 * utils.c (gnat_init_decl_processing): Don't set hook.
30995 (finish_incomplete_decl): Rename.
30997 2002-03-29 Andreas Schwab <schwab@suse.de>
30999 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
31002 2001-03-28 Robert Dewar <dewar@gnat.com>
31005 (Remove_Checks): New procedure
31008 (Remove_Checks): New procedure
31011 Use new Duplicate_Subexpr functions
31012 (Duplicate_Subexpr_No_Checks): New procedure
31013 (Duplicate_Subexpr_No_Checks_Orig): New procedure
31014 (Duplicate_Subexpr): Restore original form (checks duplicated)
31015 (Duplicate_Subexpr): Call Remove_Checks
31018 (Duplicate_Subexpr_No_Checks): New procedure
31019 (Duplicate_Subexpr_No_Checks_Orig): New procedure
31020 Add 2002 to copyright notice
31022 * sem_util.adb: Use new Duplicate_Subexpr functions
31025 (Eval_Indexed_Component): This is the place to call
31026 Constant_Array_Ref and to replace the value. We simply merge
31027 the code of this function in here, since it is now no longer
31028 used elsewhere. This fixes the problem of the back end not
31029 realizing we were clever enough to see that this was
31031 (Expr_Val): Remove call to Constant_Array_Ref
31032 (Expr_Rep_Val): Remove call to Constant_Array_Ref
31034 (Constant_Array_Ref): Deal with string literals (patch
31035 suggested by Zack Weinberg on the gcc list)
31037 2001-03-28 Ed Schonberg <schonber@gnat.com>
31039 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
31040 Duplicate_Subexpr_Move_Checks.
31042 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
31043 Duplicate_Subexpr_Move_Checks.
31045 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
31046 value of array exists before retrieving it (it may a private
31047 protected component in a function).
31049 2002-03-28 Geert Bosch <bosch@gnat.com>
31051 * prj-pp.adb : New file.
31053 * prj-pp.ads : New file.
31055 2002-03-28 Andreas Jaeger <aj@suse.de>
31057 * Makefile.in (stamp-sdefault): Fix path for Makefile.
31059 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
31061 * misc.c (gnat_expand_expr): Move prototype.
31063 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31065 * misc.c (insert_default_attributes): Remove.
31067 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31069 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
31070 (gnat_init): Don't set hook.
31071 (gnat_expand_expr): Fix prototype.
31073 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
31075 * misc.c (ggc_p): Remove.
31077 2002-03-27 Geert Bosch <bosch@gnat.com>
31079 * prj-makr.ads, prj-makr.adb : New files.
31081 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
31083 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
31084 (lang_mark_tree): Make static, rename.
31086 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
31088 * misc.c (maybe_build_cleanup): Remove.
31090 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
31092 * gigi.h (yyparse): Remove.
31094 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
31096 * gnat_rm.texi: Sync with ACT version.
31097 (From Ben Brosgol <brosgol@gnat.com>)
31099 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
31101 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
31102 (gnat_init): Remove old hook.
31104 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
31106 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
31107 (yyparse): Rename gnat_parse_file.
31109 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
31111 Delete all lines containing "$Revision:".
31112 * xeinfo.adb: Don't look for revision numbers.
31113 * xnmake.adb: Likewise.
31114 * xsinfo.adb: Likewise.
31115 * xsnames.adb: Likewise.
31116 * xtreeprs.adb: Likewise.
31118 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31120 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
31121 gnat_tree_code_name): Delete.
31122 (tree_code_type, tree_code_length, tree_code_name): Define.
31123 (gnat_init): Don't try to copy into the various tree_code
31126 2002-03-11 Richard Henderson <rth@redhat.com>
31128 * Makefile.in (.NOTPARALLEL): Add fake tag.
31130 2002-03-07 Geert Bosch <bosch@gnat.com>
31132 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
31133 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
31134 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
31135 switch-m.adb, switch-m.ads : New files.
31137 2002-03-07 Geert Bosch <bosch@gnat.com>
31139 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
31140 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
31141 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
31142 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
31143 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
31144 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
31145 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
31146 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
31147 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
31148 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
31149 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
31150 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
31151 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
31152 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
31153 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
31154 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
31155 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
31156 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
31157 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
31158 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
31159 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
31160 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
31161 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
31162 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
31163 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
31164 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
31165 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
31166 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
31167 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
31168 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
31169 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
31170 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
31171 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
31172 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
31173 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
31174 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
31175 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
31176 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
31177 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
31178 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
31179 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
31180 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
31181 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
31182 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
31183 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
31184 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
31185 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
31186 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
31187 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
31188 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
31189 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
31190 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
31191 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
31192 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
31193 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
31194 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
31195 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
31196 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
31197 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
31198 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
31199 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
31200 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
31201 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
31202 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
31203 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
31204 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
31205 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
31206 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
31207 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
31208 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
31209 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
31210 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
31211 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
31212 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
31213 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
31214 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
31215 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
31216 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
31217 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
31218 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
31219 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
31220 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
31221 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
31222 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
31223 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
31224 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
31225 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
31226 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
31227 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
31228 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
31229 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
31230 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
31231 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
31232 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
31233 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
31234 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
31235 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
31237 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
31238 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
31239 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
31240 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
31242 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
31243 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
31245 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
31246 to mdll-fil.ad[bs] and mdll-util.ad[bs]
31248 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
31249 from mdllfile.ad[bs] and mdlltool.ad[bs]
31251 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31253 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
31254 lieu of explicit sizeof/sizeof.
31256 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
31258 * misc.c (copy_lang_decl): Remove.
31260 2002-02-27 Zack Weinberg <zack@codesourcery.com>
31262 * misc.c: Delete traditional-mode-related code copied from the
31263 C front end but not used, or used only to permit the compiler
31266 2002-02-07 Richard Henderson <rth@redhat.com>
31268 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
31269 * adaint.h (__gnat_to_gm_time): Update prototype.
31271 2002-01-30 Richard Henderson <rth@redhat.com>
31273 * trans.c (tree_transform) [N_Loop_Statement]: Use
31274 expand_exit_loop_top_cond.
31276 2001-12-23 Richard Henderson <rth@redhat.com>
31278 * utils.c (end_subprog_body): Push GC context around
31279 rest_of_compilation for nested functions.
31281 2001-12-23 Richard Henderson <rth@redhat.com>
31283 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
31285 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
31287 * gnat-style.texi (Declarations and Types): Remove ancient style
31288 rule which was mandated by code generation issues.
31290 * gnat-style.texi (header): Add @dircategory, @direntry.
31291 (title page): Remove date.
31292 (general) Add @./@: where approriate, and two spaces after the
31293 full stop at the end of a sentence. Use @samp markup when
31294 referring concrete lexical entities (keywords, attribute names
31295 etc.), and @syntax for ARM grammar elements. Use @r for English
31296 text in comments. Use @emph for emphasis. Change "if-statements"
31297 etc. to "if statements" (without @samp). Break long lines. Make
31298 casing of section names consistent.
31299 (Identifiers): Use @samp markup for variable names.
31300 (Comments): Use @samp markup for comment characters. Line-end
31301 comments may follow any Ada code, not just statements. Fix
31302 misspelling of "Integer" as "integer".
31303 (Loop statements): Do not use variable name "I", use "J".
31304 (Subprogram Declarations): Document alignment.
31305 (Subprogram Bodies, Block statements): Document empty line before
31308 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
31310 * make.adb (Add_Switch): Make Generic_Position a procedure. The
31311 function approach did not work well because of a side effect (the
31312 function call could reallocate the table which was being indexed
31313 using its result). Fixes ada/4851.
31315 2001-12-19 Robert Dewar <dewar@gnat.com>
31317 * bindgen.adb: Minor reformatting
31319 * cstand.adb: Minor reformatting
31321 * fmap.adb: Minor reformatting
31322 Change name from Add for Add_To_File_Map (Add is much too generic)
31323 Change Path_Name_Of to Mapped_Path_Name
31324 Change File_Name_Of to Mapped_File_Name
31325 Fix copyright dates in header
31328 Change name from Add for Add_To_File_Map (Add is much too generic)
31329 Change Path_Name_Of to Mapped_Path_Name
31330 Change File_Name_Of to Mapped_File_Name
31331 Fix copyright dates in header
31333 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
31334 Add use clause for Fmap.
31336 * make.adb: Minor reformatting
31338 * osint.adb: Minor reformatting. Change of names in Fmap.
31339 Add use clause for Fmap.
31341 * prj-env.adb: Minor reformatting
31343 * prj-env.ads: Minor reformatting
31345 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
31346 error found (there were odd exceptions to this general rule in
31347 -gnatec/-gnatem processing)
31349 2001-12-19 Olivier Hainque <hainque@gnat.com>
31351 * raise.c (__gnat_eh_personality): Exception handling personality
31352 routine for Ada. Still in rough state, inspired from the C++ version
31353 and still containing a bunch of debugging artifacts.
31354 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
31355 inspired from the C++ library.
31357 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
31358 exception handling integration.
31360 2001-12-19 Arnaud Charlet <charlet@gnat.com>
31362 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
31363 (HIE_SOURCES): Add s-secsta.ad{s,b}.
31364 (HIE_OBJS): Add s-fat*.o
31365 (RAVEN_SOURCES): Remove files that are no longer required. Add
31366 interrupt handling files.
31367 (RAVEN_MOD): Removed, no longer needed.
31369 2001-12-19 Robert Dewar <dewar@gnat.com>
31371 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
31372 Add 2001 to copyright date
31374 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
31375 need to force universal inlining for these cases.
31377 2001-12-19 Arnaud Charlet <charlet@gnat.com>
31379 * s-taprob.adb: Minor clean ups so that this unit can be used in
31382 * exp_ch7.adb: Allow use of secondary stack in HI mode.
31383 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
31385 2001-12-19 Vincent Celier <celier@gnat.com>
31387 * prj-tree.ads (Project_Node_Record): Add comments for components
31388 Pkg_Id and Case_Insensitive.
31390 2001-12-19 Pascal Obry <obry@gnat.com>
31392 * g-socket.adb: Minor reformatting. Found while reading code.
31394 2001-12-19 Robert Dewar <dewar@gnat.com>
31396 * prj-tree.ads: Minor reformatting
31398 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
31400 * config-lang.in (diff_excludes): Remove.
31402 2001-12-17 Ed Schonberg <schonber@gnat.com>
31404 * sem_res.adb (Resolve_Selected_Component): do not generate a
31405 discriminant check if the selected component is a component of
31406 the argument of an initialization procedure.
31408 * trans.c (tree_transform, case of arithmetic operators): If result
31409 type is private, the gnu_type is the base type of the full view,
31410 given that the full view itself may be a subtype.
31412 2001-12-17 Robert Dewar <dewar@gnat.com>
31414 * sem_res.adb: Minor reformatting
31416 * trans.c (tree_transform, case N_Real_Literal): Add missing third
31417 parameter in call to Machine (unknown horrible effects from this
31420 * urealp.h: Add definition of Round_Even for call to Machine
31421 Add third parameter for Machine
31423 2001-12-17 Ed Schonberg <schonber@gnat.com>
31425 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
31426 predefined units in No_Run_Time mode.
31428 2001-12-17 Richard Kenner <kenner@gnat.com>
31430 * misc.c (insn-codes.h): Now include.
31432 2001-12-17 Olivier Hainque <hainque@gnat.com>
31434 * a-except.adb: Preparation work for future integration of the GCC 3
31435 exception handling mechanism
31436 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
31437 to factorize previous code sequences and make them externally callable,
31438 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
31439 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
31440 Use the new notification routines.
31442 2001-12-17 Emmanuel Briot <briot@gnat.com>
31444 * prj-tree.ads (First_Choice_Of): Document the when others case
31446 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31448 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
31449 HI-E mode, in order to support Ravenscar profile properly.
31451 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
31452 mode on 32 bits targets.
31454 2001-12-17 Vincent Celier <celier@gnat.com>
31456 * fmap.adb: Initial version.
31458 * fmap.ads: Initial version.
31460 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
31461 If search is successfully done, add to mapping.
31463 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
31466 (Gnatmake): Add new local variable Mapping_File_Name.
31467 Create mapping file when using project file(s).
31468 Delete mapping file before exiting.
31470 * opt.ads (Mapping_File_Name): New variable
31472 * osint.adb (Find_File): Use path name found in mapping, if any.
31474 * prj-env.adb (Create_Mapping_File): New procedure
31476 * prj-env.ads (Create_Mapping_File): New procedure.
31478 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
31481 * usage.adb: Add entry for new switch -gnatem.
31483 * Makefile.in: Add dependencies for fmap.o.
31485 2001-12-17 Ed Schonberg <schonber@gnat.com>
31487 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
31488 is a package instantiation rewritten as a package body.
31489 (Install_Withed_Unit): Undo previous change, now redundant.
31491 2001-12-17 Gary Dismukes <dismukes@gnat.com>
31494 (Compute_Length): Move conversion to Unsigned to callers.
31495 (Get_Max_Size): Convert Len expression to Unsigned after calls to
31496 Compute_Length and Determine_Range.
31497 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
31498 Compute_Length and Determine_Range.
31499 Above changes fix problem with length computation for supernull arrays
31500 where Max (Len, 0) wasn't getting applied due to the Unsigned
31501 conversion used by Compute_Length.
31503 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31506 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
31507 System.Secondary_Stack.
31508 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
31510 Remove unused entity RE_Exception_Data.
31512 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
31514 * rident.ads (No_Secondary_Stack): New restriction.
31516 2001-12-17 Joel Brobecker <brobecke@gnat.com>
31518 * gnat_rm.texi: Fix minor typos. Found while reading the section
31519 regarding "Bit_Order Clauses" that was sent to a customer.
31520 Very interesting documentation!
31522 2001-12-17 Robert Dewar <dewar@gnat.com>
31524 * sem_case.adb (Choice_Image): Avoid creating improper character
31525 literal names by using the routine Set_Character_Literal_Name. This
31526 fixes bombs in certain error message cases.
31528 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31530 * a-reatim.adb: Minor reformatting.
31532 2001-12-17 Ed Schonberg <schonber@gnat.com>
31534 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
31535 case where the formal is an extension of another formal in the current
31536 unit or in a parent generic unit.
31538 2001-12-17 Arnaud Charlet <charlet@gnat.com>
31540 * s-tposen.adb: Update comments. Minor reformatting.
31541 Minor code clean up.
31543 * s-tarest.adb: Update comments. Minor code reorganization.
31545 2001-12-17 Gary Dismukes <dismukes@gnat.com>
31547 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
31550 2001-12-17 Robert Dewar <dewar@gnat.com>
31552 * exp_attr.adb: Minor reformatting
31554 2001-12-17 Ed Schonberg <schonber@gnat.com>
31556 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
31557 derivations nested within a child unit: verify that the parent
31558 type is declared in an outer scope.
31560 2001-12-17 Robert Dewar <dewar@gnat.com>
31562 * sem_ch12.adb: Minor reformatting
31564 2001-12-17 Ed Schonberg <schonber@gnat.com>
31566 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
31567 warning if current unit is a predefined one, from which bodies may
31570 2001-12-17 Robert Dewar <dewar@gnat.com>
31572 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
31573 Fix header format. Add 2001 to copyright date.
31575 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
31576 which caused CE during compilation if checks were enabled.
31578 2001-12-17 Vincent Celier <celier@gnat.com>
31581 (Switches_Of): New function
31582 (Test_If_Relative_Path): New procedure
31583 (Add_Switches): Use new function Switches_Of
31584 (Collect_Arguments_And_Compile): Use new function Switches_Of.
31585 When using a project file, test if there are any relative
31586 search path. Fail if there are any.
31587 (Gnatmake): Only add switches for the primary directory when not using
31588 a project file. When using a project file, change directory to the
31589 object directory of the main project file. When using a project file,
31590 test if there are any relative search path. Fail if there are any.
31591 When using a project file, fail if specified executable is relative
31592 path with directory information, and prepend executable, if not
31593 specified as an absolute path, with the exec directory. Make sure
31594 that only one -o switch is transmitted to the linker.
31596 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
31599 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
31600 when using a non standard naming scheme.
31601 (Check_Ada_Naming_Scheme): Make sure that error messages
31602 do not raise exceptions.
31603 (Is_Illegal_Append): Return True if there is no dot in the suffix.
31604 (Language_Independent_Check): Check the exec directory.
31606 * prj.adb (Project_Empty): Add new component Exec_Directory
31609 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
31610 (Project_Data): Add component Exec_Directory
31612 * snames.adb: Updated to match snames.ads revision 1.215
31614 * snames.ads: Added Exec_Dir
31616 2001-12-17 Robert Dewar <dewar@gnat.com>
31618 * make.adb: Minor reformatting
31620 * prj-nmsc.adb: Minor reformatting
31622 * snames.adb: Updated to match snames.ads
31624 * snames.ads: Alphebetize entries for project file
31626 2001-12-17 Ed Schonberg <schonber@gnat.com>
31628 * trans.c (process_freeze_entity): Do nothing if the entity is a
31629 subprogram that was already elaborated.
31631 2001-12-17 Richard Kenner <kenner@gnat.com>
31633 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
31634 and Esize if object is referenced via pointer.
31636 2001-12-17 Ed Schonberg <schonber@gnat.com>
31638 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
31639 is discrete before analyzing choices.
31641 2001-12-17 Joel Brobecker <brobecke@gnat.com>
31643 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
31644 containing the name of the Ada Main Program. This string is mainly
31645 intended for the debugger.
31646 (Gen_Output_File_C): Do the equivalent change when generating a C file.
31648 2001-12-17 Robert Dewar <dewar@gnat.com>
31650 * ali.adb: Set new Dummy_Entry field in dependency entry
31652 * ali.ads: Add Dummy_Entry field to source dependency table
31654 * bcheck.adb (Check_Consistency): Ignore dummy D lines
31656 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
31658 * lib-writ.ads: Document dummy D lines for missing files.
31660 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
31662 2001-12-17 Robert Dewar <dewar@gnat.com>
31664 * ali.adb: Type reference does not reset current file.
31666 * ali.adb: Recognize and scan renaming reference
31668 * ali.ads: Add spec for storing renaming references.
31670 * lib-xref.ads: Add documentation for handling of renaming references
31672 * lib-xref.adb: Implement output of renaming reference.
31675 (Determine_Range): Document local variables
31676 (Determine_Range): Make sure Hbound is initialized. It looks as though
31677 there could be a real problem here with an uninitialized reference
31678 to Hbound, but no actual example of failure has been found.
31680 2001-12-17 Laurent Pautet <pautet@gnat.com>
31683 Fix comment of Shutdown_Socket and Close_Socket. These functions
31684 should not fail silently because if they are called twice, this
31685 probably means that there is a race condition in the user program.
31686 Anyway, this behaviour is consistent with the rest of this unit.
31687 When an error occurs, an exception is raised with the error message
31688 as exception message.
31690 2001-12-17 Robert Dewar <dewar@gnat.com>
31692 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
31693 that it happens before modification of Sloc values for -gnatD.
31695 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
31696 so that it happens before modification of Sloc values for -gnatD.
31698 * switch.adb: Minor reformatting
31700 2001-12-15 Richard Henderson <rth@redhat.com>
31702 * sem_ch7.adb: Wrap comment.
31704 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
31706 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
31707 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
31708 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
31709 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
31710 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
31711 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
31712 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
31713 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
31714 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
31715 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
31716 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
31717 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
31718 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
31719 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
31720 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
31721 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
31722 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
31723 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
31724 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
31725 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
31726 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
31727 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
31728 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
31729 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
31732 2001-12-14 Vincent Celier <celier@gnat.com>
31734 * osint.adb(Create_Debug_File): When an object file is specified,
31735 put the .dg file in the same directory as the object file.
31737 2001-12-14 Robert Dewar <dewar@gnat.com>
31739 * osint.adb: Minor reformatting
31741 * lib-xref.adb (Output_Instantiation): New procedure to generate
31742 instantiation references.
31744 * lib-xref.ads: Add documentation of handling of generic references.
31746 * ali.adb (Read_Instantiation_Ref): New procedure to read
31747 instantiation references
31749 * ali.ads: Add spec for storing instantiation references
31751 * bindusg.adb: Minor reformatting
31753 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
31755 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
31757 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
31759 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
31763 Add 2001 to copyright date
31764 Add entry for Latin-5 (Cyrillic ISO-8859-5)
31766 2001-12-14 Matt Gingell <gingell@gnat.com>
31768 * adaint.c: mktemp is a macro on Lynx and can not be used as an
31771 2001-12-14 Richard Kenner <kenner@gnat.com>
31773 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
31774 if operand is CONSTRUCTOR.
31776 2001-12-14 Ed Schonberg <schonber@gnat.com>
31778 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
31779 before emiting check on right-hand side, so that exception information
31782 2001-12-14 Richard Kenner <kenner@gnat.com>
31784 * utils.c (create_var_decl): Throw away initializing expression
31785 if just annotating types and non-constant.
31787 2001-12-14 Vincent Celier <celier@gnat.com>
31789 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
31792 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
31794 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
31796 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
31798 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
31800 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
31802 * ChangeLog: Remove piece of diff output.
31804 2001-12-14 Geert Bosch <bosch@gnat.com>
31806 * config-lang.in: Update copyright notice
31808 * layout.adb: Remove commented out code.
31810 * mdllfile.ads: Update copyright notice. Fix header format.
31812 * sem_case.ads: Likewise.
31814 * sem_ch3.adb: Minor reformatting.
31816 2001-12-12 Geert Bosch <bosch@gnat.com>
31818 * freeze.ads: Update copyright date.
31820 * g-comlin.ads: Minor reformatting.
31822 * gnat-style.texi: Fix typo.
31824 2001-12-12 Geert Bosch <bosch@gnat.com>
31826 * einfo.h: Regenerate.
31828 2001-12-12 Ed Schonberg <schonber@gnat.com>
31830 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
31831 on known node types, rather than untyped fields. Further cleanups.
31833 2001-12-12 Robert Dewar <dewar@gnat.com>
31836 (Save_Entity_Descendant): Minor comment update.
31837 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
31838 of an N_Attribute_Reference node. As per note below, this does not
31839 eliminate need for Associated_Node in attribute ref nodes.
31840 (Associated_Node): Documentation explicitly mentions attribute
31841 reference nodes, since this field is used in such nodes.
31843 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
31845 2001-12-12 Robert Dewar <dewar@gnat.com>
31847 * s-stalib.adb: Add more comments on with statements being needed
31849 * par-ch12.adb: Minor reformatting
31851 * prj-dect.ads: Fix copyright header
31853 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
31854 inputs fit in 32 bits, but the result still overflows.
31856 * s-fatgen.ads: Minor comment improvement
31858 2001-12-12 Ed Schonberg <schonber@gnat.com>
31860 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
31861 formal derived type, look for an inherited component from the full
31862 view of the parent, if any.
31864 2001-12-12 Robert Dewar <dewar@gnat.com>
31866 * checks.ads (Apply_Alignment_Check): New procedure.
31868 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
31869 ensure that the alignment of objects with address clauses is
31870 appropriate, and raise PE if not.
31872 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
31873 Exp_Pakd.Known_Aligned_Enough
31875 * mdllfile.ads: Minor reformatting
31877 * mlib-fil.ads: Minor reformatting
31879 2001-12-12 Ed Schonberg <schonber@gnat.com>
31881 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
31882 fix to any component reference if enclosing record has non-standard
31885 2001-12-12 Vincent Celier <celier@gnat.com>
31887 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
31890 2001-12-12 Ed Schonberg <schonber@gnat.com>
31892 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
31895 2001-12-12 Robert Dewar <dewar@gnat.com>
31897 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
31899 2001-12-12 Emmanuel Briot <briot@gnat.com>
31901 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
31902 and it adds dependencies to system.io.
31904 2001-12-12 Pascal Obry <obry@gnat.com>
31906 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
31909 2001-12-11 Ed Schonberg <schonber@gnat.com>
31911 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
31912 that is the parent of other generics, the instance body replaces the
31913 instance node. Retrieve the instance of the spec, which is the one
31914 that is visible in clients and within the body.
31916 2001-12-11 Vincent Celier <celier@gnat.com>
31918 * gnatmain.adb: Initial version.
31920 * gnatmain.ads: Initial version.
31922 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
31924 * snames.adb: Updated to match snames.ads.
31926 * snames.ads: Added Gnatstub.
31928 2001-12-11 Vincent Celier <celier@gnat.com>
31930 * prj-attr.adb (Initialization_Data): Change name from
31931 Initialisation_Data.
31933 2001-12-11 Emmanuel Briot <briot@gnat.com>
31935 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
31936 + and * applied to backslashed expressions like \r.
31938 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
31940 * g-os_lib.ads: String_List type added, Argument_List type is now
31941 subtype of String_List.
31943 2001-12-11 Robert Dewar <dewar@gnat.com>
31945 * g-os_lib.ads: Change copyright to FSF
31946 Add comments for String_List type
31948 2001-12-11 Vincent Celier <celier@gnat.com>
31950 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
31951 string to the buffer).
31953 2001-12-11 Ed Schonberg <schonber@gnat.com>
31955 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
31958 * sem_attr.adb: Simplify previous fix for Address.
31959 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
31960 to avoid anomalies where the bound of the type appears to raise
31963 2001-12-11 Robert Dewar <dewar@gnat.com>
31965 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
31968 2001-12-11 Ed Schonberg <schonber@gnat.com>
31970 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
31971 renamed unit before checking for recursive instantiations.
31973 2001-12-11 Emmanuel Briot <briot@gnat.com>
31975 * prj.ads: Add comments for some of the fields.
31977 2001-12-11 Robert Dewar <dewar@gnat.com>
31979 * lib-xref.adb (Output_Refs): Don't output type references outside
31980 the main unit if they are not otherwise referenced.
31982 2001-12-11 Ed Schonberg <schonber@gnat.com>
31984 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
31985 code and diagnose additional illegal uses
31987 * sem_util.adb (Is_Object_Reference): An indexed component is an
31988 object only if the prefix is.
31990 2001-12-11 Vincent Celier <celier@gnat.com>
31992 * g-diopit.adb: Initial version.
31994 * g-diopit.ads: Initial version.
31997 (Expand_Path): Avoid use of Unbounded_String
31998 (Find, Wildcard_Iterator): Moved to child package Iteration
32000 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
32002 2001-12-11 Robert Dewar <dewar@gnat.com>
32004 * sem_attr.adb: Minor reformatting
32006 2001-12-11 Ed Schonberg <schonber@gnat.com>
32008 * sem_ch3.adb: Clarify some ???.
32010 2001-12-11 Robert Dewar <dewar@gnat.com>
32012 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
32013 Exp_Pakd.Known_Aligned_Enough
32015 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
32016 version is moved to Exp_Ch13.
32018 2001-12-11 Robert Dewar <dewar@gnat.com>
32020 * einfo.ads: Minor reformatting
32022 * exp_ch5.adb: Add comment for previous.change
32024 * ali.adb: New interface for extended typeref stuff.
32026 * ali.ads: New interface for typeref stuff.
32028 * checks.adb (Apply_Alignment_Check): New procedure.
32030 * debug.adb: Add -gnatdM for modified ALI output
32032 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
32034 * lib-xref.adb: Extend generation of <..> notation to cover
32035 subtype/object types. Note that this is a complete rewrite,
32036 getting rid of the very nasty quadratic algorithm previously
32037 used for derived type output.
32039 * lib-xref.ads: Extend description of <..> notation to cover
32040 subtype/object types. Uses {..} for these other cases.
32041 Also use (..) for pointer types.
32043 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
32045 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
32046 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
32048 2001-12-11 Vincent Celier <celier@gnat.com>
32051 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
32052 Changed /BIND_ONLY to /ACTIONS=BIND
32053 Changed /LINK_ONLY to /ACTIONS=LINK
32055 2001-12-11 Ed Schonberg <schonber@gnat.com>
32057 * sem_ch8.adb (Find_Selected_Component): improved search for a
32058 candidate package in case of error.
32060 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
32061 chain back on scope stack before reinstalling use clauses.
32063 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
32064 is enabled, do not kill the code for the condition, to preserve
32067 2001-12-11 Robert Dewar <dewar@gnat.com>
32069 * checks.adb (Insert_Valid_Check): Apply validity check to expression
32070 of conversion, not to result of conversion.
32072 2001-12-11 Ed Schonberg <schonber@gnat.com>
32074 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
32075 before freezing parent. If the declarations are mutually recursive,
32076 an access to the current record type may be frozen before the
32077 derivation is complete.
32079 2001-12-05 Vincent Celier <celier@gnat.com>
32081 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
32082 -c /COMPILE_ONLY, -l /LINK_ONLY
32085 (Bind_Only): New Flag
32086 (Link_Only): New flag
32088 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
32091 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
32094 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
32095 (Gnatmake): Set the step flags. Only perform a step if the
32096 corresponding step flag is True.
32097 (Scan_Make_Arg): Reset the bind and link step flags when -u
32098 or -gnatc has been specified.
32100 2001-12-05 Ed Schonberg <schonber@gnat.com>
32102 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
32103 get bounds from right operand.
32105 * sem_eval.adb: Minor reformatting
32107 * exp_util.adb (Make_Literal_Range): use bound of literal rather
32108 than Index'First, its lower bound may be different from 1.
32110 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
32113 2001-12-05 Vincent Celier <celier@gnat.com>
32115 * prj-nmsc.adb Minor reformatting
32117 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
32118 set and libraries are not supported.
32120 2001-12-05 Ed Schonberg <schonber@gnat.com>
32122 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
32123 private view explicitly, so the back-end can treat as a global
32126 2001-12-05 Ed Schonberg <schonber@gnat.com>
32128 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
32129 unit, always replace instance node with new body, for ASIS use.
32131 2001-12-05 Vincent Celier <celier@gnat.com>
32133 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
32134 libraries are not supported and both attributes Library_Name and
32135 Library_Dir are specified.
32137 * prj-proc.adb (Expression): Set location of Result to location of
32140 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
32141 (prj-nmsc is now importing MLib.Tgt)
32143 * prj-proc.adb: Put the change indicated above that was forgotten.
32145 2001-12-05 Robert Dewar <dewar@gnat.com>
32147 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
32149 2001-12-05 Ed Schonberg <schonber@gnat.com>
32151 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
32152 constraint, introduce explicit subtype declaration and derive from it.
32154 * sem_ch3.adb: Minor reformatting
32156 2001-12-05 Robert Dewar <dewar@gnat.com>
32158 * checks.adb (Determine_Range): Increase cache size for checks.
32161 * exp_ch6.adb: Minor reformatting
32162 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
32163 a parameter whose root type is System.Address, since treating such
32164 subprograms as pure in the code generator is almost surely a mistake
32165 that will lead to unexpected results.
32167 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
32168 change handling of conversions.
32170 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
32172 2001-12-05 Ed Schonberg <schonber@gnat.com>
32174 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
32175 aggregate with static wrong size, attach generated Raise node to
32178 2001-12-05 Robert Dewar <dewar@gnat.com>
32180 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
32181 Fixes compilation abandoned bomb in B24009B.
32183 2001-12-05 Ed Schonberg <schonber@gnat.com>
32186 Document use of Associated_Node on Selected_Components.
32187 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
32188 to clarify use of untyped descendant fields.
32190 2001-12-05 Robert Dewar <dewar@gnat.com>
32192 * prj-dect.ads: Add ??? comment
32193 Add 2001 to copyright notice (was not done in after all)
32195 * prj-part.adb: Minor reformatting. Reword one awkward error message.
32197 * prj.ads: Minor reformatting throughout, and add some ??? comments
32199 * snames.ads: Minor reformatting
32201 2001-12-05 Geert Bosch <bosch@gnat.com>
32203 * snames.adb: Autoupdate
32205 2001-12-05 Vincent Celier <celier@gnat.com>
32207 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
32209 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
32211 * prj-env.adb: Minor comment changes (modifying -> extends).
32213 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
32215 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
32218 * prj.adb (Initialize): Change Modifying to Extends.
32220 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
32222 * prj.ads: Minor comment change (Modifying -> extending).
32224 * snames.ads: Change modifying to extends.
32226 2001-12-05 Robert Dewar <dewar@gnat.com>
32228 * sem_warn.adb: Remove stuff for conditionals, we are not going to
32231 * sem_warn.ads: Remove stuff for conditionals, we are not going to
32232 do this after all. Add 2001 to copyright notice
32234 2001-12-04 Geert Bosch <bosch@gnat.com>
32236 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
32238 2001-12-04 Robert Dewar <dewar@gnat.com>
32240 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
32241 location if we already have errors. Stops some cases of cascaded
32244 * errout.adb: Improve comment.
32246 2001-12-04 Robert Dewar <dewar@gnat.com>
32249 (Analyze_Formal_Type_Definition): Defend against Error.
32250 (Analyze_Formal_Subprogram): Defend against Error.
32252 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
32253 remove following semicolon if present. Removes cascaded error.
32255 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
32258 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
32259 exceptions equals 0.
32260 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
32261 Fixes PIWG E tests (which have to be run with -gnatL).
32263 2001-12-04 Robert Dewar <dewar@gnat.com>
32265 * einfo.ads: Minor reformatting
32267 2001-12-04 Ed Schonberg <schonber@gnat.com>
32269 * einfo.ads: Block_Node points to the identifier of the block, not to
32270 the block node itself, to preserve the link when the block is
32271 rewritten, e.g. within an if-statement with a static condition.
32273 * inline.adb (Cleanup_Scopes): recover block statement from block
32274 entity using new meaning of Block_Node.
32276 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
32277 identifier of block node, rather than to node itself.
32279 2001-12-04 Gary Dismukes <dismukes@gnat.com>
32282 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
32283 (Discrimify): Go back to setting the Etypes of the selected component
32284 because the Vname component does not exist at this point and will
32285 fail name resolution. Also set Analyzed.
32286 Remove with and use of Sem_Res.
32288 2001-12-04 Arnaud Charlet <charlet@gnat.com>
32290 * Makefile.in: (HIE_SOURCES): add s-fat*.
32292 2001-12-04 Robert Dewar <dewar@gnat.com>
32295 (Compile_Time_Known_Attribute): New procedure.
32296 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
32297 proper range check.
32299 2001-12-04 Ed Schonberg <schonber@gnat.com>
32301 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
32302 processing discriminants to diagnose illegal default values.
32304 2001-12-04 Ed Schonberg <schonber@gnat.com>
32306 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
32307 access discriminant within a type extension that constrains its
32308 parent discriminants.
32310 2001-12-04 Ed Schonberg <schonber@gnat.com>
32312 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
32313 is malformed, use instance of Any_Id to allow analysis to proceed.
32315 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
32316 type definition is illegal.
32317 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
32320 2001-12-04 Ed Schonberg <schonber@gnat.com>
32322 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
32325 2001-12-04 Robert Dewar <dewar@gnat.com>
32327 * errout.adb: Minor reformatting
32329 2001-12-04 Robert Dewar <dewar@gnat.com>
32331 * exp_util.adb: Minor reformatting from last change
32333 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
32334 which is a rewriting of an expression, traverse the original
32335 expression to remove warnings that may have been posted on it.
32337 2001-12-04 Ed Schonberg <schonber@gnat.com>
32339 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
32340 record that has other packed components.
32342 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
32344 * adaint.c: Minor cleanups.
32346 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
32348 * adaint.c: Do not use utime.h on vxworks.
32350 2001-12-04 Arnaud Charlet <charlet@gnat.com>
32352 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
32353 more confusion than it solves.
32355 2001-12-04 Geert bosch <bosch@gnat.com>
32357 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
32359 2001-12-04 Geert Bosch <bosch@gnat.com>
32361 * Makefile.in (update-sources): New target.
32362 For use by gcc_release script.
32364 2001-12-04 Ed Schonberg <schonber@gnat.com>
32366 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
32367 a configuration pragma, it is now legal wherever a pragma can appear.
32369 2001-12-04 Zack Weinberg <zack@codesourcery.com>
32371 * Makefile.in: Don't set ALL. Delete @cross_defines@,
32372 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
32373 is now @CROSS@ -DIN_GCC; update comment.
32375 2001-12-04 Robert Dewar <dewar@gnat.com>
32377 * einfo.adb (Has_Pragma_Pure_Function): New flag.
32378 Fix problem that stopped ceinfo from working
32380 * einfo.ads (Has_Pragma_Pure_Function): New flag.
32382 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
32384 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
32387 (File_Time_Stamp): New procedure.
32388 (Preserve_Mode): New boolean.
32389 (Write_Unit): Pass time stamp.
32390 Implement -p switch (preserve time stamps).
32392 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
32394 * gnatchop.adb: Do usage info for -p switch
32396 * adaint.h (__gnat_set_file_time_name): New function
32398 * adaint.c (__gnat_set_file_time_name): Implement
32400 * adaint.h: Fix typo
32402 2001-12-03 Robert Dewar <dewar@gnat.com>
32404 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
32405 have Associated_Node.
32407 2001-12-03 Robert Dewar <dewar@gnat.com>
32409 * prj-proc.adb: Minor reformatting
32411 * make.adb: Minor reformatting
32413 2001-12-03 Geert Bosch <bosch@gnat.com>
32415 * make.adb: Minor reformatting.
32417 2001-12-03 Robert Dewar <dewar@gnat.com>
32419 * sem_ch12.adb: Minor reformatting
32421 2001-12-03 Ed Schonberg <schonber@gnat.com>
32423 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
32424 push Standard on the stack before analyzing the instance body,
32425 in order to have a clean visibility environment.
32427 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
32429 2001-12-03 Ed Schonberg <schonber@gnat.com>
32431 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
32432 instantiation of a body that contains an inlined body.
32434 2001-12-03 Ed Schonberg <schonber@gnat.com>
32437 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
32438 to prevent freezing within formal packages.
32439 (Freeze_Subprogram_Body): If body comes from another instance that
32440 appeared before its own body, place freeze node at end of current
32441 declarative part, to prevent a back-end crash.
32442 (Inline_Instance_Body): Handle properly a package instance within
32443 a subprogram instance that is a child unit.
32445 2001-12-01 Graham Stott <grahams@redhat.com>
32447 * Makefile.in (misc.o): Add missing $(srcdir) prefix
32448 and add optabs.h dependency.
32450 * misc.c: Include optabs.h
32451 (gnat_tree_code_type): Make static and const.
32452 (gnat_tree_code_length): Likewise.
32453 (gnat_tree_code_name): Likewise.
32454 (update_setjmp_buf): Obtain operands mode from insn_data.
32456 2001-11-29 Richard Henderson <rth@redhat.com>
32458 * init.c: Remove obsolete dwarf2 frame.h section.
32460 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
32462 * Make-lang.in (ada.generated-manpages): New dummy target.
32464 2001-11-29 Ed Schonberg <schonber@gnat.com>
32466 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
32467 into Command, an array conversion is illegal here. Uncovered by
32470 2001-11-28 Geert Bosch <bosch@gnat.com>
32472 * init.c: Minor whitespace changes.
32474 2001-11-28 Doug Rupp <rupp@gnat.com>
32476 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
32479 2001-11-28 Zack Weinberg <zack@codesourcery.com>
32481 * misc.c (gnat_expand_constant): Move declaration above
32482 definition of lang_hooks.
32483 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
32484 (gnat_init): lang_expand_constant no longer exists.
32486 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
32487 always have vprintf.
32488 (gnat_init): Always call set_internal_error_function.
32490 2001-11-27 Andreas Jaeger <aj@suse.de>
32492 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
32494 2001-11-27 Laurent Guerby <guerby@acm.org>
32496 * Makefile.in: Regenerate Ada dependencies.
32498 2001-11-26 Richard Henderson <rth@redhat.com>
32500 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
32501 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
32502 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
32504 2001-11-25 Laurent Guerby <guerby@acm.org>
32506 * sysdep.c (rts_get_*): Fix style.
32508 2001-11-19 Laurent Guerby <guerby@acm.org>
32510 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
32511 since it is of no apparent use and cause warnings.
32513 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
32515 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
32517 (gnat_init): Don't return NULL.
32518 (finish_parse): Remove.
32520 2001-11-17 Laurent Guerby <guerby@acm.org>
32522 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
32523 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
32524 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
32525 * lang-spec.h: Add missing struct field to silence warnings.
32526 * sysdep.c (rts_get_*): Provide K&R prototype.
32527 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
32528 * traceback.c (Unlock_Task, Lock_Task): Likewise.
32529 * tracebak.c (__gnat_backtrace): Remove unused variable.
32530 * utils.c (end_subprog_body): Move to K&R style.
32532 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32534 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
32536 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
32538 * misc.c (gnat_init): Change prototype. Include the
32539 functionality of the old init_parse and init_decl_processing.
32540 (gnat_init_decl_processing): New prototype.
32541 (init_parse): Remove.
32542 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
32544 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
32546 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
32547 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
32548 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
32549 set_yydebug): Remove.
32551 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
32553 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
32554 (struct lang_hooks): Constify.
32555 (language_string, lang_identify): Remove.
32556 * utils.c (init_decl_processing): Update.
32558 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
32560 * misc.c: Include langhooks-def.h.
32561 * Makefile.in: Update.
32563 2001-10-30 Robert Dewar <dewar@gnat.com>
32566 (Check_Identifier): Rewrite circuit to be compatible with use of letters
32567 in the upper half of ASCII.
32568 (Check_Identifier): Minor reformatting
32570 2001-10-30 Geert Bosch <bosch@gnat.com>
32572 * (Associated_Node, Set_Associated_Node): Do not check for
32575 2001-10-30 Robert Dewar <dewar@gnat.com>
32577 * a-reatim.ads: Minor reformatting
32579 2001-10-30 Robert Dewar <dewar@gnat.com>
32581 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
32582 undocumented declarations.
32584 2001-10-30 Pascal Obry <obry@gnat.com>
32586 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
32587 to the binder and linker.
32590 * mdll.ads: Fix layout. Update copyright notice.
32592 * mdll.adb: Fix layout. Update copyright notice.
32594 2001-10-30 Robert Dewar <dewar@gnat.com>
32596 * usage.adb: Minor fix to output for -gnaty.
32598 2001-10-30 Ed Schonberg <schonber@gnat.com>
32600 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
32601 to accommodate all its possible values.
32603 * a-reatim.adb (Split): Special-case handling of Time_Span_First
32604 and of small absolute values of T.
32606 2001-10-30 Richard Kenner <kenner@gnat.com>
32608 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
32609 set_mem_attributes since not needed and wrong if RESULT if a REG;
32610 fixes ACATS failures.
32612 2001-10-30 Geert Bosch <bosch@gnat.com>
32614 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
32615 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
32617 2001-10-30 Robert Dewar <dewar@gnat.com>
32619 * bindusg.adb: Undocument -f switch.
32621 * gnatcmd.adb: Remove /FULL_ELABORATION.
32623 * opt.ads (Force_RM_Elaboration_Order): Document that this is
32626 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
32628 * gnatbind.adb: Minor update of warning msg.
32630 2001-10-30 Vincent Celier <celier@gnat.com>
32632 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
32633 for project file switches (-P (/PROJECT_FILE=),
32634 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
32637 2001-10-30 Geert Bosch <bosch@gnat.com>
32639 * decl.c: Minor whitespace fixes.
32641 2001-10-30 Richard Kenner <kenner@gnat.com>
32643 * utils2.c (build_allocator): Test for SIZE overflow in array case too
32645 2001-10-30 Geert Bosch <bosch@gnat.com>
32647 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
32648 Found due to GCC 3.0 warning of using uninitialized value.
32651 (Get_Max_Size): Use variant record for tracking value/expression.
32652 Makes logic clearer and prevents warnings for uninitialized variables.
32653 (Layout_Array_Type): Use variant record for tracking value/expression.
32654 Makes logic clearer and prevents warnings for uninitialized variables.
32656 2001-10-30 Robert Dewar <dewar@gnat.com>
32658 * lib.adb: Minor reformatting
32660 * s-taprop.ads: Minor reformatting
32662 2001-10-29 Laurent Guerby <guerby@acm.org>
32665 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
32667 (_gnat_error_handler): Make MSG const.
32669 2001-10-29 Richard Kenner <kenner@gnat.com>
32671 * sysdep.c: Fix localtime_r problem on LynxOS.
32672 Also remove #elif to avoid warnings.
32674 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
32677 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
32679 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
32681 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
32682 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
32683 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
32684 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
32685 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
32686 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
32687 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
32688 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
32689 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
32690 types.ads, urealp.adb: Fix spelling errors.
32692 2001-10-27 Laurent Guerby <guerby@acm.org>
32694 * trans.c (gigi): Fix non determinism leading to bootstrap
32695 comparison failures for debugging information.
32697 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
32699 * gnat_rm.texi: Use @./@: where appropriate.
32701 2001-10-26 Robert Dewar <dewar@gnat.com>
32703 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
32705 2001-10-26 Richard Kenner <kenner@gnat.com>
32707 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
32709 2001-10-26 Richard Kenner <kenner@gnat.com>
32711 * decl.c (validate_size): Modify message for bad size to avoid
32712 implication that compiler is modifying the size.
32714 2001-10-26 Robert Dewar <dewar@gnat.com>
32716 * prj-util.adb: Minor reformatting. Fix bad header format.
32718 2001-10-26 Robert Dewar <dewar@gnat.com>
32720 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
32722 * sinfo.ads: Clarify use of Associated_Node (documentation only).
32724 * sem_ch12.adb: Change Node4 to Associated_Node. Change
32725 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
32726 much more narrowly in places where needed. These are cleanups.
32728 2001-10-26 Joel Brobecker <brobecke@gnat.com>
32730 * 5zosinte.ads (null_pthread): new constant.
32733 (Initialize_TCB): Initialize thread ID to null, to be able to verify
32734 later that this field has been set.
32735 (Finalize_TCB): ditto.
32736 (Suspend_Task): Verify that the thread ID is not null before using it.
32737 (Resume_Task): ditto.
32740 (Resume_All_Tasks): Lock the tasks list before using it.
32741 (Suspend_All_Tasks): ditto.
32743 2001-10-26 Richard Kenner <kenner@gnat.com>
32745 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
32746 Make constant variant of designated type for Is_Access_Constant.
32747 Call update_pointer_to with main variant.
32749 * trans.c (process_freeze_entity, process_type):
32750 Call update_pointer_to on main variant.
32752 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
32753 If main variant, update all other variants.
32755 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
32758 2001-10-26 Robert Dewar <dewar@gnat.com>
32760 * prj-util.adb: Minor reformatting
32762 2001-10-26 Robert Dewar <dewar@gnat.com>
32764 * prj-util.adb: Minor reformatting
32766 2001-10-26 Robert Dewar <dewar@gnat.com>
32768 * prj-attr.adb: Minor reformatting throughout
32770 2001-10-26 Robert Dewar <dewar@gnat.com>
32772 * prj-attr.ads: Minor reformatting
32773 Add ??? comment (this whole spec has almost no comments)
32775 2001-10-26 Vincent Celier <celier@gnat.com>
32777 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
32778 ("//") that precede the drive letter on Interix.
32780 2001-10-26 Geert Bosch <bosch@gnat.com>
32782 * gnat_rm.texi: Add GNAT Reference Manual.
32784 2001-10-25 Robert Dewar <dewar@gnat.com>
32786 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
32787 is Error. Similar change for other renaming cases.
32789 2001-10-25 Robert Dewar <dewar@gnat.com>
32791 * s-atacco.ads: Add pragma Inline_Always for functions.
32792 Fix header format. Add copyright 2001
32794 2001-10-25 Ed Schonberg <schonber@gnat.com>
32796 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
32797 return Error rather than Empty so that analysis can proceed.
32799 2001-10-25 Ed Schonberg <schonber@gnat.com>
32801 * sem_util.adb (Enter_Name): better handling of cascaded error
32802 messages when a unit appears in its own context.
32804 2001-10-25 Ed Schonberg <schonber@gnat.com>
32806 * sem_util.adb (Defining_Entity): in case of error, attach created
32807 entity to specification, so that semantic analysis can proceed.
32809 2001-10-25 Robert Dewar <dewar@gnat.com>
32812 (Defining_Entity): Deal with Error.
32813 (Process_End_Label): Deal with bad end label for.
32815 2001-10-25 Ed Schonberg <schonber@gnat.com>
32817 * sem_elab.adb (Check_A_Call): refine message when call is in an
32818 instance but callee is not declared in the generic unit.
32820 2001-10-25 Ed Schonberg <schonber@gnat.com>
32822 * sem_elab.adb (Check_A_Call): check for renaming before finding the
32823 enclosing unit, which may already be different from the calling unit.
32825 2001-10-25 Geert Bosch <bosch@gnat.com>
32827 * 4gintnam.ads: fix header format.
32829 2001-10-25 Ed Schonberg <schonber@gnat.com>
32831 * sem_res.adb (Resolve_Call): if the call is actually an indexing
32832 operation on the result of a parameterless call, perform elaboration
32833 check after the node has been properly rewritten.
32835 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
32836 inlined within the generic tree, the defining identifier is not a
32839 2001-10-25 Ed Schonberg <schonber@gnat.com>
32841 * sem_res.adb (Resolve): special-case resolution of Null in an
32842 instance or an inlined body to avoid view conflicts.
32844 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
32845 compatibility by retrieving the access type of the generic copy.
32847 2001-10-25 Robert Dewar <dewar@gnat.com>
32850 (Analyze_Number_Declaration): Handle error expression.
32851 (Signed_Integer_Type_Declaration): Handle error bound.
32852 (Analyze_Subtype_Indication): Handle error range.
32854 * sem_util.adb (Get_Index_Bounds): Check for Error.
32856 2001-10-25 Robert Dewar <dewar@gnat.com>
32858 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
32859 in no run time mode.
32861 2001-10-25 Pascal Obry <obry@gnat.com>
32863 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
32864 mode case for ALLOC case.
32866 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
32867 all platforms. Improvement of last change.
32869 2001-10-25 Robert Dewar <dewar@gnat.com>
32871 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
32873 2001-10-25 Geert Bosch <bosch@gnat.com>
32875 * osint.adb (Is_Relative): Remove duplicate.
32877 2001-10-25 Pascal Obry <obry@gnat.com>
32879 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
32880 pathnames in UNIX and DOS style with drive letter.
32881 (Is_Relative): new routine.
32883 * osint.adb: Minor reformatting
32885 * osint.adb (Is_Relative): implementation using
32886 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
32888 2001-10-25 Pascal Obry <obry@gnat.com>
32890 * g-dirope.adb (Basename): correctly compute offset between the
32891 original Path and the translated one.
32893 * g-dirope.adb: (Base_Name): add some comments.
32895 2001-10-25 Robert Dewar <dewar@gnat.com>
32897 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
32898 in HIE mode, avoids compilation abandoned message
32900 * exp_imgv.adb: Correct typo in previous change
32902 * exp_imgv.adb: Correct typo in previous change (not my day!)
32904 2001-10-25 Robert Dewar <dewar@gnat.com>
32906 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
32908 2001-10-25 Pascal Obry <obry@gnat.com>
32910 * g-awk.ads: Move all pragma inlines next to the routine
32911 declarations. This is more uniform with other GNAT spec.
32913 2001-10-22 Geert Bosch <bosch@gnat.com>
32915 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
32917 2001-10-19 Geert Bosch <bosch@gnat.com>
32919 * Makefile.in (tools, gnattools): Remove gnatmem.
32921 2001-10-17 Richard Henderson <rth@redhat.com>
32923 * Makefile.in (misc.o): Depend on langhooks.h.
32924 * misc.c: Include it.
32925 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
32926 (LANG_HOOKS_DECODE_OPTION): New.
32927 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
32929 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
32931 * trans.c (tree_transform): Adjust to recent change in
32932 expand_asm_operands to implement named asm operands.
32934 2001-10-11 Ed Schonberg <schonber@gnat.com>
32936 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
32937 renaming of discriminant for mutable record type.
32939 2001-10-11 Robert Dewar <dewar@gnat.com>
32941 * validsw.adb: Properly save -gnatVn status.
32943 2001-10-11 Robert Dewar <dewar@gnat.com>
32945 * usage.adb: Add lines for V switch.
32947 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
32948 (/VALIDITY_CHECKING).
32950 2001-10-11 Ed Schonberg <schonber@gnat.com>
32952 * sem_type.adb (Add_One_Interp): an operator for a type declared in
32953 an extension of System is known to be visible.
32955 2001-10-11 Ed Schonberg <schonber@gnat.com>
32957 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
32958 properly. Fixes regression on ACATS C34005G.
32960 2001-10-11 Robert Dewar <dewar@gnat.com>
32962 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
32963 loop in generic instance, since this is likely not very useful.
32965 2001-10-11 Robert Dewar <dewar@gnat.com>
32967 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
32968 the error message for high integrity mode.
32970 * rtsfind.adb (RTE): Give message if we try to find an entity that
32971 is not available in high integrity mode.
32974 (OK_To_Use_In_HIE_Mode): New array.
32975 (RTE): May return Empty in high integrity mode.
32977 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
32978 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
32980 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
32981 unit if not inlined always and in no runtime mode. Fixes problem
32982 caused by new Rtsfind changes.
32984 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
32987 * rtsfind.adb (RTE): Make sure we do not try to load unit after
32988 giving message for entity not available in high integrity mode.
32990 2001-10-11 Pascal Obry <obry@gnat.com>
32992 * impunit.adb: Add GNAT.CRC32.
32994 2001-10-11 Ed Schonberg <schonber@gnat.com>
32996 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
32997 properly the case where one universal operand in a non-static
32998 exponentiation of a real literal.
33000 2001-10-11 Ed Schonberg <schonber@gnat.com>
33002 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
33003 clause, return the gobal finalization list, for lack of anthing else.
33005 2001-10-11 Ed Schonberg <schonber@gnat.com>
33007 * exp_ch7.adb (Make_Transient_Block): if statement is within
33008 exception handler, always use new transient scope to place Clean
33011 2001-10-11 Pascal Obry <obry@gnat.com>
33014 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
33015 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
33016 (GNATLS_RTL_OBJS): add g-crc32.o
33017 (GNATMAKE_RTL_OBJS): add g-crc32.o
33020 (CRC_Match): new function.
33021 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
33022 instead of the previous simple checksum algorithm.
33023 (Time_Stamp_Mismatch): use CRC_Match for comparison.
33024 (Set_Source_Table): idem.
33027 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
33028 instead of simple checksum.
33029 (CRC_Match): new function.
33030 (CRC_Error): new constant.
33032 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
33033 a CRC now and not a simple checksum. A CRC uses lower-case hex
33034 letters, fixes ambiguity in parsing.
33036 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
33037 is what this variable will store.
33039 * bcheck.adb: Change reference to chechsum in comments by CRC.
33040 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
33041 rename All_Checksum_Match to All_CRC_Match. Change due to API
33042 renaming since now GNAT does not use a simple checksum but a
33043 CRC using GNAT.CRC32.
33045 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
33046 now and not anymore a simple checksum.
33048 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
33051 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
33054 (Restore_Scan_State): rename Checksum to CRC.
33055 (Save_Scan_State): idem.
33059 (Checksum): rename to CRC.
33060 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
33062 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
33063 GNAT.CRC32). Update copyright notice.
33065 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
33066 GNAT.CRC32). Update copyright notice.
33069 (Accumulate_Checksum): removed.
33070 (Update): new procedure. Add a wide-character into the CRC.
33073 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
33074 (Load_File): fix initialization of S (change Source_Checksum to
33077 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
33078 Source_CRC in S initialization.
33080 * sinput.adb (Source_Checksum): renamed to Source_CRC.
33082 * sinput.ads (Source_Checksum): renamed to Source_CRC.
33083 Update comments for the CRC.
33085 * types.adb (Hex): Use lowercase for the letter part.
33087 * types.ads (Get_Hex_String): Returns the hexadecimal representation
33088 for a word. This is currently used only for CRC. In previous version,
33089 the checksum was using a representation with all letter being
33090 upper-case. With the new implementation (using CRC) we do not remove
33091 the 32th bit of the CRC, so we can have an upper-case starting letter
33092 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
33093 It is ambigous since the CRC was optional and could be followed by
33094 options like EB, EE. So now this routines uses lower-case letter for
33095 the hexadecimal representation. Strange enough only lower case letters
33096 where checked in Scan_ALI (even if this was not a possible case).
33098 * gnatvsn.ads (Library_Version): changed to 3.15a.
33100 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
33103 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
33106 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
33107 Add 2001 to copyright notice
33108 (Accumulate_Checksum): Modify to use System.CRC32.
33110 * ali-util.ads: Redo changes of previous revision to continue to use
33111 the word Checksum. Add 2001 to copyright notice.
33113 * ali.adb: Undo some of previous changes, not needed.
33114 Keep the change for lower case letters in the checksum.
33116 * ali.ads: Undo previous change not needed.
33118 * bcheck.adb: Undo most of previous change, not needed.
33119 But do use Checksums_Match for checksum comparison.
33121 * gnatls.adb: Undo most of previous change, not needed.
33122 But do use Checksums_Match for comparing checksums.
33124 * lib-load.adb: Undo previous change, not needed.
33126 * lib-writ.adb: Undo previous change, not needed.
33128 * lib-writ.ads: Document that checksums use lower case,
33129 not upper case letters.
33131 * scans.adb: Undo previous change, not needed
33133 * scans.ads: Undo previous change, not needed.
33135 * scn-nlit.adb: Undo previous changes, not needed.
33137 * scn-slit.adb: Undo previous change, not needed. Fix header format.
33140 (Accumulate_Checksum): Use System.CRC32.
33141 (Initialize_Checksum): New procedure.
33142 Remove other changes of previous revision.
33144 * sinput-p.adb: Undo previous change, not needed.
33146 * sinput.adb: Undo previous change, not needed.
33148 * sinput-l.adb: Undo previous change, not needed.
33150 * sinput.ads: Undo previous change, not needed. Keep only comment
33151 on new checksum algorithm
33153 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
33154 Also remove a-tags and a-stream from GNAT sources.
33156 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
33158 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
33160 2001-10-11 Geert Bosch <bosch@gnat.com>
33162 * einfo.h: Regenerate.
33164 * nmake.ads: Regenerate.
33166 * nmake.adb: Regenerate.
33168 * sinfo.h: Regenerate.
33170 * treeprs.adb: Regenerate.
33172 2001-10-10 Geert Bosch <bosch@gnat.com>
33174 * gnat-style.texi: New file describing coding guidelines for Ada.
33176 2001-10-10 Ed Schonberg <schonber@gnat.com>
33178 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
33181 2001-10-10 Geert Bosch <bosch@gnat.com>
33183 * snames.ads: Add new names for project facility.
33185 * snames.adb: Update to reflect snames.ads changes.
33187 * snames.h: Update to reflect snames.ads changes.
33189 2001-10-10 Vincent Celier <celier@gnat.com>
33192 (Add_Switches): reflect the changes for the switches attributes
33193 Default_Switches indexed by the programming language,
33194 Switches indexed by the file name.
33195 (Collect_Arguments_And_Compile): Idem.
33196 Reflect the attribute name changes.
33199 (Initialisation_Data): Change the names of some packages and
33201 (Initialize): process case insensitive associative arrays.
33204 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
33207 (Parse_Attribute_Declaration): For case insensitive associative
33208 arrays, set the index string to lower case.
33211 Reflect the changes of the project attributes.
33214 Replace Check_Naming_Scheme by Ada_Check and
33215 Language_Independent_Check.
33218 Replaced Check_Naming_Scheme by 2 procedures:
33219 Ada_Check and Language_Independent_Check.
33222 (Process_Declarative_Items): For case-insensitive associative
33223 arrays, set the index string to lower case.
33224 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
33225 Prj.Nmsc.Check_Naming_Scheme.
33228 (Case_Insensitive): New function
33229 (Set_Case_Insensitive): New procedure
33232 (Case_Insensitive): New function
33233 (Set_Case_Insensitive): New procedure
33234 (Project_Node_Record): New flag Case_Insensitive.
33237 (Value_Of): new function to get the string value of a single
33238 string variable or attribute.
33241 (Value_Of): new function to get the string value of a single
33242 string variable or attribute.
33245 (Ada_Default_Spec_Suffix): New function
33246 (Ada_Default_Impl_Suffix): New function
33247 Change definitions of several constants to reflect
33248 new components of record types.
33251 (Naming_Data): Change several components to reflect new
33252 elements of naming schemes.
33253 (Project_Data): New flags Sources_Present and
33254 Language_Independent_Checked.
33255 (Ada_Default_Spec_Suffix): New function.
33256 (Ada_Default_Impl_Suffix): New function.
33259 Modification of predefined names for project manager: added
33260 Implementation, Specification_Exceptions, Implementation_Exceptions,
33261 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
33262 Default_Switches, _Languages, Builder, Cross_Reference,
33263 Finder. Removed Body_Part, Specification_Append, Body_Append,
33264 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
33267 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
33270 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
33271 not that it is Nil_Variable_Value.
33273 * prj.ads: Add ??? for uncommented declarations
33275 2001-10-10 Ed Schonberg <schonber@gnat.com>
33277 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
33278 constant, do not indicate possible modification, so that gigi can
33279 treat it as a bona fide constant.
33281 2001-10-10 Robert Dewar <dewar@gnat.com>
33283 * sem_prag.adb: Add processing for pragma External.
33285 * snames.ads: Add entry for pragma External.
33287 * par-prag.adb: Add pragma External.
33289 * snames.adb: Updated to match snames.ads.
33291 2001-10-10 Ed Schonberg <schonber@gnat.com>
33293 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
33294 a dynamic task if the allocator appears in an indexed assignment
33295 or selected component assignment.
33297 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
33298 For a dynamic task in an assignment statement, use target of
33299 assignment to generate meaningful name.
33301 2001-10-10 Ed Schonberg <schonber@gnat.com>
33303 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
33306 * einfo.ads: Body_Entity is also defined for generic package.
33307 Documentation change only
33309 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
33310 others_choice for a discriminated component initialization,
33311 convert discriminant references into the corresponding discriminals.
33313 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
33314 only if original type is private and expression has to be wrapped
33318 (Apply_Constraint_Check): Do not perform length check
33319 if expression is an aggregate with only an others_choice.
33320 (Length_N_Cond): two references to the same in_parameter
33321 (typically the discriminal in an init_proc) denote the same value.
33322 Two useful optimization uncovered by bugfixes above.
33324 2001-10-10 Robert Dewar <dewar@gnat.com>
33326 * xeinfo.adb: Change int to char in translation of enumeration types.
33327 This fixes a problem in the C representation of component alignment.
33328 Add 2001 to copyright notice
33330 2001-10-10 Richard Kenner <kenner@gnat.com>
33332 * decl.c: (validate_size): Do check size of object of integral type
33333 if it is a packed array type.
33335 2001-10-10 Richard Kenner <kenner@gnat.com>
33337 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
33338 VAR_DECL for constant if not Is_Public but -O0.
33340 2001-10-10 Richard Kenner <kenner@gnat.com>
33342 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
33344 2001-10-10 Geert Bosch <bosch@gnat.com>
33346 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
33347 use '/' as switch character, allowing for absolute file names.
33349 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
33351 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
33354 2001-10-08 Geert Bosch <bosch@gnat.com>
33356 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
33357 Automatically build utilities when files need to be regenerated.
33359 2001-10-08 Geert Bosch <bosch@gnat.com>
33361 * xsnames.adb: New utility for updating snames.ads and snames.adb
33363 2001-10-08 Zack Weinberg <zack@codesourcery.com>
33365 * Make-lang.in (ADAFLAGS): Add -W -Wall.
33366 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
33367 (gnat1): Also depend on attribs.o.
33368 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
33369 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
33370 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
33371 (ADAFLAGS): Add -W -Wall.
33372 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
33375 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
33376 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
33377 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
33378 Use $(ADAC), not $(CC), as compilation command.
33380 (gnattools): Depend directly on tools to build, don't use
33382 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
33384 * einfo.h, sinfo.h: New files (autogenerated).
33386 2001-10-08 Richard Henderson <rth@redhat.com>
33388 * comperr.adb (Abort_In_Progress): New.
33389 (Compiler_Abort): Use it to prevent recursion.
33391 2001-10-08 Robert Dewar <dewar@gnat.com>
33393 * atree.adb: Set Error_Posted in Error node, helps error recovery.
33395 * par-endh.adb (Output_End_Expected): We should also not test
33396 Error_Posted on the Error node, since now it is always set.
33398 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
33399 to help error recovery. Part of general work on 9407-004.
33401 * par.adb: Add ??? for misuse of error
33404 (Resolve): Defend against Error, fixes 9407-003.
33405 (Resolve_Discrete_Subtype_Indication): Defend against Error.
33407 * sinfo.ads (N_Error): Now has Etype field (which will be set
33408 to Any_Type to help error recovery).
33410 2001-10-08 Richard Kenner (kenner@gnat.com)
33412 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
33413 Consistently set MEM attributes from expression; fixes
33414 bootstrap failure on x86.
33416 2001-10-08 Geert Bosch (bosch@gnat.com)
33418 * 5oosinte.adb: Add 2001 to copyright notice.
33420 2001-10-08 Geert Bosch (bosch@gnat.com)
33422 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
33424 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
33426 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
33428 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
33430 2001-10-05 Geert Bosch (bosch@gnat.com)
33432 * adaint.h: Small formatting fix.
33434 2001-10-04 Geert Bosch <bosch@gnat.com>
33436 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
33437 Arg is int, not FILE *, in dummy version of functions.
33439 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
33440 Arg is int, not FILE *.
33442 2001-10-04 Geert Bosch <bosch@gnat.com>
33444 * 3lsoccon.ads: Added file, missed with initial check ins.
33446 * 4lintnam.ads: Fix header format.
33447 Change Linux to GNU/Linux.
33449 * 5iosinte.adb: Change Linux to GNU/Linux.
33451 * 5iosinte.ads: Change Linux to GNU/Linux.
33453 * 5itaprop.adb: Change Linux to GNU/Linux.
33455 * 5itaspri.ads: Change Linux to GNU/Linux.
33456 Update copyright notice.
33458 * 5lintman.adb: Change Linux to GNU/Linux.
33460 * 5lml-tgt.adb: Change Linux to GNU/Linux.
33462 * 5losinte.ads: Change Linux to GNU/Linux.
33464 * 5lsystem.ads: Change Linux to GNU/Linux.
33466 * 5qosinte.adb: Change Linux to GNU/Linux.
33468 * 5qosinte.ads: Change Linux to GNU/Linux.
33470 * 5qparame.ads: Change Linux to GNU/Linux.
33472 * 5qtaprop.adb: Change Linux to GNU/Linux.
33474 * 5qtaspri.ads: Change Linux to GNU/Linux.
33475 Add 2001 to copyright notice.
33477 * 5vintman.ads: Change Linux to GNU/Linux.
33478 Fix header format. Add 2001 to copyright notice.
33480 * g-soccon.ads: Change Linux to GNU/Linux.
33482 * g-trasym.ads: Change Linux to GNU/Linux.
33483 Add 2001 to copyright notice.
33485 * memtrack.adb: Change Linux to GNU/Linux.
33487 * s-intman.ads: Change Linux to GNU/Linux.
33488 Add 2001 to copyright notice. Fix header format.
33490 * s-stache.adb: Change Linux to GNU/Linux.
33492 * adaint.c: Change Linux to GNU/Linux.
33494 * cio.c: Change Linux to GNU/Linux.
33496 * cstreams.c: Change Linux to GNU/Linux.
33498 * init.c: Change Linux to GNU/Linux.
33500 * gmem.c: Change Linux to GNU/Linux.
33502 * tracebak.c: Change Linux to GNU/Linux.
33505 2001-10-02 Geert Bosch <bosch@gnat.com>
33507 * misc.c (insert_default_attributes): Add dummy version.