1 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
4 pattern matching to detect predefined primitive operations take into
5 account that there can be an extra suffix related to body-nested
8 2010-09-10 Ed Schonberg <schonberg@adacore.com>
10 * s-pooglo.ads: Add overriding indicators.
12 2010-09-10 Vincent Celier <celier@adacore.com>
14 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
15 /64_MALLOC (for -H64).
17 2010-09-10 Robert Dewar <dewar@adacore.com>
19 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
20 (Error_Msg_NW): Test Parsing_Main_Subunit flag
21 * errout.ads (Parsing_Main_Subunit): New flag
22 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
23 * par-ch6.adb: Minor style fix (remove redandant parentheses)
24 * par-ch9.adb: Minor style fix (remove redundant parens)
25 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
27 2010-09-10 Vincent Celier <celier@adacore.com>
29 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
30 function of the same name in Makeutl.
31 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
32 of removed procedure when creating a binder mapping file.
33 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
35 * makeutl.ads (Create_Binder_Mapping_File): New function
37 2010-09-10 Jose Ruiz <ruiz@adacore.com>
39 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
40 separator when trying the pattern matching to detect predefined
43 2010-09-10 Robert Dewar <dewar@adacore.com>
45 * bindgen.adb, atree.adb: Minor reformatting.
47 2010-09-10 Ben Brosgol <brosgol@adacore.com>
49 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
52 2010-09-10 Doug Rupp <rupp@adacore.com>
54 * bindgen.adb: Minor comment fix for -H switch.
56 2010-09-10 Ed Schonberg <schonberg@adacore.com>
58 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
59 library unit now, by traversing tree before context is expanded.
60 (Write_Call_Info): Use enclosing unit name directly.
61 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
62 tree earlier, to ensure that subsequent declarations are analyzed in a
64 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
67 2010-09-10 Robert Dewar <dewar@adacore.com>
69 * symbols-processing-vms-alpha.adb: Minor reformatting.
71 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
73 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
74 __gnat_install_handler in case the binder is called with -n.
76 2010-09-10 Ed Schonberg <schonberg@adacore.com>
78 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
79 sloc for renaming declaration and set Comes_From_Source properly to
80 ensure that references are properly generated for an object declaration
81 that is built in place.
83 2010-09-10 Tristan Gingold <gingold@adacore.com>
85 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
87 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
88 * gcc-interface/Makefile.in: gnat.hlp is now generated by
91 2010-09-10 Bob Duff <duff@adacore.com>
93 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
94 := ...;", remove side effects from the right-hand side, because they
95 might affect the value of the left-hand side, but the left-hand side is
96 first READ (so we can do shifting and masking) and then written back,
97 which would cause the side effects to be incorrectly overwritten.
99 2010-09-10 Robert Dewar <dewar@adacore.com>
101 * sem_ch4.adb: Minor reformatting.
102 * exp_ch6.adb: Add comment on testing limited on full type
103 * gnat_rm.texi: Add documentation on Pure_Function.
105 2010-09-10 Vincent Celier <celier@adacore.com>
107 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
108 as a source of another project and of another language.
110 2010-09-10 Robert Dewar <dewar@adacore.com>
112 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
114 * freeze.adb (Check_Unsigned_Type): Ditto.
115 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
116 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
117 (Set_Scalar_Range_For_Subtype): Ditto.
118 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
120 2010-09-10 Robert Dewar <dewar@adacore.com>
122 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
124 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
125 rather than parens for fixed constants.
126 * sprint.ads: Use square brackets rather than parens for fixed constants
127 * urealp.adb (UR_Write): Use square brackets rather than parens
128 (UR_Write): Add Brackets argument
129 (UR_Write): Add many more special cases to output literals
130 * urealp.ads (UR_Write): Use square brackets rather than parens
131 (UR_Write): Add Brackets argument
133 2010-09-10 Robert Dewar <dewar@adacore.com>
135 * sem_ch4.adb: Minor reformatting.
137 2010-09-10 Richard Guenther <rguenther@suse.de>
139 * gcc-interface/utils.c (create_index_type): Use build_range_type.
141 2010-09-10 Arnaud Charlet <charlet@adacore.com>
145 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
147 * exp_dbug.ads: Mention enhanced encoding for array types.
149 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
151 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
152 unsupported in VM targets. Display a warning in this case.
154 2010-09-10 Ed Schonberg <schonberg@adacore.com>
156 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
157 not reset Sloc when printing keyword "new".
159 2010-09-10 Vincent Celier <celier@adacore.com>
161 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
162 GNAT_DRIVER_COMMAND_LINE.
164 2010-09-10 Ed Schonberg <schonberg@adacore.com>
166 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
167 clause, process the body at once.
169 2010-09-10 Ed Schonberg <schonberg@adacore.com>
171 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
172 conversion is the expression is a qualified expression used to
173 disambiguate a function call.
175 2010-09-10 Vincent Celier <celier@adacore.com>
177 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
178 as a source of another project and of another language.
180 2010-09-10 Robert Dewar <dewar@adacore.com>
182 * prj-util.adb: Minor reformatting.
184 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
186 * exp_disp.adb: Minor reformatting.
188 2010-09-10 Arnaud Charlet <charlet@adacore.com>
190 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
193 2010-09-10 Thomas Quinot <quinot@adacore.com>
195 * sem_res.adb: Minor reformatting.
196 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
197 magic constants for task master levels (instead, reference
198 named numbers from System.Tasking).
200 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
202 * gnatvsn.ads (Ver_Prefix): New constant string.
203 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
204 (Gen_Output_File_C): Likewise.
205 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
208 2010-09-10 Ed Schonberg <schonberg@adacore.com>
210 * sem.adb (Walk_Library_Items): Do not traverse children of the main
211 unit, to prevent spurious circularities in the walk order.
212 (Depends_On_Main): Use elsewhere to prevent circularities when the body
213 of an ancestor of the main unit depends on a child of the main unit.
215 2010-09-10 Robert Dewar <dewar@adacore.com>
217 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
218 sem_ch3.adb: Minor reformatting.
220 2010-09-10 Ed Schonberg <schonberg@adacore.com>
222 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
223 that is a renaming must be derived like any other primitive operation,
224 the renamed operation is not relevant to the derivation.
226 2010-09-10 Robert Dewar <dewar@adacore.com>
228 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
229 * checks.adb: Minor reformatting.
231 2010-09-10 Robert Dewar <dewar@adacore.com>
233 * gnat_ugn.texi: Add section on intent of style checking options.
235 2010-09-10 Arnaud Charlet <charlet@adacore.com>
237 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
239 2010-09-10 Ed Schonberg <schonberg@adacore.com>
241 * sem_ch3.adb: Improve error message on derivation from class-wide type
243 2010-09-10 Steve Baird <baird@adacore.com>
245 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
246 generation when Generate_SCIL is True.
248 2010-09-10 Geert Bosch <bosch@adacore.com>
250 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
251 validity of executable name and removing any existing executable
252 (Gnatlink): Call Check_Existing_Executable.
254 2010-09-10 Arnaud Charlet <charlet@adacore.com>
256 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
257 initialization of Task_Alternate_Stack here, cleaner since in case of
258 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
261 2010-09-10 Thomas Quinot <quinot@adacore.com>
263 * s-fileio.adb, a-dirval.adb: Minor reformatting.
265 2010-09-10 Emmanuel Briot <briot@adacore.com>
267 * prj-util.adb (Executable_Of): Fix CE when the project does not
268 contain a Builder package.
270 2010-09-10 Vincent Celier <celier@adacore.com>
272 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
273 to the project path, if Prefix and Target_Name are defined.
274 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
276 2010-09-10 Ed Schonberg <schonberg@adacore.com>
278 * checks.adb (Ensure_Valid): If the expression is a boolean expression
279 or short-circuit operation, do no emit a validity check: only the
280 elementary operands of the expression need checking.
282 2010-09-10 Ben Brosgol <brosgol@adacore.com>
284 * gnat_rm.texi: Document Short_Descriptors.
286 2010-09-10 Arnaud Charlet <charlet@adacore.com>
288 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
289 initialize to Null_Address.
290 (Enter_Task): Do not set up an alternate stack for foreign threads.
292 2010-09-10 Robert Dewar <dewar@adacore.com>
294 * opt.adb (Short_Descriptors): New flag
295 (Short_Descriptors_Config): New flag
296 * opt.ads (Short_Descriptors): New flag
297 (Short_Descriptors_Config): New flag
298 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
299 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors pragma
300 (Analyze_Pragma): Implement Short_Descriptors pragma
301 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
303 2010-09-10 Emmanuel Briot <briot@adacore.com>
305 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
306 project's Executable_Suffix.
308 2010-09-10 Robert Dewar <dewar@adacore.com>
310 * g-pehage.ads: Minor reformatting
312 * gnat_ugn.texi: Clarifying comment on -gnatyc
313 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
316 2010-09-10 Tristan Gingold <gingold@adacore.com>
318 * Make-generated.in (gnat.hlp): New rule.
320 2010-09-10 Emmanuel Briot <briot@adacore.com>
322 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
325 2010-09-10 Robert Dewar <dewar@adacore.com>
327 * einfo.adb: Minor code cleanup: Add assertion to
328 Set_Corresponding_Protected_Entry.
330 2010-09-10 Bob Duff <duff@adacore.com>
332 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
333 the output to standard output.
335 2010-09-09 Vincent Celier <celier@adacore.com>
337 * gnat_ugn.texi: Add documentation for new gnatmake switch
339 * make.adb (Map_File): New global variable to store the value of switch
341 (Gnatmake): Add switch -M to gnatlink if buider switch --create-map-file
343 (Scan_Make_Arg): Recognize switch --create-map-file
344 * makeutl.ads (Create_Map_File_Switch): New constant string for new
345 gnatmake and gprbuild switch --create-map-file.
347 2010-09-09 Robert Dewar <dewar@adacore.com>
349 * sinput-p.ads: Minor comment update.
351 2010-09-09 Arnaud Charlet <charlet@adacore.com>
353 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
354 Entry_Call.State if needed so that the call is marked as cancelled by
355 Check_Pending_Actions_For_Entry_Call.
356 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
357 this procedure may be called from a controlled operation
358 (Initialize/Finalize).
360 2010-09-09 Vadim Godunko <godunko@adacore.com>
362 * impunit.adb: Correct spelling of package's name in the comment.
364 2010-09-09 Robert Dewar <dewar@adacore.com>
366 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
369 2010-09-09 Robert Dewar <dewar@adacore.com>
371 * impunit.adb: Add entry for a-izteio.
372 * checks.adb: Add comment.
373 * debug.adb, exp_disp.adb: Minor reformatting.
374 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
376 2010-09-09 Ed Schonberg <schonberg@adacore.com>
378 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
379 discriminant cannot be assumed to be the same value because they may
380 refer to bounds of a component of two different instances of a
383 2010-09-09 Gary Dismukes <dismukes@adacore.com>
385 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
386 operands of an operator to the type of an enclosing conversion, rewrite
387 the operator so the conversion can't be flagged as redundant.
388 Remove useless assignments to Typ and Rtyp.
390 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
392 * gnat_ugn.texi: Fix another long line.
394 2010-09-09 Bob Duff <duff@adacore.com>
396 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
399 2010-09-09 Matthew Heaney <heaney@adacore.com>
401 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
402 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
403 Replace_Element, Reverse_Elements, Swap): Change exception message to
404 correctly indicate kind of tampering (cursor or element).
405 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
406 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
407 Swap_Links, Replace_Element, Swap): Ditto.
408 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
409 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
410 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
411 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
412 Generic_Replace_Element): Ditto
413 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
414 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
415 Replace_Element): Ditto.
416 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
417 Symmetric_Difference, Union, Include, Replace): Ditto
419 2010-09-09 Ed Schonberg <schonberg@adacore.com>
421 * sprint.adb (Write_Id): If the parent node is an expanded name, check
422 that its entity_or_associated_node is an entity before writing it out.
423 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
424 constructors, there is no need for a dispatch table pointer because the
425 table is fully inherited from the C++ code.
427 2010-09-09 Thomas Quinot <quinot@adacore.com>
429 * projects.texi: Fix wrong identifiers on package end lines in project
431 * exp_ch6.adb: Minor reformatting.
433 2010-09-09 Tristan Gingold <gingold@adacore.com>
435 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
437 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
439 * gnat_ugn.texi: Fix description of -O3 optimization level.
441 2010-09-09 Yannick Moy <moy@adacore.com>
443 * a-cihama.adb, a-cohama.adb: Fix comments.
445 2010-09-09 Arnaud Charlet <charlet@adacore.com>
447 * i-cexten.ads: Add comments.
448 (Signed_128): New type, used by some C bindings.
449 * debug.adb: Update comment.
451 2010-09-09 Sergey Rybin <rybin@adacore.com>
453 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
454 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
455 the tool should process Ada 2005 sources.
457 2010-09-09 Ed Schonberg <schonberg@adacore.com>
459 * sem_ch12.adb (Remove_Parent): If the scope containing the child
460 instance is a block, examine the enclosing scope to determine if it is
463 2010-09-09 Doug Rupp <rupp@adacore.com>
465 * sem_prag.adb (pragma Ident): Pass --identification= vice
467 * gnatlink.adb (Linker_Options): Look for --identification= vice
470 2010-09-09 Gary Dismukes <dismukes@adacore.com>
472 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
473 inserting and analyzing the object declaration for the temporary object
474 created to hold a 'Old value, push the scope for the subprogram where
475 the object is inserted, so that its Scope (and that of related objects)
476 will be set properly.
478 2010-09-09 Vincent Celier <celier@adacore.com>
480 * prj.adb (Get_Object_Directory): Return object directory display name
481 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
482 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
483 return this value, otherwise return the default for the platform.
485 2010-09-09 Arnaud Charlet <charlet@adacore.com>
487 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
488 dependencies. Remove handling of gnatlbr.
489 Do not remove s-stratt-xdr for the run-time when installing.
491 2010-09-09 Robert Dewar <dewar@adacore.com>
493 * sem_attr.adb: Minor reformatting.
495 2010-09-09 Thomas Quinot <quinot@adacore.com>
497 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
498 unsigned long, not an int.
500 2010-09-09 Vincent Celier <celier@adacore.com>
502 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
503 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
504 we are not checking for equality of path or file names.
506 2010-09-09 Ed Schonberg <schonberg@adacore.com>
508 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
509 array reference, reset the Analyzed flag so that it is properly
510 expanded when the resulting object declaration is analyzed.
512 2010-09-09 Vincent Celier <celier@adacore.com>
514 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
517 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
519 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
520 VX_SPE_TASK option, so disable it.
522 2010-09-09 Ed Schonberg <schonberg@adacore.com>
524 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
526 (Is_Subunit_Of_Main): Handle null nodes properly.
528 2010-09-09 Robert Dewar <dewar@adacore.com>
530 * par-ch2.adb: Update comments.
532 2010-09-09 Ben Brosgol <brosgol@adacore.com>
534 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
536 2010-09-09 Arnaud Charlet <charlet@adacore.com>
538 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
539 do not generate an error for compatibility with legacy code.
540 ignored when generating SCIL.
541 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
543 2010-09-09 Thomas Quinot <quinot@adacore.com>
545 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
546 s-strxdr.adb to s-stratt-xdr.adb
548 2010-09-09 Robert Dewar <dewar@adacore.com>
550 * ali-util.adb (Obsolescent_Check): Removed.
551 * gprep.adb (Obsolescent_Check): Removed.
552 Remove Obsolescent_Check parameter in Scng instantiation
553 * prj-err.adb (Obsolescent_Check): Removed.
554 * prj-err.ads (Obsolescent_Check): Removed.
555 Remove Obsolescent_Check parameter in Scng instantiation
556 * scans.ads (Based_Literal_Uses_Colon): New flag
557 * scn.adb (Obsolscent_Check_Flag): Removed
558 (Obsolscent_Check): Removed
559 (Set_Obsolescent_Check): Removed
560 (Post_Scan): Add handling for obsolescent features
561 * scn.ads (Obsolscent_Check): Removed
562 (Set_Obsolescent_Check): Removed
563 (Post_Scan): Can no longer be inlined
564 Remove Obsolescent_Check from instantiation of Scng
565 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
566 (Nlit): Remove handling of obsolescent check
567 (Scan, case '%'): Remove handling of obsolescent check
568 (Scan, case '|'): Call Post_Scan
569 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
570 * scng.ads Remove Obsolescent_Check argument from Scng generic
571 (Post_Scan): Now called for Tok_Vertical_Bar
572 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
574 2010-09-09 Doug Rupp <rupp@adacore.com>
576 * gnatlbr.adb: Removed.
577 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
579 2010-09-09 Robert Dewar <dewar@adacore.com>
581 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
584 2010-09-09 Vincent Celier <celier@adacore.com>
586 * gnatlbr.adb: Remove redundant conversions.
588 2010-09-09 Vincent Celier <celier@adacore.com>
590 * prj-proc.adb: Minor comment spelling error fix.
591 * osint.ads (Env_Vars_Case_Sensitive): Use function
592 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
595 2010-09-09 Ed Schonberg <schonberg@adacore.com>
597 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
598 resolution of conditional expressions whose dependent expressions are
599 anonymous access types.
601 2010-09-09 Robert Dewar <dewar@adacore.com>
603 * a-ststio.adb: Minor code reorganization.
604 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
606 * types.ads: Minor reformatting.
607 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
608 redundant conversions.
609 * output.adb: Minor reformatting.
610 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
612 * opt.ads: Add pragma Ordered for Verbosity_Level.
613 * prj.ads: Add pragma Ordered for type Verbosity.
615 2010-09-09 Vincent Celier <celier@adacore.com>
617 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
619 (Canonical_Case_Env_Var_Name): Ditto
621 2010-09-09 Bob Duff <duff@adacore.com>
623 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
625 2010-09-09 Robert Dewar <dewar@adacore.com>
627 * cstand.adb: Mark Boolean and Character types as Ordered
628 * einfo.adb (Has_Pragma_Ordered): New flag
629 * einfo.ads (Has_Pragma_Ordered): New flag
630 * g-calend.ads: Mark Day_Name as Ordered
631 * opt.ads: Mark Ada_Version_Type as Ordered
632 (Warn_On_Unordered_Enumeration_Type): New flag
633 * par-prag.adb: Add procdessing for pragma Ordered
634 * s-ficobl.ads (Read_File_Mode): New subtype
635 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
636 * s-taskin.ads: Mark Entry_Call_State as ordered
637 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
639 * sem_ch6.ads: Mark Conformance_Type as Ordered
640 * sem_prag.adb: Implement pragma Ordered
641 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
642 (Resolve_Comparison_Op): Diagnose unordered comparison
643 (Resolve_Range): Diagnose unordered range
644 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
646 * snames.ads-tmpl: Add entry for pragma Ordered
647 * style.ads (Check_Enumeration_Subrange): Removed
648 * styleg.adb (Check_Enumeration_Subrange): Removed
649 * styleg.ads (Check_Enumeration_Subrange): Removed
650 * stylesw.adb: Remove handling of -gnatyE switch
651 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
652 * vms_data.ads: Remove -gnatyE entries
654 * ug_words: Entries for -gnatw.u and -gnatw.U
655 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
656 * gnat_rm.texi: Document pragma Ordered.
657 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
658 * s-tpobop.adb: Remove comparison on unordered enumeration type.
660 2010-09-09 Vincent Celier <celier@adacore.com>
662 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
663 for VMS and Windows, and 1 for all other platforms.
664 * adaint.h: New function __gnat_get_env_vars_case_sensitive
665 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
666 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
667 Canonical_Case_File_Name, as we are dealing with environment variables,
670 2010-09-09 Robert Dewar <dewar@adacore.com>
672 * sem_util.adb: Minor reformatting
674 2010-09-09 Vincent Celier <celier@adacore.com>
676 * vms_data.ads: Add documentation for S_Make_Single.
678 2010-09-09 Ed Schonberg <schonberg@adacore.com>
680 * sem_util.adb (Same_Object): include formal parameters.
682 2010-09-09 Vincent Celier <celier@adacore.com>
684 * make.adb (Queue): New package implementing a new impementation of the
685 queue, taking into account the new switch --single-compile-per-obj-dir.
686 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
687 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
688 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
690 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
691 switch --single-compile-per-obj-dir.
692 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
693 switch --single-compile-per-obj-dir.
694 * gnat_ugn.texi: Add documentation for new gnatmake switch
695 --single-compile-per-obj-dir.
697 2010-09-09 Ed Schonberg <schonberg@adacore.com>
699 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
701 2010-09-09 Javier Miranda <miranda@adacore.com>
703 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
704 (Replace_Type): Code cleanup.
705 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
707 2010-09-09 Thomas Quinot <quinot@adacore.com>
709 * exp_ch8.adb: Minor reformatting.
711 2010-09-09 Ed Schonberg <schonberg@adacore.com>
713 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
714 Corresponding_Protected_Entry.
716 2010-09-09 Ed Schonberg <schonberg@adacore.com>
718 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
719 inequality, it is always rewritten as the negation of the corresponding
721 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
722 the predefined equality of an untagged record, create a body at the
723 point of the renaming, to capture the current meaning of equality for
726 2010-09-09 Robert Dewar <dewar@adacore.com>
728 * sem.adb, sem_warn.adb: Minor reformatting.
730 2010-09-09 Ed Schonberg <schonberg@adacore.com>
732 * sem_ch6.adb: Improve error message on untagged equality.
733 * sem.adb (Semantics): Include subprogram bodies that act as spec.
735 2010-09-09 Javier Miranda <miranda@adacore.com>
737 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
739 2010-09-09 Robert Dewar <dewar@adacore.com>
741 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
743 2010-09-09 Robert Dewar <dewar@adacore.com>
745 * einfo.adb (Is_Aggregate_Type): New function.
746 * einfo.ads (Aggregate_Kind): New enumeration subtype
747 (Is_Aggregate_Type): New function.
748 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
751 2010-09-09 Robert Dewar <dewar@adacore.com>
753 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
754 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
756 * restrict.ads, restrict.adb: Ditto.
757 (Restriction_Check_Needed): New function
759 2010-09-09 Ed Schonberg <schonberg@adacore.com>
761 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
762 Build_Master_Entity, to find the proper scope for the master entity of
763 a type that may contain tasks, in the presence of transient scopes.
764 * exp_ch9.adb (Build_Master_Entity) Use new function.
765 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
767 2010-09-09 Vincent Celier <celier@adacore.com>
769 * prj-attr.adb: Add new attributes Leading_Library_Options and
770 Linker'Leading_Switches.
771 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
774 2010-09-09 Javier Miranda <miranda@adacore.com>
776 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
777 dispatching primitive covers some interface primitive is incomplete.
778 Replace such code by the invocation of a new subprogram that provides
780 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
781 * sem_ch6.adb (Check_Missing_Return): Minor reformating
782 (Check_Convention): Complete if-statement conditition when reporting
783 errors (to avoid assertion failure).
784 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
785 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
786 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
787 overridden null interface primitives.
788 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
789 private type is an interface then use the parent of its full view to
790 climb to its ancestor type.
791 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
792 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
793 null interface primitives.
794 (Is_Null_Interface_Primitive): New subprogram.
795 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
796 (Expand_Freeze_Record_Type): Do not generate specs of null interface
797 subprograms because they are now generated by Analyze_Freeze_Entity.
799 2010-09-09 Robert Dewar <dewar@adacore.com>
801 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
803 2010-09-09 Robert Dewar <dewar@adacore.com>
805 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
806 (Gen_Restrictions_C): Avoid explicit enumeration ranges
807 (Set_String_Replace): New procedure
808 * casing.ads (Known_Casing): New subtype declaration
809 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
811 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
812 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
813 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
814 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
815 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
817 * sem_res.adb (Resolve_Range): Check for enumeration subrange style rule
818 * sem_type.adb (Is_Array_Class_Record_Type): New.
819 * style.ads (Check_Enumeration_Subrange): New procedure
820 * styleg.adb (Check_Enumeration_Subrange): New procedure
821 * styleg.ads (Check_Enumeration_Subrange): New procedure
822 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
823 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
824 * usage.adb: Add line for -gnatyE
825 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
826 Add missing entry for NOBOOLEAN_OPERATORS
827 * gnat_ugn.texi: Add documentation for -gnatyE
829 2010-09-09 Robert Dewar <dewar@adacore.com>
831 * namet.adb (Initialize): Is now a dummy procedure
832 (Reinitialize): New procedure
833 Call Reinitialize from package initialization
834 * namet.ads (Initialize): Is now a dummy procedure
835 (Reinitialize): New procedure
836 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
837 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
840 2010-09-09 Bob Duff <duff@adacore.com>
842 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
844 2010-09-09 Robert Dewar <dewar@adacore.com>
846 * s-bitops.adb (Raise_Error): Add exception message
848 2010-09-09 Robert Dewar <dewar@adacore.com>
850 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
851 null statement after label.
852 * sinfo.ads: Minor comment updates.
854 2010-09-09 Robert Dewar <dewar@adacore.com>
856 * nlists.ads, nlists.adb (In_Same_List): New function.
857 Use Node_Or_Entity_Id where appropriate.
858 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
860 2010-09-09 Robert Dewar <dewar@adacore.com>
862 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
864 * sem_ch3.adb: Use Check_Wide_Character_Restriction
865 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
866 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
867 (Find_Expanded_Name): Check violation of No_Wide_Characters
869 2010-09-09 Robert Dewar <dewar@adacore.com>
871 * par-ch5.adb: Minor reformatting.
873 2010-09-09 Robert Dewar <dewar@adacore.com>
875 * prj-env.adb: Minor code reorganization.
876 * par-ch3.adb: Minor reformatting.
877 * gcc-interface/Make-lang.in: Update dependencies.
879 2010-09-09 Ed Schonberg <schonberg@adacore.com>
881 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
882 a task declaration can be an entry body.
884 2010-09-09 Javier Miranda <miranda@adacore.com>
886 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
887 tags of library level tagged types.
888 (Make_Tags): Disable backend optimizations about aliasing for
889 declarations of access to dispatch tables.
891 2010-09-09 Ed Schonberg <schonberg@adacore.com>
893 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
894 subtype for a null-excluding access type, recover the original
895 subtype_mark to get the proper visibility on the original name.
897 2010-09-09 Ed Schonberg <schonberg@adacore.com>
899 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
900 create the primitive equality operation for an untagged record. The
901 operation is the predefined equality if no record component has a
902 user-defined equality, or if there is a user-defined equality for the
903 type as a whole, or when the type is derived and it has an inherited
904 equality. Otherwise the body of the operations is built as for tagged
906 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
907 (Make_Eq_Body): New function to create the expanded body of the equality
908 operation for tagged and untagged records. In both cases the operation
909 composes, and the primitive operation of each record component is used
910 to generate the equality function for the type.
911 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
912 has an abstract equality defined, replace its call with a
914 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
915 user-defined equality operator for an untagged record type does not
916 happen after type is frozen, and appears in the visible part if partial
917 view of type is not limited.
919 2010-09-09 Tristan Gingold <gingold@adacore.com>
921 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
923 2010-09-09 Bob Duff <duff@adacore.com>
925 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
927 2010-09-09 Pascal Obry <obry@adacore.com>
929 * gnat_ugn.texi: Update doc on windows related topics.
931 2010-09-09 Geert Bosch <bosch@adacore.com>
933 * s-fatgen.adb: Update comments.
935 2010-09-09 Robert Dewar <dewar@adacore.com>
937 * par-ch4.adb (Box_Error): New procedure.
939 2010-09-09 Thomas Quinot <quinot@adacore.com>
941 * sem.adb: Minor reformatting.
943 2010-09-09 Pascal Obry <obry@adacore.com>
945 * prj-env.adb: Style fix, use /and then/ and /or else/.
946 * gnat_ugn.texi: Fix typos.
948 2010-09-03 Joseph Myers <joseph@codesourcery.com>
951 * gcc-interface/misc.c (gnat_init_options): Allow options with
952 empty canonical form. Generate a single save_argv element from -I
955 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
957 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
958 Attach fake PARM_DECLs to the topmost block of the function.
960 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
962 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
963 for the call to a function whose return type was unconstrained.
965 2010-08-30 Olivier Hainque <hainque@adacore.com>
967 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
968 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
969 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
971 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
973 * tracebak.c: Fix typo in comment.
975 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
977 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
978 * gcc-interface/trans.c: Likewise.
979 * gcc-interface/utils.c: Likewise.
981 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
983 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
985 2010-08-10 Robert Dewar <dewar@adacore.com>
987 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
988 * sem_util.adb: Minor reformatting.
990 2010-08-10 Javier Miranda <miranda@adacore.com>
992 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
993 constructors that leave the object partially initialized.
994 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
995 that copies from parent of Typ the dispatch table slots of inherited
996 C++ primitives. It handles primary and secondary dispatch tables.
997 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
998 use this attribute with E_Variable entities.
999 (Set_Is_Tag): Relax assertion to allow its use with variables that
1001 (Set_Related_Type): Relax assertion to allow its use with variables
1002 that store the tag of a C++ class.
1003 (Write_26_Field_Name): Remove Related_Type.
1004 (Write_27_Field_Name): Add Related_Type.
1005 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
1006 with E_Variable entities.
1007 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
1009 * sem_util.adb (Search_Tag): Add missing support for CPP types.
1010 (Enclosing_CPP_Parent): New subprogram.
1011 (Has_Suffix): New subprogram.
1012 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
1013 closest ancestor of a type that is a C++ type.
1014 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
1016 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
1017 instance in derivations of C++ types.
1018 * exp_tss.adb (CPP_Init_Proc): New subprogram.
1019 (Is_CPP_Init_Proc): New subprogram.
1020 (Set_TSS): Handle new C++ init routines.
1021 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
1023 (CPP_Init_Proc): New subprogram.
1024 (Is_CPP_Init_Proc): New subprogram.
1025 * exp_disp.adb (CPP_Num_Prims): New subprogram.
1026 (Has_CPP_Constructors): New subprogram.
1027 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
1028 initialize slots located in the C++ part of the dispatch table.
1029 (Make_Tags): For CPP types declare variables used by the IP routine to
1030 store the C++ tag values after the first invocation of the C++
1032 (Build_CPP_Init_DT): New subprogram.
1033 (Set_CPP_Constructors): New implementation that builds an IP for each
1034 CPP constructor. These IP are wrappers of the C++ constructors that,
1035 after the first invocation of the constructor, read the C++ tags from
1036 the object and save them locally. These copies of the C++ tags are used
1037 by the IC routines to initialize tables of Ada derivations of CPP types.
1038 (Write_DT): Indicate what primitives are imported from C++
1039 * exp_disp.ads (CPP_Num_Prims): New subprogram.
1040 (Has_CPP_Constructors): New subprogram.
1041 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
1042 invoke the IC routine to inherit the slots of the parents.
1043 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
1044 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
1045 (Is_Variable_Size_Record): Factorize code calling
1046 Is_Variable_Size_Array.
1047 (Build_CPP_Init_Procedure): New subprogram that builds the tree
1048 corresponding to the procedure that initializes the C++ part of the
1049 dispatch table of an Ada tagged type that is a derivation of a CPP type.
1050 (Build_Init_Procedure): Adding documentation plus code reorganization to
1051 leave more clear the construction of the IP with C++ types.
1052 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
1053 it cannot be called after Make_Tags has been invoked.
1054 (Inherit_CPP_Tag): Removed.
1055 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
1056 located at variable offset.
1057 * freeze.ads: Minor reformating.
1058 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
1060 * gcc-interface/Make-lang.in: Update dependencies.
1062 2010-08-10 Robert Dewar <dewar@adacore.com>
1064 * a-chahan.ads: Add comments on handling of obsolescent entries.
1065 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
1066 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
1067 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
1068 * sem_attr.adb (Analyze_Access_Attribute): Call
1069 Check_Obsolescent_2005_Entity to check for access to obsolescent
1070 Ada.Characters.Handling subprogram.
1071 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
1072 type is obsolescent in Ada 2005.
1073 (Analyze_Attribute, case Constrained): Better placement of flag when
1074 flagged as obsolescent feature.
1075 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
1076 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
1077 is an obsolescent feature.
1078 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
1080 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
1081 Check_Obsolescent_2005_Entity to check for renaming obsolete
1082 Ada.Characters.Handling subprogram.
1083 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
1084 for obsolescent restrictions in Ada 2005.
1085 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
1086 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
1087 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
1088 check for obsolescent references to Ada.Characters.Handling subprograms
1090 2010-08-10 Robert Dewar <dewar@adacore.com>
1092 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
1094 2010-08-10 Robert Dewar <dewar@adacore.com>
1096 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
1097 * par-ch4.adb: Change wording of Ada 2012 messages
1098 * vms_data.ads: Add VMS entries for /2005, /12, /2012
1100 2010-08-10 Robert Dewar <dewar@adacore.com>
1102 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
1103 codes in the range 16#80#..16#7FF#.
1104 * sem_ch10.adb: Minor reformatting.
1106 2010-08-10 Arnaud Charlet <charlet@adacore.com>
1108 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
1109 generate ali files in CodePeer mode, so that a gnatmake -c -k will
1110 proceed further when possible
1111 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
1112 messages when ignoring representation clauses (-gnatI).
1114 2010-08-10 Ed Schonberg <schonberg@adacore.com>
1116 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
1117 constant-fold discriminant reference if the constraint is an object
1118 with non-static expression. Expression may contain volatile references
1119 in the presence of renamings.
1121 2010-08-10 Vincent Celier <celier@adacore.com>
1123 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
1125 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
1126 index for an associative array where it is allowed.
1128 2010-08-10 Thomas Quinot <quinot@adacore.com>
1130 * exp_attr.adb: Add comments.
1132 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
1134 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
1136 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
1138 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
1140 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
1142 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
1143 (build_vms_descriptor): Likewise.
1145 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1147 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
1148 (build_vms_descriptor32): Adjust calls to it for new parameter.
1149 (build_vms_descriptor): Likewise.
1151 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1153 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
1154 (build_variant_list): Take and return a VEC instead of a tree.
1155 (create_variant_part_from): Take a VEC instead of a tree for
1156 variant_list. Adjust accordingly.
1157 (gnat_to_gnu_entity): Adjust for changes to previous functions.
1159 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
1161 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
1163 (components_to_record): Likewise.
1164 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
1165 * gcc-interface/utils.c (max_size): Likewise.
1166 (build_vms_descriptor32): Likewise.
1167 (build_vms_descriptor): Likewise.
1169 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
1171 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
1172 (build_subst_list): Return a VEC instead of a tree.
1173 (build_variant_list): Take a VEC for subst_list. Adjust
1175 (create_field_decl_from): Likewise.
1176 (create_variant_part_from): Likewise.
1177 (copy_and_substitute_in_size): Likewise.
1178 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
1179 Free the built vector.
1181 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
1183 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
1184 allocator for large imported objects.
1186 2010-08-05 Robert Dewar <dewar@adacore.com>
1188 * gnat1drv.adb: Minor reformatting.
1190 2010-08-05 Ed Schonberg <schonberg@adacore.com>
1192 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
1193 instantiation, process its body before the spec of the main unit,
1194 because it may contain subprograms invoked in the spec of main.
1195 * einfo.ads: Add documention of delayed freeze.
1197 2010-08-05 Vincent Celier <celier@adacore.com>
1199 * prj-nmsc.adb (Process_Linker): Take into account new values for
1200 attribute Response_File_Format.
1201 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
1202 GCC_Object_List and GCC_Option_List.
1204 2010-08-05 Ed Schonberg <schonberg@adacore.com>
1206 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
1207 selected component that denotes a discriminant if it is the
1208 discriminant of a component of an unconstrained record type.
1210 2010-08-05 Ed Schonberg <schonberg@adacore.com>
1212 * exp_util.adb (Insert_Actions): If the action appears within a
1213 conditional expression that is already analyzed, insert action further
1216 2010-08-05 Robert Dewar <dewar@adacore.com>
1218 * exp_ch4.adb: Minor reformatting.
1220 2010-08-05 Thomas Quinot <quinot@adacore.com>
1222 * exp_ch4.adb: Minor reformatting
1223 * gnat1drv.adb: Minor reformatting.
1224 Minor code reorganization (use Nkind_In).
1226 2010-08-05 Ed Schonberg <schonberg@adacore.com>
1228 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
1229 determine whether the expression in an address clause for an
1230 initialized object must be constant. Code moved from freeze.adb.
1231 (Remove_Side_Effects): When the temporary is initialized with a
1232 reference, indicate that the temporary is a constant as done in all
1234 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
1235 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
1236 If object does not need a constant address, remove side effects from
1237 address expression, so it is elaborated at the point of the address
1238 clause and not at the freeze point of the object, so that elaboration
1241 2010-08-05 Vincent Celier <celier@adacore.com>
1243 * prj.adb (Is_Compilable): Return False for header files of non Ada
1246 2010-08-05 Emmanuel Briot <briot@adacore.com>
1248 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
1249 exec directory as a warning rather than an error.
1251 2010-08-05 Thomas Quinot <quinot@adacore.com>
1253 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
1256 2010-08-05 Steve Baird <baird@adacore.com>
1258 * exp_util.adb (Remove_Side_Effects): An access value which designates
1259 a volatile object of a nonvolatile type is prohibited.
1260 Do not call Make_Reference to construct a reference to such an object.
1262 2010-08-05 Robert Dewar <dewar@adacore.com>
1264 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
1265 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
1266 a-suewen.adb, a-suewen.ads: New files.
1267 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
1269 * sem_elab.adb: Minor reformatting.
1271 2010-08-05 Arnaud Charlet <charlet@adacore.com>
1273 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
1274 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
1275 in case of null Comp.
1277 2010-08-05 Robert Dewar <dewar@adacore.com>
1279 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
1281 2010-08-05 Gary Dismukes <dismukes@adacore.com>
1283 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
1284 nested access type whose designated type has tasks or is a protected
1285 object when the restrictions No_Task_Hierarchy or
1286 No_Local_Protected_Objects apply. Add ??? comment.
1287 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
1288 type is not a library-level type and No_Local_Protected_Objects applies.
1289 (Analyze_Task_Type): Give a warning when a task type is not a
1290 library-level type and No_Task_Hierarchy applies.
1292 2010-08-05 Arnaud Charlet <charlet@adacore.com>
1294 * sem.adb: Minor reformatting
1295 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
1298 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
1300 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
1302 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
1303 for the debug-only entity.
1304 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
1306 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1308 * gcc-interface/lang-specs.h: Don't pass -a options.
1310 2010-07-28 Joseph Myers <joseph@codesourcery.com>
1312 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
1313 options. Check canonical_option_num_elements on options copied.
1315 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1317 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
1318 return value type. Don't check for missing arguments here.
1320 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1322 * gcc-interface/misc.c (gnat_option_lang_mask): New.
1323 (gnat_init_options): Update prototype. Reconstruct argv array
1324 from decoded options.
1326 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
1328 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
1329 case, merge the alias set of the old pointer type.
1331 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
1333 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
1334 and recurse only for multidimensional array types instead.
1336 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
1339 * gcc-interface/utils.c (convert): Fix thinko in test.
1340 (unchecked_convert): When converting from a scalar type to a type with
1341 a different size, pad to have the same size on both sides.
1343 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
1345 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
1346 equality for the component type of array types.
1348 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1350 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1351 * gcc-interface/trans.c: Likewise.
1352 * gcc-interface/utils.c: Likewise.
1353 * gcc-interface/utils2.c: Likewise.
1355 2010-07-13 Laurent GUERBY <laurent@guerby.net>
1358 * gcc-interface/targtyps.c: Include tm_p.h.
1359 * gcc-interface/Make-lang.in: Update dependencies.
1361 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
1363 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
1366 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1368 * gcc-interface/utils.c: Include diagnostic-core.h in every file
1369 that includes toplev.h.
1371 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
1373 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
1374 Branch to common code handling the alignment of discrete types.
1375 <E_Signed_Integer_Type>: Likewise.
1376 <E_Modular_Integer_Type>: Likewise.
1378 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1380 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
1381 (gnat_handle_option): Allocate only one element for gnat_argv.
1382 (gnat_init): Do not populate gnat_argv.
1384 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1386 * gcc-interface/trans.c: Do not include tree-flow.h.
1387 * gcc-interface/Make-lang.in: Adjust dependencies.
1389 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1391 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
1392 of a TREE_LIST. Update comment.
1393 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
1394 Adjust call to gnat_build_constructor.
1395 (Attribute_to_gnu): Likewise.
1396 (gnat_to_gnu): Likewise.
1397 (pos_to_constructor): Likewise.
1398 (extract_values): Likewise.
1399 * gcc-interface/utils.c (build_template): Likewise.
1400 (convert_vms_descriptor64): Likewise.
1401 (convert_vms_descriptor32): Likewise.
1402 (convert_to_fat_pointer): Likewise.
1403 (convert): Likewise.
1404 (unchecked_convert): Likewise.
1405 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
1406 * gcc-interface/utils2.c (build_allocator): Likewise.
1407 (fill_vms_descriptor): Likewise.
1408 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
1409 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
1410 instead of TREE_LISTs.
1412 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1414 * gcc-interface/misc.c: Do not include except.h.
1415 * gcc-interface/Make-lang.in: Update dependencies.
1417 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
1419 * gcc-interface/trans.c: Include tree-flow.h.
1420 (gnu_switch_label_stack): Delete.
1421 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
1422 its associated block cannot fall through. Do not emit the final label
1423 if no cases branch to it.
1424 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
1426 2010-06-23 Thomas Quinot <quinot@adacore.com>
1428 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
1429 reference to a protected subprogram outside of the protected's scope,
1430 ensure the corresponding external subprogram is frozen before the
1433 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1435 * sem_prag.adb: Fix typo in error message.
1436 * sem.adb: Refine previous change.
1438 2010-06-23 Robert Dewar <dewar@adacore.com>
1440 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
1441 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
1442 Implement Ada 2012 string encoding packages.
1444 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1446 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
1447 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
1448 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
1449 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
1451 * gcc-interface/Makefile.in: Enable use of above files.
1453 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1455 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
1456 of address clauses if if Ignore_Rep_Clauses is active.
1457 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
1458 remove address clause from tree so that it does not reach the backend.
1460 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1462 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
1463 expand 'Valid from user code in CodePeer mode, will be handled by the
1466 2010-06-23 Bob Duff <duff@adacore.com>
1468 * g-comlin.ads: Minor comment improvements.
1470 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1472 * sem_res.adb (Uses_SS): The expression that initializes a controlled
1473 component of a record type may be a user-defined operator that is
1474 rewritten as a function call.
1476 2010-06-23 Bob Duff <duff@adacore.com>
1478 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
1480 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
1482 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
1483 label to the new sequence of statements. Set the sloc of the raise
1484 statement onto the new goto statements.
1486 2010-06-23 Robert Dewar <dewar@adacore.com>
1488 * a-stuten.ads, a-stuten.adb: New files.
1489 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
1490 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
1492 2010-06-23 Robert Dewar <dewar@adacore.com>
1494 * gnat_ugn.texi: Add documentation of -gnat12 switch
1495 Add documentation of -gnatX switch.
1497 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1499 * inline.ads: Include the current Ada_Version in the info for pending
1500 instance bodies, so that declaration and body are compiled with the
1502 * inline.adb: Move with_clause for Opt to spec.
1503 * sem_ch12.adb (Analyze_Package_Instantiation,
1504 Analyze_Subprogram_Instantiation): Save current Ada_Version in
1505 Pending_Instantiation information.
1506 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
1507 Inline_Package_Body): Use the Ada_Version present in the body
1510 2010-06-23 Robert Dewar <dewar@adacore.com>
1512 * usage.adb: Add documentation for -gnat12 switch.
1513 * errout.ads: Add VMS alias entry for -gnat12 switch
1514 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
1515 Add documentation for pragma Extensions_Allowed.
1516 * opt.ads: Add entry for Ada 2012 mode.
1517 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
1519 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
1521 * sem_ch13.adb: Add handling for Ada 2012 mode.
1522 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
1523 * switch-c.adb: Add handling for -gnat12 switch.
1524 Implement -gnat2005 and -gnat2012.
1525 * usage.adb: Add documentation for -gnat12 switch.
1526 * vms_data.ads: Add /12 switch for Ada 2012 mode.
1528 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1530 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
1531 No_Task_Hierarchy restriction. Add comment.
1532 * exp_ch9.adb, exp_ch3.adb: Update comments.
1534 2010-06-23 Robert Dewar <dewar@adacore.com>
1536 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
1537 * sem_res.adb: Add comments.
1538 * sem_util.adb: Minor reformatting. Add comments.
1539 Change increment on Actuals_In_Call table.
1540 * opt.ads: Minor: add 'constant'.
1542 2010-06-23 Javier Miranda <miranda@adacore.com>
1544 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
1545 TSD to Null_Address if No_Dispatching_Calls is active.
1547 2010-06-23 Vincent Celier <celier@adacore.com>
1549 * a-comlin.ads: Indicate that use of this package is not supported
1550 during the elaboration of an auto-initialized Stand-Alone Library.
1552 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1554 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
1555 alignment clause on a record type to determine if a component may be
1556 misaligned. The decision must be taken in the back-end where target
1557 alignment information is known.
1559 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1561 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
1562 systematically in CodePeer mode to simplify generated code.
1563 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
1564 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
1565 No_Task_Hierarchy is set instead of crasshing.
1567 2010-06-23 Thomas Quinot <quinot@adacore.com>
1569 * sem_util.adb: Minor code cleanup: test for proper entity instead of
1570 testing just Chars attribute when checking whether a given scope is
1572 * exp_ch4.adb, einfo.adb: Minor reformatting.
1574 2010-06-23 Vincent Celier <celier@adacore.com>
1577 * switch-m.adb (Normalize_Compiler_Switches): Take into account
1578 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
1579 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
1581 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1583 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
1584 operation with a universal real operand, and the right operand is a
1585 range with universal bounds, find unique fixed point that may be
1586 candidate, and warn appropriately.
1588 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1590 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
1591 properly the rare cases where VMS operators are visible through
1592 Extend_System, but the default System is being used and Address is a
1594 * sem_util.adb: Widen predicate Is_VMS_Operator.
1596 2010-06-23 Vincent Celier <celier@adacore.com>
1598 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
1601 2010-06-23 Olivier Hainque <hainque@adacore.com>
1603 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
1604 Interface_Name as foreign. These are GCC builtin imports for
1605 which Ada specific processing doesn't apply.
1607 2010-06-23 Thomas Quinot <quinot@adacore.com>
1609 * sem_ch12.adb: Minor reformatting.
1611 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1613 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
1614 determine whether an intrinsic subprogram is VMS specific.
1616 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
1618 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
1619 is present in the entity.
1621 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1623 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
1624 Fix handling of parameters.
1625 Add protection against unexpected cases.
1626 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
1627 access level, since "A" suffix is already used elsewhere. Similarly,
1628 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
1631 2010-06-23 Thomas Quinot <quinot@adacore.com>
1633 * sem_util.adb, sem_util.ads: Minor reformatting.
1635 2010-06-23 Vincent Celier <celier@adacore.com>
1637 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
1638 the previous behavior of gprclean when there are missing files.
1640 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1642 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
1643 generic body is not a fatal error.
1644 (Mark_Context): Handle properly names of child units.
1645 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
1648 2010-06-23 Vincent Celier <celier@adacore.com>
1650 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
1653 2010-06-23 Bob Duff <duff@adacore.com>
1655 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
1656 Memory_Space, because CPU_Time doesn't seem to provide any significant
1657 speed advantage in practice. Cleanup: Get rid of constant
1658 Default_Optimization; doesn't seem to add anything. Use case
1659 statements instead of if statements; seems cleaner.
1661 2010-06-23 Olivier Hainque <hainque@adacore.com>
1663 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
1664 Wshadow instead of Wextra to guard warning on absence of internal
1665 builtin decl for an import. Fix use of quote in warning text.
1666 (intrin_arglists_compatible_p): Remove processing of integer trailing
1667 args on the Ada side. Fix use of literal > in warning text.
1668 (intrin_return_compatible_p): Never warn on "function imported as
1669 procedure". Defer the void/void case to the common type compatibility
1671 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
1672 of GCC builtin imports.
1674 2010-06-23 Olivier Hainque <hainque@adacore.com>
1676 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
1678 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
1679 functions, helpers for ...
1680 (intrin_profiles_compatible_p): New function, replacement for ...
1681 (compatible_signatures_p): Removed.
1682 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
1683 attempt to bind an unregistered builtin function. When we have
1684 one, use it and warn on profile incompatibilities.
1686 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1688 * gcc-interface/Make-lang.in: Update dependencies.
1690 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1692 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
1693 for a coextension in an object declaration is a concatenation, treat
1694 coextension as dynamic.
1696 2010-06-23 Javier Miranda <miranda@adacore.com>
1698 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
1699 internal entities are added to the scope of the tagged type.
1700 (Derive_Subprograms): Do not stop derivation when we find the first
1701 internal entity that has attribute Interface_Alias. After the change
1702 done to Override_Dispatching_Operations it is no longer true that
1703 these primirives are always located at the end of the list of
1705 * einfo.ads (Primitive_Operations): Add documentation.
1706 * exp_disp.adb (Write_DT): Improve output adding to the name of the
1707 primitive a prefix indicating its corresponding tagged type.
1708 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
1709 entity covers the primitive of an interface that is not an ancestor of
1710 this tagged type then the new primitive is added at the end of the list
1711 of primitives. Required to fulfill the C++ ABI.
1713 2010-06-23 Javier Miranda <miranda@adacore.com>
1715 * atree.ads (Set_Reporting_Proc): New subprogram.
1716 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
1717 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
1718 to routines of package Scil_ll by indirect call to the registered
1720 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
1721 that is invoked when a node is allocated, replaced or rewritten.
1722 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
1723 the SCIL node. Used as argument for Set_Reporting_Proc.
1724 (Initialize): Register Copy_SCIL_Node as the reporting routine that
1725 is invoked by atree.
1727 2010-06-23 Thomas Quinot <quinot@adacore.com>
1729 * sem_ch3.ads: Minor reformatting.
1731 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1733 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
1734 always analyze the generic body and instance, because it may be needed
1736 (Mark_Context): Prepend the with clauses for needed generic units, so
1737 they appear in a better order for CodePeer.
1738 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
1740 2010-06-23 Emmanuel Briot <briot@adacore.com>
1742 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
1744 2010-06-23 Robert Dewar <dewar@adacore.com>
1746 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
1748 2010-06-23 Thomas Quinot <quinot@adacore.com>
1750 * a-tags.ads: Fix description of TSD structure.
1752 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1754 * sem_ch12.adb (Mark_Context): When indicating that the body of a
1755 generic unit is needed prior to the unit containing an instantiation,
1756 search recursively the context of the generic to add other generic
1757 bodies that may be instantiated indirectly through the current instance.
1759 2010-06-23 Robert Dewar <dewar@adacore.com>
1761 * freeze.adb: Minor reformatting.
1763 2010-06-23 Bob Duff <duff@adacore.com>
1765 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
1767 2010-06-23 Vincent Celier <celier@adacore.com>
1769 * make.adb (Compile_Sources): Complete previous change.
1771 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1773 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
1774 Constrained extra formal.
1776 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1778 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
1779 Initialize_Scalars are enabled, compile the generated equality function
1780 for a composite type with full checks enabled, so that validity checks
1781 are performed on individual components.
1783 2010-06-23 Emmanuel Briot <briot@adacore.com>
1785 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
1786 Missing_Source_Files.
1788 2010-06-23 Robert Dewar <dewar@adacore.com>
1790 * exp_ch3.adb, exp_util.adb: Minor reformatting.
1792 2010-06-23 Jose Ruiz <ruiz@adacore.com>
1794 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
1795 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
1796 Clock (without delays) use a run time which is properly initialized.
1798 2010-06-23 Vincent Celier <celier@adacore.com>
1800 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
1801 when -f -u and a main is specified on the command line. However,
1802 attempt to compile even when the ALI file is read-only when
1803 Must_Compile is True.
1805 2010-06-23 Thomas Quinot <quinot@adacore.com>
1807 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
1809 2010-06-23 Javier Miranda <miranda@adacore.com>
1811 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
1812 entities for parent types that are interfaces. Needed in generics to
1813 handle formals that implement interfaces.
1814 (Derive_Subprograms): Add assertion for derivation of tagged types that
1815 do not cover interfaces. For generics, complete code that handles
1816 derivation of type that covers interfaces because the previous
1817 condition was weak (it required only name consistency; arguments were
1818 not checked). Add new code to locate primitives covering interfaces
1819 defined in generic units or instantiatons.
1820 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
1821 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
1822 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
1823 interfaces that are parents of the type because they share the primary
1825 (Register_Primitive): Do not register primitives of interfaces that
1826 are parents of the type.
1827 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
1828 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
1829 primitives skip primitives of interfaces that are parents of the type.
1831 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1833 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
1834 attribute cannot be constant-folded if an index type is a formal type,
1835 or is derived from one.
1836 * checks.adb (Determine_Range): ditto.
1838 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1840 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
1842 2010-06-23 Bob Duff <duff@adacore.com>
1844 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
1845 (Insert): Disallow nul characters.
1846 (misc output routines): Assert no nul characters.
1848 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1850 * exp_ch4.adb: Use predefined unsigned type in all cases.
1852 2010-06-23 Bob Duff <duff@adacore.com>
1854 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
1855 * g-pehage.ads: Minor comment fixes.
1856 * g-pehage.adb: Minor: Add some additional debugging printouts under
1859 2010-06-23 Robert Dewar <dewar@adacore.com>
1861 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
1862 (Worse_Choice): Always prefer Pure/Preelab.
1864 2010-06-23 Vincent Celier <celier@adacore.com>
1866 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
1868 2010-06-23 Robert Dewar <dewar@adacore.com>
1870 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
1871 checking returns in generic case.
1872 (Check_Missing_Return): New procedure.
1874 2010-06-23 Robert Dewar <dewar@adacore.com>
1876 * bindgen.adb, switch-b.adb: Minor reformatting.
1878 2010-06-23 Javier Miranda <miranda@adacore.com>
1880 * frontend.adb (Frontend): Add call to initialize the new package
1882 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
1884 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
1885 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
1887 * exp_util.adb (Insert_Actions): Remove code for
1888 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
1889 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
1890 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
1891 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
1892 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
1893 * sinfo.ads (SCIL_Related_Node): Field removed.
1894 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
1895 (N_SCIL_Tag_Init): Node removed.
1896 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
1897 (Check_SCIL_Node): New implementation.
1898 (Find_SCIL_Node): Removed.
1899 * sem.adb (Analyze): Remove management of
1900 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
1901 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
1903 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
1904 Set_SCIL_Related_Node and avoid adding the SCIL node before the
1905 referenced node using Insert_Action because this is not longer required.
1906 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
1907 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
1908 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to Adjust_SCIL_Node
1909 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
1910 because we no longer require to generate the SCIL node before the call.
1911 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
1912 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
1913 nodes before the referenced node using Insert_Action because this
1914 is not longer required.
1915 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
1916 update the SCIL_Node field.
1917 * sprint.adb (Sprint_Node_Actual): Remove code for
1918 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
1919 * treepr.adb (Print_Node): Print the SCIL node field (if available).
1920 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
1921 SCIL_Tag_Init nodes.
1922 * scil_ll.ads, scil_ll.adb: New files.
1923 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
1926 2010-06-23 Robert Dewar <dewar@adacore.com>
1928 * sem_ch6.adb: Minor reformatting.
1930 2010-06-23 Doug Rupp <rupp@adacore.com>
1932 * bindusg.adb (Display): Write -Hnn line.
1933 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
1935 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
1936 valid values to 32 and 64.
1937 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
1938 ENABLE, DISABLE as valid settings.
1939 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
1940 * opt.ads (Heap_Size): New global variable.
1941 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
1942 TARGET_MALLOC64 check. Fix comment.
1944 2010-06-23 Robert Dewar <dewar@adacore.com>
1946 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
1947 reformatting. Add comments.
1948 * errout.adb (Finalize): Properly adjust warning count when deleting
1951 2010-06-22 Robert Dewar <dewar@adacore.com>
1953 * errout.adb (Finalize): Set Prev pointers.
1954 (Finalize): Delete continuations for deletion by warnings off(str).
1955 * erroutc.ads: Add Prev pointer to error message structure.
1957 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1959 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
1960 child unit, examine context of parent units to locate instantiated
1961 generics whose bodies may be needed.
1962 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
1963 with_clause for the instantiated generic, examine the context of its
1964 parents, to set Withed_Body flag, so that it can be visited earlier.
1965 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
1966 an unsigned type, use a type of the proper size for the intermediate
1967 value, to prevent alignment problems on unchecked conversion.
1969 2010-06-22 Geert Bosch <bosch@adacore.com>
1971 * s-rannum.ads Change Generator type to be self-referential to allow
1972 Random to update its argument. Use "in" mode for the generator in the
1973 Reset procedures to allow them to be called from the Ada.Numerics
1974 packages without tricks.
1975 * s-rannum.adb: Use the self-referencing argument to get write access
1976 to the internal state of the random generator.
1977 * a-nudira.ads: Make Generator a derived type of
1978 System.Random_Numbers.Generator.
1979 * a-nudira.adb: Remove use of 'Unrestricted_Access.
1980 Put subprograms in alpha order and add headers.
1981 * g-mbdira.ads: Change Generator type to be self-referential.
1982 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
1984 2010-06-22 Robert Dewar <dewar@adacore.com>
1986 * freeze.adb: Minor reformatting
1987 Minor code reorganization (use Nkind_In and Ekind_In).
1989 2010-06-22 Bob Duff <duff@adacore.com>
1991 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
1992 -gnatc when a file is compiled that we cannot generate code for, not
1993 helpful and confusing.
1995 2010-06-22 Vincent Celier <celier@adacore.com>
1997 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
2000 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2002 * s-rannum.adb: Replace constants with commented symbols.
2003 * s-rannum.ads: Explain significance of the initial value of the data
2006 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2008 * a-ngcoty.adb: Clarify comment.
2010 2010-06-22 Gary Dismukes <dismukes@adacore.com>
2012 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
2013 expansion for indexing packed arrays with small power-of-2 component
2014 sizes when the target is AAMP.
2015 (Expand_Packed_Element_Reference): Return without expansion for
2016 indexing packed arrays with small power-of-2 component sizes when the
2019 2010-06-22 Geert Bosch <bosch@adacore.com>
2021 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
2024 2010-06-22 Robert Dewar <dewar@adacore.com>
2026 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
2029 2010-06-22 Doug Rupp <rupp@adacore.com>
2031 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
2033 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
2034 (pragma Ident): Add a default ident string in the private part.
2036 2010-06-22 Robert Dewar <dewar@adacore.com>
2038 * cstand.adb: Minor reformatting.
2040 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2042 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
2043 recognize the Shift and Rotation intrinsics that are known to the
2044 compiler but have no interface name.
2046 2010-06-22 Geert Bosch <bosch@adacore.com>
2048 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
2049 scaling in case of overflow or NaN results.
2051 2010-06-22 Robert Dewar <dewar@adacore.com>
2053 * cstand.adb: Complete previous change.
2054 * g-dirope.ads: Add comment.
2055 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
2057 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2059 * cstand.adb: Add tree nodes for pragma Pack on string types.
2061 2010-06-22 Javier Miranda <miranda@adacore.com>
2063 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
2064 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
2065 formal of a primitive.
2066 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
2067 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
2068 formal of a primitive.
2069 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
2070 to obtain the last formal of a primitive.
2072 2010-06-22 Geert Bosch <bosch@adacore.com>
2074 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
2075 depending on __EMX__ or MSDOS being defined.
2076 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
2077 * a-excpol-abort.adb: Update comment indicating users of the file.
2078 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
2080 * env.c: Remove empty conditional for MSDOS.
2081 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
2084 2010-06-22 Robert Dewar <dewar@adacore.com>
2086 * s-rannum.adb: Minor reformatting.
2088 2010-06-22 Javier Miranda <miranda@adacore.com>
2090 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
2091 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
2092 package Sem_Util to package Sem_Aux.
2094 2010-06-22 Javier Miranda <miranda@adacore.com>
2096 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
2097 remove useless restriction on imported routines when building the
2100 2010-06-22 Robert Dewar <dewar@adacore.com>
2102 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
2105 2010-06-22 Javier Miranda <miranda@adacore.com>
2107 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
2108 generic subprogram declarations to ensure proper context. Add missing
2109 support for generic actuals.
2110 (Try_Primitive_Operation): Add missing support for concurrent types that
2111 have no Corresponding_Record_Type. Required to diagnose errors compiling
2112 generics or when compiling with no code generation (-gnatc).
2113 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
2114 the corresponding record type.
2115 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
2116 documentation. Do minimum decoration when processing a primitive of a
2117 concurrent tagged type that covers interfaces. Required to diagnose
2118 errors in the Object.Operation notation compiling generics or under
2120 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
2121 propagation of attribute Interface_List to the corresponding record.
2122 (Expand_N_Task_Type_Declaration): Code cleanup.
2123 (Expand_N_Protected_Type_Declaration): Code cleanup.
2125 2010-06-22 Matthew Heaney <heaney@adacore.com>
2127 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
2129 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2131 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
2132 that is able to produce all representable floating-point numbers in the
2133 unit interval. Remove template parameter Shift_Right, no longer used.
2134 * gnat_rm.texi: Document the period of the pseudo-random number
2135 generator under the description of its algorithm.
2136 * gcc-interface/Make-lang.in: Update dependencies.
2138 2010-06-22 Thomas Quinot <quinot@adacore.com>
2140 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
2141 reference to discriminant (can be an expanded name as well as an
2144 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2146 * exp_ch6.adb: Clarify comment.
2148 2010-06-22 Geert Bosch <bosch@adacore.com>
2150 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
2151 with decimal small as decimal types, avoiding floating-point arithmetic.
2152 (Has_Decimal_Small): New function.
2153 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
2155 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
2156 callers to call the new function in Einfo that takes the entity as
2159 2010-06-22 Robert Dewar <dewar@adacore.com>
2161 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
2163 2010-06-22 Thomas Quinot <quinot@adacore.com>
2165 * sem_elab.adb: Minor reformatting.
2167 2010-06-22 Vincent Celier <celier@adacore.com>
2169 * gnatsym.adb: Put the object files in the table in increasing
2170 aphabetical order of base names.
2172 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2174 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
2175 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
2176 the corresponding discriminal within a record declaration.
2178 2010-06-22 Thomas Quinot <quinot@adacore.com>
2180 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
2181 expression referring to a discriminal of the type of the aggregate (not
2182 a discriminal of some other unrelated type), and the prefix in the
2183 generated selected component must come from Lhs, not Obj.
2185 2010-06-22 Thomas Quinot <quinot@adacore.com>
2187 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
2188 when to freeze the parent type.
2190 2010-06-22 Robert Dewar <dewar@adacore.com>
2192 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
2193 exp_aggr.adb: Minor reformatting.
2194 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
2195 GNAT.MBSS_Float_Random.
2196 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
2198 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2200 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
2201 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
2202 (Random_Float_Template, Random): New method of creating
2203 uniform floating-point variables that allow the creation of all machine
2206 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
2208 2010-06-22 Gary Dismukes <dismukes@adacore.com>
2210 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
2211 to abstract targets to check that the type is tagged and comes from
2212 source, rather than only testing for targets of interface types. Remove
2215 2010-06-22 Vincent Celier <celier@adacore.com>
2217 * vms_data.ads: Modify the declarations of qualifiers
2218 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
2221 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2223 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
2224 expansion is disabled.
2226 2010-06-22 Robert Dewar <dewar@adacore.com>
2228 * makeusg.adb: Minor reformatting.
2230 2010-06-22 Robert Dewar <dewar@adacore.com>
2232 * types.ads: (Dint): Removed, no longer used anywhere.
2233 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
2234 (UI_Mul): Avoid use of UI_From_Dint.
2235 (UI_From_Dint): Removed, not used.
2236 * uintp.ads (UI_From_Dint): Removed, not used.
2237 (Uint_Min/Max_Simple_Mul): New constants.
2239 2010-06-22 Vincent Celier <celier@adacore.com>
2241 * clean.adb (Parse_Cmd_Line): Recognize switch
2242 --unchecked-shared-lib-imports.
2243 (Usage): Add line for switch --unchecked-shared-lib-imports
2244 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
2245 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
2246 moved from GPR_Util.
2247 * switch-m.adb (Scan_Make_Switches): Recognize switch
2248 --unchecked-shared-lib-imports.
2249 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
2250 * gnat_ugn.texi: Add documentation for new switch
2251 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
2253 2010-06-22 Javier Miranda <miranda@adacore.com>
2255 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
2256 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
2257 this patch replaces duplication of code that traverses the chain of
2258 aliased primitives by a call to routine Ultimate_Alias that
2259 provides this functionality.
2261 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2263 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
2264 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
2267 2010-06-22 Thomas Quinot <quinot@adacore.com>
2269 * einfo.ads: Minor reformatting.
2271 2010-06-22 Javier Miranda <miranda@adacore.com>
2273 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
2274 eliminated primitives.
2275 (Make_DT): Avoid referencing eliminated primitives.
2276 (Register_Primitive): Do not register eliminated primitives in the
2277 dispatch table. Required to add this functionality when the program is
2278 compiled without static dispatch tables (-gnatd.t)
2280 2010-06-22 Emmanuel Briot <briot@adacore.com>
2282 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
2283 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
2284 warnings on use of internal GNAT units.
2286 2010-06-22 Jose Ruiz <ruiz@adacore.com>
2288 * s-taprop-vxworks.adb (Set_Priority): Update comments.
2290 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2292 * s-rannum.adb: Make stylistic change to remove mystery constant in
2293 Extract_Value. Image_Numeral_Length: new symbolic constant.
2295 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2297 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
2298 Is_Synchronized_Interface, Is_Task_Interface into computable
2299 predicates, to free three flags in entity nodes.
2300 * sem_ch3.adb: Remove setting of these flags.
2302 2010-06-22 Robert Dewar <dewar@adacore.com>
2304 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
2306 * s-taprop-vxworks.adb: Add comment for Set_Priority.
2307 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
2308 * projects.texi: Move @cindex to the left margin, since otherwise we
2309 are missing entries in the index.
2311 2010-06-22 Emmanuel Briot <briot@adacore.com>
2313 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
2314 packages from the GNAT hierarchy instead of System when possible.
2315 * gcc-interface/Make-lang.in: Update dependencies.
2317 2010-06-22 Jose Ruiz <ruiz@adacore.com>
2319 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
2320 previously in place to reorder the ready queue when a task drops its
2321 priority due to the loss of inherited priority.
2323 2010-06-22 Vincent Celier <celier@adacore.com>
2325 * projects.texi: Minor spelling error fixes.
2328 2010-06-22 Emmanuel Briot <briot@adacore.com>
2330 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
2331 warnings for some with clauses.
2333 2010-06-22 Robert Dewar <dewar@adacore.com>
2335 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
2336 test to catch more cases where first subtype is the results we want.
2337 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
2338 error case, since Errout will now handle this correctly.
2339 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
2340 Update dependencies.
2342 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2344 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
2345 when calling Make_Temporary.
2347 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2349 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
2350 subprogram can be associated with an entry body.
2352 2010-06-22 Robert Dewar <dewar@adacore.com>
2354 * scos.ads: Add note on membership test handling.
2356 2010-06-22 Vincent Celier <celier@adacore.com>
2358 * projects.texi: Minor spelling fixes.
2361 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2363 * s-rannum.adb: Correct off-by-one error in Extract_Value.
2365 2010-06-22 Vincent Celier <celier@adacore.com>
2367 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
2369 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
2370 gcc command if it is too long.
2372 2010-06-22 Robert Dewar <dewar@adacore.com>
2374 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
2376 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2378 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
2379 calling Make_Temporary.
2381 2010-06-22 Robert Dewar <dewar@adacore.com>
2383 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
2385 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2387 * sem_res.adb: Additional special-case for VMS.
2389 2010-06-22 Vincent Celier <celier@adacore.com>
2391 * gnatsym.adb: Minor comment fix.
2393 2010-06-22 Vincent Celier <celier@adacore.com>
2395 * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
2397 2010-06-22 Robert Dewar <dewar@adacore.com>
2399 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
2400 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
2401 Ada 95 mode as an implementation defined attribute.
2403 2010-06-22 Vincent Celier <celier@adacore.com>
2405 * bindusg.adb (Display): Update line for -R
2406 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
2407 generated files when -R is used.
2409 2010-06-22 Vincent Celier <celier@adacore.com>
2411 * prj-nmsc.adb (Lib_Data_Table): New table.
2412 (Check_Library_Attributes): Check if the same library name is used in
2413 two different projects that do not extend each other.
2415 2010-06-22 Robert Dewar <dewar@adacore.com>
2417 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
2419 2010-06-22 Vincent Celier <celier@adacore.com>
2421 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
2422 empty, make it the current working directory.
2424 2010-06-22 Thomas Quinot <quinot@adacore.com>
2426 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
2427 private type with discriminants, make sure the parent type is frozen.
2429 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
2431 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
2432 with packed array references specially.
2433 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
2434 to a component of a bit packed array if it is the prefix of 'Bit.
2435 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
2436 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
2437 'Bit reference, where the prefix involves a packed array reference.
2438 (Get_Base_And_Bit_Offset): New helper, extracted from...
2439 (Expand_Packed_Address_Reference): ...here. Call above procedure to
2440 get the outer object and offset expression.
2442 2010-06-22 Thomas Quinot <quinot@adacore.com>
2444 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
2445 * einfo.adb (Related_Expression, Set_Related_Expression): Add
2448 2010-06-22 Javier Miranda <miranda@adacore.com>
2450 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
2451 reorganization to properly check if the operation has been inherited as
2452 an abstract operation.
2454 2010-06-22 Ed Falis <falis@adacore.com>
2456 * s-osinte-vxworks.ads: Complete previous change.
2458 2010-06-22 Thomas Quinot <quinot@adacore.com>
2460 * sem_res.adb: Add comment.
2461 * projects.texi, gnat_ugn.texi: Remove macro.
2463 2010-06-22 Vincent Celier <celier@adacore.com>
2465 * prj-attr.adb: Remove project level attribute Main_Language.
2467 2010-06-22 Robert Dewar <dewar@adacore.com>
2469 * switch-b.adb, osint-b.adb: Minor reformatting.
2471 2010-06-22 Pascal Obry <obry@adacore.com>
2473 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
2474 vector if previous send was not fully successful. If only part of
2475 the vector data was sent, we exit the loop.
2477 2010-06-22 Thomas Quinot <quinot@adacore.com>
2479 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
2480 error reporting with generic types.
2482 2010-06-22 Thomas Quinot <quinot@adacore.com>
2484 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
2485 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
2486 vms_data.ads: Add a new command line switch -A to gnatbind to output
2487 the list of all ALI files for the partition.
2489 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2491 * s-osinte-vxworks.ads: Fix casing.
2492 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
2493 change: Interfaces.C does not provide a long_long type.
2495 2010-06-22 Emmanuel Briot <briot@adacore.com>
2497 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
2498 native user's guide, since this document contains the two versions.
2499 * gcc-interface/Make-lang.in: Update doc dependencies.
2501 2010-06-22 Robert Dewar <dewar@adacore.com>
2503 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
2505 2010-06-22 Emmanuel Briot <briot@adacore.com>
2507 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
2508 not build this file on its own (only through gnat_ugn.texi).
2509 Remove macro definitions and insert simpler version in gnat_ugn.texi.
2511 2010-06-22 Robert Dewar <dewar@adacore.com>
2513 * ali-util.ads: Minor comment update.
2514 * g-socthi-mingw.adb: Minor reformatting.
2516 2010-06-22 Ed Falis <falis@adacore.com>
2518 * s-osinte-vxworks.ads: take sigset_t definition from System.VxWorks.Ext
2519 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
2520 for specific versions of VxWorks.
2522 2010-06-22 Emmanuel Briot <briot@adacore.com>
2524 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
2525 related sections from user's guide and reference manual, since they
2526 have now been merged together into a separate document (projects.texi).
2527 This removes a lot of duplication where attributes where described
2529 The grammar for the project files is now in each of the sections
2530 (packages,expressions,...) instead of being duplicates in two other
2531 sections (one in the user's guide that contained the full grammar,
2532 and various sections in the rm that contained extracts of the same
2534 Added the full list of all supported attributes, since existing lists
2536 Rename "associative array" into "indexed attribute"
2537 Remove sections that were duplicates ("External References in
2538 Project Files" and "External Values", and "Project Extensions"
2539 for instance). The list of valid packages in project files is now in
2542 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2544 * sem_ch3.adb (Add_Internal_Interface_Entities): If
2545 Find_Primitive_Covering_Interface does not find the operation, it may
2546 be because of a name conflict between the inherited operation and a
2547 local non-overloadable name. In that case look for the operation among
2548 the primitive operations of the type. This search must succeed
2549 regardless of visibility.
2551 2010-06-22 Pascal Obry <obry@adacore.com>
2553 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
2554 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
2557 2010-06-22 Robert Dewar <dewar@adacore.com>
2559 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
2561 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
2563 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2565 * s-intman-vxworks.ads: Code clean up.
2567 2010-06-22 Thomas Quinot <quinot@adacore.com>
2569 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
2570 dereference, construct actual subtype of designated object to generate
2571 proper bounds checks.
2573 2010-06-22 Thomas Quinot <quinot@adacore.com>
2575 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
2576 Read_Withed_ALIs, which is more descriptive.
2578 2010-06-22 Pascal Obry <obry@adacore.com>
2580 * g-sothco.ads: Minor reformatting.
2581 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
2582 C_Sendmsg implementation.
2583 (C_Sendmsg): Do not use lock (not needed).
2584 (C_Recvmsg): Likewise and also do not wait for incoming data.
2586 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2588 * uintp.adb: Fix scope error in operator call.
2590 2010-06-22 Vincent Celier <celier@adacore.com>
2592 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
2593 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
2594 autoconfiguration is needed, fail indicating that no config project
2595 file can be found, as there is no autoconfiguration on VMS.
2597 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2599 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
2600 for an operator in a functional notation, when operands are universal.
2602 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2604 * gcc-interface/Make-lang.in: Update dependencies.
2606 2010-06-22 Robert Dewar <dewar@adacore.com>
2608 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
2610 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
2611 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
2613 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
2616 2010-06-22 Vincent Celier <celier@adacore.com>
2618 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
2619 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
2621 2010-06-22 Pascal Obry <obry@adacore.com>
2623 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
2625 (C_Recvmsg): Make sure the routine is atomic. Also fully
2626 fill vectors in the proper order.
2627 (C_Sendmsg): Make sure the routine is atomic.
2629 2010-06-22 Robert Dewar <dewar@adacore.com>
2631 * sem_ch8.adb: Update comment.
2632 * sem_res.adb: Minor code reorganization (use Ekind_In).
2634 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2636 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
2637 name is a call, use the number of actuals to determine whether this is
2638 a binary or unary operator, rather than relying on later information
2639 to resolve the overload.
2641 2010-06-22 Robert Dewar <dewar@adacore.com>
2643 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
2645 2010-06-22 Robert Dewar <dewar@adacore.com>
2647 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
2648 * sem_eval.adb: Minor reformatting.
2650 2010-06-22 Vincent Celier <celier@adacore.com>
2652 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
2653 to gnatlink, except on Open VMS.
2654 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
2655 object directories if -nostdlib is used.
2657 2010-06-22 Robert Dewar <dewar@adacore.com>
2659 * sem_util.adb (Is_Delegate): Put in proper alpha order.
2660 * sem_eval.adb: Minor reformatting.
2662 2010-06-22 Robert Dewar <dewar@adacore.com>
2664 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
2665 * exp_aggr.adb: Minor comment changes and reformatting.
2666 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha order
2667 * sem_util.ads: Add some missing pragma Inline's (efficiency issue only)
2669 2010-06-22 Thomas Quinot <quinot@adacore.com>
2671 * sem_util.adb (Build_Actual_Subtype): Record original expression in
2672 Related_Expression attribute of the constructed subtype.
2673 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
2674 Node24 on types for...
2675 (Related_Expression): Make attribute available on types as well.
2677 2010-06-22 Gary Dismukes <dismukes@adacore.com>
2679 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead of
2680 Directly_Designated_Type when the type argument is an access type.
2681 (Find_Interface_Tag): Retrieve Designated_Type instead of
2682 Directly_Designated_Type when the type argument is an access type.
2683 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
2684 Directly_Designated_Type of each access discriminant.
2685 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
2686 instead of Directly_Designated_Type when the operand and target types
2689 2010-06-22 Thomas Quinot <quinot@adacore.com>
2691 * exp_aggr.adb (Flatten): Return False if one choice is statically
2692 known to be out of bounds.
2694 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2696 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
2697 a parameterless function call, preserve parentheses of original
2698 expression, for proper handling by pretty printer.
2699 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
2700 procedure, to handle quietly identifiers that have no entity names.
2701 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
2702 elsif_part is missing, it has been rewritten as a nested if, and there
2703 is no useful information on the current value of the variable.
2705 2010-06-22 Gary Dismukes <dismukes@adacore.com>
2707 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
2708 discriminals to the current scope.
2709 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
2710 scope, which could overwrite a different already set value.
2712 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2714 * sem_res.adb (Valid_Conversion): If expression is a predefined
2715 operator, use sloc of type of interpretation to improve error message
2716 when operand is of some derived type.
2717 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
2719 2010-06-22 Emmanuel Briot <briot@adacore.com>
2721 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
2722 that it can set out parameters as well. When a process has died, reset
2723 its Input_Fd to Invalid_Fd, so that when using multiple processes we
2724 can find out which process has died.
2726 2010-06-22 Thomas Quinot <quinot@adacore.com>
2728 * sem_eval.adb (Find_Universal_Operator_Type): New
2729 subprogram to identify the operand type of an operator on universal
2730 operands, when an explicit scope indication is present. Diagnose the
2731 case where such a call is ambiguous.
2732 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
2733 Use the above to identify the operand type so it can be properly frozen.
2734 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
2735 type, done in an arbitrary, possibly incorrect type (the presence of
2736 some numeric type in the scope is checked for legality, but when more
2737 than one such type is in the scope, we just pick a random one, not
2738 necessarily the expected one).
2739 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
2742 2010-06-22 Robert Dewar <dewar@adacore.com>
2744 * sem_eval.adb: Minor reformatting.
2746 2010-06-22 Robert Dewar <dewar@adacore.com>
2748 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
2749 Expression_With_Actions to clean up the code generated when folding
2750 constant expressions.
2752 2010-06-22 Vincent Celier <celier@adacore.com>
2754 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
2757 2010-06-22 Vincent Celier <celier@adacore.com>
2759 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
2760 found, check if it's path has aready been found, whatever its index.
2762 2010-06-22 Robert Dewar <dewar@adacore.com>
2764 * atree.adb, gnatbind.adb: Minor reformatting.
2765 Minor code reorganization.
2767 2010-06-21 Robert Dewar <dewar@adacore.com>
2769 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
2770 known at compile time.
2772 2010-06-21 Gary Dismukes <dismukes@adacore.com>
2774 * atree.adb: Fix comment typo.
2776 2010-06-21 Ed Schonberg <schonberg@adacore.com>
2778 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
2779 whether a universal arithmetic expression in a conversion, which is
2780 rewritten from a function call with an expanded name, is ambiguous.
2782 2010-06-21 Vincent Celier <celier@adacore.com>
2784 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
2785 source files in specified list of sources.
2786 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
2788 (Add_Source): Set the Location of the new source
2789 (Process_Exceptions_File_Based): Call Add_Source with the Location
2790 (Get_Sources_From_File): If an exception is found, set its Listed to
2792 (Find_Sources): When Source_Files is specified, if an exception is
2793 found, set its Listed to True. Remove any exception that is not in a
2794 specified list of sources.
2795 * prj.ads (Source_Data): New component Location
2797 2010-06-21 Vincent Celier <celier@adacore.com>
2799 * gnatbind.adb (Closure_Sources): Global table, moved from block.
2801 2010-06-21 Thomas Quinot <quinot@adacore.com>
2803 * sem_res.adb: Minor reformatting.
2804 * atree.adb: New debugging hook "rr" for node rewrites.
2806 2010-06-21 Robert Dewar <dewar@adacore.com>
2808 * g-expect.ads, g-expect.adb: Minor reformatting.
2810 2010-06-21 Emmanuel Briot <briot@adacore.com>
2812 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
2814 2010-06-21 Arnaud Charlet <charlet@adacore.com>
2816 * gcc-interface/Make-lang.in: Update dependencies.
2818 2010-06-21 Thomas Quinot <quinot@adacore.com>
2820 * bindgen.ads: Update comments.
2822 2010-06-21 Vincent Celier <celier@adacore.com>
2824 * gnatbind.adb: Suppress dupicates when listing the sources in the
2825 closure (switch -R).
2827 2010-06-21 Emmanuel Briot <briot@adacore.com>
2829 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
2832 2010-06-21 Emmanuel Briot <briot@adacore.com>
2834 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
2836 (Expect_Internal): No longer raises an exception, so that it can set
2837 out parameters as well. When a process has died, reset its Input_Fd
2838 to Invalid_Fd, so that when using multiple processes we can find out
2839 which process has died.
2841 2010-06-21 Robert Dewar <dewar@adacore.com>
2843 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
2844 checks.adb, sem_res.adb: Minor reformatting. Add comments.
2846 2010-06-21 Ed Schonberg <schonberg@adacore.com>
2848 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
2849 rederivation associated with a full declaration in a private part, and
2850 there is a partial view that derives the same parent subprogram, the
2851 new entity does not become visible. This check must be applied to
2852 interface operations as well.
2854 2010-06-21 Thomas Quinot <quinot@adacore.com>
2856 * checks.adb: Add comments.
2857 * prj-nmsc.adb: Minor reformatting.
2859 2010-06-21 Thomas Quinot <quinot@adacore.com>
2861 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
2862 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
2863 extract bounds, to ensure that we get the proper captured values,
2864 rather than an expression that may have changed value since the point
2865 where the subtype was elaborated.
2866 (Find_Body_Discriminal): New utility subprogram to share code between...
2867 (Eval_Attribute): For the case of a subtype bound that references a
2868 discriminant of the current concurrent type, insert appropriate
2869 discriminal reference.
2870 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
2871 requeue to an entry in a family in the current task, use corresponding
2873 (Analyze_Accept_Statement): Rely on expansion of attribute references
2874 to insert proper discriminal references in range check for entry in
2877 2010-06-21 Emmanuel Briot <briot@adacore.com>
2879 * s-regpat.adb (Compile): Fix handling of big patterns.
2881 2010-06-21 Robert Dewar <dewar@adacore.com>
2883 * a-tifiio.adb: Minor reformatting.
2885 2010-06-21 Pascal Obry <obry@adacore.com>
2887 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
2890 2010-06-21 Javier Miranda <miranda@adacore.com>
2892 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
2895 2010-06-21 Ed Schonberg <schonberg@adacore.com>
2897 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
2898 to hold the result, indicate that the target of the declaration does
2899 not need an initialization, to prevent spurious errors when
2900 Initialize_Scalars is enabled.
2902 2010-06-21 Ed Schonberg <schonberg@adacore.com>
2904 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
2905 Fore is not bound by line length. The Fore parameter of the internal
2906 procedure that performs the operation is an integer.
2908 2010-06-21 Thomas Quinot <quinot@adacore.com>
2910 * sem_res.adb, checks.adb: Minor reformatting.
2912 2010-06-21 Emmanuel Briot <briot@adacore.com>
2914 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
2916 (Insert_Operator_Before): New subprogram, avoids duplicated code
2917 (Compile): Avoid doing two compilations when the pattern matcher ends
2920 2010-06-21 Emmanuel Briot <briot@adacore.com>
2922 * s-regpat.adb: Improve debug traces
2923 (Dump): Change output format to keep it smaller.
2925 2010-06-21 Javier Miranda <miranda@adacore.com>
2927 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
2928 output to the output file when this routine completes its work.
2930 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
2932 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
2933 for loop. Call build_constructor_from_list directly in the CICO case.
2935 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2937 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
2938 declaration appears in the same unit and ealier than the renamed
2939 entity, retain generated body to prevent order-of-elaboration issues in
2942 2010-06-18 Arnaud Charlet <charlet@adacore.com>
2944 * s-tpoben.adb: Update comments.
2946 2010-06-18 Robert Dewar <dewar@adacore.com>
2948 * debug.adb: Minor comment change.
2950 2010-06-18 Javier Miranda <miranda@adacore.com>
2952 * exp_cg.adb: Code clean up.
2953 * debug.adb: Complete documentation of switch -gnatd.Z.
2954 * gcc-interface/misc.c (callgraph_info_file): Declare.
2956 2010-06-18 Javier Miranda <miranda@adacore.com>
2958 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
2960 2010-06-18 Thomas Quinot <quinot@adacore.com>
2962 * sprint.ads: Minor reformatting.
2963 * output.ads: Update obsolete comment.
2965 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2967 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
2968 an external intrinsic operation (e.g. a GCC numeric function) indicate
2969 that the renaming entity has the same characteristics, so a call to it
2970 is properly expanded.
2972 2010-06-18 Javier Miranda <miranda@adacore.com>
2974 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
2975 support for dispatch table/callgraph info generation.
2976 * gcc-interface/Make-lang.in: Update dependencies.
2978 2010-06-18 Robert Dewar <dewar@adacore.com>
2980 * exp_ch6.adb: Minor reformatting.
2981 * gnatname.adb: Add comment.
2983 2010-06-18 Vincent Celier <celier@adacore.com>
2985 * gnatname.adb (Scan_Args): When --and is used, make sure that the
2986 dynamic tables in the newly allocated Argument_Data are properly
2989 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
2991 * gnat1drv.adb: Fix comment.
2993 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2995 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
2996 renaming, re-expand the call with the renamed subprogram if that one
2997 is marked inlined as well.
2999 2010-06-18 Gary Dismukes <dismukes@adacore.com>
3001 * gnat1drv.adb (Adjust_Global_Switches): Enable
3002 Use_Expression_With_Actions for AAMP and VM targets.
3004 2010-06-18 Vincent Celier <celier@adacore.com>
3006 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
3008 2010-06-18 Thomas Quinot <quinot@adacore.com>
3010 * exp_ch4.adb: Minor reformatting.
3012 2010-06-18 Javier Miranda <miranda@adacore.com>
3014 * debug.ads Add documentation on -gnatd.Z.
3016 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3018 * sem_elim.adb: Proper error message on improperly eliminated instances
3020 2010-06-18 Vincent Celier <celier@adacore.com>
3022 * prj.ads (Response_File_Format): New value GCC.
3024 2010-06-18 Thomas Quinot <quinot@adacore.com>
3026 * gnat1drv.adb: Minor reformatting.
3028 2010-06-18 Robert Dewar <dewar@adacore.com>
3030 * make.adb, sem_cat.adb: Minor reformatting.
3031 * sem_eval.adb: Fix typos.
3033 2010-06-18 Pascal Obry <obry@adacore.com>
3035 * prj-nmsc.adb: Fix source filenames casing in debug output.
3037 2010-06-18 Robert Dewar <dewar@adacore.com>
3039 * gnatcmd.adb: Minor reformatting.
3041 2010-06-18 Robert Dewar <dewar@adacore.com>
3043 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
3044 condition and both sub-expressions are static (and result is selected
3047 2010-06-18 Robert Dewar <dewar@adacore.com>
3049 * g-pehage.adb: Minor reformatting
3051 2010-06-18 Pascal Obry <obry@adacore.com>
3053 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
3056 2010-06-18 Arnaud Charlet <charlet@adacore.com>
3058 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
3059 dependencies. Fix target pairs on darwin.
3060 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
3062 2010-06-18 Pascal Obry <obry@adacore.com>
3064 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
3066 2010-06-18 Vincent Celier <celier@adacore.com>
3068 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
3069 configuration pragmas file and, if -U is not used, for a local one.
3071 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3073 * sem_elim.adb (Check_Eliminated): Use full information on entity name
3074 when it is given in the pragma by a selected component.
3075 (Check_For_Eliminated_Subprogram): Do no emit error if within a
3076 instance body that is itself within a generic unit.
3077 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
3078 eliminated, mark as well the anonymous subprogram that is its alias
3079 and appears within the wrapper package.
3081 2010-06-18 Bob Duff <duff@adacore.com>
3083 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
3084 Raise an exception if the output file cannot be opened. Add comments.
3086 2010-06-18 Thomas Quinot <quinot@adacore.com>
3088 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
3089 not illegal per E.2.2(7) if it occurs in the private part of a
3092 2010-06-18 Arnaud Charlet <charlet@adacore.com>
3094 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
3095 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
3096 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
3097 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
3098 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
3099 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
3100 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
3101 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
3102 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
3103 errout.ads: Update comments. Minor reformatting.
3105 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
3106 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
3107 a-strunb.adb (Big_String. Big_String_Access): New type.
3109 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
3110 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
3111 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
3113 2010-06-18 Geert Bosch <bosch@adacore.com>
3115 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
3118 2010-06-18 Robert Dewar <dewar@adacore.com>
3120 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
3123 2010-06-18 Robert Dewar <dewar@adacore.com>
3125 * sprint.adb: Minor format change for N_Expression_With_Actions.
3126 * repinfo.adb: Minor reformatting.
3128 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3130 * sem_elim.adb (Check_Eliminated): If within a subunit, use
3131 Defining_Entity to obtain the name of the entity in the proper body, to
3132 properly handle both separate packages and subprograms.
3134 2010-06-18 Emmanuel Briot <briot@adacore.com>
3136 * prj-nmsc.adb (Check_File): New parameter Display_Path.
3138 2010-06-18 Thomas Quinot <quinot@adacore.com>
3140 * g-socket.adb, g-socket.ads (Null_Selector): New object.
3142 2010-06-18 Pascal Obry <obry@adacore.com>
3144 * gnat_ugn.texi: Minor clarification.
3146 2010-06-18 Emmanuel Briot <briot@adacore.com>
3148 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
3149 code when using the project dir as the source dir.
3150 (Search_Directories): use the normalized name for the source directory,
3151 where symbolic names have potentially been resolved.
3153 2010-06-18 Robert Dewar <dewar@adacore.com>
3155 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
3156 when we create N_Expression_With_Actions node.
3157 (Expand_Short_Circuit): Ditto.
3159 2010-06-18 Robert Dewar <dewar@adacore.com>
3161 * exp_util.adb: Minor reformatting.
3163 2010-06-18 Thomas Quinot <quinot@adacore.com>
3165 * types.ads: Clean up obsolete comments
3166 * tbuild.adb: Minor reformatting.
3167 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
3168 exp_strm.adb, aa_drive.adb: Minor reformatting.
3169 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
3170 intrinsic with an Interface_Name denotes an imported back-end builtin,
3171 and must be rewritten into a call, not left in the tree as an operator,
3172 so return False in that case.
3174 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
3176 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
3178 2010-06-18 Robert Dewar <dewar@adacore.com>
3180 * scos.ads: Add proposed output for case expression
3182 2010-06-18 Jose Ruiz <ruiz@adacore.com>
3184 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
3185 RTSS modules, we need to use the Microsoft linker.
3187 2010-06-18 Robert Dewar <dewar@adacore.com>
3189 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
3190 expression (cannot count on a particular branch being executed).
3191 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
3192 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
3193 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
3194 within case expression.
3195 * expander.adb (Expand): Add call to Expand_N_Case_Expression
3196 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
3197 (P_Case_Expression): New procedure
3198 (P_Case_Expression_Alternative): New procedure
3199 * par.adb (P_Case_Expression): New procedure
3200 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
3202 * sem.adb (Analyze): Add call to Analyze_Case_Expression
3203 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
3204 this is a documentation change only.
3205 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
3206 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
3208 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
3209 * sem_res.adb (Resolve_Case_Expression): New procedure.
3210 * sem_scil.adb (Find_SCIL_Node): Add processing for
3211 N_Case_Expression_Alternative.
3212 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
3213 (N_Case_Expression_Alternative): New node.
3214 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
3215 N_Case_Expression and N_Case_Expression_Alternative.
3217 2010-06-18 Robert Dewar <dewar@adacore.com>
3219 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
3220 * gnat1drv.adb: Fix typo.
3222 2010-06-18 Robert Dewar <dewar@adacore.com>
3224 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
3226 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
3227 gnat style for -gnatg.
3228 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
3230 2010-06-18 Thomas Quinot <quinot@adacore.com>
3232 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
3234 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
3237 2010-06-18 Robert Dewar <dewar@adacore.com>
3239 * sprint.adb: Minor change in output format for expression wi actions.
3240 * par-ch3.adb: Minor code reorganization. Minor reformatting.
3241 * sem_ch5.adb: Minor comment fix.
3243 2010-06-18 Robert Dewar <dewar@adacore.com>
3245 * debug.adb: New debug flag -gnatd.L to control
3246 Back_End_Handles_Limited_Types.
3247 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
3248 limited case if Back_End_Handles_Limited_Types is True.
3249 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
3250 simplify expansion if Use_Expression_With_Actions is True.
3251 * gnat1drv.adb (Adjust_Global_Switches): Set
3252 Back_End_Handles_Limited_Types.
3253 * opt.ads (Back_End_Handles_Limited_Types): New flag.
3255 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3257 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
3258 intrinsic operator if expansion is not enabled, because in an
3259 instantiation the original operator must be present to verify the
3260 legality of the operation.
3262 2010-06-18 Robert Dewar <dewar@adacore.com>
3264 * exp_disp.adb, sem_ch12.adb: Minor reformatting
3266 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3268 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
3269 the class-wide type for a private extension, and the completion is a
3270 subtype, set the type of the class-wide type to the base type of the
3273 2010-06-18 Robert Dewar <dewar@adacore.com>
3275 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
3276 sem_intr.adb, sem_eval.adb: Minor reformatting
3278 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3280 * sem_type.adb (Is_Ancestor): If either type is private, examine full
3283 2010-06-18 Thomas Quinot <quinot@adacore.com>
3285 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
3286 parameter rather than IN OUT.
3288 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3290 * exp_ch6.adb: Add extra guard.
3292 2010-06-18 Gary Dismukes <dismukes@adacore.com>
3294 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
3295 accessibility level of a function call from the level of the innermost
3296 enclosing dynamic scope.
3297 (Innermost_Master_Scope_Depth): New function to find the depth of the
3298 nearest dynamic scope enclosing a node.
3300 2010-06-18 Tristan Gingold <gingold@adacore.com>
3302 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
3304 2010-06-18 Thomas Quinot <quinot@adacore.com>
3306 * g-socket.ads: Minor reformatting.
3308 2010-06-18 Vincent Celier <celier@adacore.com>
3310 * make.adb (Must_Compile): New Boolean global variable
3311 (Main_On_Command_Line): New Boolean global variable
3312 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
3313 even when the project is externally built.
3314 (Start_Compile_If_Possible): Compile in -aL directories if
3315 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
3316 when the project is externally built.
3317 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
3318 invoked with -f -u and one or several mains on the command line.
3319 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main
3320 is specified on the command line.
3322 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3324 * sem_ch6.adb (Build_Body_For_Inline): Handle extended_return_statements
3325 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
3326 containing extented_return statements.
3327 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
3328 constrained, do not build subtype declaration.
3330 2010-06-18 Robert Dewar <dewar@adacore.com>
3332 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
3333 Warn on assigning to packed atomic component.
3335 2010-06-18 Robert Dewar <dewar@adacore.com>
3337 * sem_util.ads: Minor reformatting
3338 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
3339 Expression_With_Actions).
3340 * snames.ads-tmpl: Minor comment fix
3342 2010-06-18 Robert Dewar <dewar@adacore.com>
3344 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
3345 (Set_Imported): Use Import_Interface_Present to control message output
3346 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
3347 * gnat_rm.texi: Document that we can have pragma Import and pragma
3348 Interface for the same subprogram.
3350 2010-06-18 Robert Dewar <dewar@adacore.com>
3352 * lib-xref.adb (Generate_Reference): Fix bad reference to
3353 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
3355 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
3357 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
3359 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
3360 Use set_gnu_expr_location_from_node to set location information on the
3363 2010-06-17 Arnaud Charlet <charlet@adacore.com>
3365 * gcc-interface/Make-lang.in: Update dependencies.
3367 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3369 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
3372 2010-06-17 Robert Dewar <dewar@adacore.com>
3374 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
3375 style check messages.
3376 * sem_res.adb (Resolve_Call): Don't call
3377 Check_For_Eliminated_Subprogram if we are analyzing within a spec
3380 2010-06-17 Robert Dewar <dewar@adacore.com>
3382 * debug.adb: Add documentation for debug flags .X and .Y
3383 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
3384 Use_Expression_With_Actions.
3385 * gnat1drv.adb (Adjust_Global_Switches): Set
3386 Use_Expression_With_Actions.
3387 * opt.ads (Use_Expression_With_Actions): New switch.
3389 2010-06-17 Robert Dewar <dewar@adacore.com>
3391 * exp_intr.adb: Minor code reorganization (use UI_Max)
3392 * sem_intr.adb: use underlying type to check legality.
3393 * einfo.adb (Known_Static_Esize): False for generic types
3394 (Known_Static_RM_Size): False for generic types
3395 * einfo.ads (Known_Static_Esize): False for generic types
3396 (Known_Static_RM_Size): False for generic types
3398 2010-06-17 Robert Dewar <dewar@adacore.com>
3400 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
3402 2010-06-17 Robert Dewar <dewar@adacore.com>
3404 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
3405 node when expanding short circuit form with actions present for right
3407 * exp_ch4.adb: Minor reformatting
3408 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node if
3409 right opeand has actions present, and debug flag -gnatd.X is set.
3410 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
3412 * nlists.adb (Prepend_List): New procedure
3413 (Prepend_List_To): New procedure
3414 * nlists.ads (Prepend_List): New procedure
3415 (Prepend_List_To): New procedure
3416 * sem.adb: Add processing for Expression_With_Actions
3417 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
3418 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
3419 * sem_res.adb: Add processing for Expression_With_Actions.
3420 * sem_scil.adb: Add processing for Expression_With_Actions
3421 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
3422 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
3424 2010-06-17 Doug Rupp <rupp@adacore.com>
3426 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
3427 involved both have underlying integer types.
3428 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
3429 to an intrinsic operator when the operand types or sizes are not
3431 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
3432 64/32 Address/Integer works.
3434 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3436 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
3437 that it marks a unit as needed by a spec only if the corresponding
3438 instantiation appears in that spec (and not in the corresponding body).
3439 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
3440 in the pragma Eliminate has been parsed as a child unit, but the
3441 current compilation unit is in fact the parent in which the subunit is
3444 2010-06-17 Vincent Celier <celier@adacore.com>
3446 * gnat_rm.texi: Fix typo
3448 2010-06-17 Robert Dewar <dewar@adacore.com>
3450 * sem_util.adb: Minor reformatting
3452 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3454 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
3455 instance, the clause now denotes the instance body. Traverse the
3456 corresponding spec because there may be no other dependence that will
3457 force the traversal of its own context.
3459 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3461 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
3462 Install_Limited_Context_Clauses, to determine whether a limited_with in
3463 some parent of the current unit designates some other parent, in which
3464 case the limited_with clause must not be installed.
3465 (In_Context): Refine test.
3467 2010-06-17 Gary Dismukes <dismukes@adacore.com>
3469 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
3470 type with a dispatching equality operator that is overridden (for a
3471 tagged full type), don't include the overridden equality in the list of
3472 primitives. The overridden equality is detected by testing for an
3473 Aliased field that references the overriding equality.
3475 2010-06-17 Robert Dewar <dewar@adacore.com>
3477 * freeze.adb: Minor reformatting.
3479 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
3481 * gnat_ugn.texi: Add a section introducing gdbserver.
3483 2010-06-17 Thomas Quinot <quinot@adacore.com>
3485 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
3488 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3490 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
3491 constrained discriminated parent that is a private type.
3492 (Analyze_Record_Aggregate): when collecting inherited discriminants,
3493 handle properly an ancestor type that is a constrained private type.
3495 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3497 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
3498 protected, use the protected_subprogram_body only if the original
3499 subprogram has not been eliminated.
3501 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3503 * freeze.adb (Freeze_Expression): The designated type of an
3504 access_to_suprogram type can only be frozen if all types in its profile
3507 2010-06-17 Robert Dewar <dewar@adacore.com>
3509 * par.adb: Minor comment fix
3510 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
3512 2010-06-17 Doug Rupp <rupp@adacore.com>
3514 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
3515 change Address to Short_Address in functions where both must be the
3516 same size for intrinsics to work.
3518 2010-06-17 Thomas Quinot <quinot@adacore.com>
3520 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
3521 not denote a (private) component of a protected object.
3523 2010-06-17 Bob Duff <duff@adacore.com>
3525 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
3528 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
3530 * gnat_ugn.texi: Update the documentation about GDB re: exception
3533 2010-06-17 Arnaud Charlet <charlet@adacore.com>
3535 * gnatvsn.ads: Bump to 4.6 version.
3537 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3539 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
3540 designated type of the generated pointer is the type of the original
3541 expression, not that of the function call itself, because the return
3542 type may be an untagged derived type and the function may be an
3543 inherited operation.
3545 2010-06-17 Robert Dewar <dewar@adacore.com>
3547 * exp_ch4.adb: Minor reformatting.
3549 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3551 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
3552 N_Component_Association nodes, to indicate that a component association
3553 of an extension aggregate denotes the value of a discriminant of an
3554 ancestor type that has been constrained by the derivation.
3555 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
3556 double expansion of the aggregate appearing in a context that delays
3557 expansion, to prevent double insertion of discriminant values when the
3558 aggregate is reanalyzed.
3560 2010-06-17 Arnaud Charlet <charlet@adacore.com>
3562 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
3563 Allocator as the Related_Node of Return_Obj_Access in call to
3564 Make_Temporary below as this would create a sort of infinite
3567 2010-06-17 Ben Brosgol <brosgol@adacore.com>
3569 * gnat_ugn.texi: Update gnatcheck doc.
3571 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3573 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
3574 incomplete view of the type that is not tagged, and the full type is a
3575 tagged extension, create class_wide type now, and warn that the
3576 incomplete view should be tagged as well.
3578 2010-06-17 Vincent Celier <celier@adacore.com>
3580 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
3581 Update the last line of the usage, indicating what commands do not
3582 accept project file switches.
3583 * vms_conv.adb: Do not issue usage line for GNAT SYNC
3584 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
3586 * gnat_ugn.texi: Document the relaxed rules for library directories in
3587 externally built library projects.
3589 2010-06-17 Doug Rupp <rupp@adacore.com>
3591 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
3593 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
3594 * gcc-interface/Makefile.in: Update VMS target pairs.
3596 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
3598 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
3599 compatible with Windows NT 4.0 which doesn't provide this function.
3601 2010-06-17 Vincent Celier <celier@adacore.com>
3603 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
3604 different timestamps but the checksum is the same, issue a short
3607 2010-06-17 Arnaud Charlet <charlet@adacore.com>
3609 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
3610 it means that we cannot reset interrupt handlers since this would
3611 require potentially sending the abort signal to the Server_Task.
3613 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3615 * exp_ch4.adb: expand NOT for VMS types.
3616 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
3618 2010-06-17 Sergey Rybin <rybin@adacore.com>
3620 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
3621 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
3624 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3626 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
3627 protected operation if the subprogram has been eliminated.
3629 2010-06-17 Vincent Celier <celier@adacore.com>
3631 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
3632 directories associated with a library to be any directory when the
3633 library project is externally built.
3635 2010-06-17 Vincent Celier <celier@adacore.com>
3637 * make.adb (Check): If switch -m is used, deallocate the memory that
3638 may be allocated when computing the checksum.
3640 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
3642 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
3643 (C_Sendmsg): Likewise.
3645 2010-06-17 Thomas Quinot <quinot@adacore.com>
3647 * sem_res.adb: Update comments.
3649 2010-06-17 Vincent Celier <celier@adacore.com>
3651 * back_end.adb (Scan_Compiler_Arguments): Process last argument
3653 2010-06-17 Robert Dewar <dewar@adacore.com>
3655 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
3656 * layout.adb, freeze.adb: Use Make_Temporary.
3658 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
3660 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
3661 .NET/JVM normally as this is now perfectly supported by the backend.
3663 2010-06-17 Pascal Obry <obry@adacore.com>
3665 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
3667 2010-06-17 Vincent Celier <celier@adacore.com>
3669 * make.adb (Collect_Arguments_And_Compile): Create include path file
3670 only when -x is specified.
3672 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
3674 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
3675 Objects_Path, defaulted to True. Only create include path file if
3676 Include_Path is True, only create objects path file if Objects_Path is
3678 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
3679 Objects_Path, defaulted to True.
3680 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
3683 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3685 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
3686 determine whether it has the controlling type, when the formal is an
3689 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
3691 * s-crtl.ads (ssize_t): New type.
3692 (read): Fix signature.
3694 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
3695 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3696 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3697 (C_Sendmsg): Likewise.
3698 * g-socthi.adb (Syscall_Recvmsg): Likewise.
3699 (Syscall_Sendmsg): Likewise.
3700 (C_Recvmsg): Likewise.
3701 (C_Sendmsg): Likewise.
3702 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
3703 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3704 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3705 (C_Sendmsg): Likewise.
3706 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
3707 (C_Sendmsg): Likewise.
3708 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
3709 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3710 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3711 (C_Sendmsg): Likewise.
3712 * g-socthi-vms.adb (C_Recvmsg): Likewise.
3713 (C_Sendmsg): Likewise.
3714 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
3715 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3716 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3717 (C_Sendmsg): Likewise.
3718 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
3719 (C_Sendmsg): Likewise.
3720 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
3721 (Write): Likewise to call 'write'.
3722 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
3723 (Write): Use correct type to call System.CRTL.write.
3724 * s-tasdeb.adb (Write): Likewise.
3726 2010-06-17 Vincent Celier <celier@adacore.com>
3728 * prj-proc.adb (Copy_Package_Declarations): Change argument name
3729 Naming_Restricted to Restricted. If Restricted is True, do not copy the
3730 value of attribute Linker_Options.
3732 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
3734 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
3735 (Case_Statement_to_gnu): Adjust.
3736 (Loop_Statement_to_gnu): Likewise.
3737 (Subprogram_Body_to_gnu): Likewise.
3738 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3739 (Compilation_Unit_to_gnu): Likewise.
3741 2010-06-17 Robert Dewar <dewar@adacore.com>
3743 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
3744 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
3745 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
3746 sem_dist.adb, sem_util.adb: Use Make_Temporary
3747 * itypes.ads, tbuild.ads: Minor comment update
3748 * exp_ch9.adb, exp_dist.adb: Minor reformatting
3750 2010-06-17 Thomas Quinot <quinot@adacore.com>
3752 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
3754 2010-06-17 Robert Dewar <dewar@adacore.com>
3756 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
3758 2010-06-17 Thomas Quinot <quinot@adacore.com>
3760 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
3762 2010-06-17 Robert Dewar <dewar@adacore.com>
3764 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
3765 * tbuild.ads (Make_Temporary): More comment updates
3766 * tbuild.adb: Minor reformatting
3768 2010-06-17 Robert Dewar <dewar@adacore.com>
3770 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
3771 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
3773 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
3775 (Make_Temporary): Add more extensive documentation
3777 2010-06-17 Robert Dewar <dewar@adacore.com>
3779 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
3780 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
3781 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
3782 where the slice's actions are inserted.
3783 (Decompose_Expr): Account for possible rewriting of slice bounds
3784 resulting from side effects suppression caused by the above freezing,
3785 so that folding of bounds is preserved by such rewriting.
3787 2010-06-17 Robert Dewar <dewar@adacore.com>
3789 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
3790 * freeze.adb (Freeze_Record_Type): Add call to
3791 Check_Record_Representation_Clause.
3792 * sem_ch13.adb (Check_Record_Representation_Clause): New function
3793 (Analyze_Record_Representation_Clause): Split out overlap code into this
3795 (Check_Component_Overlap): Moved inside
3796 Check_Record_Representation_Clause.
3797 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
3799 2010-06-17 Robert Dewar <dewar@adacore.com>
3801 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
3803 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
3804 sem_eval.adb: Use Ekind_In
3806 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3808 * sem_ch8.adb: better error message for illegal inherited discriminant
3810 2010-06-17 Vincent Celier <celier@adacore.com>
3812 * bindusg.adb: Remove lines for -A and -C
3813 * gnat_ugn.texi: Remove all documentation and examples of switches -A
3814 and -C for gnatbind and gnatlink.
3815 * gnatlink.adb (Usage): Remove lines for -A and -C
3816 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
3818 * gcc-interface/Make-lang.in: Update dependencies.
3820 2010-06-17 Vincent Celier <celier@adacore.com>
3822 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
3823 local Argument_List variable Args.
3824 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
3826 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
3827 for subsequent switches in Args.
3828 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
3830 * gcc-interface/Make-lang.in: Update dependencies.
3832 2010-06-17 Robert Dewar <dewar@adacore.com>
3834 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
3835 Equivalent_Type to match documentation.
3837 2010-06-17 Robert Dewar <dewar@adacore.com>
3839 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
3840 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
3841 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
3843 2010-06-17 Thomas Quinot <quinot@adacore.com>
3845 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
3847 2010-06-17 Thomas Quinot <quinot@adacore.com>
3849 * freeze.adb (Freeze_Expression): Short circuit operators are valid
3850 freeze node insertion points.
3852 2010-06-17 Robert Dewar <dewar@adacore.com>
3854 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
3855 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
3857 2010-06-17 Gary Dismukes <dismukes@adacore.com>
3859 * layout.adb (Layout_Type): Broaden test for setting an array type's
3860 Component_Size to include all scalar types, not just discrete types
3861 (components of real types were missed).
3862 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
3863 on the itype created for an index (consistent with Make_Index and
3864 avoids possible Assert_Failures).
3866 2010-06-17 Robert Dewar <dewar@adacore.com>
3868 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
3869 * einfo.adb: Minor code reformatting (use Ekind_In)
3871 2010-06-17 Robert Dewar <dewar@adacore.com>
3873 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
3876 2010-06-17 Vincent Celier <celier@adacore.com>
3878 * back_end.adb: Minor comment updates
3879 * switch-c.adb: Remove dependencies on gcc C sources
3880 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
3883 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3885 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
3886 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
3887 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
3888 Remove use of Node field in SCOs table
3889 (Output_Header): Set 'd' to initially disable pragma entry
3890 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
3891 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
3892 Use C2 field of pragma decision header to indicate enabled.
3893 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
3894 * gcc-interface/Make-lang.in: Update dependencies.
3896 2010-06-17 Vincent Celier <celier@adacore.com>
3898 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
3899 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
3900 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
3901 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
3903 * switch-c.adb: Copied a number of global declarations from back_end.adb
3904 (Len_Arg): New function copied from back_end.adb
3905 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
3906 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
3907 Switch_Subsequently_Cancelled.
3908 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
3909 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
3910 with -lexc on Tru64.
3912 2010-06-17 Robert Dewar <dewar@adacore.com>
3914 * prj.ads, prj.adb: Minor reformatting
3916 2010-06-17 Thomas Quinot <quinot@adacore.com>
3918 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
3919 CP line for a disabled pragma.
3921 2010-06-17 Emmanuel Briot <briot@adacore.com>
3923 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
3925 (Process_Declarative_Item): An invalid value in an typed variable
3926 declaration is no longer always fatal.
3928 2010-06-16 Arnaud Charlet <charlet@adacore.com>
3930 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
3931 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
3934 2010-06-16 Javier Miranda <miranda@adacore.com>
3936 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
3937 node referenced by the SCIL node of dispatching "=" to skip the tags
3940 2010-06-16 Ed Schonberg <schonberg@adacore.com>
3942 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
3943 to prevent cascaded errors and compilation aborts.
3945 2010-06-16 Robert Dewar <dewar@adacore.com>
3947 * back_end.adb (Switch_Subsequently_Cancelled): New function
3948 Move declarations to package body level to support this change
3949 * back_end.ads (Switch_Subsequently_Cancelled): New function
3950 * gnat_ugn.texi: Document -gnat-p switch
3951 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
3952 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
3953 * usage.adb: Add line for -gnat-p switch
3954 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
3956 2010-06-16 Robert Dewar <dewar@adacore.com>
3958 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
3961 2010-06-16 Robert Dewar <dewar@adacore.com>
3963 * exp_disp.adb: Minor reformatting
3965 2010-06-16 Ed Schonberg <schonberg@adacore.com>
3967 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
3968 base type only if it was not previously created for the partial view.
3970 2010-06-16 Thomas Quinot <quinot@adacore.com>
3972 * tbuild.ads: Minor comment fix
3974 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
3976 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
3977 (gnu_except_ptr_stack): Change type to VEC. Update comment.
3978 (gnu_elab_proc_stack): Likewise.
3979 (gnu_return_label_stack): Likewise.
3980 (gnu_loop_label_stack): Likewise.
3981 (gnu_switch_label_stack): Likewise.
3982 (gnu_constraint_label_stack): Likewise.
3983 (gnu_storage_error_label_stack): Likewise.
3984 (gnu_program_error_label_stack): Likewise.
3985 (push_exception_label_stack): Take a VEC ** instead of a tree *.
3986 (push_stack): Likewise. Remove unused second parameter. Update
3988 (pop_stack): Take a VEC * instead of a tree *. Update callers.
3989 (gigi): Initialize stacks as VECs.
3990 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
3991 (Case_Statement_to_gnu): Likewise.
3992 (Subprogram_Body_to_gnu): Likewise.
3993 (call_to_gnu): Likewise.
3994 (Exception_Handler_to_gnu_sjlj): Likewise.
3995 (gnat_to_gnu): Likewise.
3996 (get_exception_label): Likewise.
3998 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4000 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
4001 anonymous base generated when the parent is a constrained discriminated
4002 type, propagate interface list to first subtype because it may appear
4003 in a current instance within the extension part of the derived type
4004 declaration, and its own subtype declaration has not been elaborated
4006 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
4007 determine whether it has the controlling type.
4009 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
4011 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
4012 raise of CE, SE and PE have the reason correctly set and are properly
4013 expanded before stopping the expansions of .NET/JVM exceptions.
4015 2010-06-14 Robert Dewar <dewar@adacore.com>
4017 * opt.ads (Check_Policy_List): Add some clarifying comments
4018 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
4019 on rewritten Assert pragma.
4021 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4023 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
4024 controlled operations, so that they will be treated as overriding even
4025 if the overridden subprogram is marked Is_Hidden, as long as the
4026 overridden subprogram's parent subprogram is not hidden.
4028 2010-06-14 Robert Dewar <dewar@adacore.com>
4030 * debug.adb: Entry for gnatw.d no longer specific for while loops
4031 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
4032 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
4033 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
4034 new calling sequence to include test for EXIT WHEN.
4035 (Analyze_Exit_Statement): Chain EXIT statement into exit statement chain
4036 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
4038 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
4040 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
4041 PRAGMA, not to pragma identifier).
4042 (Next_Exit_Statement): New attribute of N_Exit_Statement node
4044 2010-06-14 Robert Dewar <dewar@adacore.com>
4046 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
4049 2010-06-14 Robert Dewar <dewar@adacore.com>
4051 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
4052 missing pragma argument identifier.
4054 2010-06-14 Robert Dewar <dewar@adacore.com>
4056 * atree.ads, atree.adb (Ekind_In): New functions.
4058 2010-06-14 Robert Dewar <dewar@adacore.com>
4060 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
4062 2010-06-14 Robert Dewar <dewar@adacore.com>
4064 * usage.adb (Usage): Redo documentation of -gnatwa.
4066 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4068 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
4069 an untagged incomplete type that is a limited view.
4071 2010-06-14 Sergey Rybin <rybin@adacore.com>
4073 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
4076 2010-06-14 Thomas Quinot <quinot@adacore.com>
4078 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
4079 factoring duplicated code between...
4080 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
4081 * a-envvar.ads: Minor reformatting
4083 2010-06-14 Arnaud Charlet <charlet@adacore.com>
4085 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
4087 (Scan_ALI): Take into account new Visibility field.
4088 (Visibility_Kind): New type.
4089 (Xref_Entity_Record): Replace Lib field by Visibility.
4091 * gcc-interface/Make-lang.in: Update dependencies.
4093 2010-06-14 Pascal Obry <obry@adacore.com>
4095 * raise.h: Remove unused defintions.
4097 2010-06-14 Bob Duff <duff@adacore.com>
4099 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
4100 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
4101 the incorrect error "proper body expected".
4102 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
4103 allowed here" error in case of subunits, which was triggered by the
4104 above change to P_Subunit.
4106 2010-06-14 Sergey Rybin <rybin@adacore.com>
4108 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
4110 2010-06-14 Thomas Quinot <quinot@adacore.com>
4112 * lib-util.adb: Minor code reorganization.
4114 2010-06-14 Robert Dewar <dewar@adacore.com>
4116 * ali.adb (Scan_ALI): Implement reading and storing of N lines
4117 (Known_ALI_Lines): Add entry for 'N' (notes)
4118 * ali.ads (Notes): New table to store Notes information
4119 * alloc.ads: Add entries for Notes table
4120 * lib-util.adb (Write_Info_Int): New procedure
4121 (Write_Info_Slit): New procedure
4122 (Write_Info_Uint): New procedure
4123 * lib-util.ads (Write_Info_Int): New procedure
4124 (Write_Info_Slit): New procedure
4125 (Write_Info_Uint): New procedure
4126 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
4127 * lib-writ.ads: Update documentation for N (Notes) lines
4128 * lib.adb (Store_Note): New procedure
4129 * lib.ads (Notes): New table
4130 (Store_Note): New procedure
4131 * sem_prag.adb: Call Store_Note for affected pragmas
4133 2010-06-14 Thomas Quinot <quinot@adacore.com>
4135 * socket.c: Fix wrong condition in #ifdef
4136 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
4137 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
4138 because on VMS this type is a 32-bit pointer which is not compatible
4139 with the default for C pointers for code compiled with gcc on that
4142 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4144 * sem_util (Is_VMS_Operator): New predicate to determine whether an
4145 operator is an intrinsic operator declared in the DEC system extension.
4146 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
4147 if the operator is a VMS intrinsic.
4148 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
4149 constant-folded if the operands are signed and the operator is a VMS
4152 2010-06-14 Robert Dewar <dewar@adacore.com>
4154 * g-socket.adb, gnatcmd.adb: Minor reformatting.
4156 2010-06-14 Pascal Obry <obry@adacore.com>
4158 * s-finimp.adb: Fix typo.
4159 * raise.h: Remove duplicate blank line.
4161 2010-06-14 Vincent Celier <celier@adacore.com>
4163 * prj-nmsc.adb (Add_Sources): Always set the object file and the
4164 switches file names, as the configuration of the language may change
4165 in an extending project.
4166 (Process_Naming_Scheme): For sources of projects that are extended, set
4167 the configuration of the language from the highest extending project
4168 where the language is declared.
4170 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4172 * sem_res.adb (Resolve_Call): For infinite recursion check, test
4173 whether the called subprogram is inherited from a containing subprogram.
4174 (Same_Or_Aliased_Subprograms): New function
4176 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4178 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
4179 use-visible, check whether it is a primitive for more than one type.
4181 2010-06-14 Robert Dewar <dewar@adacore.com>
4183 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
4185 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
4186 Has_Pragma_Unmodified flag.
4188 2010-06-14 Thomas Quinot <quinot@adacore.com>
4190 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
4191 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
4192 now done in GNAT.Sockets if necessary.
4193 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
4194 Ensure mutual exclusion for netdb operations if the target platform
4196 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating struct
4197 hostent as an opaque type to improve portability.
4198 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
4199 gethostbyYYY using proprietary VxWorks API so that a uniform interface
4200 is available for the Ada side.
4201 * gcc-interface/Makefile.in: Remove g-sttsne-*
4202 * gcc-interface/Make-lang.in: Update dependencies.
4204 2010-06-14 Vincent Celier <celier@adacore.com>
4206 * gnatcmd.adb (Mapping_File): New function.
4208 2010-06-14 Javier Miranda <miranda@adacore.com>
4210 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
4212 2010-06-14 Arnaud Charlet <charlet@adacore.com>
4214 * ali.adb: Fix typo.
4215 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
4217 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4219 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
4222 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
4223 the context does not have a homonym of the selector, emit default
4226 2010-06-14 Robert Dewar <dewar@adacore.com>
4228 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
4231 2010-06-14 Arnaud Charlet <charlet@adacore.com>
4233 * lib-xref.ads: Doc updates:
4234 - Allocate 'Q' for #include entity kind
4236 - Allocate 'g' for regular macros
4237 - Allocate 'G' for function-like macros
4239 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4241 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
4242 Indicates that there is an instantiation in the current unit that
4243 loaded the body of the unit denoted by the with_clause.
4244 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
4245 whether a with_clause in the current context denotes the unit that
4246 holds the generic declaration, and mark the with_clause accordingly.
4247 (Instantiate_Package_Body): call Mark_Context.
4248 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
4249 whether a given body should be traversed before the spec of the main
4252 2010-06-14 Ed Falis <falis@adacore.com>
4254 * sysdep.c: Fix 653 build against vThreads headers.
4256 2010-06-14 Robert Dewar <dewar@adacore.com>
4258 * sinfo.ads: Minor reformatting.
4260 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4262 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
4263 the spec has been generated for a body without spec that carries an
4264 Inline_Always pragma.
4266 2010-06-14 Arnaud Charlet <charlet@adacore.com>
4268 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
4271 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
4273 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
4274 declaration for VMs, as those are useless and might lead to duplicated
4275 local variable names in the generated code.
4276 * gcc-interface/Make-lang.in: Update dependencies.
4278 2010-06-14 Robert Dewar <dewar@adacore.com>
4280 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
4282 2010-06-14 Robert Dewar <dewar@adacore.com>
4284 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
4285 is renamed as Has_Following_Address_Clause.
4286 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
4287 to allow the caller to avoid Initialize_Scalars having an effect.
4288 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
4289 scalars with an address clause specified.
4290 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
4291 to allow the caller to avoid Initialize_Scalars having an effect.
4292 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
4293 (where it was called Has_Address_Clause).
4294 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
4295 (where it was called Has_Address_Clause).
4296 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
4297 problems for Initialize_Scalars (since we no longer initialize objects
4298 with an address clause.
4300 2010-06-14 Robert Dewar <dewar@adacore.com>
4302 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
4305 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4307 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
4308 on the entity of an implicitly generated postcondition procedure.
4310 2010-06-14 Thomas Quinot <quinot@adacore.com>
4312 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
4313 Discriminant_Constraint elist from full view to private view.
4315 2010-06-14 Robert Dewar <dewar@adacore.com>
4317 * sem_res.adb: Minor reformatting.
4319 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4321 * sem.adb: New version of unit traversal.
4323 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
4324 within a generic unit in the table of delayed calls.
4326 2010-06-14 Robert Dewar <dewar@adacore.com>
4328 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
4330 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4332 * sem_ch12.adb (Save_References): If an identifier has been rewritten
4333 during analysis as an explicit dereference, keep the reference implicit
4334 in the generic, but preserve the entity if global. This prevents
4335 malformed generic trees in the presence of some nested generics.
4337 2010-06-14 Sergey Rybin <rybin@adacore.com>
4339 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
4340 tool with '-files=' option. Also fix some small errors (wrong brackets)
4342 2010-06-14 Vincent Celier <celier@adacore.com>
4344 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
4345 the ALI files on the command line.
4347 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
4348 the same value as the parameter of the same name.
4349 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
4351 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
4352 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
4353 emit version symbols only for the units of the library.
4354 (Gen_Versions_C): Ditto.
4356 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4358 * sem_ch4.adb: Fix typo.
4360 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
4362 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
4363 vector IO doesn't work at default value properly.
4365 2010-06-14 Doug Rupp <rupp@adacore.com>
4367 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
4369 2010-06-14 Vincent Celier <celier@adacore.com>
4371 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
4372 sources of the project if a switch -files= is used.
4374 2010-06-14 Thomas Quinot <quinot@adacore.com>
4376 * exp_attr.adb: Minor reformatting.
4378 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4380 * gnat_ugn.texi: Minor typo fixes and wording changes.
4382 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4384 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
4385 prefixed form, do not re-analyze first actual, which may need an
4386 implicit dereference.
4387 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
4388 prefixed notation, the analysis will rewrite the node, and possible
4389 errors appear in the rewritten name of the node.
4390 * sem_res.adb: If a call is ambiguous because its first parameter is
4391 an overloaded call, report list of candidates, to clarify ambiguity of
4394 2010-06-14 Doug Rupp <rupp@adacore.com>
4396 * s-auxdec-vms-alpha.adb: New package body implementing legacy
4397 VAX instructions with Asm insertions.
4398 * s-auxdec-vms_64.ads: Inline VAX queue functions
4399 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
4400 that show up only on VMS.
4401 * gcc-interface/Makefile.in: Provide translation for
4402 s-auxdec-vms-alpha.adb.
4404 2010-06-14 Olivier Hainque <hainque@adacore.com>
4406 * initialize.c (VxWorks section): Update comments.
4408 2010-06-14 Robert Dewar <dewar@adacore.com>
4410 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
4412 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
4414 * init.c: Code clean up.
4416 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4418 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
4419 not insert address clause in table for later validation if type of
4420 entity is generic, to prevent possible spurious errors.
4422 * sem_ch8.adb: Code clean up.
4424 2010-06-14 Ben Brosgol <brosgol@adacore.com>
4426 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
4427 texi2pdf and texi2html.
4428 Document how to change scheduling properties on HP-UX.
4430 2010-06-14 Thomas Quinot <quinot@adacore.com>
4432 * g-socket.ads: Remove misleading comments.
4434 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
4436 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
4437 CLI_Target as this prevents proper detection of exported names
4438 duplicates when the exported language is different to CIL.
4439 (Process_Interface_Name): Add check for CIL convention exports,
4440 replacing the old one from Check_Duplicated_Export_Name.
4442 2010-06-14 Matthew Heaney <heaney@adacore.com>
4444 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
4445 and new last satisfy constraints.
4446 (Delete_Last): prevent overflow for subtraction of index values
4447 (To_Vector): prevent overflow for addition of index values
4449 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4451 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
4452 rewritten call, preserve the resulting type to prevent spurious errors,
4453 when the call is implicitly dereferenced in the context of an in-out
4456 * checks.adb (Apply_Discriminant_Check): If the target of the
4457 assignment is a renaming of a heap object, create constrained type for
4460 2010-06-14 Pascal Obry <obry@adacore.com>
4462 * prj-proc.adb: Fix copy of object directory for extending projects.
4464 2010-06-14 Jose Ruiz <ruiz@adacore.com>
4466 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
4467 (__gnat_install_handler, PowerPC linux): Activate the alternative
4470 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
4472 * gnat_rm.texi: Move to GFDL version 1.3.
4473 * gnat-style.texi: Ditto.
4474 * gnat_ugn.texi: Ditto.
4476 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
4479 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
4482 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
4484 * gcc-interface/utils.c (update_pointer_to): Initialize last.
4486 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
4488 * gcc-interface/ada-tree.h: Fix formatting nits.
4490 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4492 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
4494 (init_dummy_type): Likewise.
4495 (gnat_pushlevel): Likewise.
4497 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
4498 (Subprogram_Body_to_gnu): Likewise.
4499 (Compilation_Unit_to_gnu): Likewise.
4500 (start_stmt_group): Likewise.
4501 (extract_encoding): Likewise.
4502 (decode_name): Likewise.
4504 * gcc-interface/misc.c (gnat_printable_name): Likewise.
4506 * gcc-interface/decl.c (annotate_value): Likewise.
4508 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
4510 (struct lang_decl): Likewise.
4511 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
4512 (SET_DECL_LANG_SPECIFIC): Likewise.
4514 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
4516 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
4517 * gcc-interface/lang-specs.h: Likewise.
4519 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
4522 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
4524 2010-06-01 Arnaud Charlet <charlet@adacore.com>
4526 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
4528 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
4530 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
4531 TYPE_DECL of the equivalent type instead of building a new one.
4533 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
4535 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
4536 Fix nits in comments.
4537 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
4538 * gcc-interface/trans.c (gigi): Likewise.
4539 (Attribute_to_gnu): Likewise.
4540 (Case_Statement_to_gnu): Likewise.
4541 (gnat_to_gnu): Adjust warning message.
4542 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
4543 (build_vms_descriptor32): Likewise.
4545 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
4547 * gcc-interface/decl.c: Pretend to be a backend file by undefining
4548 IN_GCC_FRONTEND (still need rtl.h here).
4550 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4552 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
4553 (gigi): Adjust call to set_stack_check_libfunc.
4555 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4557 * gcc-interface/utils.c: Do not include rtl.h.
4559 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
4561 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
4562 and gimple.h. Explain why rtl.h has to be included.
4563 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
4564 * gcc-interface/targtyps.c: Do not include tm_p.h
4565 * gcc-interface/utils2.c: Do not include flags.h.
4566 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
4567 and explain why it has to be included.
4568 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
4570 Include function.h and explain why. Explain why except.h is included.
4571 (enumerate_modes): Remove unused function.
4572 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
4573 * gcc-interface/Make-lang.in: Update dependencies.
4575 2010-05-25 Joseph Myers <joseph@codesourcery.com>
4577 * gcc-interface/misc.c (internal_error_function): Add context
4578 parameter. Use it to access show_column flag and instead of using
4579 global_dc. Call warn_if_plugins.
4580 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
4582 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
4584 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
4585 * gcc-interface/trans.c (unshare_save_expr): Delete.
4586 (gigi): Do not unshare trees under SAVE_EXPRs here.
4588 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
4590 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
4592 * gcc-interface/utils.c (build_function_stub): Likewise.
4594 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4596 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
4597 for Wuninitialized without -O.
4599 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
4601 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
4602 ADT_exception_data_name_id.
4603 (exception_data_name_id): New define.
4604 * gcc-interface/trans.c (gigi): Initialize it.
4605 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
4606 exception type for standard exception definitions. Do not make them
4608 <E_Record_Type>: Equate fields of types associated with an exception
4609 definition to those of the standard exception type.
4611 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
4613 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
4615 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
4617 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
4618 code, improve comments and fix formatting nits.
4620 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
4622 * gcc-interface/utils.c (update_pointer_to): Return early if the old
4623 pointer already points to the new type. Chain the old pointer and its
4624 variants at the end of new pointer's chain after updating them.
4626 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
4628 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
4629 built for interfaces.
4630 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
4631 imported_p instead of Is_Imported when considering constants.
4632 Do not promote alignment of exported objects.
4633 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
4635 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
4637 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
4638 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
4639 constants really constant.
4640 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
4642 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
4644 * gcc-interface/decl.c (make_aligning_type): Declare the type.
4646 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
4648 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
4649 expressions of variant part of record types declared at library level.
4651 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
4653 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
4654 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
4655 (rest_of_record_type_compilation): Adjust call to create_field_decl.
4656 (make_descriptor_field): Likewise and pass correctly typed constants.
4657 (build_unc_object_type): Likewise.
4658 (unchecked_convert): Likewise.
4659 * gcc-interface/decl.c (elaborate_expression_2): New static function.
4660 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
4661 Adjust call to create_field_decl.
4662 (make_aligning_type): Likewise.
4663 (make_packable_type): Likewise.
4664 (maybe_pad_type): Likewise.
4665 (gnat_to_gnu_field): Likewise.
4666 (components_to_record): Likewise.
4667 (create_field_decl_from): Likewise.
4668 (create_variant_part_from): Remove superfluous test.
4669 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
4671 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
4673 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
4674 (build_unc_object_type_from_ptr): Likewise.
4675 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
4676 and pass it to create_type_decl. Declare the type. Simplify.
4677 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
4678 it to build_unc_object_type.
4679 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
4680 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
4681 (gnat_to_gnu): Likewise.
4682 * gcc-interface/utils2.c (build_allocator): Likewise.
4684 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
4687 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
4689 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4691 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
4693 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
4696 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
4698 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
4700 * gnathtml.pl: Use 755 as mask for new directories.
4702 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4704 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
4705 constant constructors before taking their address.
4707 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
4709 * exp_dbug.ads: Fix outdated description. Mention link between XVS
4711 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
4712 XVZ variable as unit size of XVS type.
4713 (maybe_pad_type): Likewise.
4715 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
4717 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
4718 use memmove if the array type is bit-packed.
4720 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
4722 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
4723 build_common_tree_nodes.
4725 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
4727 * gsocket.h: Make sure that winsock2.h is included before windows.h.
4729 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
4731 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
4734 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
4736 * uintp.h (UI_Lt): Declare.
4737 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
4738 computation in sizetype.
4739 <E_Array_Subtype>: Use unified handling for all index types. Do not
4740 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
4742 (annotate_value): Change test for negative values.
4743 (validate_size): Apply test for negative values on GNAT nodes.
4744 (set_rm_size): Likewise.
4745 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
4746 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
4747 for negative values.
4748 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
4749 (builtin_type_for_size): Adjust definition of signed_size_type_node.
4750 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
4751 lengths against zero.
4753 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
4755 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
4756 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
4757 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
4758 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
4759 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
4760 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
4762 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
4763 flag_signed_char. Tag sizetype with "size_type" moniker.
4764 * gcc-interface/trans.c (gigi): Add standard_character parameter.
4765 Remove useless built-in types. Equate unsigned_char_type_node to
4766 Standard.Character. Use it instead of char_type_node throughout.
4767 (Attribute_to_gnu): Likewise.
4768 (gnat_to_gnu): Likewise.
4769 * gcc-interface/utils2.c (build_call_raise): Likewise.
4771 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
4773 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
4774 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
4775 (sbitsize_one_node): New macro.
4776 (sbitsize_unit_node): Likewise.
4777 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
4778 latent bug in the computation of subrange_p. Fold wider_p predicate.
4779 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
4780 the final comparison.
4781 (make_aligning_type): Build real negation and use sizetype throughout
4782 the offset computation.
4783 (maybe_pad_type): Do not issue the warning when the new size expression
4785 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
4786 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
4788 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
4790 (gnat_to_gnu) <N_Free_Statement>: Likewise.
4791 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
4792 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
4793 constants in sizetype. Remove dead code and tweak comments. Generate
4794 equality instead of inequality comparisons for zero length tests.
4796 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4798 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
4799 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
4800 <object>: Do not create the fake PARM_DECL if no debug info is needed.
4801 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
4802 purposes if no debug info is needed.
4803 Fix formatting. Reorder and add comments.
4804 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
4805 variable and remove obsolete comment.
4806 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
4807 (convert_vms_descriptor32): Likewise.
4808 (convert): Remove dead code.
4809 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
4810 the reference to the P_ARRAY pointer.
4811 <POINTER_TYPE>: Likewise.
4812 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
4813 (gnat_init_decl_processing): Delete, move contents to...
4814 * gcc-interface/misc.c (gnat_init): ...here.
4816 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4818 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
4819 calls. Return true for conversion from a record subtype to its type.
4821 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4823 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
4824 lieu of integer_type_node for boolean operations.
4825 (choices_to_gnu): Likewise.
4826 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
4827 (Loop_Statement_to_gnu): Likewise.
4828 (establish_gnat_vms_condition_handler): Likewise.
4829 (Exception_Handler_to_gnu_sjlj): Likewise.
4830 (gnat_to_gnu): Likewise.
4831 (build_unary_op_trapv): Likewise.
4832 (build_binary_op_trapv): Likewise.
4833 (emit_range_check): Likewise.
4834 (emit_index_check): Likewise.
4835 (convert_with_check): Likewise.
4836 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
4837 (convert_vms_descriptor32): Likewise.
4838 (convert_vms_descriptor): Likewise.
4839 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
4840 (compare_arrays): Use boolean instead of integer constants.
4841 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
4842 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
4844 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
4845 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
4846 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
4847 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
4848 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
4849 for boolean operations.
4850 (fill_vms_descriptor): Likewise. Fix formatting nits.
4852 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4854 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
4855 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
4857 (LOOP_STMT_COND): ...this.
4858 (LOOP_STMT_BOTTOM_COND_P): New flag.
4859 (LOOP_STMT_TOP_UPDATE_P): Likewise.
4860 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
4861 (can_equal_min_val_p): New static inline function.
4862 (can_equal_max_val_p): Likewise.
4863 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
4864 new LOOP_STMT semantics. Use two different strategies depending on
4865 whether optimization is enabled to translate the loop.
4866 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
4868 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4870 * uintp.adb (UI_From_Dint): Remove useless code.
4871 (UI_From_Int): Likewise.
4872 * uintp.h: Reorder declarations.
4873 (UI_From_gnu): Declare.
4874 (UI_Base): Likewise.
4875 (Vector_Template): Likewise.
4876 (Vector_To_Uint): Likewise.
4879 * gcc-interface/gigi.h: Tweak comments.
4880 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
4881 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
4883 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
4884 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
4885 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
4886 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
4889 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4891 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
4893 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
4894 (smaller_form_type_p): ...this. Change parameter and variable names.
4895 (call_to_gnu): Use the nominal type of the parameter to create the
4896 temporary if it's a smaller form of the actual type.
4897 (addressable_p): Return false if the actual type is integral and its
4898 size is greater than that of the expected type.
4900 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4902 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
4903 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
4904 (process_attributes): Delete.
4905 (post_error_ne_num): Change parameter name.
4906 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
4907 with -g3. Remove a couple of obsolete lines. Minor tweaks.
4908 If type annotating mode, operate on trees to compute the adjustment to
4909 the sizes of tagged types. Fix long line.
4910 (cannot_be_superflat_p): Tweak head comment.
4911 (annotate_value): Fold local constant.
4912 (set_rm_size): Fix long line.
4913 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
4914 (Attribute_to_gnu): Fix long line.
4915 <Attr_Size>: Remove useless assertion.
4916 Reorder statements. Use size_binop routine.
4917 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
4918 Create local variables for the label and the test. Tweak comments.
4919 (Subprogram_Body_to_gnu): Reset cfun to NULL.
4920 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
4921 (process_inlined_subprograms): Integrate into...
4922 (Compilation_Unit_to_gnu): ...this.
4923 (gnat_to_gnu): Fix long line.
4924 (post_error_ne_num): Change parameter name.
4925 * gcc-interface/utils.c (process_attributes): Static-ify.
4926 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
4927 (create_type_decl): Add comment.
4928 (create_var_decl_1): Process the attributes after adding the VAR_DECL
4929 to the current binding level.
4930 (create_subprog_decl): Likewise for the FUNCTION_DECL.
4931 (end_subprog_body): Do not reset cfun to NULL.
4932 (build_vms_descriptor32): Fix long line.
4933 (build_vms_descriptor): Likewise.
4934 (handle_nonnull_attribute): Likewise.
4935 (convert_vms_descriptor64): Likewise.
4936 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
4937 (gnat_protect_expr): Fix thinko.
4939 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4941 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
4942 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
4943 before translating the top-level node.
4944 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
4945 <N_Object_Declaration>: Likewise.
4946 <N_Assignment_Statement>: Likewise.
4947 <N_Unchecked_Type_Conversion>: Likewise.
4948 (call_to_gnu): Remove kludge.
4949 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
4950 associated with user returns to be preserved.
4951 (gnat_to_gnu): Add special code to deal with boolean rvalues.
4952 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
4954 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
4955 <INDIRECT_REF>: Call build_fold_indirect_ref.
4957 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
4959 * g-socket.adb: A target can have multiple missing errno's. This
4960 will result in multiple errno's being defined as -1. Because of this
4961 we can not use a case but must use a series of if's to avoid
4962 a duplicate case error in GNAT.Sockets.Resolve_Error.
4964 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4966 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
4967 a statement. Otherwise, if at top-level, push the processing of the
4968 elaboration routine. In the misaligned case, issue the error messages
4969 again on entry and create the temporary explicitly. Do not issue them
4971 For a function call, emit the range check if necessary.
4972 In the copy-in copy-out case, create the temporary for the return
4974 Do not unnecessarily convert by-ref parameters to the formal's type.
4975 Remove obsolete guards in conditions.
4976 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
4977 target to call_to_gnu in all cases.
4978 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
4979 (addressable_p) <CONSTRUCTOR>: Return false if not static.
4980 <COMPOUND_EXPR>: New case.
4981 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
4982 expression if it has unconstrained array type.
4983 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
4984 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
4987 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4989 * gcc-interface/trans.c (gigi): Do not start statement group.
4990 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
4991 Start statement group and push binding level here...
4992 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
4993 Do not push fake contexts at top level. Remove redundant code.
4994 (call_to_gnu): Rename a local variable and constify another.
4995 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
4996 (set_current_block_context): Set it as the group's block.
4997 (gnat_init_decl_processing): Delete unrelated init code.
4998 (end_subprog_body): Use NULL_TREE.
5000 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
5002 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
5003 side-effects of actual parameters before the call.
5005 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
5007 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
5009 (set_rm_size): Reorder and remove obsolete test.
5011 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
5013 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
5014 (gigi): Adjust ATTRIBUTE_UNUSED markers.
5015 * gcc-interface/gadaint.h: New file.
5016 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
5017 (__gnat_to_canonical_file_spec): Remove declaration.
5018 (number_names): Delete.
5019 (number_files): Likewise.
5021 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
5024 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
5026 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
5028 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
5029 Ekind. Return early for class-wide types. Do not compute initializer
5030 unless necessary. Reuse the tree for an associated class-wide type
5031 only if processing its root type.
5033 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
5035 * gsocket.h: Run-time can no longer be built without network
5036 OS headers available. Changing RTEMS GNAT build procedure to
5037 reflect this and letting run-time build use network .h files.
5039 2010-04-13 Duncan Sands <baldrick@free.fr>
5041 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
5042 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
5044 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
5046 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
5047 (parent_name_id): New macro.
5048 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
5049 * gcc-interface/trans.c (gigi): Initialize it.
5050 (lvalue_required_p) <N_Type_Conversion>: New case.
5051 <N_Qualified_Expression>: Likewise.
5052 <N_Allocator>: Likewise.
5053 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
5055 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
5057 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
5058 (DECL_CONST_ADDRESS_P): New macro.
5059 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
5060 (SAME_FIELD_P): Likewise.
5061 * gcc-interface/decl.c (constructor_address_p): New static function.
5062 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
5063 the return value of above function.
5064 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
5065 passed by reference.
5066 <E_Record_Subtype>: Likewise.
5067 Set TREE_ADDRESSABLE on the type if it passed by reference.
5068 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
5069 (create_field_decl_from): Likewise.
5070 (substitute_in_type): Likewise.
5071 (purpose_member_field): Use SAME_FIELD_P.
5072 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
5073 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
5074 parameter and adjust recursive calls.
5075 <N_Explicit_Dereference>: New case.
5076 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
5077 Adjust calls to lvalue_required_p. Do not return the initializer of a
5078 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
5079 (call_to_gnu): Delay issuing error message for a misaligned actual and
5080 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
5081 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
5082 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
5083 type is passed by reference.
5084 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
5085 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
5086 (build_simple_component_ref): Use SAME_FIELD_P.
5088 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
5090 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
5091 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
5092 front-end's predicate Is_By_Reference_Type. Use consistent order and
5093 remove ??? comment. Use original conversion in all cases, if any.
5094 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
5095 (convert): Use local copy in more cases.
5096 <INDIRECT_REF>: Remove deactivated code.
5097 (unchecked_convert): Use a couple of local copies.
5099 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
5101 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
5103 (lvalue_required_p) <N_Attribute_Reference>: Call it.
5104 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
5105 folding the result only if lvalue_required_for_attribute_p is true.
5106 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
5107 typed constant to build_component_ref.
5108 (unchecked_convert): Likewise.
5109 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
5110 (build_allocator): Likewise.
5112 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
5114 * gcc-interface/utils2.c (build_cond_expr): Take the address and
5115 dereference if the result type is passed by reference.
5117 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
5119 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
5120 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
5121 goto to the next statement.
5123 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
5125 * gcc-interface/gigi.h (maybe_variable): Delete.
5126 (protect_multiple_eval): Likewise.
5127 (maybe_stabilize_reference): Likewise.
5128 (gnat_save_expr): Declare.
5129 (gnat_protect_expr): Likewise.
5130 (gnat_stabilize_reference): Likewise.
5131 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
5132 gnat_stabilize_reference.
5133 (maybe_variable): Delete.
5134 (elaborate_expression_1): Use gnat_save_expr.
5135 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
5136 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
5137 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
5138 <N_Slice>: Use gnat_protect_exp.
5139 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
5140 <N_In>: Use gnat_protect_expr.
5141 Pass NULL to gnat_stabilize_reference.
5142 (build_unary_op_trapv): Use gnat_protect_expr.
5143 (build_binary_op_trapv): Likewise.
5144 (emit_range_check): Likewise.
5145 (emit_index_check): Likewise.
5146 (convert_with_check): Likewise.
5147 (protect_multiple_eval): Move to utils2.c file.
5148 (maybe_stabilize_reference): Merge into...
5149 (gnat_stabilize_reference): ...this. Move to utils2.c file.
5150 (gnat_stabilize_reference_1): Likewise.
5151 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
5152 instead of protect_multiple_eval.
5153 * gcc-interface/utils2.c (compare_arrays): Likewise.
5154 (nonbinary_modular_operation): Likewise.
5155 (maybe_wrap_malloc): Likewise.
5156 (build_allocator): Likewise.
5157 (gnat_save_expr): New function.
5158 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
5159 in common cases. Propagate TREE_READONLY onto dereferences.
5160 (gnat_stabilize_reference_1): Move from trans.c file.
5161 (gnat_stabilize_reference): Likewise.
5163 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
5165 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
5166 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
5167 node. Use the type of the operand to set TREE_READONLY.
5168 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
5169 _REF node. Do not overwrite TREE_READONLY.
5170 (call_to_gnu): Rename local variable and fix various nits. In the
5171 copy-in/copy-out case, build the SAVE_EXPR manually.
5172 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
5173 and fold the computations.
5174 (protect_multiple_eval): Always save entire fat pointers.
5175 (maybe_stabilize_reference): Minor tweaks.
5176 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
5177 tcc_type and tcc_statement.
5178 * gcc-interface/utils.c (convert_to_fat_pointer): Call
5179 protect_multiple_eval in lieu of save_expr.
5180 (convert): Minor tweaks.
5181 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
5182 (builtin_type_for_size): Call gnat_type_for_size directly.
5183 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
5184 (contains_null_expr): Likewise
5185 (gnat_build_constructor): Do not call it.
5186 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
5187 instead of gnat_stabilize_reference to protect the operands.
5188 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
5190 (maybe_wrap_malloc): Likewise.
5191 (build_allocator): Likewise.
5192 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
5193 (gnat_mark_addressable): Rename parameter.
5195 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
5197 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
5198 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
5199 (TYPE_RETURNS_BY_REF_P): Rename into.
5200 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
5201 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
5202 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
5203 (build_return_expr): Likewise.
5204 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
5205 Rename local variables. If the return Mechanism is By_Reference, pass
5206 return_by_invisible_ref_p to create_subprog_type instead of toggling
5207 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
5208 the mechanism. Use regular return for contrained types with non-static
5209 size and return by invisible reference for unconstrained return types
5210 with default discriminants. Update comment.
5211 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
5212 returns by invisible reference, turn the RESULT_DECL into a pointer.
5213 Do not handle DECL_BY_REF_P in the CICO case here.
5214 (call_to_gnu): Remove code handling return by target pointer. For a
5215 function call, if the return type has non-constant size, generate the
5216 assignment with an INIT_EXPR.
5217 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
5218 If the function returns by invisible reference, build the copy return
5220 (add_decl_expr): Initialize the variable with an INIT_EXPR.
5221 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
5222 Adjust for renaming of macros. Copy the node only when necessary.
5223 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
5224 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
5225 (convert_from_reference): Delete.
5226 (is_byref_result): Likewise.
5227 (gnat_genericize_r): Likewise.
5228 (gnat_genericize): Likewise.
5229 (end_subprog_body): Do not call gnat_genericize.
5230 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
5231 (build_return_expr): Adjust parameter names, logic and comment.
5233 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
5235 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
5236 if the size is small enough. Propagate the alignment if there is an
5237 alignment clause on the original array type.
5238 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
5239 Deal with under-aligned packed array types. Copy the size onto the
5240 justified modular type and don't lay it out again. Likewise for the
5241 padding type built for other under-aligned subtypes.
5242 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
5245 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
5247 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
5248 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
5250 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
5252 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
5253 do not set the result type if there is a specified target and do not
5254 convert the result in any cases.
5255 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
5256 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
5258 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
5260 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
5262 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
5265 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
5266 pointer base types are variant of each other. Apply special treatment
5267 for null to fat pointer types in all cases.
5269 2010-01-28 Pascal Obry <obry@adacore.com>
5271 * s-win32.ads: Add some missing constants.
5273 2010-01-28 Vincent Celier <celier@adacore.com>
5275 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
5278 2010-01-28 Robert Dewar <dewar@adacore.com>
5280 * gnat_rm.texi: Minor correction
5282 2010-01-27 Pascal Obry <obry@adacore.com>
5284 * g-awk.adb: ensure that an AWK session is reusable.
5286 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
5288 * g-regist.adb (For_Every_Key): Fix previous change.
5291 2010-01-27 Thomas Quinot <quinot@adacore.com>
5293 * lib-writ.ads: Current version of spec for new N (note) ALI lines
5295 2010-01-27 Yannick Moy <moy@adacore.com>
5297 * a-cdlili.adb (Insert): Correct exception message when cursor
5298 designates wrong list.
5300 2010-01-27 Vincent Celier <celier@adacore.com>
5302 * gnatcmd.adb: When there is only one main specified, the package
5303 support Switches (<main>) and attribute Switches is specified for the
5304 main, use these switches, instead of Default_Switches ("Ada").
5306 2010-01-27 Robert Dewar <dewar@adacore.com>
5308 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
5310 * exp_disp.adb: Minor reformatting
5312 2010-01-27 Tristan Gingold <gingold@adacore.com>
5314 * seh_init.c: Use __ImageBase instead of _ImageBase.
5316 2010-01-27 Javier Miranda <miranda@adacore.com>
5318 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
5319 profile of interface thunks. The type of the controlling formal is now
5320 the covered interface type (instead of the target tagged type).
5322 2010-01-27 Sergey Rybin <rybin@adacore.com>
5324 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
5326 2010-01-27 Robert Dewar <dewar@adacore.com>
5328 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
5329 changed from Expr to N.
5331 2010-01-26 Thomas Quinot <quinot@adacore.com>
5333 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
5334 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
5337 2010-01-26 Vincent Celier <celier@adacore.com>
5339 * prj-attr.adb: Add new attribute Library_Install_Name_Option
5340 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
5341 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5342 attributes Run_Path_Option and Library_Install_Name_Option.
5343 * prj.ads (Project_Configuration): Replace component
5344 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
5345 component Library_Install_Name_Option.
5346 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
5347 Replace Run_Path_Origin_Supported with Run_Path_Origin
5349 2010-01-26 Ed Schonberg <schonberg@adacore.com>
5351 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
5352 is not hidden by a homograph declared in another actual package.
5354 2010-01-26 Robert Dewar <dewar@adacore.com>
5356 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
5357 decisions for pragmas Assert, Check, Precondition, Postcondition if
5359 * scos.ads: Update comments.
5360 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
5361 Also remove obsolete code for CT (exit point) SCOs.
5363 2010-01-26 Thomas Quinot <quinot@adacore.com>
5365 * switch-c.adb: Fix handling of -gnatz*
5367 2010-01-26 Robert Dewar <dewar@adacore.com>
5369 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
5370 qualifiers for FOR/WHILE loops
5371 * scos.ads: Use separate type letters F/W for for/while loops
5373 2010-01-26 Robert Dewar <dewar@adacore.com>
5375 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
5376 entries per line, one for each statement in the sequence).
5377 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
5378 size from 100 to 10_000 for SC_Array to avoid any real possibility of
5379 overflow. Output decisions in for loops.
5380 Exclude labels from CS lines.
5381 * scos.ads: Clarify that label is not included in the entry point
5383 2010-01-26 Robert Dewar <dewar@adacore.com>
5385 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
5386 format of statement sequence SCO entries (one location/statement).
5387 * put_scos.adb (Put_SCOs): Implement new format of CS lines
5388 * scos.ads: Update comments.
5389 * sem_eval.adb: Minor reformatting.
5391 2010-01-26 Robert Dewar <dewar@adacore.com>
5393 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
5394 (Extend_Statement_Sequence): New procedures
5395 (Traverse_Declarations_Or_Statements): New handling for exits.
5397 2010-01-26 Robert Dewar <dewar@adacore.com>
5399 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
5402 2010-01-26 Robert Dewar <dewar@adacore.com>
5404 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
5405 * scos.ads: Clarify handling of logical operators
5407 2010-01-26 Arnaud Charlet <charlet@adacore.com>
5409 * s-tpoben.adb: Update comments.
5411 2010-01-26 Robert Dewar <dewar@adacore.com>
5413 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
5416 2010-01-26 Robert Dewar <dewar@adacore.com>
5418 * scos.ads: Clean up documentation, remove obsolete XOR references
5419 2010-01-26 Vincent Celier <celier@adacore.com>
5421 * gnat_ugn.texi: Complete documentation on the restrictions for
5422 combined options in -gnatxxx switches.
5425 2010-01-26 Arnaud Charlet <charlet@adacore.com>
5427 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
5428 a controlled operation, abort is already deferred at this point, so we
5429 need to use Defer_Abort_Nestable.
5431 2010-01-26 Vincent Celier <celier@adacore.com>
5433 * prj-conf.adb (Get_Config_Switches): Check for a default language for
5434 a project extending a project with no languages.
5436 2010-01-26 Vincent Celier <celier@adacore.com>
5438 * switch-c.adb (Scan_Front_End_Switches): Take into account options
5439 that follow -gnatef.
5440 Allow -gnateG to be followed by other options.
5442 2010-01-26 Robert Dewar <dewar@adacore.com>
5444 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
5445 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
5448 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
5450 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
5451 that allows to iterate over all subkeys of a key.
5453 2010-01-26 Ed Falis <falis@adacore.com>
5455 * sysdep.c: enable NFS for VxWorks MILS
5456 * env.c: enable __gnat_environ for VxWorks MILS
5457 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
5459 2010-01-25 Bob Duff <duff@adacore.com>
5461 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
5462 is an internally-generated positional aggregate, and the bounds are
5463 already correctly set. We don't want to overwrite those bounds with
5464 bounds determined by context.
5466 2010-01-25 Robert Dewar <dewar@adacore.com>
5468 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
5469 exp_ch9.adb, g-sechas.ads: Minor reformatting.
5471 2010-01-25 Thomas Quinot <quinot@adacore.com>
5473 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
5474 integer type) before subtracting 1, otherwise the computation may wrap
5475 (because size_t is modular) and cause the conversion to fail.
5477 2010-01-25 Ed Falis <falis@adacore.com>
5479 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
5481 2010-01-25 Vincent Celier <celier@adacore.com>
5483 * prj-attr.adb: New attribute Run_Path_Origin_Required
5484 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
5485 attribute Run_Path_Origin_Required.
5486 * prj.ads (Project_Configuration): New component
5487 Run_Path_Origin_Supported.
5488 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
5490 2010-01-25 Ed Schonberg <schonberg@adacore.com>
5492 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
5493 have errors, do not continue resolution of the aggregate.
5494 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
5495 the array type indicates an error.
5497 2010-01-25 Bob Duff <duff@adacore.com>
5499 * sinfo.ads: Minor comment fixes.
5501 2010-01-25 Bob Duff <duff@adacore.com>
5503 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
5505 2010-01-25 Arnaud Charlet <charlet@adacore.com>
5507 * gnatvsn.ads (Current_Year): Update.
5509 2010-01-25 Florian Villoing <villoing@adacore.com>
5511 * gnat_ugn.texi: Fix typo.
5513 2010-01-25 Thomas Quinot <quinot@adacore.com>
5515 * scos.ads: Update specification.
5517 2010-01-25 Ed Schonberg <schonberg@adacore.com>
5519 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
5520 enclosing subprogram has no previous spec, attach postcondition
5521 procedure to the defining entity for the body.
5523 2010-01-25 Ed Schonberg <schonberg@adacore.com>
5525 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
5526 initialization procedure of the ancestor part of an extension aggregate
5527 if it is an interface type.
5529 2010-01-25 Vincent Celier <celier@adacore.com>
5531 * gnatlink.adb (Process_Binder_File): The directory for the shared
5532 version of libgcc in the run path options is found in the subdirectory
5533 indicated by __gnat_default_libgcc_subdir.
5534 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
5537 2010-01-25 Ed Schonberg <schonberg@adacore.com>
5539 * sem_prag.adb: More flexible pragma Annotate.
5541 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
5543 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
5544 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
5546 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
5548 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
5550 2010-01-18 Jan Hubicka <jh@suse.cz>
5553 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
5554 unit local variables.
5556 2010-01-17 Laurent GUERBY <laurent@guerby.net>
5558 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
5560 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
5562 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
5563 * system-linux-armeb.ads, system-linux-armel.ads: New files.
5565 2010-01-09 Simon Wright <simon@pushface.org>
5568 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
5573 Copyright (C) 2010 Free Software Foundation, Inc.
5575 Copying and distribution of this file, with or without modification,
5576 are permitted in any medium without royalty provided the copyright
5577 notice and this notice are preserved.