1 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
5 2010-10-05 Emmanuel Briot <briot@adacore.com>
7 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
8 (Aggregate projects): added support for parsing aggregate projects.
9 In particular, check the presence and value of the new attributes
10 related to aggregate projects, ie Project_Files, Project_Path
12 (Check_Attribute_Allowed, Check_Package_Allowed,
13 Rename_Obsolescent_Attributes): new subprogram, extracting code
14 from existing subprogram to keep their sizes smaller.
15 (Check_Aggregate_Project, Check_Abstract_Project,
16 Check_Missing_Sources): new subprograms
17 (Check): remove comments that duplicated either the name of the
18 following subprogram call, or the comment on that subprogram.
19 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
20 from Parse_Single_Project.
21 (Check_Aggregate_Imports): new subprogram.
23 2010-10-05 Vincent Celier <celier@adacore.com>
25 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
26 file has not been generated for the current source, for example if it
27 has been generated for the spec, but we are compiling the body.
29 2010-10-05 Bob Duff <duff@adacore.com>
31 * xgnatugn.adb: Remove unused procedure.
33 2010-10-04 Vincent Celier <celier@adacore.com>
35 * a-direct.adb (Copy_File): Interpret the Form parameter and call
36 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
37 the Form parameter contains an incorrect value for field preserve= or
39 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
41 (Copy_File): Indicate the interpretation of the Form parameter.
43 2010-10-04 Vincent Celier <celier@adacore.com>
45 * make.adb (Gnatmake): When there are no foreign languages declared and
46 a main in attribute Main of the main project does not exist or is a
47 source of another project, fail immediately before attempting
50 2010-10-04 Javier Miranda <miranda@adacore.com>
52 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
53 used to convert a node referencing a tag to a class-wide interface type.
54 * exp_disp.adb (Convert_Tag_To_Interface): New function.
55 (Expand_Interface_Conversion): Replace invocation of
56 Unchecked_Conversion by new function Convert_Tag_To_Interface.
57 (Write_DT): Add support for null primitives.
58 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
59 cleanup code that handles interface conversions and avoid unchecked
60 conversion of referenced tag components.
61 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
62 unrequired conversions when generating a dispatching call to _assign.
63 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
65 2010-10-04 Ed Schonberg <schonberg@adacore.com>
67 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
68 parent is a binary boolean operation and the operand is an unpacked
70 (Build_Boolean_Array_Proc_Call): If the operands are both negations, the
71 operands of the rewritten node are the operands of the negations, not
72 the negations themselves.
74 2010-10-04 Robert Dewar <dewar@adacore.com>
76 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
77 name of entity to biased warning msg.
78 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
79 biased rep (wrong and never worked anyway).
81 2010-10-04 Arnaud Charlet <charlet@adacore.com>
83 * sem_elab.adb: Minor reformatting.
85 2010-10-04 Ed Schonberg <schonberg@adacore.com>
87 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
88 an access_to_protected subprogram type, and convert null value into
89 corresponding aggregate.
91 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
93 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
95 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
97 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
98 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
101 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
103 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
104 for N_Operator_Symbol.
105 (Indicate_Name_And_Type): Likewise.
106 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
107 * sem_res.adb (Resolve): Likewise.
108 * sem_type.adb (Add_One_Interp): Likewise.
109 (Disambiguate): Likewise.
111 2010-10-04 Vincent Celier <celier@adacore.com>
113 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
114 than ALI file timestamp, return null.
116 2010-10-04 Vincent Celier <celier@adacore.com>
118 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length set to 79
119 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
120 replaces global constant with the same name. When a line is too long,
121 indent properly the next continuation line.
122 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
123 from 50 to 255, defaulted to 255, to indicate the maximum length of
124 lines in the project file.
126 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
128 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
129 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
130 of Traverse_Func on it to look for subprogram references in a body.
131 Call Check_Subprogram_Refs on the body of inlined subprograms at the
132 outer level and keep clearing the Is_Public flag of subprograms as long
133 as it returns OK. Do not look at anything else than subprograms once
134 an inlined subprogram has been seen.
136 2010-10-04 Javier Miranda <miranda@adacore.com>
138 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
139 the target object is an interface.
140 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
141 interface type then we generate an implicit conversion to force
142 displacement of the pointer to the object to reference the secondary
143 dispatch table associated with the interface.
145 2010-10-04 Robert Dewar <dewar@adacore.com>
147 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
148 Enumeration_Rep_Expr to point to the literal, not the identifier.
149 (Analyze_Enumeration_Representation_Clause): Improve error message for
150 size too small for enum rep value
151 (Analyze_Enumeration_Representation_Clause): Fix size test to use proper
152 size (RM_Size, not Esize).
154 2010-10-04 Robert Dewar <dewar@adacore.com>
156 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
158 2010-10-04 Javier Miranda <miranda@adacore.com>
160 * exp_cg.adb (Write_Call_Info): Code clean up.
162 2010-10-04 Arnaud Charlet <charlet@adacore.com>
164 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
166 2010-10-04 Robert Dewar <dewar@adacore.com>
168 * exp_cg.adb: Minor code reorganization
170 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
172 2010-10-04 Bob Duff <duff@adacore.com>
174 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
175 to make a qualified expression into a name (syntax-wise), then do not
176 consider it redundant.
178 2010-10-04 Thomas Quinot <quinot@adacore.com>
180 * sem_warn.ads: Fix typo.
182 2010-10-04 Javier Miranda <miranda@adacore.com>
184 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
186 (Write_Call_Info): Add missing support for renamed primitives.
188 2010-10-04 Thomas Quinot <quinot@adacore.com>
190 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
191 code between Make_Component_List_Assign and Make_Field_Assign.
193 2010-10-04 Vincent Celier <celier@adacore.com>
195 * prj-nmsc.adb (Get_Directories): For non extending projects that
196 declare that they have no sources, do not create a non existing object
197 or exec directory if builder switch -p is used.
199 2010-10-04 Sergey Rybin <rybin@adacore.com>
201 * gnat_ugn.texi (gnatcheck): Change the description of the report file
204 2010-10-04 Ed Falis <falis@adacore.com>
206 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
207 determine whether Set_True is called from a task or an ISR.
208 (Set_True): test for being in a task context before trying to
209 dereference Defer_Abort or Undefer_Abort.
211 2010-10-04 Robert Dewar <dewar@adacore.com>
213 * sem_res.adb, sinput-l.adb: Minor reformatting.
215 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
217 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
218 check when the target object is an interface since the expression of
219 the right hand side must only cover the interface.
221 2010-10-04 Vincent Celier <celier@adacore.com>
223 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
224 loading the main source, so that if it is preprocessed and -gnateG is
225 used, the preprocessed file is written.
226 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
227 if a subunit is from the main unit when it is loaded.
228 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
229 to True before loading a subunit.
230 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
231 to True when the main is a generic unit before loading one of its
233 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
234 file only for the main unit (spec, body and subunits).
236 2010-10-04 Vincent Celier <celier@adacore.com>
238 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
239 specified and the processed file cannot be written. Just issue a
240 warning and continue.
242 2010-10-04 Thomas Quinot <quinot@adacore.com>
244 * sem_res.adb: Minor reformatting.
246 2010-10-04 Ed Schonberg <schonberg@adacore.com>
248 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
249 is an overridden inherited operation, the desired operation is the
250 overriding one, which is the alias of the visible one.
252 2010-10-04 Ed Schonberg <schonberg@adacore.com>
254 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
255 present before deleting from the tree, when an inherited function with
256 a controlling result that returns a null extension is overridden by a
257 later declaration or body.
259 2010-10-04 Gary Dismukes <dismukes@adacore.com>
261 * checks.adb: Update comment.
263 2010-09-30 Joseph Myers <joseph@codesourcery.com>
265 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
266 and define as variables.
267 (gnat_post_options): Set optimize and optimize_size variables.
269 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
271 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
272 are not defined by target.
274 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
276 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
278 2010-09-28 Richard Henderson <rth@redhat.com>
280 * gcc-interface/misc.c (gnat_eh_personality): Use
281 targetm.except_unwind_info.
283 2010-09-28 Jan Hubicka <jh@suse.cz>
285 * gcc-interface/utils.c (handle_leaf_attribute): New function.
286 (gnat_internal_attribute_tables): Add leaf.
288 2010-09-22 Joseph Myers <joseph@codesourcery.com>
290 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
291 -include-directory, -include-directory=, -no-standard-includes,
292 -no-standard-libraries): New.
294 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
296 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
297 build_array_type with calls to build_nonshared_array_type.
298 (substitute_in_type): Likewise.
299 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
300 (LANG_HOOKS_TYPE_HASH_EQ): Define.
301 (gnat_post_options): Add 'static' keyword.
302 (gnat_type_hash_eq): New static function.
303 * gcc-interface/utils.c (fntype_same_flags_p): New function.
304 (create_subprog_type): Call it.
305 (create_index_type): Call build_nonshared_range_type and tidy up.
306 (create_range_type): Likewise.
307 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
309 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
311 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
313 (end_subprog_body): If the body is a BIND_EXPR, make its associated
314 block the top-level one.
315 (build_function_stub): Build a statement group for the whole function.
316 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
317 is used, create the enclosing block early and process first the OUT
320 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
322 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
323 not generate debug info for individual enumerators.
325 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
327 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
328 type instead of enumeral type as the dummy type built for the template
329 type of fat pointers.
331 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
333 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
334 (gnat_zaplevel): Likewise.
335 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
336 binding level for an external constant.
337 <E_Constant>: Force the local context and create a fake scope before
338 translating the defining expression of an external constant.
339 <object>: Treat external constants at the global level explicitly for
340 renaming declarations.
341 (elaborate_expression_1): Force the variable to be static if the
342 expression is global.
343 * gcc-interface/trans.c (get_elaboration_procedure): New function.
344 (call_to_gnu): Use it.
345 (gnat_to_gnu): Likewise.
346 <N_Object_Declaration>: Do not test Is_Public to force the creation of
347 an initialization variable.
348 (add_decl_expr): Discard the statement if the declaration is external.
349 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
350 the current block if it is external.
351 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
352 (gnat_zaplevel): New global function.
354 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
356 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
357 variables against zero in all cases.
358 (rest_of_type_decl_compilation): Likewise.
359 * gcc-interface/trans.c (gigi): Pass properly typed constants to
361 (call_to_gnu): Fix formatting.
362 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
363 (Exception_Handler_to_gnu_zcx): Likewise.
364 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
366 expressions in presence of a freeze node.
368 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
370 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
371 expressions for external constants that are aggregates.
372 * gcc-interface/utils2.c (build_simple_component_ref): If the field
373 is an inherited component in an extension, look through the extension.
375 2010-09-10 Vincent Celier <celier@adacore.com>
377 * projects.texi: Add documentation for package extensions
378 Add some documentation for attributes Leading_Library_Options and
379 Linker'Leading_Switches.
381 2010-09-10 Ed Schonberg <schonberg@adacore.com>
383 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
384 disabled, compute subtype for all string types.
386 2010-09-10 Robert Dewar <dewar@adacore.com>
388 * gnat_ugn.texi: Add documentation for -gnatw.s/S
389 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
390 Component_Size): Implement warning on overriden size clause.
391 (Analyze_Record_Representation_Clause): Implement warning on overriden
393 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
395 * ug_words: Add entries for -gnatw.s/S.
396 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
397 * gcc-interface/Make-lang.in: Update dependencies.
399 2010-09-10 Vincent Celier <celier@adacore.com>
401 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
402 a package with the same name from an imported or extended project.
403 * prj-proc.adb (Process_Declarative_Items): Process package extensions
405 2010-09-10 Bob Duff <duff@adacore.com>
407 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
410 2010-09-10 Robert Dewar <dewar@adacore.com>
412 * sem.adb: Minor reformatting.
414 2010-09-10 Bob Duff <duff@adacore.com>
416 * s-os_lib.ads, g-expect.ads: Add comments.
418 2010-09-10 Robert Dewar <dewar@adacore.com>
420 * exp_ch5.adb: Minor reformatting.
422 2010-09-10 Thomas Quinot <quinot@adacore.com>
424 * scos.ads: Add comments.
426 2010-09-10 Vincent Celier <celier@adacore.com>
428 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
430 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
432 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
433 for a controlled build-in-place function call which appears in an
434 anonymous context. The transient scope ensures that the intermediate
435 function result is cleaned up after the master is left.
436 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
437 of the transient scope. This is now done in Exand_Call which covers
438 additional cases other than secondary stack release.
440 2010-09-10 Arnaud Charlet <charlet@adacore.com>
442 * sem.adb (Do_Unit_And_Dependents): Add guard.
444 2010-09-10 Robert Dewar <dewar@adacore.com>
446 * exp_ch5.adb: Update comments.
447 * exp_dist.adb: Minor reformatting.
449 2010-09-10 Robert Dewar <dewar@adacore.com>
451 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
453 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
454 * usage.adb: Add lines for -gnatw.h/H
455 * gnat_ugn.texi: Add documentation for J519-010
456 Warn on record holes/gaps
457 * ug_words: Add entries for -gnatw.h/-gnatw.H
458 * vms_data.ads: Add entries for [NO]AVOIDGAPS
460 2010-09-10 Gary Dismukes <dismukes@adacore.com>
462 * sem_ch6.adb: Update comment.
464 2010-09-10 Ed Schonberg <schonberg@adacore.com>
466 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
467 of full view analyzed after analyzing the corresponding record
468 declaration, to prevent spurious name conflicts with original
471 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
473 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
474 just issue a warning, but continue with the normal processing.
476 2010-09-10 Robert Dewar <dewar@adacore.com>
478 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
481 2010-09-10 Thomas Quinot <quinot@adacore.com>
483 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
484 Build_TypeCode_Call): For a subtype inserted for the expansion of a
485 generic actual type, go to the underlying type of the original actual
488 2010-09-10 Ed Schonberg <schonberg@adacore.com>
490 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
491 guard around the increment statement, to prevent an off-by-one-value
492 on the last iteration.
494 2010-09-10 Vincent Celier <celier@adacore.com>
496 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
497 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
498 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
499 "at run time" in comments and error/warning messages.
501 2010-09-10 Ed Schonberg <schonberg@adacore.com>
503 * exp_cg.adb: Handle properly bodies without specs.
505 2010-09-10 Emmanuel Briot <briot@adacore.com>
507 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
508 present, and the user requested to either ignore this or display a
509 warning (as opposed to an error), we still need to register the
512 2010-09-10 Robert Dewar <dewar@adacore.com>
514 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
515 now done in In_Extended_Main_Source_Unit.
516 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
517 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
518 as Parsing_Main_Extended_Source.
519 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
521 * lib-load.adb (Load_Unit): Add PMES parameter
522 Set PMES appropriately in all calls to Load_Unit
523 * lib-load.ads (Load_Unit): Add PMES parameter
524 * lib.adb (In_Extended_Main_Source_Unit): When called with
525 Compiler_State set to Parsing, test new flag
526 Compiling_Main_Extended_Source.
527 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
528 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
529 as Parsing_Main_Extended_Source
530 * par-load.adb (Load): Set PMES properly in call to Load_Unit
532 2010-09-10 Ed Schonberg <schonberg@adacore.com>
534 * exp_cg.adb: Use proper entity to handle overloads.
535 * sem_res.adb (Check_Parameterless_Call): An operator node without
536 actuals cannot be a call, and must be treated as a string.
538 2010-09-10 Robert Dewar <dewar@adacore.com>
540 * frontend.adb: Minor reformatting.
542 2010-09-10 Robert Dewar <dewar@adacore.com>
544 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
545 * par-ch5.adb (P_Condition): Move from body to spec
546 * par.adb (Ch5.P_Condition): Move from body to spec
548 2010-09-10 Ed Schonberg <schonberg@adacore.com>
550 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
551 the call table is private, use its full view to generate information
554 2010-09-10 Jose Ruiz <ruiz@adacore.com>
556 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
557 pattern matching to detect predefined primitive operations take into
558 account that there can be an extra suffix related to body-nested
561 2010-09-10 Ed Schonberg <schonberg@adacore.com>
563 * s-pooglo.ads: Add overriding indicators.
565 2010-09-10 Vincent Celier <celier@adacore.com>
567 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
568 /64_MALLOC (for -H64).
570 2010-09-10 Robert Dewar <dewar@adacore.com>
572 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
573 (Error_Msg_NW): Test Parsing_Main_Subunit flag
574 * errout.ads (Parsing_Main_Subunit): New flag
575 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
576 * par-ch6.adb: Minor style fix (remove redandant parentheses)
577 * par-ch9.adb: Minor style fix (remove redundant parens)
578 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
580 2010-09-10 Vincent Celier <celier@adacore.com>
582 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
583 function of the same name in Makeutl.
584 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
585 of removed procedure when creating a binder mapping file.
586 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
588 * makeutl.ads (Create_Binder_Mapping_File): New function
590 2010-09-10 Jose Ruiz <ruiz@adacore.com>
592 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
593 separator when trying the pattern matching to detect predefined
594 primitive operations.
596 2010-09-10 Robert Dewar <dewar@adacore.com>
598 * bindgen.adb, atree.adb: Minor reformatting.
600 2010-09-10 Ben Brosgol <brosgol@adacore.com>
602 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
605 2010-09-10 Doug Rupp <rupp@adacore.com>
607 * bindgen.adb: Minor comment fix for -H switch.
609 2010-09-10 Ed Schonberg <schonberg@adacore.com>
611 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
612 library unit now, by traversing tree before context is expanded.
613 (Write_Call_Info): Use enclosing unit name directly.
614 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
615 tree earlier, to ensure that subsequent declarations are analyzed in a
617 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
620 2010-09-10 Robert Dewar <dewar@adacore.com>
622 * symbols-processing-vms-alpha.adb: Minor reformatting.
624 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
626 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
627 __gnat_install_handler in case the binder is called with -n.
629 2010-09-10 Ed Schonberg <schonberg@adacore.com>
631 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
632 sloc for renaming declaration and set Comes_From_Source properly to
633 ensure that references are properly generated for an object declaration
634 that is built in place.
636 2010-09-10 Tristan Gingold <gingold@adacore.com>
638 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
640 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
641 * gcc-interface/Makefile.in: gnat.hlp is now generated by
644 2010-09-10 Bob Duff <duff@adacore.com>
646 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
647 := ...;", remove side effects from the right-hand side, because they
648 might affect the value of the left-hand side, but the left-hand side is
649 first READ (so we can do shifting and masking) and then written back,
650 which would cause the side effects to be incorrectly overwritten.
652 2010-09-10 Robert Dewar <dewar@adacore.com>
654 * sem_ch4.adb: Minor reformatting.
655 * exp_ch6.adb: Add comment on testing limited on full type
656 * gnat_rm.texi: Add documentation on Pure_Function.
658 2010-09-10 Vincent Celier <celier@adacore.com>
660 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
661 as a source of another project and of another language.
663 2010-09-10 Robert Dewar <dewar@adacore.com>
665 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
667 * freeze.adb (Check_Unsigned_Type): Ditto.
668 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
669 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
670 (Set_Scalar_Range_For_Subtype): Ditto.
671 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
673 2010-09-10 Robert Dewar <dewar@adacore.com>
675 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
677 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
678 rather than parens for fixed constants.
679 * sprint.ads: Use square brackets rather than parens for fixed constants
680 * urealp.adb (UR_Write): Use square brackets rather than parens
681 (UR_Write): Add Brackets argument
682 (UR_Write): Add many more special cases to output literals
683 * urealp.ads (UR_Write): Use square brackets rather than parens
684 (UR_Write): Add Brackets argument
686 2010-09-10 Robert Dewar <dewar@adacore.com>
688 * sem_ch4.adb: Minor reformatting.
690 2010-09-10 Richard Guenther <rguenther@suse.de>
692 * gcc-interface/utils.c (create_index_type): Use build_range_type.
694 2010-09-10 Arnaud Charlet <charlet@adacore.com>
698 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
700 * exp_dbug.ads: Mention enhanced encoding for array types.
702 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
704 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
705 unsupported in VM targets. Display a warning in this case.
707 2010-09-10 Ed Schonberg <schonberg@adacore.com>
709 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
710 not reset Sloc when printing keyword "new".
712 2010-09-10 Vincent Celier <celier@adacore.com>
714 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
715 GNAT_DRIVER_COMMAND_LINE.
717 2010-09-10 Ed Schonberg <schonberg@adacore.com>
719 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
720 clause, process the body at once.
722 2010-09-10 Ed Schonberg <schonberg@adacore.com>
724 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
725 conversion is the expression is a qualified expression used to
726 disambiguate a function call.
728 2010-09-10 Vincent Celier <celier@adacore.com>
730 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
731 as a source of another project and of another language.
733 2010-09-10 Robert Dewar <dewar@adacore.com>
735 * prj-util.adb: Minor reformatting.
737 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
739 * exp_disp.adb: Minor reformatting.
741 2010-09-10 Arnaud Charlet <charlet@adacore.com>
743 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
746 2010-09-10 Thomas Quinot <quinot@adacore.com>
748 * sem_res.adb: Minor reformatting.
749 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
750 magic constants for task master levels (instead, reference
751 named numbers from System.Tasking).
753 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
755 * gnatvsn.ads (Ver_Prefix): New constant string.
756 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
757 (Gen_Output_File_C): Likewise.
758 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
761 2010-09-10 Ed Schonberg <schonberg@adacore.com>
763 * sem.adb (Walk_Library_Items): Do not traverse children of the main
764 unit, to prevent spurious circularities in the walk order.
765 (Depends_On_Main): Use elsewhere to prevent circularities when the body
766 of an ancestor of the main unit depends on a child of the main unit.
768 2010-09-10 Robert Dewar <dewar@adacore.com>
770 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
771 sem_ch3.adb: Minor reformatting.
773 2010-09-10 Ed Schonberg <schonberg@adacore.com>
775 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
776 that is a renaming must be derived like any other primitive operation,
777 the renamed operation is not relevant to the derivation.
779 2010-09-10 Robert Dewar <dewar@adacore.com>
781 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
782 * checks.adb: Minor reformatting.
784 2010-09-10 Robert Dewar <dewar@adacore.com>
786 * gnat_ugn.texi: Add section on intent of style checking options.
788 2010-09-10 Arnaud Charlet <charlet@adacore.com>
790 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
792 2010-09-10 Ed Schonberg <schonberg@adacore.com>
794 * sem_ch3.adb: Improve error message on derivation from class-wide type
796 2010-09-10 Steve Baird <baird@adacore.com>
798 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
799 generation when Generate_SCIL is True.
801 2010-09-10 Geert Bosch <bosch@adacore.com>
803 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
804 validity of executable name and removing any existing executable
805 (Gnatlink): Call Check_Existing_Executable.
807 2010-09-10 Arnaud Charlet <charlet@adacore.com>
809 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
810 initialization of Task_Alternate_Stack here, cleaner since in case of
811 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
814 2010-09-10 Thomas Quinot <quinot@adacore.com>
816 * s-fileio.adb, a-dirval.adb: Minor reformatting.
818 2010-09-10 Emmanuel Briot <briot@adacore.com>
820 * prj-util.adb (Executable_Of): Fix CE when the project does not
821 contain a Builder package.
823 2010-09-10 Vincent Celier <celier@adacore.com>
825 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
826 to the project path, if Prefix and Target_Name are defined.
827 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
829 2010-09-10 Ed Schonberg <schonberg@adacore.com>
831 * checks.adb (Ensure_Valid): If the expression is a boolean expression
832 or short-circuit operation, do no emit a validity check: only the
833 elementary operands of the expression need checking.
835 2010-09-10 Ben Brosgol <brosgol@adacore.com>
837 * gnat_rm.texi: Document Short_Descriptors.
839 2010-09-10 Arnaud Charlet <charlet@adacore.com>
841 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
842 initialize to Null_Address.
843 (Enter_Task): Do not set up an alternate stack for foreign threads.
845 2010-09-10 Robert Dewar <dewar@adacore.com>
847 * opt.adb (Short_Descriptors): New flag
848 (Short_Descriptors_Config): New flag
849 * opt.ads (Short_Descriptors): New flag
850 (Short_Descriptors_Config): New flag
851 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
852 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors pragma
853 (Analyze_Pragma): Implement Short_Descriptors pragma
854 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
856 2010-09-10 Emmanuel Briot <briot@adacore.com>
858 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
859 project's Executable_Suffix.
861 2010-09-10 Robert Dewar <dewar@adacore.com>
863 * g-pehage.ads: Minor reformatting
865 * gnat_ugn.texi: Clarifying comment on -gnatyc
866 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
869 2010-09-10 Tristan Gingold <gingold@adacore.com>
871 * Make-generated.in (gnat.hlp): New rule.
873 2010-09-10 Emmanuel Briot <briot@adacore.com>
875 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
878 2010-09-10 Robert Dewar <dewar@adacore.com>
880 * einfo.adb: Minor code cleanup: Add assertion to
881 Set_Corresponding_Protected_Entry.
883 2010-09-10 Bob Duff <duff@adacore.com>
885 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
886 the output to standard output.
888 2010-09-09 Vincent Celier <celier@adacore.com>
890 * gnat_ugn.texi: Add documentation for new gnatmake switch
892 * make.adb (Map_File): New global variable to store the value of switch
894 (Gnatmake): Add switch -M to gnatlink if buider switch --create-map-file
896 (Scan_Make_Arg): Recognize switch --create-map-file
897 * makeutl.ads (Create_Map_File_Switch): New constant string for new
898 gnatmake and gprbuild switch --create-map-file.
900 2010-09-09 Robert Dewar <dewar@adacore.com>
902 * sinput-p.ads: Minor comment update.
904 2010-09-09 Arnaud Charlet <charlet@adacore.com>
906 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
907 Entry_Call.State if needed so that the call is marked as cancelled by
908 Check_Pending_Actions_For_Entry_Call.
909 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
910 this procedure may be called from a controlled operation
911 (Initialize/Finalize).
913 2010-09-09 Vadim Godunko <godunko@adacore.com>
915 * impunit.adb: Correct spelling of package's name in the comment.
917 2010-09-09 Robert Dewar <dewar@adacore.com>
919 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
922 2010-09-09 Robert Dewar <dewar@adacore.com>
924 * impunit.adb: Add entry for a-izteio.
925 * checks.adb: Add comment.
926 * debug.adb, exp_disp.adb: Minor reformatting.
927 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
929 2010-09-09 Ed Schonberg <schonberg@adacore.com>
931 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
932 discriminant cannot be assumed to be the same value because they may
933 refer to bounds of a component of two different instances of a
936 2010-09-09 Gary Dismukes <dismukes@adacore.com>
938 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
939 operands of an operator to the type of an enclosing conversion, rewrite
940 the operator so the conversion can't be flagged as redundant.
941 Remove useless assignments to Typ and Rtyp.
943 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
945 * gnat_ugn.texi: Fix another long line.
947 2010-09-09 Bob Duff <duff@adacore.com>
949 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
952 2010-09-09 Matthew Heaney <heaney@adacore.com>
954 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
955 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
956 Replace_Element, Reverse_Elements, Swap): Change exception message to
957 correctly indicate kind of tampering (cursor or element).
958 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
959 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
960 Swap_Links, Replace_Element, Swap): Ditto.
961 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
962 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
963 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
964 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
965 Generic_Replace_Element): Ditto
966 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
967 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
968 Replace_Element): Ditto.
969 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
970 Symmetric_Difference, Union, Include, Replace): Ditto
972 2010-09-09 Ed Schonberg <schonberg@adacore.com>
974 * sprint.adb (Write_Id): If the parent node is an expanded name, check
975 that its entity_or_associated_node is an entity before writing it out.
976 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
977 constructors, there is no need for a dispatch table pointer because the
978 table is fully inherited from the C++ code.
980 2010-09-09 Thomas Quinot <quinot@adacore.com>
982 * projects.texi: Fix wrong identifiers on package end lines in project
984 * exp_ch6.adb: Minor reformatting.
986 2010-09-09 Tristan Gingold <gingold@adacore.com>
988 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
990 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
992 * gnat_ugn.texi: Fix description of -O3 optimization level.
994 2010-09-09 Yannick Moy <moy@adacore.com>
996 * a-cihama.adb, a-cohama.adb: Fix comments.
998 2010-09-09 Arnaud Charlet <charlet@adacore.com>
1000 * i-cexten.ads: Add comments.
1001 (Signed_128): New type, used by some C bindings.
1002 * debug.adb: Update comment.
1004 2010-09-09 Sergey Rybin <rybin@adacore.com>
1006 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
1007 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
1008 the tool should process Ada 2005 sources.
1010 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1012 * sem_ch12.adb (Remove_Parent): If the scope containing the child
1013 instance is a block, examine the enclosing scope to determine if it is
1016 2010-09-09 Doug Rupp <rupp@adacore.com>
1018 * sem_prag.adb (pragma Ident): Pass --identification= vice
1020 * gnatlink.adb (Linker_Options): Look for --identification= vice
1023 2010-09-09 Gary Dismukes <dismukes@adacore.com>
1025 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
1026 inserting and analyzing the object declaration for the temporary object
1027 created to hold a 'Old value, push the scope for the subprogram where
1028 the object is inserted, so that its Scope (and that of related objects)
1029 will be set properly.
1031 2010-09-09 Vincent Celier <celier@adacore.com>
1033 * prj.adb (Get_Object_Directory): Return object directory display name
1034 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
1035 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
1036 return this value, otherwise return the default for the platform.
1038 2010-09-09 Arnaud Charlet <charlet@adacore.com>
1040 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
1041 dependencies. Remove handling of gnatlbr.
1042 Do not remove s-stratt-xdr for the run-time when installing.
1044 2010-09-09 Robert Dewar <dewar@adacore.com>
1046 * sem_attr.adb: Minor reformatting.
1048 2010-09-09 Thomas Quinot <quinot@adacore.com>
1050 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
1051 unsigned long, not an int.
1053 2010-09-09 Vincent Celier <celier@adacore.com>
1055 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
1056 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
1057 we are not checking for equality of path or file names.
1059 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1061 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
1062 array reference, reset the Analyzed flag so that it is properly
1063 expanded when the resulting object declaration is analyzed.
1065 2010-09-09 Vincent Celier <celier@adacore.com>
1067 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
1070 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
1072 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
1073 VX_SPE_TASK option, so disable it.
1075 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1077 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
1079 (Is_Subunit_Of_Main): Handle null nodes properly.
1081 2010-09-09 Robert Dewar <dewar@adacore.com>
1083 * par-ch2.adb: Update comments.
1085 2010-09-09 Ben Brosgol <brosgol@adacore.com>
1087 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
1089 2010-09-09 Arnaud Charlet <charlet@adacore.com>
1091 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
1092 do not generate an error for compatibility with legacy code.
1093 ignored when generating SCIL.
1094 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
1096 2010-09-09 Thomas Quinot <quinot@adacore.com>
1098 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
1099 s-strxdr.adb to s-stratt-xdr.adb
1101 2010-09-09 Robert Dewar <dewar@adacore.com>
1103 * ali-util.adb (Obsolescent_Check): Removed.
1104 * gprep.adb (Obsolescent_Check): Removed.
1105 Remove Obsolescent_Check parameter in Scng instantiation
1106 * prj-err.adb (Obsolescent_Check): Removed.
1107 * prj-err.ads (Obsolescent_Check): Removed.
1108 Remove Obsolescent_Check parameter in Scng instantiation
1109 * scans.ads (Based_Literal_Uses_Colon): New flag
1110 * scn.adb (Obsolscent_Check_Flag): Removed
1111 (Obsolscent_Check): Removed
1112 (Set_Obsolescent_Check): Removed
1113 (Post_Scan): Add handling for obsolescent features
1114 * scn.ads (Obsolscent_Check): Removed
1115 (Set_Obsolescent_Check): Removed
1116 (Post_Scan): Can no longer be inlined
1117 Remove Obsolescent_Check from instantiation of Scng
1118 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
1119 (Nlit): Remove handling of obsolescent check
1120 (Scan, case '%'): Remove handling of obsolescent check
1121 (Scan, case '|'): Call Post_Scan
1122 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
1123 * scng.ads Remove Obsolescent_Check argument from Scng generic
1124 (Post_Scan): Now called for Tok_Vertical_Bar
1125 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
1127 2010-09-09 Doug Rupp <rupp@adacore.com>
1129 * gnatlbr.adb: Removed.
1130 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
1132 2010-09-09 Robert Dewar <dewar@adacore.com>
1134 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
1137 2010-09-09 Vincent Celier <celier@adacore.com>
1139 * gnatlbr.adb: Remove redundant conversions.
1141 2010-09-09 Vincent Celier <celier@adacore.com>
1143 * prj-proc.adb: Minor comment spelling error fix.
1144 * osint.ads (Env_Vars_Case_Sensitive): Use function
1145 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
1148 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1150 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
1151 resolution of conditional expressions whose dependent expressions are
1152 anonymous access types.
1154 2010-09-09 Robert Dewar <dewar@adacore.com>
1156 * a-ststio.adb: Minor code reorganization.
1157 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
1159 * types.ads: Minor reformatting.
1160 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
1161 redundant conversions.
1162 * output.adb: Minor reformatting.
1163 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
1165 * opt.ads: Add pragma Ordered for Verbosity_Level.
1166 * prj.ads: Add pragma Ordered for type Verbosity.
1168 2010-09-09 Vincent Celier <celier@adacore.com>
1170 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
1172 (Canonical_Case_Env_Var_Name): Ditto
1174 2010-09-09 Bob Duff <duff@adacore.com>
1176 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
1178 2010-09-09 Robert Dewar <dewar@adacore.com>
1180 * cstand.adb: Mark Boolean and Character types as Ordered
1181 * einfo.adb (Has_Pragma_Ordered): New flag
1182 * einfo.ads (Has_Pragma_Ordered): New flag
1183 * g-calend.ads: Mark Day_Name as Ordered
1184 * opt.ads: Mark Ada_Version_Type as Ordered
1185 (Warn_On_Unordered_Enumeration_Type): New flag
1186 * par-prag.adb: Add procdessing for pragma Ordered
1187 * s-ficobl.ads (Read_File_Mode): New subtype
1188 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
1189 * s-taskin.ads: Mark Entry_Call_State as ordered
1190 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
1192 * sem_ch6.ads: Mark Conformance_Type as Ordered
1193 * sem_prag.adb: Implement pragma Ordered
1194 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
1195 (Resolve_Comparison_Op): Diagnose unordered comparison
1196 (Resolve_Range): Diagnose unordered range
1197 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
1199 * snames.ads-tmpl: Add entry for pragma Ordered
1200 * style.ads (Check_Enumeration_Subrange): Removed
1201 * styleg.adb (Check_Enumeration_Subrange): Removed
1202 * styleg.ads (Check_Enumeration_Subrange): Removed
1203 * stylesw.adb: Remove handling of -gnatyE switch
1204 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
1205 * vms_data.ads: Remove -gnatyE entries
1206 Add -gnatw.u entries
1207 * ug_words: Entries for -gnatw.u and -gnatw.U
1208 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
1209 * gnat_rm.texi: Document pragma Ordered.
1210 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
1211 * s-tpobop.adb: Remove comparison on unordered enumeration type.
1213 2010-09-09 Vincent Celier <celier@adacore.com>
1215 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
1216 for VMS and Windows, and 1 for all other platforms.
1217 * adaint.h: New function __gnat_get_env_vars_case_sensitive
1218 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
1219 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
1220 Canonical_Case_File_Name, as we are dealing with environment variables,
1223 2010-09-09 Robert Dewar <dewar@adacore.com>
1225 * sem_util.adb: Minor reformatting
1227 2010-09-09 Vincent Celier <celier@adacore.com>
1229 * vms_data.ads: Add documentation for S_Make_Single.
1231 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1233 * sem_util.adb (Same_Object): include formal parameters.
1235 2010-09-09 Vincent Celier <celier@adacore.com>
1237 * make.adb (Queue): New package implementing a new impementation of the
1238 queue, taking into account the new switch --single-compile-per-obj-dir.
1239 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
1240 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
1241 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
1243 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
1244 switch --single-compile-per-obj-dir.
1245 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
1246 switch --single-compile-per-obj-dir.
1247 * gnat_ugn.texi: Add documentation for new gnatmake switch
1248 --single-compile-per-obj-dir.
1250 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1252 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
1254 2010-09-09 Javier Miranda <miranda@adacore.com>
1256 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
1257 (Replace_Type): Code cleanup.
1258 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
1260 2010-09-09 Thomas Quinot <quinot@adacore.com>
1262 * exp_ch8.adb: Minor reformatting.
1264 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1266 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
1267 Corresponding_Protected_Entry.
1269 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1271 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
1272 inequality, it is always rewritten as the negation of the corresponding
1274 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
1275 the predefined equality of an untagged record, create a body at the
1276 point of the renaming, to capture the current meaning of equality for
1279 2010-09-09 Robert Dewar <dewar@adacore.com>
1281 * sem.adb, sem_warn.adb: Minor reformatting.
1283 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1285 * sem_ch6.adb: Improve error message on untagged equality.
1286 * sem.adb (Semantics): Include subprogram bodies that act as spec.
1288 2010-09-09 Javier Miranda <miranda@adacore.com>
1290 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
1292 2010-09-09 Robert Dewar <dewar@adacore.com>
1294 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
1296 2010-09-09 Robert Dewar <dewar@adacore.com>
1298 * einfo.adb (Is_Aggregate_Type): New function.
1299 * einfo.ads (Aggregate_Kind): New enumeration subtype
1300 (Is_Aggregate_Type): New function.
1301 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
1304 2010-09-09 Robert Dewar <dewar@adacore.com>
1306 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
1307 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
1309 * restrict.ads, restrict.adb: Ditto.
1310 (Restriction_Check_Needed): New function
1312 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1314 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
1315 Build_Master_Entity, to find the proper scope for the master entity of
1316 a type that may contain tasks, in the presence of transient scopes.
1317 * exp_ch9.adb (Build_Master_Entity) Use new function.
1318 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
1320 2010-09-09 Vincent Celier <celier@adacore.com>
1322 * prj-attr.adb: Add new attributes Leading_Library_Options and
1323 Linker'Leading_Switches.
1324 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
1327 2010-09-09 Javier Miranda <miranda@adacore.com>
1329 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
1330 dispatching primitive covers some interface primitive is incomplete.
1331 Replace such code by the invocation of a new subprogram that provides
1333 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
1334 * sem_ch6.adb (Check_Missing_Return): Minor reformating
1335 (Check_Convention): Complete if-statement conditition when reporting
1336 errors (to avoid assertion failure).
1337 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
1338 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
1339 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
1340 overridden null interface primitives.
1341 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
1342 private type is an interface then use the parent of its full view to
1343 climb to its ancestor type.
1344 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
1345 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
1346 null interface primitives.
1347 (Is_Null_Interface_Primitive): New subprogram.
1348 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
1349 (Expand_Freeze_Record_Type): Do not generate specs of null interface
1350 subprograms because they are now generated by Analyze_Freeze_Entity.
1352 2010-09-09 Robert Dewar <dewar@adacore.com>
1354 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
1356 2010-09-09 Robert Dewar <dewar@adacore.com>
1358 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
1359 (Gen_Restrictions_C): Avoid explicit enumeration ranges
1360 (Set_String_Replace): New procedure
1361 * casing.ads (Known_Casing): New subtype declaration
1362 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
1364 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
1365 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
1366 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
1367 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
1368 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
1370 * sem_res.adb (Resolve_Range): Check for enumeration subrange style rule
1371 * sem_type.adb (Is_Array_Class_Record_Type): New.
1372 * style.ads (Check_Enumeration_Subrange): New procedure
1373 * styleg.adb (Check_Enumeration_Subrange): New procedure
1374 * styleg.ads (Check_Enumeration_Subrange): New procedure
1375 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
1376 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
1377 * usage.adb: Add line for -gnatyE
1378 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
1379 Add missing entry for NOBOOLEAN_OPERATORS
1380 * gnat_ugn.texi: Add documentation for -gnatyE
1382 2010-09-09 Robert Dewar <dewar@adacore.com>
1384 * namet.adb (Initialize): Is now a dummy procedure
1385 (Reinitialize): New procedure
1386 Call Reinitialize from package initialization
1387 * namet.ads (Initialize): Is now a dummy procedure
1388 (Reinitialize): New procedure
1389 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
1390 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
1393 2010-09-09 Bob Duff <duff@adacore.com>
1395 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
1397 2010-09-09 Robert Dewar <dewar@adacore.com>
1399 * s-bitops.adb (Raise_Error): Add exception message
1401 2010-09-09 Robert Dewar <dewar@adacore.com>
1403 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
1404 null statement after label.
1405 * sinfo.ads: Minor comment updates.
1407 2010-09-09 Robert Dewar <dewar@adacore.com>
1409 * nlists.ads, nlists.adb (In_Same_List): New function.
1410 Use Node_Or_Entity_Id where appropriate.
1411 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
1413 2010-09-09 Robert Dewar <dewar@adacore.com>
1415 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
1417 * sem_ch3.adb: Use Check_Wide_Character_Restriction
1418 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
1419 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
1420 (Find_Expanded_Name): Check violation of No_Wide_Characters
1422 2010-09-09 Robert Dewar <dewar@adacore.com>
1424 * par-ch5.adb: Minor reformatting.
1426 2010-09-09 Robert Dewar <dewar@adacore.com>
1428 * prj-env.adb: Minor code reorganization.
1429 * par-ch3.adb: Minor reformatting.
1430 * gcc-interface/Make-lang.in: Update dependencies.
1432 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1434 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
1435 a task declaration can be an entry body.
1437 2010-09-09 Javier Miranda <miranda@adacore.com>
1439 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
1440 tags of library level tagged types.
1441 (Make_Tags): Disable backend optimizations about aliasing for
1442 declarations of access to dispatch tables.
1444 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1446 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
1447 subtype for a null-excluding access type, recover the original
1448 subtype_mark to get the proper visibility on the original name.
1450 2010-09-09 Ed Schonberg <schonberg@adacore.com>
1452 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
1453 create the primitive equality operation for an untagged record. The
1454 operation is the predefined equality if no record component has a
1455 user-defined equality, or if there is a user-defined equality for the
1456 type as a whole, or when the type is derived and it has an inherited
1457 equality. Otherwise the body of the operations is built as for tagged
1459 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
1460 (Make_Eq_Body): New function to create the expanded body of the equality
1461 operation for tagged and untagged records. In both cases the operation
1462 composes, and the primitive operation of each record component is used
1463 to generate the equality function for the type.
1464 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
1465 has an abstract equality defined, replace its call with a
1466 Raise_Program_Error.
1467 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
1468 user-defined equality operator for an untagged record type does not
1469 happen after type is frozen, and appears in the visible part if partial
1470 view of type is not limited.
1472 2010-09-09 Tristan Gingold <gingold@adacore.com>
1474 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
1476 2010-09-09 Bob Duff <duff@adacore.com>
1478 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
1480 2010-09-09 Pascal Obry <obry@adacore.com>
1482 * gnat_ugn.texi: Update doc on windows related topics.
1484 2010-09-09 Geert Bosch <bosch@adacore.com>
1486 * s-fatgen.adb: Update comments.
1488 2010-09-09 Robert Dewar <dewar@adacore.com>
1490 * par-ch4.adb (Box_Error): New procedure.
1492 2010-09-09 Thomas Quinot <quinot@adacore.com>
1494 * sem.adb: Minor reformatting.
1496 2010-09-09 Pascal Obry <obry@adacore.com>
1498 * prj-env.adb: Style fix, use /and then/ and /or else/.
1499 * gnat_ugn.texi: Fix typos.
1501 2010-09-03 Joseph Myers <joseph@codesourcery.com>
1504 * gcc-interface/misc.c (gnat_init_options): Allow options with
1505 empty canonical form. Generate a single save_argv element from -I
1508 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
1510 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
1511 Attach fake PARM_DECLs to the topmost block of the function.
1513 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
1515 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
1516 for the call to a function whose return type was unconstrained.
1518 2010-08-30 Olivier Hainque <hainque@adacore.com>
1520 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
1521 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
1522 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
1524 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
1526 * tracebak.c: Fix typo in comment.
1528 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1530 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
1531 * gcc-interface/trans.c: Likewise.
1532 * gcc-interface/utils.c: Likewise.
1534 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
1536 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
1538 2010-08-10 Robert Dewar <dewar@adacore.com>
1540 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
1541 * sem_util.adb: Minor reformatting.
1543 2010-08-10 Javier Miranda <miranda@adacore.com>
1545 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
1546 constructors that leave the object partially initialized.
1547 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
1548 that copies from parent of Typ the dispatch table slots of inherited
1549 C++ primitives. It handles primary and secondary dispatch tables.
1550 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
1551 use this attribute with E_Variable entities.
1552 (Set_Is_Tag): Relax assertion to allow its use with variables that
1554 (Set_Related_Type): Relax assertion to allow its use with variables
1555 that store the tag of a C++ class.
1556 (Write_26_Field_Name): Remove Related_Type.
1557 (Write_27_Field_Name): Add Related_Type.
1558 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
1559 with E_Variable entities.
1560 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
1562 * sem_util.adb (Search_Tag): Add missing support for CPP types.
1563 (Enclosing_CPP_Parent): New subprogram.
1564 (Has_Suffix): New subprogram.
1565 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
1566 closest ancestor of a type that is a C++ type.
1567 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
1569 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
1570 instance in derivations of C++ types.
1571 * exp_tss.adb (CPP_Init_Proc): New subprogram.
1572 (Is_CPP_Init_Proc): New subprogram.
1573 (Set_TSS): Handle new C++ init routines.
1574 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
1576 (CPP_Init_Proc): New subprogram.
1577 (Is_CPP_Init_Proc): New subprogram.
1578 * exp_disp.adb (CPP_Num_Prims): New subprogram.
1579 (Has_CPP_Constructors): New subprogram.
1580 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
1581 initialize slots located in the C++ part of the dispatch table.
1582 (Make_Tags): For CPP types declare variables used by the IP routine to
1583 store the C++ tag values after the first invocation of the C++
1585 (Build_CPP_Init_DT): New subprogram.
1586 (Set_CPP_Constructors): New implementation that builds an IP for each
1587 CPP constructor. These IP are wrappers of the C++ constructors that,
1588 after the first invocation of the constructor, read the C++ tags from
1589 the object and save them locally. These copies of the C++ tags are used
1590 by the IC routines to initialize tables of Ada derivations of CPP types.
1591 (Write_DT): Indicate what primitives are imported from C++
1592 * exp_disp.ads (CPP_Num_Prims): New subprogram.
1593 (Has_CPP_Constructors): New subprogram.
1594 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
1595 invoke the IC routine to inherit the slots of the parents.
1596 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
1597 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
1598 (Is_Variable_Size_Record): Factorize code calling
1599 Is_Variable_Size_Array.
1600 (Build_CPP_Init_Procedure): New subprogram that builds the tree
1601 corresponding to the procedure that initializes the C++ part of the
1602 dispatch table of an Ada tagged type that is a derivation of a CPP type.
1603 (Build_Init_Procedure): Adding documentation plus code reorganization to
1604 leave more clear the construction of the IP with C++ types.
1605 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
1606 it cannot be called after Make_Tags has been invoked.
1607 (Inherit_CPP_Tag): Removed.
1608 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
1609 located at variable offset.
1610 * freeze.ads: Minor reformating.
1611 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
1613 * gcc-interface/Make-lang.in: Update dependencies.
1615 2010-08-10 Robert Dewar <dewar@adacore.com>
1617 * a-chahan.ads: Add comments on handling of obsolescent entries.
1618 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
1619 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
1620 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
1621 * sem_attr.adb (Analyze_Access_Attribute): Call
1622 Check_Obsolescent_2005_Entity to check for access to obsolescent
1623 Ada.Characters.Handling subprogram.
1624 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
1625 type is obsolescent in Ada 2005.
1626 (Analyze_Attribute, case Constrained): Better placement of flag when
1627 flagged as obsolescent feature.
1628 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
1629 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
1630 is an obsolescent feature.
1631 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
1633 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
1634 Check_Obsolescent_2005_Entity to check for renaming obsolete
1635 Ada.Characters.Handling subprogram.
1636 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
1637 for obsolescent restrictions in Ada 2005.
1638 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
1639 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
1640 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
1641 check for obsolescent references to Ada.Characters.Handling subprograms
1643 2010-08-10 Robert Dewar <dewar@adacore.com>
1645 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
1647 2010-08-10 Robert Dewar <dewar@adacore.com>
1649 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
1650 * par-ch4.adb: Change wording of Ada 2012 messages
1651 * vms_data.ads: Add VMS entries for /2005, /12, /2012
1653 2010-08-10 Robert Dewar <dewar@adacore.com>
1655 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
1656 codes in the range 16#80#..16#7FF#.
1657 * sem_ch10.adb: Minor reformatting.
1659 2010-08-10 Arnaud Charlet <charlet@adacore.com>
1661 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
1662 generate ali files in CodePeer mode, so that a gnatmake -c -k will
1663 proceed further when possible
1664 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
1665 messages when ignoring representation clauses (-gnatI).
1667 2010-08-10 Ed Schonberg <schonberg@adacore.com>
1669 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
1670 constant-fold discriminant reference if the constraint is an object
1671 with non-static expression. Expression may contain volatile references
1672 in the presence of renamings.
1674 2010-08-10 Vincent Celier <celier@adacore.com>
1676 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
1678 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
1679 index for an associative array where it is allowed.
1681 2010-08-10 Thomas Quinot <quinot@adacore.com>
1683 * exp_attr.adb: Add comments.
1685 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
1687 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
1689 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1691 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
1693 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
1695 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
1696 (build_vms_descriptor): Likewise.
1698 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1700 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
1701 (build_vms_descriptor32): Adjust calls to it for new parameter.
1702 (build_vms_descriptor): Likewise.
1704 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1706 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
1707 (build_variant_list): Take and return a VEC instead of a tree.
1708 (create_variant_part_from): Take a VEC instead of a tree for
1709 variant_list. Adjust accordingly.
1710 (gnat_to_gnu_entity): Adjust for changes to previous functions.
1712 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
1714 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
1716 (components_to_record): Likewise.
1717 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
1718 * gcc-interface/utils.c (max_size): Likewise.
1719 (build_vms_descriptor32): Likewise.
1720 (build_vms_descriptor): Likewise.
1722 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
1724 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
1725 (build_subst_list): Return a VEC instead of a tree.
1726 (build_variant_list): Take a VEC for subst_list. Adjust
1728 (create_field_decl_from): Likewise.
1729 (create_variant_part_from): Likewise.
1730 (copy_and_substitute_in_size): Likewise.
1731 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
1732 Free the built vector.
1734 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
1736 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
1737 allocator for large imported objects.
1739 2010-08-05 Robert Dewar <dewar@adacore.com>
1741 * gnat1drv.adb: Minor reformatting.
1743 2010-08-05 Ed Schonberg <schonberg@adacore.com>
1745 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
1746 instantiation, process its body before the spec of the main unit,
1747 because it may contain subprograms invoked in the spec of main.
1748 * einfo.ads: Add documention of delayed freeze.
1750 2010-08-05 Vincent Celier <celier@adacore.com>
1752 * prj-nmsc.adb (Process_Linker): Take into account new values for
1753 attribute Response_File_Format.
1754 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
1755 GCC_Object_List and GCC_Option_List.
1757 2010-08-05 Ed Schonberg <schonberg@adacore.com>
1759 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
1760 selected component that denotes a discriminant if it is the
1761 discriminant of a component of an unconstrained record type.
1763 2010-08-05 Ed Schonberg <schonberg@adacore.com>
1765 * exp_util.adb (Insert_Actions): If the action appears within a
1766 conditional expression that is already analyzed, insert action further
1769 2010-08-05 Robert Dewar <dewar@adacore.com>
1771 * exp_ch4.adb: Minor reformatting.
1773 2010-08-05 Thomas Quinot <quinot@adacore.com>
1775 * exp_ch4.adb: Minor reformatting
1776 * gnat1drv.adb: Minor reformatting.
1777 Minor code reorganization (use Nkind_In).
1779 2010-08-05 Ed Schonberg <schonberg@adacore.com>
1781 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
1782 determine whether the expression in an address clause for an
1783 initialized object must be constant. Code moved from freeze.adb.
1784 (Remove_Side_Effects): When the temporary is initialized with a
1785 reference, indicate that the temporary is a constant as done in all
1787 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
1788 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
1789 If object does not need a constant address, remove side effects from
1790 address expression, so it is elaborated at the point of the address
1791 clause and not at the freeze point of the object, so that elaboration
1794 2010-08-05 Vincent Celier <celier@adacore.com>
1796 * prj.adb (Is_Compilable): Return False for header files of non Ada
1799 2010-08-05 Emmanuel Briot <briot@adacore.com>
1801 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
1802 exec directory as a warning rather than an error.
1804 2010-08-05 Thomas Quinot <quinot@adacore.com>
1806 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
1809 2010-08-05 Steve Baird <baird@adacore.com>
1811 * exp_util.adb (Remove_Side_Effects): An access value which designates
1812 a volatile object of a nonvolatile type is prohibited.
1813 Do not call Make_Reference to construct a reference to such an object.
1815 2010-08-05 Robert Dewar <dewar@adacore.com>
1817 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
1818 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
1819 a-suewen.adb, a-suewen.ads: New files.
1820 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
1822 * sem_elab.adb: Minor reformatting.
1824 2010-08-05 Arnaud Charlet <charlet@adacore.com>
1826 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
1827 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
1828 in case of null Comp.
1830 2010-08-05 Robert Dewar <dewar@adacore.com>
1832 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
1834 2010-08-05 Gary Dismukes <dismukes@adacore.com>
1836 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
1837 nested access type whose designated type has tasks or is a protected
1838 object when the restrictions No_Task_Hierarchy or
1839 No_Local_Protected_Objects apply. Add ??? comment.
1840 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
1841 type is not a library-level type and No_Local_Protected_Objects applies.
1842 (Analyze_Task_Type): Give a warning when a task type is not a
1843 library-level type and No_Task_Hierarchy applies.
1845 2010-08-05 Arnaud Charlet <charlet@adacore.com>
1847 * sem.adb: Minor reformatting
1848 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
1851 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
1853 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
1855 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
1856 for the debug-only entity.
1857 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
1859 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1861 * gcc-interface/lang-specs.h: Don't pass -a options.
1863 2010-07-28 Joseph Myers <joseph@codesourcery.com>
1865 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
1866 options. Check canonical_option_num_elements on options copied.
1868 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1870 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
1871 return value type. Don't check for missing arguments here.
1873 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1875 * gcc-interface/misc.c (gnat_option_lang_mask): New.
1876 (gnat_init_options): Update prototype. Reconstruct argv array
1877 from decoded options.
1879 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
1881 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
1882 case, merge the alias set of the old pointer type.
1884 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
1886 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
1887 and recurse only for multidimensional array types instead.
1889 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
1892 * gcc-interface/utils.c (convert): Fix thinko in test.
1893 (unchecked_convert): When converting from a scalar type to a type with
1894 a different size, pad to have the same size on both sides.
1896 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
1898 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
1899 equality for the component type of array types.
1901 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1903 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1904 * gcc-interface/trans.c: Likewise.
1905 * gcc-interface/utils.c: Likewise.
1906 * gcc-interface/utils2.c: Likewise.
1908 2010-07-13 Laurent GUERBY <laurent@guerby.net>
1911 * gcc-interface/targtyps.c: Include tm_p.h.
1912 * gcc-interface/Make-lang.in: Update dependencies.
1914 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
1916 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
1919 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1921 * gcc-interface/utils.c: Include diagnostic-core.h in every file
1922 that includes toplev.h.
1924 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
1926 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
1927 Branch to common code handling the alignment of discrete types.
1928 <E_Signed_Integer_Type>: Likewise.
1929 <E_Modular_Integer_Type>: Likewise.
1931 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1933 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
1934 (gnat_handle_option): Allocate only one element for gnat_argv.
1935 (gnat_init): Do not populate gnat_argv.
1937 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1939 * gcc-interface/trans.c: Do not include tree-flow.h.
1940 * gcc-interface/Make-lang.in: Adjust dependencies.
1942 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1944 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
1945 of a TREE_LIST. Update comment.
1946 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
1947 Adjust call to gnat_build_constructor.
1948 (Attribute_to_gnu): Likewise.
1949 (gnat_to_gnu): Likewise.
1950 (pos_to_constructor): Likewise.
1951 (extract_values): Likewise.
1952 * gcc-interface/utils.c (build_template): Likewise.
1953 (convert_vms_descriptor64): Likewise.
1954 (convert_vms_descriptor32): Likewise.
1955 (convert_to_fat_pointer): Likewise.
1956 (convert): Likewise.
1957 (unchecked_convert): Likewise.
1958 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
1959 * gcc-interface/utils2.c (build_allocator): Likewise.
1960 (fill_vms_descriptor): Likewise.
1961 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
1962 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
1963 instead of TREE_LISTs.
1965 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1967 * gcc-interface/misc.c: Do not include except.h.
1968 * gcc-interface/Make-lang.in: Update dependencies.
1970 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
1972 * gcc-interface/trans.c: Include tree-flow.h.
1973 (gnu_switch_label_stack): Delete.
1974 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
1975 its associated block cannot fall through. Do not emit the final label
1976 if no cases branch to it.
1977 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
1979 2010-06-23 Thomas Quinot <quinot@adacore.com>
1981 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
1982 reference to a protected subprogram outside of the protected's scope,
1983 ensure the corresponding external subprogram is frozen before the
1986 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1988 * sem_prag.adb: Fix typo in error message.
1989 * sem.adb: Refine previous change.
1991 2010-06-23 Robert Dewar <dewar@adacore.com>
1993 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
1994 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
1995 Implement Ada 2012 string encoding packages.
1997 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1999 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
2000 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
2001 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
2002 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
2004 * gcc-interface/Makefile.in: Enable use of above files.
2006 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2008 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
2009 of address clauses if if Ignore_Rep_Clauses is active.
2010 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
2011 remove address clause from tree so that it does not reach the backend.
2013 2010-06-23 Arnaud Charlet <charlet@adacore.com>
2015 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
2016 expand 'Valid from user code in CodePeer mode, will be handled by the
2019 2010-06-23 Bob Duff <duff@adacore.com>
2021 * g-comlin.ads: Minor comment improvements.
2023 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2025 * sem_res.adb (Uses_SS): The expression that initializes a controlled
2026 component of a record type may be a user-defined operator that is
2027 rewritten as a function call.
2029 2010-06-23 Bob Duff <duff@adacore.com>
2031 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
2033 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
2035 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
2036 label to the new sequence of statements. Set the sloc of the raise
2037 statement onto the new goto statements.
2039 2010-06-23 Robert Dewar <dewar@adacore.com>
2041 * a-stuten.ads, a-stuten.adb: New files.
2042 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
2043 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
2045 2010-06-23 Robert Dewar <dewar@adacore.com>
2047 * gnat_ugn.texi: Add documentation of -gnat12 switch
2048 Add documentation of -gnatX switch.
2050 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2052 * inline.ads: Include the current Ada_Version in the info for pending
2053 instance bodies, so that declaration and body are compiled with the
2055 * inline.adb: Move with_clause for Opt to spec.
2056 * sem_ch12.adb (Analyze_Package_Instantiation,
2057 Analyze_Subprogram_Instantiation): Save current Ada_Version in
2058 Pending_Instantiation information.
2059 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
2060 Inline_Package_Body): Use the Ada_Version present in the body
2063 2010-06-23 Robert Dewar <dewar@adacore.com>
2065 * usage.adb: Add documentation for -gnat12 switch.
2066 * errout.ads: Add VMS alias entry for -gnat12 switch
2067 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
2068 Add documentation for pragma Extensions_Allowed.
2069 * opt.ads: Add entry for Ada 2012 mode.
2070 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
2072 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
2074 * sem_ch13.adb: Add handling for Ada 2012 mode.
2075 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
2076 * switch-c.adb: Add handling for -gnat12 switch.
2077 Implement -gnat2005 and -gnat2012.
2078 * usage.adb: Add documentation for -gnat12 switch.
2079 * vms_data.ads: Add /12 switch for Ada 2012 mode.
2081 2010-06-23 Arnaud Charlet <charlet@adacore.com>
2083 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
2084 No_Task_Hierarchy restriction. Add comment.
2085 * exp_ch9.adb, exp_ch3.adb: Update comments.
2087 2010-06-23 Robert Dewar <dewar@adacore.com>
2089 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
2090 * sem_res.adb: Add comments.
2091 * sem_util.adb: Minor reformatting. Add comments.
2092 Change increment on Actuals_In_Call table.
2093 * opt.ads: Minor: add 'constant'.
2095 2010-06-23 Javier Miranda <miranda@adacore.com>
2097 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
2098 TSD to Null_Address if No_Dispatching_Calls is active.
2100 2010-06-23 Vincent Celier <celier@adacore.com>
2102 * a-comlin.ads: Indicate that use of this package is not supported
2103 during the elaboration of an auto-initialized Stand-Alone Library.
2105 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2107 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
2108 alignment clause on a record type to determine if a component may be
2109 misaligned. The decision must be taken in the back-end where target
2110 alignment information is known.
2112 2010-06-23 Arnaud Charlet <charlet@adacore.com>
2114 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
2115 systematically in CodePeer mode to simplify generated code.
2116 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
2117 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
2118 No_Task_Hierarchy is set instead of crasshing.
2120 2010-06-23 Thomas Quinot <quinot@adacore.com>
2122 * sem_util.adb: Minor code cleanup: test for proper entity instead of
2123 testing just Chars attribute when checking whether a given scope is
2125 * exp_ch4.adb, einfo.adb: Minor reformatting.
2127 2010-06-23 Vincent Celier <celier@adacore.com>
2130 * switch-m.adb (Normalize_Compiler_Switches): Take into account
2131 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
2132 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
2134 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2136 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
2137 operation with a universal real operand, and the right operand is a
2138 range with universal bounds, find unique fixed point that may be
2139 candidate, and warn appropriately.
2141 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2143 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
2144 properly the rare cases where VMS operators are visible through
2145 Extend_System, but the default System is being used and Address is a
2147 * sem_util.adb: Widen predicate Is_VMS_Operator.
2149 2010-06-23 Vincent Celier <celier@adacore.com>
2151 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
2154 2010-06-23 Olivier Hainque <hainque@adacore.com>
2156 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
2157 Interface_Name as foreign. These are GCC builtin imports for
2158 which Ada specific processing doesn't apply.
2160 2010-06-23 Thomas Quinot <quinot@adacore.com>
2162 * sem_ch12.adb: Minor reformatting.
2164 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2166 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
2167 determine whether an intrinsic subprogram is VMS specific.
2169 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
2171 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
2172 is present in the entity.
2174 2010-06-23 Arnaud Charlet <charlet@adacore.com>
2176 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
2177 Fix handling of parameters.
2178 Add protection against unexpected cases.
2179 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
2180 access level, since "A" suffix is already used elsewhere. Similarly,
2181 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
2184 2010-06-23 Thomas Quinot <quinot@adacore.com>
2186 * sem_util.adb, sem_util.ads: Minor reformatting.
2188 2010-06-23 Vincent Celier <celier@adacore.com>
2190 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
2191 the previous behavior of gprclean when there are missing files.
2193 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2195 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
2196 generic body is not a fatal error.
2197 (Mark_Context): Handle properly names of child units.
2198 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
2201 2010-06-23 Vincent Celier <celier@adacore.com>
2203 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
2206 2010-06-23 Bob Duff <duff@adacore.com>
2208 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
2209 Memory_Space, because CPU_Time doesn't seem to provide any significant
2210 speed advantage in practice. Cleanup: Get rid of constant
2211 Default_Optimization; doesn't seem to add anything. Use case
2212 statements instead of if statements; seems cleaner.
2214 2010-06-23 Olivier Hainque <hainque@adacore.com>
2216 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
2217 Wshadow instead of Wextra to guard warning on absence of internal
2218 builtin decl for an import. Fix use of quote in warning text.
2219 (intrin_arglists_compatible_p): Remove processing of integer trailing
2220 args on the Ada side. Fix use of literal > in warning text.
2221 (intrin_return_compatible_p): Never warn on "function imported as
2222 procedure". Defer the void/void case to the common type compatibility
2224 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
2225 of GCC builtin imports.
2227 2010-06-23 Olivier Hainque <hainque@adacore.com>
2229 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
2231 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
2232 functions, helpers for ...
2233 (intrin_profiles_compatible_p): New function, replacement for ...
2234 (compatible_signatures_p): Removed.
2235 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
2236 attempt to bind an unregistered builtin function. When we have
2237 one, use it and warn on profile incompatibilities.
2239 2010-06-23 Arnaud Charlet <charlet@adacore.com>
2241 * gcc-interface/Make-lang.in: Update dependencies.
2243 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2245 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
2246 for a coextension in an object declaration is a concatenation, treat
2247 coextension as dynamic.
2249 2010-06-23 Javier Miranda <miranda@adacore.com>
2251 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
2252 internal entities are added to the scope of the tagged type.
2253 (Derive_Subprograms): Do not stop derivation when we find the first
2254 internal entity that has attribute Interface_Alias. After the change
2255 done to Override_Dispatching_Operations it is no longer true that
2256 these primirives are always located at the end of the list of
2258 * einfo.ads (Primitive_Operations): Add documentation.
2259 * exp_disp.adb (Write_DT): Improve output adding to the name of the
2260 primitive a prefix indicating its corresponding tagged type.
2261 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
2262 entity covers the primitive of an interface that is not an ancestor of
2263 this tagged type then the new primitive is added at the end of the list
2264 of primitives. Required to fulfill the C++ ABI.
2266 2010-06-23 Javier Miranda <miranda@adacore.com>
2268 * atree.ads (Set_Reporting_Proc): New subprogram.
2269 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
2270 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
2271 to routines of package Scil_ll by indirect call to the registered
2273 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
2274 that is invoked when a node is allocated, replaced or rewritten.
2275 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
2276 the SCIL node. Used as argument for Set_Reporting_Proc.
2277 (Initialize): Register Copy_SCIL_Node as the reporting routine that
2278 is invoked by atree.
2280 2010-06-23 Thomas Quinot <quinot@adacore.com>
2282 * sem_ch3.ads: Minor reformatting.
2284 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2286 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
2287 always analyze the generic body and instance, because it may be needed
2289 (Mark_Context): Prepend the with clauses for needed generic units, so
2290 they appear in a better order for CodePeer.
2291 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
2293 2010-06-23 Emmanuel Briot <briot@adacore.com>
2295 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
2297 2010-06-23 Robert Dewar <dewar@adacore.com>
2299 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
2301 2010-06-23 Thomas Quinot <quinot@adacore.com>
2303 * a-tags.ads: Fix description of TSD structure.
2305 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2307 * sem_ch12.adb (Mark_Context): When indicating that the body of a
2308 generic unit is needed prior to the unit containing an instantiation,
2309 search recursively the context of the generic to add other generic
2310 bodies that may be instantiated indirectly through the current instance.
2312 2010-06-23 Robert Dewar <dewar@adacore.com>
2314 * freeze.adb: Minor reformatting.
2316 2010-06-23 Bob Duff <duff@adacore.com>
2318 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
2320 2010-06-23 Vincent Celier <celier@adacore.com>
2322 * make.adb (Compile_Sources): Complete previous change.
2324 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2326 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
2327 Constrained extra formal.
2329 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2331 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
2332 Initialize_Scalars are enabled, compile the generated equality function
2333 for a composite type with full checks enabled, so that validity checks
2334 are performed on individual components.
2336 2010-06-23 Emmanuel Briot <briot@adacore.com>
2338 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
2339 Missing_Source_Files.
2341 2010-06-23 Robert Dewar <dewar@adacore.com>
2343 * exp_ch3.adb, exp_util.adb: Minor reformatting.
2345 2010-06-23 Jose Ruiz <ruiz@adacore.com>
2347 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
2348 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
2349 Clock (without delays) use a run time which is properly initialized.
2351 2010-06-23 Vincent Celier <celier@adacore.com>
2353 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
2354 when -f -u and a main is specified on the command line. However,
2355 attempt to compile even when the ALI file is read-only when
2356 Must_Compile is True.
2358 2010-06-23 Thomas Quinot <quinot@adacore.com>
2360 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
2362 2010-06-23 Javier Miranda <miranda@adacore.com>
2364 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
2365 entities for parent types that are interfaces. Needed in generics to
2366 handle formals that implement interfaces.
2367 (Derive_Subprograms): Add assertion for derivation of tagged types that
2368 do not cover interfaces. For generics, complete code that handles
2369 derivation of type that covers interfaces because the previous
2370 condition was weak (it required only name consistency; arguments were
2371 not checked). Add new code to locate primitives covering interfaces
2372 defined in generic units or instantiatons.
2373 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
2374 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
2375 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
2376 interfaces that are parents of the type because they share the primary
2378 (Register_Primitive): Do not register primitives of interfaces that
2379 are parents of the type.
2380 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
2381 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
2382 primitives skip primitives of interfaces that are parents of the type.
2384 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2386 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
2387 attribute cannot be constant-folded if an index type is a formal type,
2388 or is derived from one.
2389 * checks.adb (Determine_Range): ditto.
2391 2010-06-23 Arnaud Charlet <charlet@adacore.com>
2393 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
2395 2010-06-23 Bob Duff <duff@adacore.com>
2397 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
2398 (Insert): Disallow nul characters.
2399 (misc output routines): Assert no nul characters.
2401 2010-06-23 Ed Schonberg <schonberg@adacore.com>
2403 * exp_ch4.adb: Use predefined unsigned type in all cases.
2405 2010-06-23 Bob Duff <duff@adacore.com>
2407 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
2408 * g-pehage.ads: Minor comment fixes.
2409 * g-pehage.adb: Minor: Add some additional debugging printouts under
2412 2010-06-23 Robert Dewar <dewar@adacore.com>
2414 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
2415 (Worse_Choice): Always prefer Pure/Preelab.
2417 2010-06-23 Vincent Celier <celier@adacore.com>
2419 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
2421 2010-06-23 Robert Dewar <dewar@adacore.com>
2423 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
2424 checking returns in generic case.
2425 (Check_Missing_Return): New procedure.
2427 2010-06-23 Robert Dewar <dewar@adacore.com>
2429 * bindgen.adb, switch-b.adb: Minor reformatting.
2431 2010-06-23 Javier Miranda <miranda@adacore.com>
2433 * frontend.adb (Frontend): Add call to initialize the new package
2435 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
2437 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
2438 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
2440 * exp_util.adb (Insert_Actions): Remove code for
2441 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
2442 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
2443 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
2444 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
2445 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
2446 * sinfo.ads (SCIL_Related_Node): Field removed.
2447 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
2448 (N_SCIL_Tag_Init): Node removed.
2449 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
2450 (Check_SCIL_Node): New implementation.
2451 (Find_SCIL_Node): Removed.
2452 * sem.adb (Analyze): Remove management of
2453 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
2454 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
2456 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
2457 Set_SCIL_Related_Node and avoid adding the SCIL node before the
2458 referenced node using Insert_Action because this is not longer required.
2459 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
2460 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
2461 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to Adjust_SCIL_Node
2462 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
2463 because we no longer require to generate the SCIL node before the call.
2464 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
2465 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
2466 nodes before the referenced node using Insert_Action because this
2467 is not longer required.
2468 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
2469 update the SCIL_Node field.
2470 * sprint.adb (Sprint_Node_Actual): Remove code for
2471 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
2472 * treepr.adb (Print_Node): Print the SCIL node field (if available).
2473 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
2474 SCIL_Tag_Init nodes.
2475 * scil_ll.ads, scil_ll.adb: New files.
2476 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
2479 2010-06-23 Robert Dewar <dewar@adacore.com>
2481 * sem_ch6.adb: Minor reformatting.
2483 2010-06-23 Doug Rupp <rupp@adacore.com>
2485 * bindusg.adb (Display): Write -Hnn line.
2486 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
2488 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
2489 valid values to 32 and 64.
2490 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
2491 ENABLE, DISABLE as valid settings.
2492 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
2493 * opt.ads (Heap_Size): New global variable.
2494 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
2495 TARGET_MALLOC64 check. Fix comment.
2497 2010-06-23 Robert Dewar <dewar@adacore.com>
2499 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
2500 reformatting. Add comments.
2501 * errout.adb (Finalize): Properly adjust warning count when deleting
2504 2010-06-22 Robert Dewar <dewar@adacore.com>
2506 * errout.adb (Finalize): Set Prev pointers.
2507 (Finalize): Delete continuations for deletion by warnings off(str).
2508 * erroutc.ads: Add Prev pointer to error message structure.
2510 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2512 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
2513 child unit, examine context of parent units to locate instantiated
2514 generics whose bodies may be needed.
2515 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
2516 with_clause for the instantiated generic, examine the context of its
2517 parents, to set Withed_Body flag, so that it can be visited earlier.
2518 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
2519 an unsigned type, use a type of the proper size for the intermediate
2520 value, to prevent alignment problems on unchecked conversion.
2522 2010-06-22 Geert Bosch <bosch@adacore.com>
2524 * s-rannum.ads Change Generator type to be self-referential to allow
2525 Random to update its argument. Use "in" mode for the generator in the
2526 Reset procedures to allow them to be called from the Ada.Numerics
2527 packages without tricks.
2528 * s-rannum.adb: Use the self-referencing argument to get write access
2529 to the internal state of the random generator.
2530 * a-nudira.ads: Make Generator a derived type of
2531 System.Random_Numbers.Generator.
2532 * a-nudira.adb: Remove use of 'Unrestricted_Access.
2533 Put subprograms in alpha order and add headers.
2534 * g-mbdira.ads: Change Generator type to be self-referential.
2535 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
2537 2010-06-22 Robert Dewar <dewar@adacore.com>
2539 * freeze.adb: Minor reformatting
2540 Minor code reorganization (use Nkind_In and Ekind_In).
2542 2010-06-22 Bob Duff <duff@adacore.com>
2544 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
2545 -gnatc when a file is compiled that we cannot generate code for, not
2546 helpful and confusing.
2548 2010-06-22 Vincent Celier <celier@adacore.com>
2550 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
2553 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2555 * s-rannum.adb: Replace constants with commented symbols.
2556 * s-rannum.ads: Explain significance of the initial value of the data
2559 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2561 * a-ngcoty.adb: Clarify comment.
2563 2010-06-22 Gary Dismukes <dismukes@adacore.com>
2565 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
2566 expansion for indexing packed arrays with small power-of-2 component
2567 sizes when the target is AAMP.
2568 (Expand_Packed_Element_Reference): Return without expansion for
2569 indexing packed arrays with small power-of-2 component sizes when the
2572 2010-06-22 Geert Bosch <bosch@adacore.com>
2574 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
2577 2010-06-22 Robert Dewar <dewar@adacore.com>
2579 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
2582 2010-06-22 Doug Rupp <rupp@adacore.com>
2584 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
2586 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
2587 (pragma Ident): Add a default ident string in the private part.
2589 2010-06-22 Robert Dewar <dewar@adacore.com>
2591 * cstand.adb: Minor reformatting.
2593 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2595 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
2596 recognize the Shift and Rotation intrinsics that are known to the
2597 compiler but have no interface name.
2599 2010-06-22 Geert Bosch <bosch@adacore.com>
2601 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
2602 scaling in case of overflow or NaN results.
2604 2010-06-22 Robert Dewar <dewar@adacore.com>
2606 * cstand.adb: Complete previous change.
2607 * g-dirope.ads: Add comment.
2608 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
2610 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2612 * cstand.adb: Add tree nodes for pragma Pack on string types.
2614 2010-06-22 Javier Miranda <miranda@adacore.com>
2616 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
2617 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
2618 formal of a primitive.
2619 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
2620 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
2621 formal of a primitive.
2622 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
2623 to obtain the last formal of a primitive.
2625 2010-06-22 Geert Bosch <bosch@adacore.com>
2627 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
2628 depending on __EMX__ or MSDOS being defined.
2629 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
2630 * a-excpol-abort.adb: Update comment indicating users of the file.
2631 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
2633 * env.c: Remove empty conditional for MSDOS.
2634 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
2637 2010-06-22 Robert Dewar <dewar@adacore.com>
2639 * s-rannum.adb: Minor reformatting.
2641 2010-06-22 Javier Miranda <miranda@adacore.com>
2643 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
2644 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
2645 package Sem_Util to package Sem_Aux.
2647 2010-06-22 Javier Miranda <miranda@adacore.com>
2649 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
2650 remove useless restriction on imported routines when building the
2653 2010-06-22 Robert Dewar <dewar@adacore.com>
2655 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
2658 2010-06-22 Javier Miranda <miranda@adacore.com>
2660 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
2661 generic subprogram declarations to ensure proper context. Add missing
2662 support for generic actuals.
2663 (Try_Primitive_Operation): Add missing support for concurrent types that
2664 have no Corresponding_Record_Type. Required to diagnose errors compiling
2665 generics or when compiling with no code generation (-gnatc).
2666 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
2667 the corresponding record type.
2668 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
2669 documentation. Do minimum decoration when processing a primitive of a
2670 concurrent tagged type that covers interfaces. Required to diagnose
2671 errors in the Object.Operation notation compiling generics or under
2673 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
2674 propagation of attribute Interface_List to the corresponding record.
2675 (Expand_N_Task_Type_Declaration): Code cleanup.
2676 (Expand_N_Protected_Type_Declaration): Code cleanup.
2678 2010-06-22 Matthew Heaney <heaney@adacore.com>
2680 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
2682 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2684 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
2685 that is able to produce all representable floating-point numbers in the
2686 unit interval. Remove template parameter Shift_Right, no longer used.
2687 * gnat_rm.texi: Document the period of the pseudo-random number
2688 generator under the description of its algorithm.
2689 * gcc-interface/Make-lang.in: Update dependencies.
2691 2010-06-22 Thomas Quinot <quinot@adacore.com>
2693 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
2694 reference to discriminant (can be an expanded name as well as an
2697 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2699 * exp_ch6.adb: Clarify comment.
2701 2010-06-22 Geert Bosch <bosch@adacore.com>
2703 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
2704 with decimal small as decimal types, avoiding floating-point arithmetic.
2705 (Has_Decimal_Small): New function.
2706 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
2708 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
2709 callers to call the new function in Einfo that takes the entity as
2712 2010-06-22 Robert Dewar <dewar@adacore.com>
2714 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
2716 2010-06-22 Thomas Quinot <quinot@adacore.com>
2718 * sem_elab.adb: Minor reformatting.
2720 2010-06-22 Vincent Celier <celier@adacore.com>
2722 * gnatsym.adb: Put the object files in the table in increasing
2723 aphabetical order of base names.
2725 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2727 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
2728 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
2729 the corresponding discriminal within a record declaration.
2731 2010-06-22 Thomas Quinot <quinot@adacore.com>
2733 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
2734 expression referring to a discriminal of the type of the aggregate (not
2735 a discriminal of some other unrelated type), and the prefix in the
2736 generated selected component must come from Lhs, not Obj.
2738 2010-06-22 Thomas Quinot <quinot@adacore.com>
2740 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
2741 when to freeze the parent type.
2743 2010-06-22 Robert Dewar <dewar@adacore.com>
2745 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
2746 exp_aggr.adb: Minor reformatting.
2747 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
2748 GNAT.MBSS_Float_Random.
2749 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
2751 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2753 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
2754 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
2755 (Random_Float_Template, Random): New method of creating
2756 uniform floating-point variables that allow the creation of all machine
2759 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
2761 2010-06-22 Gary Dismukes <dismukes@adacore.com>
2763 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
2764 to abstract targets to check that the type is tagged and comes from
2765 source, rather than only testing for targets of interface types. Remove
2768 2010-06-22 Vincent Celier <celier@adacore.com>
2770 * vms_data.ads: Modify the declarations of qualifiers
2771 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
2774 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2776 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
2777 expansion is disabled.
2779 2010-06-22 Robert Dewar <dewar@adacore.com>
2781 * makeusg.adb: Minor reformatting.
2783 2010-06-22 Robert Dewar <dewar@adacore.com>
2785 * types.ads: (Dint): Removed, no longer used anywhere.
2786 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
2787 (UI_Mul): Avoid use of UI_From_Dint.
2788 (UI_From_Dint): Removed, not used.
2789 * uintp.ads (UI_From_Dint): Removed, not used.
2790 (Uint_Min/Max_Simple_Mul): New constants.
2792 2010-06-22 Vincent Celier <celier@adacore.com>
2794 * clean.adb (Parse_Cmd_Line): Recognize switch
2795 --unchecked-shared-lib-imports.
2796 (Usage): Add line for switch --unchecked-shared-lib-imports
2797 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
2798 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
2799 moved from GPR_Util.
2800 * switch-m.adb (Scan_Make_Switches): Recognize switch
2801 --unchecked-shared-lib-imports.
2802 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
2803 * gnat_ugn.texi: Add documentation for new switch
2804 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
2806 2010-06-22 Javier Miranda <miranda@adacore.com>
2808 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
2809 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
2810 this patch replaces duplication of code that traverses the chain of
2811 aliased primitives by a call to routine Ultimate_Alias that
2812 provides this functionality.
2814 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2816 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
2817 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
2820 2010-06-22 Thomas Quinot <quinot@adacore.com>
2822 * einfo.ads: Minor reformatting.
2824 2010-06-22 Javier Miranda <miranda@adacore.com>
2826 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
2827 eliminated primitives.
2828 (Make_DT): Avoid referencing eliminated primitives.
2829 (Register_Primitive): Do not register eliminated primitives in the
2830 dispatch table. Required to add this functionality when the program is
2831 compiled without static dispatch tables (-gnatd.t)
2833 2010-06-22 Emmanuel Briot <briot@adacore.com>
2835 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
2836 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
2837 warnings on use of internal GNAT units.
2839 2010-06-22 Jose Ruiz <ruiz@adacore.com>
2841 * s-taprop-vxworks.adb (Set_Priority): Update comments.
2843 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2845 * s-rannum.adb: Make stylistic change to remove mystery constant in
2846 Extract_Value. Image_Numeral_Length: new symbolic constant.
2848 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2850 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
2851 Is_Synchronized_Interface, Is_Task_Interface into computable
2852 predicates, to free three flags in entity nodes.
2853 * sem_ch3.adb: Remove setting of these flags.
2855 2010-06-22 Robert Dewar <dewar@adacore.com>
2857 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
2859 * s-taprop-vxworks.adb: Add comment for Set_Priority.
2860 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
2861 * projects.texi: Move @cindex to the left margin, since otherwise we
2862 are missing entries in the index.
2864 2010-06-22 Emmanuel Briot <briot@adacore.com>
2866 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
2867 packages from the GNAT hierarchy instead of System when possible.
2868 * gcc-interface/Make-lang.in: Update dependencies.
2870 2010-06-22 Jose Ruiz <ruiz@adacore.com>
2872 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
2873 previously in place to reorder the ready queue when a task drops its
2874 priority due to the loss of inherited priority.
2876 2010-06-22 Vincent Celier <celier@adacore.com>
2878 * projects.texi: Minor spelling error fixes.
2881 2010-06-22 Emmanuel Briot <briot@adacore.com>
2883 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
2884 warnings for some with clauses.
2886 2010-06-22 Robert Dewar <dewar@adacore.com>
2888 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
2889 test to catch more cases where first subtype is the results we want.
2890 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
2891 error case, since Errout will now handle this correctly.
2892 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
2893 Update dependencies.
2895 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2897 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
2898 when calling Make_Temporary.
2900 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2902 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
2903 subprogram can be associated with an entry body.
2905 2010-06-22 Robert Dewar <dewar@adacore.com>
2907 * scos.ads: Add note on membership test handling.
2909 2010-06-22 Vincent Celier <celier@adacore.com>
2911 * projects.texi: Minor spelling fixes.
2914 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2916 * s-rannum.adb: Correct off-by-one error in Extract_Value.
2918 2010-06-22 Vincent Celier <celier@adacore.com>
2920 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
2922 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
2923 gcc command if it is too long.
2925 2010-06-22 Robert Dewar <dewar@adacore.com>
2927 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
2929 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2931 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
2932 calling Make_Temporary.
2934 2010-06-22 Robert Dewar <dewar@adacore.com>
2936 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
2938 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2940 * sem_res.adb: Additional special-case for VMS.
2942 2010-06-22 Vincent Celier <celier@adacore.com>
2944 * gnatsym.adb: Minor comment fix.
2946 2010-06-22 Vincent Celier <celier@adacore.com>
2948 * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
2950 2010-06-22 Robert Dewar <dewar@adacore.com>
2952 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
2953 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
2954 Ada 95 mode as an implementation defined attribute.
2956 2010-06-22 Vincent Celier <celier@adacore.com>
2958 * bindusg.adb (Display): Update line for -R
2959 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
2960 generated files when -R is used.
2962 2010-06-22 Vincent Celier <celier@adacore.com>
2964 * prj-nmsc.adb (Lib_Data_Table): New table.
2965 (Check_Library_Attributes): Check if the same library name is used in
2966 two different projects that do not extend each other.
2968 2010-06-22 Robert Dewar <dewar@adacore.com>
2970 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
2972 2010-06-22 Vincent Celier <celier@adacore.com>
2974 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
2975 empty, make it the current working directory.
2977 2010-06-22 Thomas Quinot <quinot@adacore.com>
2979 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
2980 private type with discriminants, make sure the parent type is frozen.
2982 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
2984 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
2985 with packed array references specially.
2986 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
2987 to a component of a bit packed array if it is the prefix of 'Bit.
2988 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
2989 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
2990 'Bit reference, where the prefix involves a packed array reference.
2991 (Get_Base_And_Bit_Offset): New helper, extracted from...
2992 (Expand_Packed_Address_Reference): ...here. Call above procedure to
2993 get the outer object and offset expression.
2995 2010-06-22 Thomas Quinot <quinot@adacore.com>
2997 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
2998 * einfo.adb (Related_Expression, Set_Related_Expression): Add
3001 2010-06-22 Javier Miranda <miranda@adacore.com>
3003 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
3004 reorganization to properly check if the operation has been inherited as
3005 an abstract operation.
3007 2010-06-22 Ed Falis <falis@adacore.com>
3009 * s-osinte-vxworks.ads: Complete previous change.
3011 2010-06-22 Thomas Quinot <quinot@adacore.com>
3013 * sem_res.adb: Add comment.
3014 * projects.texi, gnat_ugn.texi: Remove macro.
3016 2010-06-22 Vincent Celier <celier@adacore.com>
3018 * prj-attr.adb: Remove project level attribute Main_Language.
3020 2010-06-22 Robert Dewar <dewar@adacore.com>
3022 * switch-b.adb, osint-b.adb: Minor reformatting.
3024 2010-06-22 Pascal Obry <obry@adacore.com>
3026 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
3027 vector if previous send was not fully successful. If only part of
3028 the vector data was sent, we exit the loop.
3030 2010-06-22 Thomas Quinot <quinot@adacore.com>
3032 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
3033 error reporting with generic types.
3035 2010-06-22 Thomas Quinot <quinot@adacore.com>
3037 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
3038 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
3039 vms_data.ads: Add a new command line switch -A to gnatbind to output
3040 the list of all ALI files for the partition.
3042 2010-06-22 Arnaud Charlet <charlet@adacore.com>
3044 * s-osinte-vxworks.ads: Fix casing.
3045 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
3046 change: Interfaces.C does not provide a long_long type.
3048 2010-06-22 Emmanuel Briot <briot@adacore.com>
3050 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
3051 native user's guide, since this document contains the two versions.
3052 * gcc-interface/Make-lang.in: Update doc dependencies.
3054 2010-06-22 Robert Dewar <dewar@adacore.com>
3056 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
3058 2010-06-22 Emmanuel Briot <briot@adacore.com>
3060 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
3061 not build this file on its own (only through gnat_ugn.texi).
3062 Remove macro definitions and insert simpler version in gnat_ugn.texi.
3064 2010-06-22 Robert Dewar <dewar@adacore.com>
3066 * ali-util.ads: Minor comment update.
3067 * g-socthi-mingw.adb: Minor reformatting.
3069 2010-06-22 Ed Falis <falis@adacore.com>
3071 * s-osinte-vxworks.ads: take sigset_t definition from System.VxWorks.Ext
3072 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
3073 for specific versions of VxWorks.
3075 2010-06-22 Emmanuel Briot <briot@adacore.com>
3077 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
3078 related sections from user's guide and reference manual, since they
3079 have now been merged together into a separate document (projects.texi).
3080 This removes a lot of duplication where attributes where described
3082 The grammar for the project files is now in each of the sections
3083 (packages,expressions,...) instead of being duplicates in two other
3084 sections (one in the user's guide that contained the full grammar,
3085 and various sections in the rm that contained extracts of the same
3087 Added the full list of all supported attributes, since existing lists
3089 Rename "associative array" into "indexed attribute"
3090 Remove sections that were duplicates ("External References in
3091 Project Files" and "External Values", and "Project Extensions"
3092 for instance). The list of valid packages in project files is now in
3095 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3097 * sem_ch3.adb (Add_Internal_Interface_Entities): If
3098 Find_Primitive_Covering_Interface does not find the operation, it may
3099 be because of a name conflict between the inherited operation and a
3100 local non-overloadable name. In that case look for the operation among
3101 the primitive operations of the type. This search must succeed
3102 regardless of visibility.
3104 2010-06-22 Pascal Obry <obry@adacore.com>
3106 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
3107 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
3110 2010-06-22 Robert Dewar <dewar@adacore.com>
3112 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
3114 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
3116 2010-06-22 Arnaud Charlet <charlet@adacore.com>
3118 * s-intman-vxworks.ads: Code clean up.
3120 2010-06-22 Thomas Quinot <quinot@adacore.com>
3122 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
3123 dereference, construct actual subtype of designated object to generate
3124 proper bounds checks.
3126 2010-06-22 Thomas Quinot <quinot@adacore.com>
3128 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
3129 Read_Withed_ALIs, which is more descriptive.
3131 2010-06-22 Pascal Obry <obry@adacore.com>
3133 * g-sothco.ads: Minor reformatting.
3134 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
3135 C_Sendmsg implementation.
3136 (C_Sendmsg): Do not use lock (not needed).
3137 (C_Recvmsg): Likewise and also do not wait for incoming data.
3139 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3141 * uintp.adb: Fix scope error in operator call.
3143 2010-06-22 Vincent Celier <celier@adacore.com>
3145 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
3146 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
3147 autoconfiguration is needed, fail indicating that no config project
3148 file can be found, as there is no autoconfiguration on VMS.
3150 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3152 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
3153 for an operator in a functional notation, when operands are universal.
3155 2010-06-22 Arnaud Charlet <charlet@adacore.com>
3157 * gcc-interface/Make-lang.in: Update dependencies.
3159 2010-06-22 Robert Dewar <dewar@adacore.com>
3161 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
3163 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
3164 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
3166 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
3169 2010-06-22 Vincent Celier <celier@adacore.com>
3171 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
3172 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
3174 2010-06-22 Pascal Obry <obry@adacore.com>
3176 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
3178 (C_Recvmsg): Make sure the routine is atomic. Also fully
3179 fill vectors in the proper order.
3180 (C_Sendmsg): Make sure the routine is atomic.
3182 2010-06-22 Robert Dewar <dewar@adacore.com>
3184 * sem_ch8.adb: Update comment.
3185 * sem_res.adb: Minor code reorganization (use Ekind_In).
3187 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3189 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
3190 name is a call, use the number of actuals to determine whether this is
3191 a binary or unary operator, rather than relying on later information
3192 to resolve the overload.
3194 2010-06-22 Robert Dewar <dewar@adacore.com>
3196 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
3198 2010-06-22 Robert Dewar <dewar@adacore.com>
3200 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
3201 * sem_eval.adb: Minor reformatting.
3203 2010-06-22 Vincent Celier <celier@adacore.com>
3205 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
3206 to gnatlink, except on Open VMS.
3207 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
3208 object directories if -nostdlib is used.
3210 2010-06-22 Robert Dewar <dewar@adacore.com>
3212 * sem_util.adb (Is_Delegate): Put in proper alpha order.
3213 * sem_eval.adb: Minor reformatting.
3215 2010-06-22 Robert Dewar <dewar@adacore.com>
3217 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
3218 * exp_aggr.adb: Minor comment changes and reformatting.
3219 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha order
3220 * sem_util.ads: Add some missing pragma Inline's (efficiency issue only)
3222 2010-06-22 Thomas Quinot <quinot@adacore.com>
3224 * sem_util.adb (Build_Actual_Subtype): Record original expression in
3225 Related_Expression attribute of the constructed subtype.
3226 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
3227 Node24 on types for...
3228 (Related_Expression): Make attribute available on types as well.
3230 2010-06-22 Gary Dismukes <dismukes@adacore.com>
3232 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead of
3233 Directly_Designated_Type when the type argument is an access type.
3234 (Find_Interface_Tag): Retrieve Designated_Type instead of
3235 Directly_Designated_Type when the type argument is an access type.
3236 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
3237 Directly_Designated_Type of each access discriminant.
3238 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
3239 instead of Directly_Designated_Type when the operand and target types
3242 2010-06-22 Thomas Quinot <quinot@adacore.com>
3244 * exp_aggr.adb (Flatten): Return False if one choice is statically
3245 known to be out of bounds.
3247 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3249 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
3250 a parameterless function call, preserve parentheses of original
3251 expression, for proper handling by pretty printer.
3252 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
3253 procedure, to handle quietly identifiers that have no entity names.
3254 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
3255 elsif_part is missing, it has been rewritten as a nested if, and there
3256 is no useful information on the current value of the variable.
3258 2010-06-22 Gary Dismukes <dismukes@adacore.com>
3260 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
3261 discriminals to the current scope.
3262 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
3263 scope, which could overwrite a different already set value.
3265 2010-06-22 Ed Schonberg <schonberg@adacore.com>
3267 * sem_res.adb (Valid_Conversion): If expression is a predefined
3268 operator, use sloc of type of interpretation to improve error message
3269 when operand is of some derived type.
3270 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
3272 2010-06-22 Emmanuel Briot <briot@adacore.com>
3274 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
3275 that it can set out parameters as well. When a process has died, reset
3276 its Input_Fd to Invalid_Fd, so that when using multiple processes we
3277 can find out which process has died.
3279 2010-06-22 Thomas Quinot <quinot@adacore.com>
3281 * sem_eval.adb (Find_Universal_Operator_Type): New
3282 subprogram to identify the operand type of an operator on universal
3283 operands, when an explicit scope indication is present. Diagnose the
3284 case where such a call is ambiguous.
3285 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
3286 Use the above to identify the operand type so it can be properly frozen.
3287 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
3288 type, done in an arbitrary, possibly incorrect type (the presence of
3289 some numeric type in the scope is checked for legality, but when more
3290 than one such type is in the scope, we just pick a random one, not
3291 necessarily the expected one).
3292 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
3295 2010-06-22 Robert Dewar <dewar@adacore.com>
3297 * sem_eval.adb: Minor reformatting.
3299 2010-06-22 Robert Dewar <dewar@adacore.com>
3301 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
3302 Expression_With_Actions to clean up the code generated when folding
3303 constant expressions.
3305 2010-06-22 Vincent Celier <celier@adacore.com>
3307 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
3310 2010-06-22 Vincent Celier <celier@adacore.com>
3312 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
3313 found, check if it's path has aready been found, whatever its index.
3315 2010-06-22 Robert Dewar <dewar@adacore.com>
3317 * atree.adb, gnatbind.adb: Minor reformatting.
3318 Minor code reorganization.
3320 2010-06-21 Robert Dewar <dewar@adacore.com>
3322 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
3323 known at compile time.
3325 2010-06-21 Gary Dismukes <dismukes@adacore.com>
3327 * atree.adb: Fix comment typo.
3329 2010-06-21 Ed Schonberg <schonberg@adacore.com>
3331 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
3332 whether a universal arithmetic expression in a conversion, which is
3333 rewritten from a function call with an expanded name, is ambiguous.
3335 2010-06-21 Vincent Celier <celier@adacore.com>
3337 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
3338 source files in specified list of sources.
3339 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
3341 (Add_Source): Set the Location of the new source
3342 (Process_Exceptions_File_Based): Call Add_Source with the Location
3343 (Get_Sources_From_File): If an exception is found, set its Listed to
3345 (Find_Sources): When Source_Files is specified, if an exception is
3346 found, set its Listed to True. Remove any exception that is not in a
3347 specified list of sources.
3348 * prj.ads (Source_Data): New component Location
3350 2010-06-21 Vincent Celier <celier@adacore.com>
3352 * gnatbind.adb (Closure_Sources): Global table, moved from block.
3354 2010-06-21 Thomas Quinot <quinot@adacore.com>
3356 * sem_res.adb: Minor reformatting.
3357 * atree.adb: New debugging hook "rr" for node rewrites.
3359 2010-06-21 Robert Dewar <dewar@adacore.com>
3361 * g-expect.ads, g-expect.adb: Minor reformatting.
3363 2010-06-21 Emmanuel Briot <briot@adacore.com>
3365 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
3367 2010-06-21 Arnaud Charlet <charlet@adacore.com>
3369 * gcc-interface/Make-lang.in: Update dependencies.
3371 2010-06-21 Thomas Quinot <quinot@adacore.com>
3373 * bindgen.ads: Update comments.
3375 2010-06-21 Vincent Celier <celier@adacore.com>
3377 * gnatbind.adb: Suppress dupicates when listing the sources in the
3378 closure (switch -R).
3380 2010-06-21 Emmanuel Briot <briot@adacore.com>
3382 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
3385 2010-06-21 Emmanuel Briot <briot@adacore.com>
3387 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
3389 (Expect_Internal): No longer raises an exception, so that it can set
3390 out parameters as well. When a process has died, reset its Input_Fd
3391 to Invalid_Fd, so that when using multiple processes we can find out
3392 which process has died.
3394 2010-06-21 Robert Dewar <dewar@adacore.com>
3396 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
3397 checks.adb, sem_res.adb: Minor reformatting. Add comments.
3399 2010-06-21 Ed Schonberg <schonberg@adacore.com>
3401 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
3402 rederivation associated with a full declaration in a private part, and
3403 there is a partial view that derives the same parent subprogram, the
3404 new entity does not become visible. This check must be applied to
3405 interface operations as well.
3407 2010-06-21 Thomas Quinot <quinot@adacore.com>
3409 * checks.adb: Add comments.
3410 * prj-nmsc.adb: Minor reformatting.
3412 2010-06-21 Thomas Quinot <quinot@adacore.com>
3414 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
3415 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
3416 extract bounds, to ensure that we get the proper captured values,
3417 rather than an expression that may have changed value since the point
3418 where the subtype was elaborated.
3419 (Find_Body_Discriminal): New utility subprogram to share code between...
3420 (Eval_Attribute): For the case of a subtype bound that references a
3421 discriminant of the current concurrent type, insert appropriate
3422 discriminal reference.
3423 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
3424 requeue to an entry in a family in the current task, use corresponding
3426 (Analyze_Accept_Statement): Rely on expansion of attribute references
3427 to insert proper discriminal references in range check for entry in
3430 2010-06-21 Emmanuel Briot <briot@adacore.com>
3432 * s-regpat.adb (Compile): Fix handling of big patterns.
3434 2010-06-21 Robert Dewar <dewar@adacore.com>
3436 * a-tifiio.adb: Minor reformatting.
3438 2010-06-21 Pascal Obry <obry@adacore.com>
3440 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
3443 2010-06-21 Javier Miranda <miranda@adacore.com>
3445 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
3448 2010-06-21 Ed Schonberg <schonberg@adacore.com>
3450 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
3451 to hold the result, indicate that the target of the declaration does
3452 not need an initialization, to prevent spurious errors when
3453 Initialize_Scalars is enabled.
3455 2010-06-21 Ed Schonberg <schonberg@adacore.com>
3457 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
3458 Fore is not bound by line length. The Fore parameter of the internal
3459 procedure that performs the operation is an integer.
3461 2010-06-21 Thomas Quinot <quinot@adacore.com>
3463 * sem_res.adb, checks.adb: Minor reformatting.
3465 2010-06-21 Emmanuel Briot <briot@adacore.com>
3467 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
3469 (Insert_Operator_Before): New subprogram, avoids duplicated code
3470 (Compile): Avoid doing two compilations when the pattern matcher ends
3473 2010-06-21 Emmanuel Briot <briot@adacore.com>
3475 * s-regpat.adb: Improve debug traces
3476 (Dump): Change output format to keep it smaller.
3478 2010-06-21 Javier Miranda <miranda@adacore.com>
3480 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
3481 output to the output file when this routine completes its work.
3483 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
3485 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
3486 for loop. Call build_constructor_from_list directly in the CICO case.
3488 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3490 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
3491 declaration appears in the same unit and ealier than the renamed
3492 entity, retain generated body to prevent order-of-elaboration issues in
3495 2010-06-18 Arnaud Charlet <charlet@adacore.com>
3497 * s-tpoben.adb: Update comments.
3499 2010-06-18 Robert Dewar <dewar@adacore.com>
3501 * debug.adb: Minor comment change.
3503 2010-06-18 Javier Miranda <miranda@adacore.com>
3505 * exp_cg.adb: Code clean up.
3506 * debug.adb: Complete documentation of switch -gnatd.Z.
3507 * gcc-interface/misc.c (callgraph_info_file): Declare.
3509 2010-06-18 Javier Miranda <miranda@adacore.com>
3511 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
3513 2010-06-18 Thomas Quinot <quinot@adacore.com>
3515 * sprint.ads: Minor reformatting.
3516 * output.ads: Update obsolete comment.
3518 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3520 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
3521 an external intrinsic operation (e.g. a GCC numeric function) indicate
3522 that the renaming entity has the same characteristics, so a call to it
3523 is properly expanded.
3525 2010-06-18 Javier Miranda <miranda@adacore.com>
3527 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
3528 support for dispatch table/callgraph info generation.
3529 * gcc-interface/Make-lang.in: Update dependencies.
3531 2010-06-18 Robert Dewar <dewar@adacore.com>
3533 * exp_ch6.adb: Minor reformatting.
3534 * gnatname.adb: Add comment.
3536 2010-06-18 Vincent Celier <celier@adacore.com>
3538 * gnatname.adb (Scan_Args): When --and is used, make sure that the
3539 dynamic tables in the newly allocated Argument_Data are properly
3542 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
3544 * gnat1drv.adb: Fix comment.
3546 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3548 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
3549 renaming, re-expand the call with the renamed subprogram if that one
3550 is marked inlined as well.
3552 2010-06-18 Gary Dismukes <dismukes@adacore.com>
3554 * gnat1drv.adb (Adjust_Global_Switches): Enable
3555 Use_Expression_With_Actions for AAMP and VM targets.
3557 2010-06-18 Vincent Celier <celier@adacore.com>
3559 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
3561 2010-06-18 Thomas Quinot <quinot@adacore.com>
3563 * exp_ch4.adb: Minor reformatting.
3565 2010-06-18 Javier Miranda <miranda@adacore.com>
3567 * debug.ads Add documentation on -gnatd.Z.
3569 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3571 * sem_elim.adb: Proper error message on improperly eliminated instances
3573 2010-06-18 Vincent Celier <celier@adacore.com>
3575 * prj.ads (Response_File_Format): New value GCC.
3577 2010-06-18 Thomas Quinot <quinot@adacore.com>
3579 * gnat1drv.adb: Minor reformatting.
3581 2010-06-18 Robert Dewar <dewar@adacore.com>
3583 * make.adb, sem_cat.adb: Minor reformatting.
3584 * sem_eval.adb: Fix typos.
3586 2010-06-18 Pascal Obry <obry@adacore.com>
3588 * prj-nmsc.adb: Fix source filenames casing in debug output.
3590 2010-06-18 Robert Dewar <dewar@adacore.com>
3592 * gnatcmd.adb: Minor reformatting.
3594 2010-06-18 Robert Dewar <dewar@adacore.com>
3596 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
3597 condition and both sub-expressions are static (and result is selected
3600 2010-06-18 Robert Dewar <dewar@adacore.com>
3602 * g-pehage.adb: Minor reformatting
3604 2010-06-18 Pascal Obry <obry@adacore.com>
3606 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
3609 2010-06-18 Arnaud Charlet <charlet@adacore.com>
3611 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
3612 dependencies. Fix target pairs on darwin.
3613 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
3615 2010-06-18 Pascal Obry <obry@adacore.com>
3617 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
3619 2010-06-18 Vincent Celier <celier@adacore.com>
3621 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
3622 configuration pragmas file and, if -U is not used, for a local one.
3624 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3626 * sem_elim.adb (Check_Eliminated): Use full information on entity name
3627 when it is given in the pragma by a selected component.
3628 (Check_For_Eliminated_Subprogram): Do no emit error if within a
3629 instance body that is itself within a generic unit.
3630 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
3631 eliminated, mark as well the anonymous subprogram that is its alias
3632 and appears within the wrapper package.
3634 2010-06-18 Bob Duff <duff@adacore.com>
3636 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
3637 Raise an exception if the output file cannot be opened. Add comments.
3639 2010-06-18 Thomas Quinot <quinot@adacore.com>
3641 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
3642 not illegal per E.2.2(7) if it occurs in the private part of a
3645 2010-06-18 Arnaud Charlet <charlet@adacore.com>
3647 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
3648 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
3649 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
3650 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
3651 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
3652 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
3653 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
3654 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
3655 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
3656 errout.ads: Update comments. Minor reformatting.
3658 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
3659 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
3660 a-strunb.adb (Big_String. Big_String_Access): New type.
3662 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
3663 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
3664 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
3666 2010-06-18 Geert Bosch <bosch@adacore.com>
3668 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
3671 2010-06-18 Robert Dewar <dewar@adacore.com>
3673 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
3676 2010-06-18 Robert Dewar <dewar@adacore.com>
3678 * sprint.adb: Minor format change for N_Expression_With_Actions.
3679 * repinfo.adb: Minor reformatting.
3681 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3683 * sem_elim.adb (Check_Eliminated): If within a subunit, use
3684 Defining_Entity to obtain the name of the entity in the proper body, to
3685 properly handle both separate packages and subprograms.
3687 2010-06-18 Emmanuel Briot <briot@adacore.com>
3689 * prj-nmsc.adb (Check_File): New parameter Display_Path.
3691 2010-06-18 Thomas Quinot <quinot@adacore.com>
3693 * g-socket.adb, g-socket.ads (Null_Selector): New object.
3695 2010-06-18 Pascal Obry <obry@adacore.com>
3697 * gnat_ugn.texi: Minor clarification.
3699 2010-06-18 Emmanuel Briot <briot@adacore.com>
3701 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
3702 code when using the project dir as the source dir.
3703 (Search_Directories): use the normalized name for the source directory,
3704 where symbolic names have potentially been resolved.
3706 2010-06-18 Robert Dewar <dewar@adacore.com>
3708 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
3709 when we create N_Expression_With_Actions node.
3710 (Expand_Short_Circuit): Ditto.
3712 2010-06-18 Robert Dewar <dewar@adacore.com>
3714 * exp_util.adb: Minor reformatting.
3716 2010-06-18 Thomas Quinot <quinot@adacore.com>
3718 * types.ads: Clean up obsolete comments
3719 * tbuild.adb: Minor reformatting.
3720 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
3721 exp_strm.adb, aa_drive.adb: Minor reformatting.
3722 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
3723 intrinsic with an Interface_Name denotes an imported back-end builtin,
3724 and must be rewritten into a call, not left in the tree as an operator,
3725 so return False in that case.
3727 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
3729 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
3731 2010-06-18 Robert Dewar <dewar@adacore.com>
3733 * scos.ads: Add proposed output for case expression
3735 2010-06-18 Jose Ruiz <ruiz@adacore.com>
3737 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
3738 RTSS modules, we need to use the Microsoft linker.
3740 2010-06-18 Robert Dewar <dewar@adacore.com>
3742 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
3743 expression (cannot count on a particular branch being executed).
3744 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
3745 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
3746 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
3747 within case expression.
3748 * expander.adb (Expand): Add call to Expand_N_Case_Expression
3749 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
3750 (P_Case_Expression): New procedure
3751 (P_Case_Expression_Alternative): New procedure
3752 * par.adb (P_Case_Expression): New procedure
3753 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
3755 * sem.adb (Analyze): Add call to Analyze_Case_Expression
3756 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
3757 this is a documentation change only.
3758 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
3759 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
3761 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
3762 * sem_res.adb (Resolve_Case_Expression): New procedure.
3763 * sem_scil.adb (Find_SCIL_Node): Add processing for
3764 N_Case_Expression_Alternative.
3765 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
3766 (N_Case_Expression_Alternative): New node.
3767 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
3768 N_Case_Expression and N_Case_Expression_Alternative.
3770 2010-06-18 Robert Dewar <dewar@adacore.com>
3772 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
3773 * gnat1drv.adb: Fix typo.
3775 2010-06-18 Robert Dewar <dewar@adacore.com>
3777 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
3779 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
3780 gnat style for -gnatg.
3781 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
3783 2010-06-18 Thomas Quinot <quinot@adacore.com>
3785 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
3787 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
3790 2010-06-18 Robert Dewar <dewar@adacore.com>
3792 * sprint.adb: Minor change in output format for expression wi actions.
3793 * par-ch3.adb: Minor code reorganization. Minor reformatting.
3794 * sem_ch5.adb: Minor comment fix.
3796 2010-06-18 Robert Dewar <dewar@adacore.com>
3798 * debug.adb: New debug flag -gnatd.L to control
3799 Back_End_Handles_Limited_Types.
3800 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
3801 limited case if Back_End_Handles_Limited_Types is True.
3802 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
3803 simplify expansion if Use_Expression_With_Actions is True.
3804 * gnat1drv.adb (Adjust_Global_Switches): Set
3805 Back_End_Handles_Limited_Types.
3806 * opt.ads (Back_End_Handles_Limited_Types): New flag.
3808 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3810 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
3811 intrinsic operator if expansion is not enabled, because in an
3812 instantiation the original operator must be present to verify the
3813 legality of the operation.
3815 2010-06-18 Robert Dewar <dewar@adacore.com>
3817 * exp_disp.adb, sem_ch12.adb: Minor reformatting
3819 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3821 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
3822 the class-wide type for a private extension, and the completion is a
3823 subtype, set the type of the class-wide type to the base type of the
3826 2010-06-18 Robert Dewar <dewar@adacore.com>
3828 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
3829 sem_intr.adb, sem_eval.adb: Minor reformatting
3831 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3833 * sem_type.adb (Is_Ancestor): If either type is private, examine full
3836 2010-06-18 Thomas Quinot <quinot@adacore.com>
3838 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
3839 parameter rather than IN OUT.
3841 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3843 * exp_ch6.adb: Add extra guard.
3845 2010-06-18 Gary Dismukes <dismukes@adacore.com>
3847 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
3848 accessibility level of a function call from the level of the innermost
3849 enclosing dynamic scope.
3850 (Innermost_Master_Scope_Depth): New function to find the depth of the
3851 nearest dynamic scope enclosing a node.
3853 2010-06-18 Tristan Gingold <gingold@adacore.com>
3855 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
3857 2010-06-18 Thomas Quinot <quinot@adacore.com>
3859 * g-socket.ads: Minor reformatting.
3861 2010-06-18 Vincent Celier <celier@adacore.com>
3863 * make.adb (Must_Compile): New Boolean global variable
3864 (Main_On_Command_Line): New Boolean global variable
3865 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
3866 even when the project is externally built.
3867 (Start_Compile_If_Possible): Compile in -aL directories if
3868 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
3869 when the project is externally built.
3870 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
3871 invoked with -f -u and one or several mains on the command line.
3872 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main
3873 is specified on the command line.
3875 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3877 * sem_ch6.adb (Build_Body_For_Inline): Handle extended_return_statements
3878 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
3879 containing extented_return statements.
3880 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
3881 constrained, do not build subtype declaration.
3883 2010-06-18 Robert Dewar <dewar@adacore.com>
3885 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
3886 Warn on assigning to packed atomic component.
3888 2010-06-18 Robert Dewar <dewar@adacore.com>
3890 * sem_util.ads: Minor reformatting
3891 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
3892 Expression_With_Actions).
3893 * snames.ads-tmpl: Minor comment fix
3895 2010-06-18 Robert Dewar <dewar@adacore.com>
3897 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
3898 (Set_Imported): Use Import_Interface_Present to control message output
3899 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
3900 * gnat_rm.texi: Document that we can have pragma Import and pragma
3901 Interface for the same subprogram.
3903 2010-06-18 Robert Dewar <dewar@adacore.com>
3905 * lib-xref.adb (Generate_Reference): Fix bad reference to
3906 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
3908 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
3910 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
3912 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
3913 Use set_gnu_expr_location_from_node to set location information on the
3916 2010-06-17 Arnaud Charlet <charlet@adacore.com>
3918 * gcc-interface/Make-lang.in: Update dependencies.
3920 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3922 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
3925 2010-06-17 Robert Dewar <dewar@adacore.com>
3927 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
3928 style check messages.
3929 * sem_res.adb (Resolve_Call): Don't call
3930 Check_For_Eliminated_Subprogram if we are analyzing within a spec
3933 2010-06-17 Robert Dewar <dewar@adacore.com>
3935 * debug.adb: Add documentation for debug flags .X and .Y
3936 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
3937 Use_Expression_With_Actions.
3938 * gnat1drv.adb (Adjust_Global_Switches): Set
3939 Use_Expression_With_Actions.
3940 * opt.ads (Use_Expression_With_Actions): New switch.
3942 2010-06-17 Robert Dewar <dewar@adacore.com>
3944 * exp_intr.adb: Minor code reorganization (use UI_Max)
3945 * sem_intr.adb: use underlying type to check legality.
3946 * einfo.adb (Known_Static_Esize): False for generic types
3947 (Known_Static_RM_Size): False for generic types
3948 * einfo.ads (Known_Static_Esize): False for generic types
3949 (Known_Static_RM_Size): False for generic types
3951 2010-06-17 Robert Dewar <dewar@adacore.com>
3953 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
3955 2010-06-17 Robert Dewar <dewar@adacore.com>
3957 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
3958 node when expanding short circuit form with actions present for right
3960 * exp_ch4.adb: Minor reformatting
3961 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node if
3962 right opeand has actions present, and debug flag -gnatd.X is set.
3963 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
3965 * nlists.adb (Prepend_List): New procedure
3966 (Prepend_List_To): New procedure
3967 * nlists.ads (Prepend_List): New procedure
3968 (Prepend_List_To): New procedure
3969 * sem.adb: Add processing for Expression_With_Actions
3970 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
3971 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
3972 * sem_res.adb: Add processing for Expression_With_Actions.
3973 * sem_scil.adb: Add processing for Expression_With_Actions
3974 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
3975 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
3977 2010-06-17 Doug Rupp <rupp@adacore.com>
3979 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
3980 involved both have underlying integer types.
3981 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
3982 to an intrinsic operator when the operand types or sizes are not
3984 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
3985 64/32 Address/Integer works.
3987 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3989 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
3990 that it marks a unit as needed by a spec only if the corresponding
3991 instantiation appears in that spec (and not in the corresponding body).
3992 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
3993 in the pragma Eliminate has been parsed as a child unit, but the
3994 current compilation unit is in fact the parent in which the subunit is
3997 2010-06-17 Vincent Celier <celier@adacore.com>
3999 * gnat_rm.texi: Fix typo
4001 2010-06-17 Robert Dewar <dewar@adacore.com>
4003 * sem_util.adb: Minor reformatting
4005 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4007 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
4008 instance, the clause now denotes the instance body. Traverse the
4009 corresponding spec because there may be no other dependence that will
4010 force the traversal of its own context.
4012 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4014 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
4015 Install_Limited_Context_Clauses, to determine whether a limited_with in
4016 some parent of the current unit designates some other parent, in which
4017 case the limited_with clause must not be installed.
4018 (In_Context): Refine test.
4020 2010-06-17 Gary Dismukes <dismukes@adacore.com>
4022 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
4023 type with a dispatching equality operator that is overridden (for a
4024 tagged full type), don't include the overridden equality in the list of
4025 primitives. The overridden equality is detected by testing for an
4026 Aliased field that references the overriding equality.
4028 2010-06-17 Robert Dewar <dewar@adacore.com>
4030 * freeze.adb: Minor reformatting.
4032 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
4034 * gnat_ugn.texi: Add a section introducing gdbserver.
4036 2010-06-17 Thomas Quinot <quinot@adacore.com>
4038 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
4041 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4043 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
4044 constrained discriminated parent that is a private type.
4045 (Analyze_Record_Aggregate): when collecting inherited discriminants,
4046 handle properly an ancestor type that is a constrained private type.
4048 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4050 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
4051 protected, use the protected_subprogram_body only if the original
4052 subprogram has not been eliminated.
4054 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4056 * freeze.adb (Freeze_Expression): The designated type of an
4057 access_to_suprogram type can only be frozen if all types in its profile
4060 2010-06-17 Robert Dewar <dewar@adacore.com>
4062 * par.adb: Minor comment fix
4063 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
4065 2010-06-17 Doug Rupp <rupp@adacore.com>
4067 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
4068 change Address to Short_Address in functions where both must be the
4069 same size for intrinsics to work.
4071 2010-06-17 Thomas Quinot <quinot@adacore.com>
4073 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
4074 not denote a (private) component of a protected object.
4076 2010-06-17 Bob Duff <duff@adacore.com>
4078 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
4081 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
4083 * gnat_ugn.texi: Update the documentation about GDB re: exception
4086 2010-06-17 Arnaud Charlet <charlet@adacore.com>
4088 * gnatvsn.ads: Bump to 4.6 version.
4090 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4092 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
4093 designated type of the generated pointer is the type of the original
4094 expression, not that of the function call itself, because the return
4095 type may be an untagged derived type and the function may be an
4096 inherited operation.
4098 2010-06-17 Robert Dewar <dewar@adacore.com>
4100 * exp_ch4.adb: Minor reformatting.
4102 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4104 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
4105 N_Component_Association nodes, to indicate that a component association
4106 of an extension aggregate denotes the value of a discriminant of an
4107 ancestor type that has been constrained by the derivation.
4108 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
4109 double expansion of the aggregate appearing in a context that delays
4110 expansion, to prevent double insertion of discriminant values when the
4111 aggregate is reanalyzed.
4113 2010-06-17 Arnaud Charlet <charlet@adacore.com>
4115 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
4116 Allocator as the Related_Node of Return_Obj_Access in call to
4117 Make_Temporary below as this would create a sort of infinite
4120 2010-06-17 Ben Brosgol <brosgol@adacore.com>
4122 * gnat_ugn.texi: Update gnatcheck doc.
4124 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4126 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
4127 incomplete view of the type that is not tagged, and the full type is a
4128 tagged extension, create class_wide type now, and warn that the
4129 incomplete view should be tagged as well.
4131 2010-06-17 Vincent Celier <celier@adacore.com>
4133 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
4134 Update the last line of the usage, indicating what commands do not
4135 accept project file switches.
4136 * vms_conv.adb: Do not issue usage line for GNAT SYNC
4137 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
4139 * gnat_ugn.texi: Document the relaxed rules for library directories in
4140 externally built library projects.
4142 2010-06-17 Doug Rupp <rupp@adacore.com>
4144 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
4146 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
4147 * gcc-interface/Makefile.in: Update VMS target pairs.
4149 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
4151 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
4152 compatible with Windows NT 4.0 which doesn't provide this function.
4154 2010-06-17 Vincent Celier <celier@adacore.com>
4156 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
4157 different timestamps but the checksum is the same, issue a short
4160 2010-06-17 Arnaud Charlet <charlet@adacore.com>
4162 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
4163 it means that we cannot reset interrupt handlers since this would
4164 require potentially sending the abort signal to the Server_Task.
4166 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4168 * exp_ch4.adb: expand NOT for VMS types.
4169 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
4171 2010-06-17 Sergey Rybin <rybin@adacore.com>
4173 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
4174 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
4177 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4179 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
4180 protected operation if the subprogram has been eliminated.
4182 2010-06-17 Vincent Celier <celier@adacore.com>
4184 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
4185 directories associated with a library to be any directory when the
4186 library project is externally built.
4188 2010-06-17 Vincent Celier <celier@adacore.com>
4190 * make.adb (Check): If switch -m is used, deallocate the memory that
4191 may be allocated when computing the checksum.
4193 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
4195 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
4196 (C_Sendmsg): Likewise.
4198 2010-06-17 Thomas Quinot <quinot@adacore.com>
4200 * sem_res.adb: Update comments.
4202 2010-06-17 Vincent Celier <celier@adacore.com>
4204 * back_end.adb (Scan_Compiler_Arguments): Process last argument
4206 2010-06-17 Robert Dewar <dewar@adacore.com>
4208 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
4209 * layout.adb, freeze.adb: Use Make_Temporary.
4211 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
4213 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
4214 .NET/JVM normally as this is now perfectly supported by the backend.
4216 2010-06-17 Pascal Obry <obry@adacore.com>
4218 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
4220 2010-06-17 Vincent Celier <celier@adacore.com>
4222 * make.adb (Collect_Arguments_And_Compile): Create include path file
4223 only when -x is specified.
4225 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
4227 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
4228 Objects_Path, defaulted to True. Only create include path file if
4229 Include_Path is True, only create objects path file if Objects_Path is
4231 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
4232 Objects_Path, defaulted to True.
4233 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
4236 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4238 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
4239 determine whether it has the controlling type, when the formal is an
4242 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
4244 * s-crtl.ads (ssize_t): New type.
4245 (read): Fix signature.
4247 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
4248 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
4249 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
4250 (C_Sendmsg): Likewise.
4251 * g-socthi.adb (Syscall_Recvmsg): Likewise.
4252 (Syscall_Sendmsg): Likewise.
4253 (C_Recvmsg): Likewise.
4254 (C_Sendmsg): Likewise.
4255 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
4256 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
4257 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
4258 (C_Sendmsg): Likewise.
4259 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
4260 (C_Sendmsg): Likewise.
4261 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
4262 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
4263 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
4264 (C_Sendmsg): Likewise.
4265 * g-socthi-vms.adb (C_Recvmsg): Likewise.
4266 (C_Sendmsg): Likewise.
4267 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
4268 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
4269 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
4270 (C_Sendmsg): Likewise.
4271 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
4272 (C_Sendmsg): Likewise.
4273 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
4274 (Write): Likewise to call 'write'.
4275 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
4276 (Write): Use correct type to call System.CRTL.write.
4277 * s-tasdeb.adb (Write): Likewise.
4279 2010-06-17 Vincent Celier <celier@adacore.com>
4281 * prj-proc.adb (Copy_Package_Declarations): Change argument name
4282 Naming_Restricted to Restricted. If Restricted is True, do not copy the
4283 value of attribute Linker_Options.
4285 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
4287 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
4288 (Case_Statement_to_gnu): Adjust.
4289 (Loop_Statement_to_gnu): Likewise.
4290 (Subprogram_Body_to_gnu): Likewise.
4291 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
4292 (Compilation_Unit_to_gnu): Likewise.
4294 2010-06-17 Robert Dewar <dewar@adacore.com>
4296 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
4297 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
4298 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
4299 sem_dist.adb, sem_util.adb: Use Make_Temporary
4300 * itypes.ads, tbuild.ads: Minor comment update
4301 * exp_ch9.adb, exp_dist.adb: Minor reformatting
4303 2010-06-17 Thomas Quinot <quinot@adacore.com>
4305 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
4307 2010-06-17 Robert Dewar <dewar@adacore.com>
4309 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
4311 2010-06-17 Thomas Quinot <quinot@adacore.com>
4313 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
4315 2010-06-17 Robert Dewar <dewar@adacore.com>
4317 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
4318 * tbuild.ads (Make_Temporary): More comment updates
4319 * tbuild.adb: Minor reformatting
4321 2010-06-17 Robert Dewar <dewar@adacore.com>
4323 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
4324 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
4326 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
4328 (Make_Temporary): Add more extensive documentation
4330 2010-06-17 Robert Dewar <dewar@adacore.com>
4332 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
4333 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
4334 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
4335 where the slice's actions are inserted.
4336 (Decompose_Expr): Account for possible rewriting of slice bounds
4337 resulting from side effects suppression caused by the above freezing,
4338 so that folding of bounds is preserved by such rewriting.
4340 2010-06-17 Robert Dewar <dewar@adacore.com>
4342 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
4343 * freeze.adb (Freeze_Record_Type): Add call to
4344 Check_Record_Representation_Clause.
4345 * sem_ch13.adb (Check_Record_Representation_Clause): New function
4346 (Analyze_Record_Representation_Clause): Split out overlap code into this
4348 (Check_Component_Overlap): Moved inside
4349 Check_Record_Representation_Clause.
4350 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
4352 2010-06-17 Robert Dewar <dewar@adacore.com>
4354 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
4356 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
4357 sem_eval.adb: Use Ekind_In
4359 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4361 * sem_ch8.adb: better error message for illegal inherited discriminant
4363 2010-06-17 Vincent Celier <celier@adacore.com>
4365 * bindusg.adb: Remove lines for -A and -C
4366 * gnat_ugn.texi: Remove all documentation and examples of switches -A
4367 and -C for gnatbind and gnatlink.
4368 * gnatlink.adb (Usage): Remove lines for -A and -C
4369 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
4371 * gcc-interface/Make-lang.in: Update dependencies.
4373 2010-06-17 Vincent Celier <celier@adacore.com>
4375 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
4376 local Argument_List variable Args.
4377 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
4379 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
4380 for subsequent switches in Args.
4381 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
4383 * gcc-interface/Make-lang.in: Update dependencies.
4385 2010-06-17 Robert Dewar <dewar@adacore.com>
4387 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
4388 Equivalent_Type to match documentation.
4390 2010-06-17 Robert Dewar <dewar@adacore.com>
4392 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
4393 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
4394 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
4396 2010-06-17 Thomas Quinot <quinot@adacore.com>
4398 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
4400 2010-06-17 Thomas Quinot <quinot@adacore.com>
4402 * freeze.adb (Freeze_Expression): Short circuit operators are valid
4403 freeze node insertion points.
4405 2010-06-17 Robert Dewar <dewar@adacore.com>
4407 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
4408 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
4410 2010-06-17 Gary Dismukes <dismukes@adacore.com>
4412 * layout.adb (Layout_Type): Broaden test for setting an array type's
4413 Component_Size to include all scalar types, not just discrete types
4414 (components of real types were missed).
4415 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
4416 on the itype created for an index (consistent with Make_Index and
4417 avoids possible Assert_Failures).
4419 2010-06-17 Robert Dewar <dewar@adacore.com>
4421 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
4422 * einfo.adb: Minor code reformatting (use Ekind_In)
4424 2010-06-17 Robert Dewar <dewar@adacore.com>
4426 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
4429 2010-06-17 Vincent Celier <celier@adacore.com>
4431 * back_end.adb: Minor comment updates
4432 * switch-c.adb: Remove dependencies on gcc C sources
4433 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
4436 2010-06-17 Ed Schonberg <schonberg@adacore.com>
4438 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
4439 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
4440 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
4441 Remove use of Node field in SCOs table
4442 (Output_Header): Set 'd' to initially disable pragma entry
4443 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
4444 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
4445 Use C2 field of pragma decision header to indicate enabled.
4446 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
4447 * gcc-interface/Make-lang.in: Update dependencies.
4449 2010-06-17 Vincent Celier <celier@adacore.com>
4451 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
4452 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
4453 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
4454 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
4456 * switch-c.adb: Copied a number of global declarations from back_end.adb
4457 (Len_Arg): New function copied from back_end.adb
4458 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
4459 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
4460 Switch_Subsequently_Cancelled.
4461 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
4462 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
4463 with -lexc on Tru64.
4465 2010-06-17 Robert Dewar <dewar@adacore.com>
4467 * prj.ads, prj.adb: Minor reformatting
4469 2010-06-17 Thomas Quinot <quinot@adacore.com>
4471 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
4472 CP line for a disabled pragma.
4474 2010-06-17 Emmanuel Briot <briot@adacore.com>
4476 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
4478 (Process_Declarative_Item): An invalid value in an typed variable
4479 declaration is no longer always fatal.
4481 2010-06-16 Arnaud Charlet <charlet@adacore.com>
4483 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
4484 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
4487 2010-06-16 Javier Miranda <miranda@adacore.com>
4489 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
4490 node referenced by the SCIL node of dispatching "=" to skip the tags
4493 2010-06-16 Ed Schonberg <schonberg@adacore.com>
4495 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
4496 to prevent cascaded errors and compilation aborts.
4498 2010-06-16 Robert Dewar <dewar@adacore.com>
4500 * back_end.adb (Switch_Subsequently_Cancelled): New function
4501 Move declarations to package body level to support this change
4502 * back_end.ads (Switch_Subsequently_Cancelled): New function
4503 * gnat_ugn.texi: Document -gnat-p switch
4504 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
4505 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
4506 * usage.adb: Add line for -gnat-p switch
4507 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
4509 2010-06-16 Robert Dewar <dewar@adacore.com>
4511 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
4514 2010-06-16 Robert Dewar <dewar@adacore.com>
4516 * exp_disp.adb: Minor reformatting
4518 2010-06-16 Ed Schonberg <schonberg@adacore.com>
4520 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
4521 base type only if it was not previously created for the partial view.
4523 2010-06-16 Thomas Quinot <quinot@adacore.com>
4525 * tbuild.ads: Minor comment fix
4527 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
4529 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
4530 (gnu_except_ptr_stack): Change type to VEC. Update comment.
4531 (gnu_elab_proc_stack): Likewise.
4532 (gnu_return_label_stack): Likewise.
4533 (gnu_loop_label_stack): Likewise.
4534 (gnu_switch_label_stack): Likewise.
4535 (gnu_constraint_label_stack): Likewise.
4536 (gnu_storage_error_label_stack): Likewise.
4537 (gnu_program_error_label_stack): Likewise.
4538 (push_exception_label_stack): Take a VEC ** instead of a tree *.
4539 (push_stack): Likewise. Remove unused second parameter. Update
4541 (pop_stack): Take a VEC * instead of a tree *. Update callers.
4542 (gigi): Initialize stacks as VECs.
4543 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
4544 (Case_Statement_to_gnu): Likewise.
4545 (Subprogram_Body_to_gnu): Likewise.
4546 (call_to_gnu): Likewise.
4547 (Exception_Handler_to_gnu_sjlj): Likewise.
4548 (gnat_to_gnu): Likewise.
4549 (get_exception_label): Likewise.
4551 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4553 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
4554 anonymous base generated when the parent is a constrained discriminated
4555 type, propagate interface list to first subtype because it may appear
4556 in a current instance within the extension part of the derived type
4557 declaration, and its own subtype declaration has not been elaborated
4559 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
4560 determine whether it has the controlling type.
4562 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
4564 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
4565 raise of CE, SE and PE have the reason correctly set and are properly
4566 expanded before stopping the expansions of .NET/JVM exceptions.
4568 2010-06-14 Robert Dewar <dewar@adacore.com>
4570 * opt.ads (Check_Policy_List): Add some clarifying comments
4571 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
4572 on rewritten Assert pragma.
4574 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4576 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
4577 controlled operations, so that they will be treated as overriding even
4578 if the overridden subprogram is marked Is_Hidden, as long as the
4579 overridden subprogram's parent subprogram is not hidden.
4581 2010-06-14 Robert Dewar <dewar@adacore.com>
4583 * debug.adb: Entry for gnatw.d no longer specific for while loops
4584 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
4585 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
4586 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
4587 new calling sequence to include test for EXIT WHEN.
4588 (Analyze_Exit_Statement): Chain EXIT statement into exit statement chain
4589 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
4591 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
4593 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
4594 PRAGMA, not to pragma identifier).
4595 (Next_Exit_Statement): New attribute of N_Exit_Statement node
4597 2010-06-14 Robert Dewar <dewar@adacore.com>
4599 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
4602 2010-06-14 Robert Dewar <dewar@adacore.com>
4604 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
4605 missing pragma argument identifier.
4607 2010-06-14 Robert Dewar <dewar@adacore.com>
4609 * atree.ads, atree.adb (Ekind_In): New functions.
4611 2010-06-14 Robert Dewar <dewar@adacore.com>
4613 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
4615 2010-06-14 Robert Dewar <dewar@adacore.com>
4617 * usage.adb (Usage): Redo documentation of -gnatwa.
4619 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4621 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
4622 an untagged incomplete type that is a limited view.
4624 2010-06-14 Sergey Rybin <rybin@adacore.com>
4626 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
4629 2010-06-14 Thomas Quinot <quinot@adacore.com>
4631 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
4632 factoring duplicated code between...
4633 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
4634 * a-envvar.ads: Minor reformatting
4636 2010-06-14 Arnaud Charlet <charlet@adacore.com>
4638 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
4640 (Scan_ALI): Take into account new Visibility field.
4641 (Visibility_Kind): New type.
4642 (Xref_Entity_Record): Replace Lib field by Visibility.
4644 * gcc-interface/Make-lang.in: Update dependencies.
4646 2010-06-14 Pascal Obry <obry@adacore.com>
4648 * raise.h: Remove unused defintions.
4650 2010-06-14 Bob Duff <duff@adacore.com>
4652 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
4653 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
4654 the incorrect error "proper body expected".
4655 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
4656 allowed here" error in case of subunits, which was triggered by the
4657 above change to P_Subunit.
4659 2010-06-14 Sergey Rybin <rybin@adacore.com>
4661 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
4663 2010-06-14 Thomas Quinot <quinot@adacore.com>
4665 * lib-util.adb: Minor code reorganization.
4667 2010-06-14 Robert Dewar <dewar@adacore.com>
4669 * ali.adb (Scan_ALI): Implement reading and storing of N lines
4670 (Known_ALI_Lines): Add entry for 'N' (notes)
4671 * ali.ads (Notes): New table to store Notes information
4672 * alloc.ads: Add entries for Notes table
4673 * lib-util.adb (Write_Info_Int): New procedure
4674 (Write_Info_Slit): New procedure
4675 (Write_Info_Uint): New procedure
4676 * lib-util.ads (Write_Info_Int): New procedure
4677 (Write_Info_Slit): New procedure
4678 (Write_Info_Uint): New procedure
4679 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
4680 * lib-writ.ads: Update documentation for N (Notes) lines
4681 * lib.adb (Store_Note): New procedure
4682 * lib.ads (Notes): New table
4683 (Store_Note): New procedure
4684 * sem_prag.adb: Call Store_Note for affected pragmas
4686 2010-06-14 Thomas Quinot <quinot@adacore.com>
4688 * socket.c: Fix wrong condition in #ifdef
4689 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
4690 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
4691 because on VMS this type is a 32-bit pointer which is not compatible
4692 with the default for C pointers for code compiled with gcc on that
4695 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4697 * sem_util (Is_VMS_Operator): New predicate to determine whether an
4698 operator is an intrinsic operator declared in the DEC system extension.
4699 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
4700 if the operator is a VMS intrinsic.
4701 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
4702 constant-folded if the operands are signed and the operator is a VMS
4705 2010-06-14 Robert Dewar <dewar@adacore.com>
4707 * g-socket.adb, gnatcmd.adb: Minor reformatting.
4709 2010-06-14 Pascal Obry <obry@adacore.com>
4711 * s-finimp.adb: Fix typo.
4712 * raise.h: Remove duplicate blank line.
4714 2010-06-14 Vincent Celier <celier@adacore.com>
4716 * prj-nmsc.adb (Add_Sources): Always set the object file and the
4717 switches file names, as the configuration of the language may change
4718 in an extending project.
4719 (Process_Naming_Scheme): For sources of projects that are extended, set
4720 the configuration of the language from the highest extending project
4721 where the language is declared.
4723 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4725 * sem_res.adb (Resolve_Call): For infinite recursion check, test
4726 whether the called subprogram is inherited from a containing subprogram.
4727 (Same_Or_Aliased_Subprograms): New function
4729 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4731 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
4732 use-visible, check whether it is a primitive for more than one type.
4734 2010-06-14 Robert Dewar <dewar@adacore.com>
4736 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
4738 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
4739 Has_Pragma_Unmodified flag.
4741 2010-06-14 Thomas Quinot <quinot@adacore.com>
4743 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
4744 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
4745 now done in GNAT.Sockets if necessary.
4746 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
4747 Ensure mutual exclusion for netdb operations if the target platform
4749 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating struct
4750 hostent as an opaque type to improve portability.
4751 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
4752 gethostbyYYY using proprietary VxWorks API so that a uniform interface
4753 is available for the Ada side.
4754 * gcc-interface/Makefile.in: Remove g-sttsne-*
4755 * gcc-interface/Make-lang.in: Update dependencies.
4757 2010-06-14 Vincent Celier <celier@adacore.com>
4759 * gnatcmd.adb (Mapping_File): New function.
4761 2010-06-14 Javier Miranda <miranda@adacore.com>
4763 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
4765 2010-06-14 Arnaud Charlet <charlet@adacore.com>
4767 * ali.adb: Fix typo.
4768 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
4770 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4772 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
4775 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
4776 the context does not have a homonym of the selector, emit default
4779 2010-06-14 Robert Dewar <dewar@adacore.com>
4781 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
4784 2010-06-14 Arnaud Charlet <charlet@adacore.com>
4786 * lib-xref.ads: Doc updates:
4787 - Allocate 'Q' for #include entity kind
4789 - Allocate 'g' for regular macros
4790 - Allocate 'G' for function-like macros
4792 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4794 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
4795 Indicates that there is an instantiation in the current unit that
4796 loaded the body of the unit denoted by the with_clause.
4797 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
4798 whether a with_clause in the current context denotes the unit that
4799 holds the generic declaration, and mark the with_clause accordingly.
4800 (Instantiate_Package_Body): call Mark_Context.
4801 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
4802 whether a given body should be traversed before the spec of the main
4805 2010-06-14 Ed Falis <falis@adacore.com>
4807 * sysdep.c: Fix 653 build against vThreads headers.
4809 2010-06-14 Robert Dewar <dewar@adacore.com>
4811 * sinfo.ads: Minor reformatting.
4813 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4815 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
4816 the spec has been generated for a body without spec that carries an
4817 Inline_Always pragma.
4819 2010-06-14 Arnaud Charlet <charlet@adacore.com>
4821 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
4824 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
4826 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
4827 declaration for VMs, as those are useless and might lead to duplicated
4828 local variable names in the generated code.
4829 * gcc-interface/Make-lang.in: Update dependencies.
4831 2010-06-14 Robert Dewar <dewar@adacore.com>
4833 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
4835 2010-06-14 Robert Dewar <dewar@adacore.com>
4837 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
4838 is renamed as Has_Following_Address_Clause.
4839 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
4840 to allow the caller to avoid Initialize_Scalars having an effect.
4841 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
4842 scalars with an address clause specified.
4843 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
4844 to allow the caller to avoid Initialize_Scalars having an effect.
4845 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
4846 (where it was called Has_Address_Clause).
4847 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
4848 (where it was called Has_Address_Clause).
4849 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
4850 problems for Initialize_Scalars (since we no longer initialize objects
4851 with an address clause.
4853 2010-06-14 Robert Dewar <dewar@adacore.com>
4855 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
4858 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4860 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
4861 on the entity of an implicitly generated postcondition procedure.
4863 2010-06-14 Thomas Quinot <quinot@adacore.com>
4865 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
4866 Discriminant_Constraint elist from full view to private view.
4868 2010-06-14 Robert Dewar <dewar@adacore.com>
4870 * sem_res.adb: Minor reformatting.
4872 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4874 * sem.adb: New version of unit traversal.
4876 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
4877 within a generic unit in the table of delayed calls.
4879 2010-06-14 Robert Dewar <dewar@adacore.com>
4881 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
4883 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4885 * sem_ch12.adb (Save_References): If an identifier has been rewritten
4886 during analysis as an explicit dereference, keep the reference implicit
4887 in the generic, but preserve the entity if global. This prevents
4888 malformed generic trees in the presence of some nested generics.
4890 2010-06-14 Sergey Rybin <rybin@adacore.com>
4892 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
4893 tool with '-files=' option. Also fix some small errors (wrong brackets)
4895 2010-06-14 Vincent Celier <celier@adacore.com>
4897 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
4898 the ALI files on the command line.
4900 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
4901 the same value as the parameter of the same name.
4902 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
4904 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
4905 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
4906 emit version symbols only for the units of the library.
4907 (Gen_Versions_C): Ditto.
4909 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4911 * sem_ch4.adb: Fix typo.
4913 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
4915 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
4916 vector IO doesn't work at default value properly.
4918 2010-06-14 Doug Rupp <rupp@adacore.com>
4920 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
4922 2010-06-14 Vincent Celier <celier@adacore.com>
4924 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
4925 sources of the project if a switch -files= is used.
4927 2010-06-14 Thomas Quinot <quinot@adacore.com>
4929 * exp_attr.adb: Minor reformatting.
4931 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4933 * gnat_ugn.texi: Minor typo fixes and wording changes.
4935 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4937 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
4938 prefixed form, do not re-analyze first actual, which may need an
4939 implicit dereference.
4940 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
4941 prefixed notation, the analysis will rewrite the node, and possible
4942 errors appear in the rewritten name of the node.
4943 * sem_res.adb: If a call is ambiguous because its first parameter is
4944 an overloaded call, report list of candidates, to clarify ambiguity of
4947 2010-06-14 Doug Rupp <rupp@adacore.com>
4949 * s-auxdec-vms-alpha.adb: New package body implementing legacy
4950 VAX instructions with Asm insertions.
4951 * s-auxdec-vms_64.ads: Inline VAX queue functions
4952 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
4953 that show up only on VMS.
4954 * gcc-interface/Makefile.in: Provide translation for
4955 s-auxdec-vms-alpha.adb.
4957 2010-06-14 Olivier Hainque <hainque@adacore.com>
4959 * initialize.c (VxWorks section): Update comments.
4961 2010-06-14 Robert Dewar <dewar@adacore.com>
4963 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
4965 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
4967 * init.c: Code clean up.
4969 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4971 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
4972 not insert address clause in table for later validation if type of
4973 entity is generic, to prevent possible spurious errors.
4975 * sem_ch8.adb: Code clean up.
4977 2010-06-14 Ben Brosgol <brosgol@adacore.com>
4979 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
4980 texi2pdf and texi2html.
4981 Document how to change scheduling properties on HP-UX.
4983 2010-06-14 Thomas Quinot <quinot@adacore.com>
4985 * g-socket.ads: Remove misleading comments.
4987 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
4989 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
4990 CLI_Target as this prevents proper detection of exported names
4991 duplicates when the exported language is different to CIL.
4992 (Process_Interface_Name): Add check for CIL convention exports,
4993 replacing the old one from Check_Duplicated_Export_Name.
4995 2010-06-14 Matthew Heaney <heaney@adacore.com>
4997 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
4998 and new last satisfy constraints.
4999 (Delete_Last): prevent overflow for subtraction of index values
5000 (To_Vector): prevent overflow for addition of index values
5002 2010-06-14 Ed Schonberg <schonberg@adacore.com>
5004 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
5005 rewritten call, preserve the resulting type to prevent spurious errors,
5006 when the call is implicitly dereferenced in the context of an in-out
5009 * checks.adb (Apply_Discriminant_Check): If the target of the
5010 assignment is a renaming of a heap object, create constrained type for
5013 2010-06-14 Pascal Obry <obry@adacore.com>
5015 * prj-proc.adb: Fix copy of object directory for extending projects.
5017 2010-06-14 Jose Ruiz <ruiz@adacore.com>
5019 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
5020 (__gnat_install_handler, PowerPC linux): Activate the alternative
5023 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
5025 * gnat_rm.texi: Move to GFDL version 1.3.
5026 * gnat-style.texi: Ditto.
5027 * gnat_ugn.texi: Ditto.
5029 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
5032 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
5035 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
5037 * gcc-interface/utils.c (update_pointer_to): Initialize last.
5039 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
5041 * gcc-interface/ada-tree.h: Fix formatting nits.
5043 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5045 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
5047 (init_dummy_type): Likewise.
5048 (gnat_pushlevel): Likewise.
5050 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
5051 (Subprogram_Body_to_gnu): Likewise.
5052 (Compilation_Unit_to_gnu): Likewise.
5053 (start_stmt_group): Likewise.
5054 (extract_encoding): Likewise.
5055 (decode_name): Likewise.
5057 * gcc-interface/misc.c (gnat_printable_name): Likewise.
5059 * gcc-interface/decl.c (annotate_value): Likewise.
5061 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
5063 (struct lang_decl): Likewise.
5064 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
5065 (SET_DECL_LANG_SPECIFIC): Likewise.
5067 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
5069 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
5070 * gcc-interface/lang-specs.h: Likewise.
5072 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
5075 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
5077 2010-06-01 Arnaud Charlet <charlet@adacore.com>
5079 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
5081 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
5083 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
5084 TYPE_DECL of the equivalent type instead of building a new one.
5086 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
5088 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
5089 Fix nits in comments.
5090 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
5091 * gcc-interface/trans.c (gigi): Likewise.
5092 (Attribute_to_gnu): Likewise.
5093 (Case_Statement_to_gnu): Likewise.
5094 (gnat_to_gnu): Adjust warning message.
5095 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
5096 (build_vms_descriptor32): Likewise.
5098 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
5100 * gcc-interface/decl.c: Pretend to be a backend file by undefining
5101 IN_GCC_FRONTEND (still need rtl.h here).
5103 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5105 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
5106 (gigi): Adjust call to set_stack_check_libfunc.
5108 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5110 * gcc-interface/utils.c: Do not include rtl.h.
5112 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5114 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
5115 and gimple.h. Explain why rtl.h has to be included.
5116 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
5117 * gcc-interface/targtyps.c: Do not include tm_p.h
5118 * gcc-interface/utils2.c: Do not include flags.h.
5119 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
5120 and explain why it has to be included.
5121 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
5123 Include function.h and explain why. Explain why except.h is included.
5124 (enumerate_modes): Remove unused function.
5125 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
5126 * gcc-interface/Make-lang.in: Update dependencies.
5128 2010-05-25 Joseph Myers <joseph@codesourcery.com>
5130 * gcc-interface/misc.c (internal_error_function): Add context
5131 parameter. Use it to access show_column flag and instead of using
5132 global_dc. Call warn_if_plugins.
5133 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
5135 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
5137 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
5138 * gcc-interface/trans.c (unshare_save_expr): Delete.
5139 (gigi): Do not unshare trees under SAVE_EXPRs here.
5141 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
5143 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
5145 * gcc-interface/utils.c (build_function_stub): Likewise.
5147 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5149 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
5150 for Wuninitialized without -O.
5152 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
5154 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
5155 ADT_exception_data_name_id.
5156 (exception_data_name_id): New define.
5157 * gcc-interface/trans.c (gigi): Initialize it.
5158 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
5159 exception type for standard exception definitions. Do not make them
5161 <E_Record_Type>: Equate fields of types associated with an exception
5162 definition to those of the standard exception type.
5164 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
5166 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
5168 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
5170 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
5171 code, improve comments and fix formatting nits.
5173 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
5175 * gcc-interface/utils.c (update_pointer_to): Return early if the old
5176 pointer already points to the new type. Chain the old pointer and its
5177 variants at the end of new pointer's chain after updating them.
5179 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
5181 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
5182 built for interfaces.
5183 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
5184 imported_p instead of Is_Imported when considering constants.
5185 Do not promote alignment of exported objects.
5186 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
5188 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
5190 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
5191 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
5192 constants really constant.
5193 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
5195 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
5197 * gcc-interface/decl.c (make_aligning_type): Declare the type.
5199 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
5201 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
5202 expressions of variant part of record types declared at library level.
5204 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
5206 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
5207 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
5208 (rest_of_record_type_compilation): Adjust call to create_field_decl.
5209 (make_descriptor_field): Likewise and pass correctly typed constants.
5210 (build_unc_object_type): Likewise.
5211 (unchecked_convert): Likewise.
5212 * gcc-interface/decl.c (elaborate_expression_2): New static function.
5213 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
5214 Adjust call to create_field_decl.
5215 (make_aligning_type): Likewise.
5216 (make_packable_type): Likewise.
5217 (maybe_pad_type): Likewise.
5218 (gnat_to_gnu_field): Likewise.
5219 (components_to_record): Likewise.
5220 (create_field_decl_from): Likewise.
5221 (create_variant_part_from): Remove superfluous test.
5222 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
5224 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
5226 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
5227 (build_unc_object_type_from_ptr): Likewise.
5228 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
5229 and pass it to create_type_decl. Declare the type. Simplify.
5230 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
5231 it to build_unc_object_type.
5232 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
5233 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
5234 (gnat_to_gnu): Likewise.
5235 * gcc-interface/utils2.c (build_allocator): Likewise.
5237 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
5240 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
5242 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5244 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
5246 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
5249 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
5251 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
5253 * gnathtml.pl: Use 755 as mask for new directories.
5255 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
5257 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
5258 constant constructors before taking their address.
5260 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
5262 * exp_dbug.ads: Fix outdated description. Mention link between XVS
5264 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
5265 XVZ variable as unit size of XVS type.
5266 (maybe_pad_type): Likewise.
5268 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
5270 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
5271 use memmove if the array type is bit-packed.
5273 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
5275 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
5276 build_common_tree_nodes.
5278 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
5280 * gsocket.h: Make sure that winsock2.h is included before windows.h.
5282 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
5284 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
5287 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
5289 * uintp.h (UI_Lt): Declare.
5290 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
5291 computation in sizetype.
5292 <E_Array_Subtype>: Use unified handling for all index types. Do not
5293 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
5295 (annotate_value): Change test for negative values.
5296 (validate_size): Apply test for negative values on GNAT nodes.
5297 (set_rm_size): Likewise.
5298 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
5299 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
5300 for negative values.
5301 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
5302 (builtin_type_for_size): Adjust definition of signed_size_type_node.
5303 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
5304 lengths against zero.
5306 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
5308 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
5309 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
5310 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
5311 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
5312 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
5313 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
5315 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
5316 flag_signed_char. Tag sizetype with "size_type" moniker.
5317 * gcc-interface/trans.c (gigi): Add standard_character parameter.
5318 Remove useless built-in types. Equate unsigned_char_type_node to
5319 Standard.Character. Use it instead of char_type_node throughout.
5320 (Attribute_to_gnu): Likewise.
5321 (gnat_to_gnu): Likewise.
5322 * gcc-interface/utils2.c (build_call_raise): Likewise.
5324 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
5326 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
5327 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
5328 (sbitsize_one_node): New macro.
5329 (sbitsize_unit_node): Likewise.
5330 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
5331 latent bug in the computation of subrange_p. Fold wider_p predicate.
5332 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
5333 the final comparison.
5334 (make_aligning_type): Build real negation and use sizetype throughout
5335 the offset computation.
5336 (maybe_pad_type): Do not issue the warning when the new size expression
5338 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
5339 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
5341 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
5343 (gnat_to_gnu) <N_Free_Statement>: Likewise.
5344 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
5345 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
5346 constants in sizetype. Remove dead code and tweak comments. Generate
5347 equality instead of inequality comparisons for zero length tests.
5349 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
5351 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
5352 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
5353 <object>: Do not create the fake PARM_DECL if no debug info is needed.
5354 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
5355 purposes if no debug info is needed.
5356 Fix formatting. Reorder and add comments.
5357 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
5358 variable and remove obsolete comment.
5359 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
5360 (convert_vms_descriptor32): Likewise.
5361 (convert): Remove dead code.
5362 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
5363 the reference to the P_ARRAY pointer.
5364 <POINTER_TYPE>: Likewise.
5365 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
5366 (gnat_init_decl_processing): Delete, move contents to...
5367 * gcc-interface/misc.c (gnat_init): ...here.
5369 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
5371 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
5372 calls. Return true for conversion from a record subtype to its type.
5374 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
5376 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
5377 lieu of integer_type_node for boolean operations.
5378 (choices_to_gnu): Likewise.
5379 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
5380 (Loop_Statement_to_gnu): Likewise.
5381 (establish_gnat_vms_condition_handler): Likewise.
5382 (Exception_Handler_to_gnu_sjlj): Likewise.
5383 (gnat_to_gnu): Likewise.
5384 (build_unary_op_trapv): Likewise.
5385 (build_binary_op_trapv): Likewise.
5386 (emit_range_check): Likewise.
5387 (emit_index_check): Likewise.
5388 (convert_with_check): Likewise.
5389 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
5390 (convert_vms_descriptor32): Likewise.
5391 (convert_vms_descriptor): Likewise.
5392 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
5393 (compare_arrays): Use boolean instead of integer constants.
5394 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
5395 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
5397 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
5398 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
5399 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
5400 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
5401 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
5402 for boolean operations.
5403 (fill_vms_descriptor): Likewise. Fix formatting nits.
5405 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
5407 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
5408 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
5410 (LOOP_STMT_COND): ...this.
5411 (LOOP_STMT_BOTTOM_COND_P): New flag.
5412 (LOOP_STMT_TOP_UPDATE_P): Likewise.
5413 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
5414 (can_equal_min_val_p): New static inline function.
5415 (can_equal_max_val_p): Likewise.
5416 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
5417 new LOOP_STMT semantics. Use two different strategies depending on
5418 whether optimization is enabled to translate the loop.
5419 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
5421 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
5423 * uintp.adb (UI_From_Dint): Remove useless code.
5424 (UI_From_Int): Likewise.
5425 * uintp.h: Reorder declarations.
5426 (UI_From_gnu): Declare.
5427 (UI_Base): Likewise.
5428 (Vector_Template): Likewise.
5429 (Vector_To_Uint): Likewise.
5432 * gcc-interface/gigi.h: Tweak comments.
5433 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
5434 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
5436 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
5437 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
5438 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
5439 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
5442 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
5444 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
5446 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
5447 (smaller_form_type_p): ...this. Change parameter and variable names.
5448 (call_to_gnu): Use the nominal type of the parameter to create the
5449 temporary if it's a smaller form of the actual type.
5450 (addressable_p): Return false if the actual type is integral and its
5451 size is greater than that of the expected type.
5453 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
5455 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
5456 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
5457 (process_attributes): Delete.
5458 (post_error_ne_num): Change parameter name.
5459 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
5460 with -g3. Remove a couple of obsolete lines. Minor tweaks.
5461 If type annotating mode, operate on trees to compute the adjustment to
5462 the sizes of tagged types. Fix long line.
5463 (cannot_be_superflat_p): Tweak head comment.
5464 (annotate_value): Fold local constant.
5465 (set_rm_size): Fix long line.
5466 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
5467 (Attribute_to_gnu): Fix long line.
5468 <Attr_Size>: Remove useless assertion.
5469 Reorder statements. Use size_binop routine.
5470 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
5471 Create local variables for the label and the test. Tweak comments.
5472 (Subprogram_Body_to_gnu): Reset cfun to NULL.
5473 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
5474 (process_inlined_subprograms): Integrate into...
5475 (Compilation_Unit_to_gnu): ...this.
5476 (gnat_to_gnu): Fix long line.
5477 (post_error_ne_num): Change parameter name.
5478 * gcc-interface/utils.c (process_attributes): Static-ify.
5479 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
5480 (create_type_decl): Add comment.
5481 (create_var_decl_1): Process the attributes after adding the VAR_DECL
5482 to the current binding level.
5483 (create_subprog_decl): Likewise for the FUNCTION_DECL.
5484 (end_subprog_body): Do not reset cfun to NULL.
5485 (build_vms_descriptor32): Fix long line.
5486 (build_vms_descriptor): Likewise.
5487 (handle_nonnull_attribute): Likewise.
5488 (convert_vms_descriptor64): Likewise.
5489 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
5490 (gnat_protect_expr): Fix thinko.
5492 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
5494 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
5495 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
5496 before translating the top-level node.
5497 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
5498 <N_Object_Declaration>: Likewise.
5499 <N_Assignment_Statement>: Likewise.
5500 <N_Unchecked_Type_Conversion>: Likewise.
5501 (call_to_gnu): Remove kludge.
5502 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
5503 associated with user returns to be preserved.
5504 (gnat_to_gnu): Add special code to deal with boolean rvalues.
5505 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
5507 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
5508 <INDIRECT_REF>: Call build_fold_indirect_ref.
5510 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
5512 * g-socket.adb: A target can have multiple missing errno's. This
5513 will result in multiple errno's being defined as -1. Because of this
5514 we can not use a case but must use a series of if's to avoid
5515 a duplicate case error in GNAT.Sockets.Resolve_Error.
5517 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
5519 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
5520 a statement. Otherwise, if at top-level, push the processing of the
5521 elaboration routine. In the misaligned case, issue the error messages
5522 again on entry and create the temporary explicitly. Do not issue them
5524 For a function call, emit the range check if necessary.
5525 In the copy-in copy-out case, create the temporary for the return
5527 Do not unnecessarily convert by-ref parameters to the formal's type.
5528 Remove obsolete guards in conditions.
5529 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
5530 target to call_to_gnu in all cases.
5531 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
5532 (addressable_p) <CONSTRUCTOR>: Return false if not static.
5533 <COMPOUND_EXPR>: New case.
5534 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
5535 expression if it has unconstrained array type.
5536 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
5537 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
5540 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
5542 * gcc-interface/trans.c (gigi): Do not start statement group.
5543 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
5544 Start statement group and push binding level here...
5545 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
5546 Do not push fake contexts at top level. Remove redundant code.
5547 (call_to_gnu): Rename a local variable and constify another.
5548 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
5549 (set_current_block_context): Set it as the group's block.
5550 (gnat_init_decl_processing): Delete unrelated init code.
5551 (end_subprog_body): Use NULL_TREE.
5553 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
5555 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
5556 side-effects of actual parameters before the call.
5558 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
5560 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
5562 (set_rm_size): Reorder and remove obsolete test.
5564 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
5566 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
5567 (gigi): Adjust ATTRIBUTE_UNUSED markers.
5568 * gcc-interface/gadaint.h: New file.
5569 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
5570 (__gnat_to_canonical_file_spec): Remove declaration.
5571 (number_names): Delete.
5572 (number_files): Likewise.
5574 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
5577 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
5579 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
5581 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
5582 Ekind. Return early for class-wide types. Do not compute initializer
5583 unless necessary. Reuse the tree for an associated class-wide type
5584 only if processing its root type.
5586 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
5588 * gsocket.h: Run-time can no longer be built without network
5589 OS headers available. Changing RTEMS GNAT build procedure to
5590 reflect this and letting run-time build use network .h files.
5592 2010-04-13 Duncan Sands <baldrick@free.fr>
5594 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
5595 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
5597 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
5599 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
5600 (parent_name_id): New macro.
5601 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
5602 * gcc-interface/trans.c (gigi): Initialize it.
5603 (lvalue_required_p) <N_Type_Conversion>: New case.
5604 <N_Qualified_Expression>: Likewise.
5605 <N_Allocator>: Likewise.
5606 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
5608 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
5610 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
5611 (DECL_CONST_ADDRESS_P): New macro.
5612 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
5613 (SAME_FIELD_P): Likewise.
5614 * gcc-interface/decl.c (constructor_address_p): New static function.
5615 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
5616 the return value of above function.
5617 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
5618 passed by reference.
5619 <E_Record_Subtype>: Likewise.
5620 Set TREE_ADDRESSABLE on the type if it passed by reference.
5621 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
5622 (create_field_decl_from): Likewise.
5623 (substitute_in_type): Likewise.
5624 (purpose_member_field): Use SAME_FIELD_P.
5625 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
5626 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
5627 parameter and adjust recursive calls.
5628 <N_Explicit_Dereference>: New case.
5629 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
5630 Adjust calls to lvalue_required_p. Do not return the initializer of a
5631 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
5632 (call_to_gnu): Delay issuing error message for a misaligned actual and
5633 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
5634 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
5635 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
5636 type is passed by reference.
5637 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
5638 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
5639 (build_simple_component_ref): Use SAME_FIELD_P.
5641 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
5643 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
5644 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
5645 front-end's predicate Is_By_Reference_Type. Use consistent order and
5646 remove ??? comment. Use original conversion in all cases, if any.
5647 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
5648 (convert): Use local copy in more cases.
5649 <INDIRECT_REF>: Remove deactivated code.
5650 (unchecked_convert): Use a couple of local copies.
5652 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
5654 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
5656 (lvalue_required_p) <N_Attribute_Reference>: Call it.
5657 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
5658 folding the result only if lvalue_required_for_attribute_p is true.
5659 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
5660 typed constant to build_component_ref.
5661 (unchecked_convert): Likewise.
5662 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
5663 (build_allocator): Likewise.
5665 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
5667 * gcc-interface/utils2.c (build_cond_expr): Take the address and
5668 dereference if the result type is passed by reference.
5670 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
5672 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
5673 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
5674 goto to the next statement.
5676 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
5678 * gcc-interface/gigi.h (maybe_variable): Delete.
5679 (protect_multiple_eval): Likewise.
5680 (maybe_stabilize_reference): Likewise.
5681 (gnat_save_expr): Declare.
5682 (gnat_protect_expr): Likewise.
5683 (gnat_stabilize_reference): Likewise.
5684 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
5685 gnat_stabilize_reference.
5686 (maybe_variable): Delete.
5687 (elaborate_expression_1): Use gnat_save_expr.
5688 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
5689 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
5690 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
5691 <N_Slice>: Use gnat_protect_exp.
5692 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
5693 <N_In>: Use gnat_protect_expr.
5694 Pass NULL to gnat_stabilize_reference.
5695 (build_unary_op_trapv): Use gnat_protect_expr.
5696 (build_binary_op_trapv): Likewise.
5697 (emit_range_check): Likewise.
5698 (emit_index_check): Likewise.
5699 (convert_with_check): Likewise.
5700 (protect_multiple_eval): Move to utils2.c file.
5701 (maybe_stabilize_reference): Merge into...
5702 (gnat_stabilize_reference): ...this. Move to utils2.c file.
5703 (gnat_stabilize_reference_1): Likewise.
5704 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
5705 instead of protect_multiple_eval.
5706 * gcc-interface/utils2.c (compare_arrays): Likewise.
5707 (nonbinary_modular_operation): Likewise.
5708 (maybe_wrap_malloc): Likewise.
5709 (build_allocator): Likewise.
5710 (gnat_save_expr): New function.
5711 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
5712 in common cases. Propagate TREE_READONLY onto dereferences.
5713 (gnat_stabilize_reference_1): Move from trans.c file.
5714 (gnat_stabilize_reference): Likewise.
5716 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
5718 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
5719 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
5720 node. Use the type of the operand to set TREE_READONLY.
5721 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
5722 _REF node. Do not overwrite TREE_READONLY.
5723 (call_to_gnu): Rename local variable and fix various nits. In the
5724 copy-in/copy-out case, build the SAVE_EXPR manually.
5725 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
5726 and fold the computations.
5727 (protect_multiple_eval): Always save entire fat pointers.
5728 (maybe_stabilize_reference): Minor tweaks.
5729 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
5730 tcc_type and tcc_statement.
5731 * gcc-interface/utils.c (convert_to_fat_pointer): Call
5732 protect_multiple_eval in lieu of save_expr.
5733 (convert): Minor tweaks.
5734 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
5735 (builtin_type_for_size): Call gnat_type_for_size directly.
5736 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
5737 (contains_null_expr): Likewise
5738 (gnat_build_constructor): Do not call it.
5739 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
5740 instead of gnat_stabilize_reference to protect the operands.
5741 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
5743 (maybe_wrap_malloc): Likewise.
5744 (build_allocator): Likewise.
5745 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
5746 (gnat_mark_addressable): Rename parameter.
5748 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
5750 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
5751 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
5752 (TYPE_RETURNS_BY_REF_P): Rename into.
5753 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
5754 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
5755 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
5756 (build_return_expr): Likewise.
5757 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
5758 Rename local variables. If the return Mechanism is By_Reference, pass
5759 return_by_invisible_ref_p to create_subprog_type instead of toggling
5760 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
5761 the mechanism. Use regular return for contrained types with non-static
5762 size and return by invisible reference for unconstrained return types
5763 with default discriminants. Update comment.
5764 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
5765 returns by invisible reference, turn the RESULT_DECL into a pointer.
5766 Do not handle DECL_BY_REF_P in the CICO case here.
5767 (call_to_gnu): Remove code handling return by target pointer. For a
5768 function call, if the return type has non-constant size, generate the
5769 assignment with an INIT_EXPR.
5770 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
5771 If the function returns by invisible reference, build the copy return
5773 (add_decl_expr): Initialize the variable with an INIT_EXPR.
5774 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
5775 Adjust for renaming of macros. Copy the node only when necessary.
5776 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
5777 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
5778 (convert_from_reference): Delete.
5779 (is_byref_result): Likewise.
5780 (gnat_genericize_r): Likewise.
5781 (gnat_genericize): Likewise.
5782 (end_subprog_body): Do not call gnat_genericize.
5783 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
5784 (build_return_expr): Adjust parameter names, logic and comment.
5786 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
5788 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
5789 if the size is small enough. Propagate the alignment if there is an
5790 alignment clause on the original array type.
5791 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
5792 Deal with under-aligned packed array types. Copy the size onto the
5793 justified modular type and don't lay it out again. Likewise for the
5794 padding type built for other under-aligned subtypes.
5795 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
5798 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
5800 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
5801 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
5803 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
5805 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
5806 do not set the result type if there is a specified target and do not
5807 convert the result in any cases.
5808 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
5809 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
5811 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
5813 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
5815 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
5818 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
5819 pointer base types are variant of each other. Apply special treatment
5820 for null to fat pointer types in all cases.
5822 2010-01-28 Pascal Obry <obry@adacore.com>
5824 * s-win32.ads: Add some missing constants.
5826 2010-01-28 Vincent Celier <celier@adacore.com>
5828 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
5831 2010-01-28 Robert Dewar <dewar@adacore.com>
5833 * gnat_rm.texi: Minor correction
5835 2010-01-27 Pascal Obry <obry@adacore.com>
5837 * g-awk.adb: ensure that an AWK session is reusable.
5839 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
5841 * g-regist.adb (For_Every_Key): Fix previous change.
5844 2010-01-27 Thomas Quinot <quinot@adacore.com>
5846 * lib-writ.ads: Current version of spec for new N (note) ALI lines
5848 2010-01-27 Yannick Moy <moy@adacore.com>
5850 * a-cdlili.adb (Insert): Correct exception message when cursor
5851 designates wrong list.
5853 2010-01-27 Vincent Celier <celier@adacore.com>
5855 * gnatcmd.adb: When there is only one main specified, the package
5856 support Switches (<main>) and attribute Switches is specified for the
5857 main, use these switches, instead of Default_Switches ("Ada").
5859 2010-01-27 Robert Dewar <dewar@adacore.com>
5861 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
5863 * exp_disp.adb: Minor reformatting
5865 2010-01-27 Tristan Gingold <gingold@adacore.com>
5867 * seh_init.c: Use __ImageBase instead of _ImageBase.
5869 2010-01-27 Javier Miranda <miranda@adacore.com>
5871 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
5872 profile of interface thunks. The type of the controlling formal is now
5873 the covered interface type (instead of the target tagged type).
5875 2010-01-27 Sergey Rybin <rybin@adacore.com>
5877 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
5879 2010-01-27 Robert Dewar <dewar@adacore.com>
5881 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
5882 changed from Expr to N.
5884 2010-01-26 Thomas Quinot <quinot@adacore.com>
5886 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
5887 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
5890 2010-01-26 Vincent Celier <celier@adacore.com>
5892 * prj-attr.adb: Add new attribute Library_Install_Name_Option
5893 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
5894 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5895 attributes Run_Path_Option and Library_Install_Name_Option.
5896 * prj.ads (Project_Configuration): Replace component
5897 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
5898 component Library_Install_Name_Option.
5899 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
5900 Replace Run_Path_Origin_Supported with Run_Path_Origin
5902 2010-01-26 Ed Schonberg <schonberg@adacore.com>
5904 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
5905 is not hidden by a homograph declared in another actual package.
5907 2010-01-26 Robert Dewar <dewar@adacore.com>
5909 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
5910 decisions for pragmas Assert, Check, Precondition, Postcondition if
5912 * scos.ads: Update comments.
5913 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
5914 Also remove obsolete code for CT (exit point) SCOs.
5916 2010-01-26 Thomas Quinot <quinot@adacore.com>
5918 * switch-c.adb: Fix handling of -gnatz*
5920 2010-01-26 Robert Dewar <dewar@adacore.com>
5922 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
5923 qualifiers for FOR/WHILE loops
5924 * scos.ads: Use separate type letters F/W for for/while loops
5926 2010-01-26 Robert Dewar <dewar@adacore.com>
5928 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
5929 entries per line, one for each statement in the sequence).
5930 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
5931 size from 100 to 10_000 for SC_Array to avoid any real possibility of
5932 overflow. Output decisions in for loops.
5933 Exclude labels from CS lines.
5934 * scos.ads: Clarify that label is not included in the entry point
5936 2010-01-26 Robert Dewar <dewar@adacore.com>
5938 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
5939 format of statement sequence SCO entries (one location/statement).
5940 * put_scos.adb (Put_SCOs): Implement new format of CS lines
5941 * scos.ads: Update comments.
5942 * sem_eval.adb: Minor reformatting.
5944 2010-01-26 Robert Dewar <dewar@adacore.com>
5946 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
5947 (Extend_Statement_Sequence): New procedures
5948 (Traverse_Declarations_Or_Statements): New handling for exits.
5950 2010-01-26 Robert Dewar <dewar@adacore.com>
5952 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
5955 2010-01-26 Robert Dewar <dewar@adacore.com>
5957 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
5958 * scos.ads: Clarify handling of logical operators
5960 2010-01-26 Arnaud Charlet <charlet@adacore.com>
5962 * s-tpoben.adb: Update comments.
5964 2010-01-26 Robert Dewar <dewar@adacore.com>
5966 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
5969 2010-01-26 Robert Dewar <dewar@adacore.com>
5971 * scos.ads: Clean up documentation, remove obsolete XOR references
5972 2010-01-26 Vincent Celier <celier@adacore.com>
5974 * gnat_ugn.texi: Complete documentation on the restrictions for
5975 combined options in -gnatxxx switches.
5978 2010-01-26 Arnaud Charlet <charlet@adacore.com>
5980 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
5981 a controlled operation, abort is already deferred at this point, so we
5982 need to use Defer_Abort_Nestable.
5984 2010-01-26 Vincent Celier <celier@adacore.com>
5986 * prj-conf.adb (Get_Config_Switches): Check for a default language for
5987 a project extending a project with no languages.
5989 2010-01-26 Vincent Celier <celier@adacore.com>
5991 * switch-c.adb (Scan_Front_End_Switches): Take into account options
5992 that follow -gnatef.
5993 Allow -gnateG to be followed by other options.
5995 2010-01-26 Robert Dewar <dewar@adacore.com>
5997 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
5998 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
6001 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
6003 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
6004 that allows to iterate over all subkeys of a key.
6006 2010-01-26 Ed Falis <falis@adacore.com>
6008 * sysdep.c: enable NFS for VxWorks MILS
6009 * env.c: enable __gnat_environ for VxWorks MILS
6010 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
6012 2010-01-25 Bob Duff <duff@adacore.com>
6014 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
6015 is an internally-generated positional aggregate, and the bounds are
6016 already correctly set. We don't want to overwrite those bounds with
6017 bounds determined by context.
6019 2010-01-25 Robert Dewar <dewar@adacore.com>
6021 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
6022 exp_ch9.adb, g-sechas.ads: Minor reformatting.
6024 2010-01-25 Thomas Quinot <quinot@adacore.com>
6026 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
6027 integer type) before subtracting 1, otherwise the computation may wrap
6028 (because size_t is modular) and cause the conversion to fail.
6030 2010-01-25 Ed Falis <falis@adacore.com>
6032 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
6034 2010-01-25 Vincent Celier <celier@adacore.com>
6036 * prj-attr.adb: New attribute Run_Path_Origin_Required
6037 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
6038 attribute Run_Path_Origin_Required.
6039 * prj.ads (Project_Configuration): New component
6040 Run_Path_Origin_Supported.
6041 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
6043 2010-01-25 Ed Schonberg <schonberg@adacore.com>
6045 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
6046 have errors, do not continue resolution of the aggregate.
6047 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
6048 the array type indicates an error.
6050 2010-01-25 Bob Duff <duff@adacore.com>
6052 * sinfo.ads: Minor comment fixes.
6054 2010-01-25 Bob Duff <duff@adacore.com>
6056 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
6058 2010-01-25 Arnaud Charlet <charlet@adacore.com>
6060 * gnatvsn.ads (Current_Year): Update.
6062 2010-01-25 Florian Villoing <villoing@adacore.com>
6064 * gnat_ugn.texi: Fix typo.
6066 2010-01-25 Thomas Quinot <quinot@adacore.com>
6068 * scos.ads: Update specification.
6070 2010-01-25 Ed Schonberg <schonberg@adacore.com>
6072 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
6073 enclosing subprogram has no previous spec, attach postcondition
6074 procedure to the defining entity for the body.
6076 2010-01-25 Ed Schonberg <schonberg@adacore.com>
6078 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
6079 initialization procedure of the ancestor part of an extension aggregate
6080 if it is an interface type.
6082 2010-01-25 Vincent Celier <celier@adacore.com>
6084 * gnatlink.adb (Process_Binder_File): The directory for the shared
6085 version of libgcc in the run path options is found in the subdirectory
6086 indicated by __gnat_default_libgcc_subdir.
6087 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
6090 2010-01-25 Ed Schonberg <schonberg@adacore.com>
6092 * sem_prag.adb: More flexible pragma Annotate.
6094 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
6096 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
6097 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
6099 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
6101 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
6103 2010-01-18 Jan Hubicka <jh@suse.cz>
6106 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
6107 unit local variables.
6109 2010-01-17 Laurent GUERBY <laurent@guerby.net>
6111 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
6113 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
6115 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
6116 * system-linux-armeb.ads, system-linux-armel.ads: New files.
6118 2010-01-09 Simon Wright <simon@pushface.org>
6121 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
6126 Copyright (C) 2010 Free Software Foundation, Inc.
6128 Copying and distribution of this file, with or without modification,
6129 are permitted in any medium without royalty provided the copyright
6130 notice and this notice are preserved.