1 2010-09-10 Emmanuel Briot <briot@adacore.com>
3 * prj-util.adb (Executable_Of): Fix CE when the project does not
4 contain a Builder package.
6 2010-09-10 Vincent Celier <celier@adacore.com>
8 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
9 to the project path, if Prefix and Target_Name are defined.
10 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
12 2010-09-10 Ed Schonberg <schonberg@adacore.com>
14 * checks.adb (Ensure_Valid): If the expression is a boolean expression
15 or short-circuit operation, do no emit a validity check: only the
16 elementary operands of the expression need checking.
18 2010-09-10 Ben Brosgol <brosgol@adacore.com>
20 * gnat_rm.texi: Document Short_Descriptors.
22 2010-09-10 Arnaud Charlet <charlet@adacore.com>
24 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
25 initialize to Null_Address.
26 (Enter_Task): Do not set up an alternate stack for foreign threads.
28 2010-09-10 Robert Dewar <dewar@adacore.com>
30 * opt.adb (Short_Descriptors): New flag
31 (Short_Descriptors_Config): New flag
32 * opt.ads (Short_Descriptors): New flag
33 (Short_Descriptors_Config): New flag
34 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
35 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors pragma
36 (Analyze_Pragma): Implement Short_Descriptors pragma
37 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
39 2010-09-10 Emmanuel Briot <briot@adacore.com>
41 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
42 project's Executable_Suffix.
44 2010-09-10 Robert Dewar <dewar@adacore.com>
46 * g-pehage.ads: Minor reformatting
48 * gnat_ugn.texi: Clarifying comment on -gnatyc
49 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
52 2010-09-10 Tristan Gingold <gingold@adacore.com>
54 * Make-generated.in (gnat.hlp): New rule.
56 2010-09-10 Emmanuel Briot <briot@adacore.com>
58 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
61 2010-09-10 Robert Dewar <dewar@adacore.com>
63 * einfo.adb: Minor code cleanup: Add assertion to
64 Set_Corresponding_Protected_Entry.
66 2010-09-10 Bob Duff <duff@adacore.com>
68 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
69 the output to standard output.
71 2010-09-09 Vincent Celier <celier@adacore.com>
73 * gnat_ugn.texi: Add documentation for new gnatmake switch
75 * make.adb (Map_File): New global variable to store the value of switch
77 (Gnatmake): Add switch -M to gnatlink if buider switch --create-map-file
79 (Scan_Make_Arg): Recognize switch --create-map-file
80 * makeutl.ads (Create_Map_File_Switch): New constant string for new
81 gnatmake and gprbuild switch --create-map-file.
83 2010-09-09 Robert Dewar <dewar@adacore.com>
85 * sinput-p.ads: Minor comment update.
87 2010-09-09 Arnaud Charlet <charlet@adacore.com>
89 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
90 Entry_Call.State if needed so that the call is marked as cancelled by
91 Check_Pending_Actions_For_Entry_Call.
92 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
93 this procedure may be called from a controlled operation
94 (Initialize/Finalize).
96 2010-09-09 Vadim Godunko <godunko@adacore.com>
98 * impunit.adb: Correct spelling of package's name in the comment.
100 2010-09-09 Robert Dewar <dewar@adacore.com>
102 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
105 2010-09-09 Robert Dewar <dewar@adacore.com>
107 * impunit.adb: Add entry for a-izteio.
108 * checks.adb: Add comment.
109 * debug.adb, exp_disp.adb: Minor reformatting.
110 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
112 2010-09-09 Ed Schonberg <schonberg@adacore.com>
114 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
115 discriminant cannot be assumed to be the same value because they may
116 refer to bounds of a component of two different instances of a
119 2010-09-09 Gary Dismukes <dismukes@adacore.com>
121 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
122 operands of an operator to the type of an enclosing conversion, rewrite
123 the operator so the conversion can't be flagged as redundant.
124 Remove useless assignments to Typ and Rtyp.
126 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
128 * gnat_ugn.texi: Fix another long line.
130 2010-09-09 Bob Duff <duff@adacore.com>
132 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
135 2010-09-09 Matthew Heaney <heaney@adacore.com>
137 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
138 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
139 Replace_Element, Reverse_Elements, Swap): Change exception message to
140 correctly indicate kind of tampering (cursor or element).
141 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
142 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
143 Swap_Links, Replace_Element, Swap): Ditto.
144 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
145 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
146 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
147 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
148 Generic_Replace_Element): Ditto
149 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
150 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
151 Replace_Element): Ditto.
152 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
153 Symmetric_Difference, Union, Include, Replace): Ditto
155 2010-09-09 Ed Schonberg <schonberg@adacore.com>
157 * sprint.adb (Write_Id): If the parent node is an expanded name, check
158 that its entity_or_associated_node is an entity before writing it out.
159 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
160 constructors, there is no need for a dispatch table pointer because the
161 table is fully inherited from the C++ code.
163 2010-09-09 Thomas Quinot <quinot@adacore.com>
165 * projects.texi: Fix wrong identifiers on package end lines in project
167 * exp_ch6.adb: Minor reformatting.
169 2010-09-09 Tristan Gingold <gingold@adacore.com>
171 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
173 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
175 * gnat_ugn.texi: Fix description of -O3 optimization level.
177 2010-09-09 Yannick Moy <moy@adacore.com>
179 * a-cihama.adb, a-cohama.adb: Fix comments.
181 2010-09-09 Arnaud Charlet <charlet@adacore.com>
183 * i-cexten.ads: Add comments.
184 (Signed_128): New type, used by some C bindings.
185 * debug.adb: Update comment.
187 2010-09-09 Sergey Rybin <rybin@adacore.com>
189 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
190 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
191 the tool should process Ada 2005 sources.
193 2010-09-09 Ed Schonberg <schonberg@adacore.com>
195 * sem_ch12.adb (Remove_Parent): If the scope containing the child
196 instance is a block, examine the enclosing scope to determine if it is
199 2010-09-09 Doug Rupp <rupp@adacore.com>
201 * sem_prag.adb (pragma Ident): Pass --identification= vice
203 * gnatlink.adb (Linker_Options): Look for --identification= vice
206 2010-09-09 Gary Dismukes <dismukes@adacore.com>
208 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
209 inserting and analyzing the object declaration for the temporary object
210 created to hold a 'Old value, push the scope for the subprogram where
211 the object is inserted, so that its Scope (and that of related objects)
212 will be set properly.
214 2010-09-09 Vincent Celier <celier@adacore.com>
216 * prj.adb (Get_Object_Directory): Return object directory display name
217 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
218 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
219 return this value, otherwise return the default for the platform.
221 2010-09-09 Arnaud Charlet <charlet@adacore.com>
223 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
224 dependencies. Remove handling of gnatlbr.
225 Do not remove s-stratt-xdr for the run-time when installing.
227 2010-09-09 Robert Dewar <dewar@adacore.com>
229 * sem_attr.adb: Minor reformatting.
231 2010-09-09 Thomas Quinot <quinot@adacore.com>
233 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
234 unsigned long, not an int.
236 2010-09-09 Vincent Celier <celier@adacore.com>
238 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
239 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
240 we are not checking for equality of path or file names.
242 2010-09-09 Ed Schonberg <schonberg@adacore.com>
244 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
245 array reference, reset the Analyzed flag so that it is properly
246 expanded when the resulting object declaration is analyzed.
248 2010-09-09 Vincent Celier <celier@adacore.com>
250 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
253 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
255 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
256 VX_SPE_TASK option, so disable it.
258 2010-09-09 Ed Schonberg <schonberg@adacore.com>
260 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
262 (Is_Subunit_Of_Main): Handle null nodes properly.
264 2010-09-09 Robert Dewar <dewar@adacore.com>
266 * par-ch2.adb: Update comments.
268 2010-09-09 Ben Brosgol <brosgol@adacore.com>
270 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
272 2010-09-09 Arnaud Charlet <charlet@adacore.com>
274 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
275 do not generate an error for compatibility with legacy code.
276 ignored when generating SCIL.
277 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
279 2010-09-09 Thomas Quinot <quinot@adacore.com>
281 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
282 s-strxdr.adb to s-stratt-xdr.adb
284 2010-09-09 Robert Dewar <dewar@adacore.com>
286 * ali-util.adb (Obsolescent_Check): Removed.
287 * gprep.adb (Obsolescent_Check): Removed.
288 Remove Obsolescent_Check parameter in Scng instantiation
289 * prj-err.adb (Obsolescent_Check): Removed.
290 * prj-err.ads (Obsolescent_Check): Removed.
291 Remove Obsolescent_Check parameter in Scng instantiation
292 * scans.ads (Based_Literal_Uses_Colon): New flag
293 * scn.adb (Obsolscent_Check_Flag): Removed
294 (Obsolscent_Check): Removed
295 (Set_Obsolescent_Check): Removed
296 (Post_Scan): Add handling for obsolescent features
297 * scn.ads (Obsolscent_Check): Removed
298 (Set_Obsolescent_Check): Removed
299 (Post_Scan): Can no longer be inlined
300 Remove Obsolescent_Check from instantiation of Scng
301 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
302 (Nlit): Remove handling of obsolescent check
303 (Scan, case '%'): Remove handling of obsolescent check
304 (Scan, case '|'): Call Post_Scan
305 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
306 * scng.ads Remove Obsolescent_Check argument from Scng generic
307 (Post_Scan): Now called for Tok_Vertical_Bar
308 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
310 2010-09-09 Doug Rupp <rupp@adacore.com>
312 * gnatlbr.adb: Removed.
313 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
315 2010-09-09 Robert Dewar <dewar@adacore.com>
317 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
320 2010-09-09 Vincent Celier <celier@adacore.com>
322 * gnatlbr.adb: Remove redundant conversions.
324 2010-09-09 Vincent Celier <celier@adacore.com>
326 * prj-proc.adb: Minor comment spelling error fix.
327 * osint.ads (Env_Vars_Case_Sensitive): Use function
328 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
331 2010-09-09 Ed Schonberg <schonberg@adacore.com>
333 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
334 resolution of conditional expressions whose dependent expressions are
335 anonymous access types.
337 2010-09-09 Robert Dewar <dewar@adacore.com>
339 * a-ststio.adb: Minor code reorganization.
340 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
342 * types.ads: Minor reformatting.
343 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
344 redundant conversions.
345 * output.adb: Minor reformatting.
346 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
348 * opt.ads: Add pragma Ordered for Verbosity_Level.
349 * prj.ads: Add pragma Ordered for type Verbosity.
351 2010-09-09 Vincent Celier <celier@adacore.com>
353 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
355 (Canonical_Case_Env_Var_Name): Ditto
357 2010-09-09 Bob Duff <duff@adacore.com>
359 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
361 2010-09-09 Robert Dewar <dewar@adacore.com>
363 * cstand.adb: Mark Boolean and Character types as Ordered
364 * einfo.adb (Has_Pragma_Ordered): New flag
365 * einfo.ads (Has_Pragma_Ordered): New flag
366 * g-calend.ads: Mark Day_Name as Ordered
367 * opt.ads: Mark Ada_Version_Type as Ordered
368 (Warn_On_Unordered_Enumeration_Type): New flag
369 * par-prag.adb: Add procdessing for pragma Ordered
370 * s-ficobl.ads (Read_File_Mode): New subtype
371 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
372 * s-taskin.ads: Mark Entry_Call_State as ordered
373 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
375 * sem_ch6.ads: Mark Conformance_Type as Ordered
376 * sem_prag.adb: Implement pragma Ordered
377 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
378 (Resolve_Comparison_Op): Diagnose unordered comparison
379 (Resolve_Range): Diagnose unordered range
380 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
382 * snames.ads-tmpl: Add entry for pragma Ordered
383 * style.ads (Check_Enumeration_Subrange): Removed
384 * styleg.adb (Check_Enumeration_Subrange): Removed
385 * styleg.ads (Check_Enumeration_Subrange): Removed
386 * stylesw.adb: Remove handling of -gnatyE switch
387 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
388 * vms_data.ads: Remove -gnatyE entries
390 * ug_words: Entries for -gnatw.u and -gnatw.U
391 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
392 * gnat_rm.texi: Document pragma Ordered.
393 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
394 * s-tpobop.adb: Remove comparison on unordered enumeration type.
396 2010-09-09 Vincent Celier <celier@adacore.com>
398 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
399 for VMS and Windows, and 1 for all other platforms.
400 * adaint.h: New function __gnat_get_env_vars_case_sensitive
401 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
402 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
403 Canonical_Case_File_Name, as we are dealing with environment variables,
406 2010-09-09 Robert Dewar <dewar@adacore.com>
408 * sem_util.adb: Minor reformatting
410 2010-09-09 Vincent Celier <celier@adacore.com>
412 * vms_data.ads: Add documentation for S_Make_Single.
414 2010-09-09 Ed Schonberg <schonberg@adacore.com>
416 * sem_util.adb (Same_Object): include formal parameters.
418 2010-09-09 Vincent Celier <celier@adacore.com>
420 * make.adb (Queue): New package implementing a new impementation of the
421 queue, taking into account the new switch --single-compile-per-obj-dir.
422 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
423 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
424 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
426 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
427 switch --single-compile-per-obj-dir.
428 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
429 switch --single-compile-per-obj-dir.
430 * gnat_ugn.texi: Add documentation for new gnatmake switch
431 --single-compile-per-obj-dir.
433 2010-09-09 Ed Schonberg <schonberg@adacore.com>
435 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
437 2010-09-09 Javier Miranda <miranda@adacore.com>
439 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
440 (Replace_Type): Code cleanup.
441 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
443 2010-09-09 Thomas Quinot <quinot@adacore.com>
445 * exp_ch8.adb: Minor reformatting.
447 2010-09-09 Ed Schonberg <schonberg@adacore.com>
449 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
450 Corresponding_Protected_Entry.
452 2010-09-09 Ed Schonberg <schonberg@adacore.com>
454 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
455 inequality, it is always rewritten as the negation of the corresponding
457 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
458 the predefined equality of an untagged record, create a body at the
459 point of the renaming, to capture the current meaning of equality for
462 2010-09-09 Robert Dewar <dewar@adacore.com>
464 * sem.adb, sem_warn.adb: Minor reformatting.
466 2010-09-09 Ed Schonberg <schonberg@adacore.com>
468 * sem_ch6.adb: Improve error message on untagged equality.
469 * sem.adb (Semantics): Include subprogram bodies that act as spec.
471 2010-09-09 Javier Miranda <miranda@adacore.com>
473 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
475 2010-09-09 Robert Dewar <dewar@adacore.com>
477 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
479 2010-09-09 Robert Dewar <dewar@adacore.com>
481 * einfo.adb (Is_Aggregate_Type): New function.
482 * einfo.ads (Aggregate_Kind): New enumeration subtype
483 (Is_Aggregate_Type): New function.
484 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
487 2010-09-09 Robert Dewar <dewar@adacore.com>
489 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
490 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
492 * restrict.ads, restrict.adb: Ditto.
493 (Restriction_Check_Needed): New function
495 2010-09-09 Ed Schonberg <schonberg@adacore.com>
497 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
498 Build_Master_Entity, to find the proper scope for the master entity of
499 a type that may contain tasks, in the presence of transient scopes.
500 * exp_ch9.adb (Build_Master_Entity) Use new function.
501 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
503 2010-09-09 Vincent Celier <celier@adacore.com>
505 * prj-attr.adb: Add new attributes Leading_Library_Options and
506 Linker'Leading_Switches.
507 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
510 2010-09-09 Javier Miranda <miranda@adacore.com>
512 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
513 dispatching primitive covers some interface primitive is incomplete.
514 Replace such code by the invocation of a new subprogram that provides
516 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
517 * sem_ch6.adb (Check_Missing_Return): Minor reformating
518 (Check_Convention): Complete if-statement conditition when reporting
519 errors (to avoid assertion failure).
520 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
521 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
522 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
523 overridden null interface primitives.
524 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
525 private type is an interface then use the parent of its full view to
526 climb to its ancestor type.
527 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
528 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
529 null interface primitives.
530 (Is_Null_Interface_Primitive): New subprogram.
531 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
532 (Expand_Freeze_Record_Type): Do not generate specs of null interface
533 subprograms because they are now generated by Analyze_Freeze_Entity.
535 2010-09-09 Robert Dewar <dewar@adacore.com>
537 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
539 2010-09-09 Robert Dewar <dewar@adacore.com>
541 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
542 (Gen_Restrictions_C): Avoid explicit enumeration ranges
543 (Set_String_Replace): New procedure
544 * casing.ads (Known_Casing): New subtype declaration
545 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
547 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
548 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
549 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
550 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
551 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
553 * sem_res.adb (Resolve_Range): Check for enumeration subrange style rule
554 * sem_type.adb (Is_Array_Class_Record_Type): New.
555 * style.ads (Check_Enumeration_Subrange): New procedure
556 * styleg.adb (Check_Enumeration_Subrange): New procedure
557 * styleg.ads (Check_Enumeration_Subrange): New procedure
558 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
559 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
560 * usage.adb: Add line for -gnatyE
561 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
562 Add missing entry for NOBOOLEAN_OPERATORS
563 * gnat_ugn.texi: Add documentation for -gnatyE
565 2010-09-09 Robert Dewar <dewar@adacore.com>
567 * namet.adb (Initialize): Is now a dummy procedure
568 (Reinitialize): New procedure
569 Call Reinitialize from package initialization
570 * namet.ads (Initialize): Is now a dummy procedure
571 (Reinitialize): New procedure
572 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
573 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
576 2010-09-09 Bob Duff <duff@adacore.com>
578 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
580 2010-09-09 Robert Dewar <dewar@adacore.com>
582 * s-bitops.adb (Raise_Error): Add exception message
584 2010-09-09 Robert Dewar <dewar@adacore.com>
586 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
587 null statement after label.
588 * sinfo.ads: Minor comment updates.
590 2010-09-09 Robert Dewar <dewar@adacore.com>
592 * nlists.ads, nlists.adb (In_Same_List): New function.
593 Use Node_Or_Entity_Id where appropriate.
594 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
596 2010-09-09 Robert Dewar <dewar@adacore.com>
598 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
600 * sem_ch3.adb: Use Check_Wide_Character_Restriction
601 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
602 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
603 (Find_Expanded_Name): Check violation of No_Wide_Characters
605 2010-09-09 Robert Dewar <dewar@adacore.com>
607 * par-ch5.adb: Minor reformatting.
609 2010-09-09 Robert Dewar <dewar@adacore.com>
611 * prj-env.adb: Minor code reorganization.
612 * par-ch3.adb: Minor reformatting.
613 * gcc-interface/Make-lang.in: Update dependencies.
615 2010-09-09 Ed Schonberg <schonberg@adacore.com>
617 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
618 a task declaration can be an entry body.
620 2010-09-09 Javier Miranda <miranda@adacore.com>
622 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
623 tags of library level tagged types.
624 (Make_Tags): Disable backend optimizations about aliasing for
625 declarations of access to dispatch tables.
627 2010-09-09 Ed Schonberg <schonberg@adacore.com>
629 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
630 subtype for a null-excluding access type, recover the original
631 subtype_mark to get the proper visibility on the original name.
633 2010-09-09 Ed Schonberg <schonberg@adacore.com>
635 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
636 create the primitive equality operation for an untagged record. The
637 operation is the predefined equality if no record component has a
638 user-defined equality, or if there is a user-defined equality for the
639 type as a whole, or when the type is derived and it has an inherited
640 equality. Otherwise the body of the operations is built as for tagged
642 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
643 (Make_Eq_Body): New function to create the expanded body of the equality
644 operation for tagged and untagged records. In both cases the operation
645 composes, and the primitive operation of each record component is used
646 to generate the equality function for the type.
647 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
648 has an abstract equality defined, replace its call with a
650 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
651 user-defined equality operator for an untagged record type does not
652 happen after type is frozen, and appears in the visible part if partial
653 view of type is not limited.
655 2010-09-09 Tristan Gingold <gingold@adacore.com>
657 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
659 2010-09-09 Bob Duff <duff@adacore.com>
661 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
663 2010-09-09 Pascal Obry <obry@adacore.com>
665 * gnat_ugn.texi: Update doc on windows related topics.
667 2010-09-09 Geert Bosch <bosch@adacore.com>
669 * s-fatgen.adb: Update comments.
671 2010-09-09 Robert Dewar <dewar@adacore.com>
673 * par-ch4.adb (Box_Error): New procedure.
675 2010-09-09 Thomas Quinot <quinot@adacore.com>
677 * sem.adb: Minor reformatting.
679 2010-09-09 Pascal Obry <obry@adacore.com>
681 * prj-env.adb: Style fix, use /and then/ and /or else/.
682 * gnat_ugn.texi: Fix typos.
684 2010-09-03 Joseph Myers <joseph@codesourcery.com>
687 * gcc-interface/misc.c (gnat_init_options): Allow options with
688 empty canonical form. Generate a single save_argv element from -I
691 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
693 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
694 Attach fake PARM_DECLs to the topmost block of the function.
696 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
698 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
699 for the call to a function whose return type was unconstrained.
701 2010-08-30 Olivier Hainque <hainque@adacore.com>
703 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
704 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
705 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
707 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
709 * tracebak.c: Fix typo in comment.
711 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
713 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
714 * gcc-interface/trans.c: Likewise.
715 * gcc-interface/utils.c: Likewise.
717 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
719 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
721 2010-08-10 Robert Dewar <dewar@adacore.com>
723 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
724 * sem_util.adb: Minor reformatting.
726 2010-08-10 Javier Miranda <miranda@adacore.com>
728 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
729 constructors that leave the object partially initialized.
730 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
731 that copies from parent of Typ the dispatch table slots of inherited
732 C++ primitives. It handles primary and secondary dispatch tables.
733 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
734 use this attribute with E_Variable entities.
735 (Set_Is_Tag): Relax assertion to allow its use with variables that
737 (Set_Related_Type): Relax assertion to allow its use with variables
738 that store the tag of a C++ class.
739 (Write_26_Field_Name): Remove Related_Type.
740 (Write_27_Field_Name): Add Related_Type.
741 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
742 with E_Variable entities.
743 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
745 * sem_util.adb (Search_Tag): Add missing support for CPP types.
746 (Enclosing_CPP_Parent): New subprogram.
747 (Has_Suffix): New subprogram.
748 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
749 closest ancestor of a type that is a C++ type.
750 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
752 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
753 instance in derivations of C++ types.
754 * exp_tss.adb (CPP_Init_Proc): New subprogram.
755 (Is_CPP_Init_Proc): New subprogram.
756 (Set_TSS): Handle new C++ init routines.
757 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
759 (CPP_Init_Proc): New subprogram.
760 (Is_CPP_Init_Proc): New subprogram.
761 * exp_disp.adb (CPP_Num_Prims): New subprogram.
762 (Has_CPP_Constructors): New subprogram.
763 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
764 initialize slots located in the C++ part of the dispatch table.
765 (Make_Tags): For CPP types declare variables used by the IP routine to
766 store the C++ tag values after the first invocation of the C++
768 (Build_CPP_Init_DT): New subprogram.
769 (Set_CPP_Constructors): New implementation that builds an IP for each
770 CPP constructor. These IP are wrappers of the C++ constructors that,
771 after the first invocation of the constructor, read the C++ tags from
772 the object and save them locally. These copies of the C++ tags are used
773 by the IC routines to initialize tables of Ada derivations of CPP types.
774 (Write_DT): Indicate what primitives are imported from C++
775 * exp_disp.ads (CPP_Num_Prims): New subprogram.
776 (Has_CPP_Constructors): New subprogram.
777 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
778 invoke the IC routine to inherit the slots of the parents.
779 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
780 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
781 (Is_Variable_Size_Record): Factorize code calling
782 Is_Variable_Size_Array.
783 (Build_CPP_Init_Procedure): New subprogram that builds the tree
784 corresponding to the procedure that initializes the C++ part of the
785 dispatch table of an Ada tagged type that is a derivation of a CPP type.
786 (Build_Init_Procedure): Adding documentation plus code reorganization to
787 leave more clear the construction of the IP with C++ types.
788 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
789 it cannot be called after Make_Tags has been invoked.
790 (Inherit_CPP_Tag): Removed.
791 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
792 located at variable offset.
793 * freeze.ads: Minor reformating.
794 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
796 * gcc-interface/Make-lang.in: Update dependencies.
798 2010-08-10 Robert Dewar <dewar@adacore.com>
800 * a-chahan.ads: Add comments on handling of obsolescent entries.
801 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
802 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
803 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
804 * sem_attr.adb (Analyze_Access_Attribute): Call
805 Check_Obsolescent_2005_Entity to check for access to obsolescent
806 Ada.Characters.Handling subprogram.
807 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
808 type is obsolescent in Ada 2005.
809 (Analyze_Attribute, case Constrained): Better placement of flag when
810 flagged as obsolescent feature.
811 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
812 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
813 is an obsolescent feature.
814 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
816 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
817 Check_Obsolescent_2005_Entity to check for renaming obsolete
818 Ada.Characters.Handling subprogram.
819 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
820 for obsolescent restrictions in Ada 2005.
821 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
822 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
823 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
824 check for obsolescent references to Ada.Characters.Handling subprograms
826 2010-08-10 Robert Dewar <dewar@adacore.com>
828 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
830 2010-08-10 Robert Dewar <dewar@adacore.com>
832 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
833 * par-ch4.adb: Change wording of Ada 2012 messages
834 * vms_data.ads: Add VMS entries for /2005, /12, /2012
836 2010-08-10 Robert Dewar <dewar@adacore.com>
838 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
839 codes in the range 16#80#..16#7FF#.
840 * sem_ch10.adb: Minor reformatting.
842 2010-08-10 Arnaud Charlet <charlet@adacore.com>
844 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
845 generate ali files in CodePeer mode, so that a gnatmake -c -k will
846 proceed further when possible
847 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
848 messages when ignoring representation clauses (-gnatI).
850 2010-08-10 Ed Schonberg <schonberg@adacore.com>
852 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
853 constant-fold discriminant reference if the constraint is an object
854 with non-static expression. Expression may contain volatile references
855 in the presence of renamings.
857 2010-08-10 Vincent Celier <celier@adacore.com>
859 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
861 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
862 index for an associative array where it is allowed.
864 2010-08-10 Thomas Quinot <quinot@adacore.com>
866 * exp_attr.adb: Add comments.
868 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
870 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
872 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
874 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
876 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
878 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
879 (build_vms_descriptor): Likewise.
881 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
883 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
884 (build_vms_descriptor32): Adjust calls to it for new parameter.
885 (build_vms_descriptor): Likewise.
887 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
889 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
890 (build_variant_list): Take and return a VEC instead of a tree.
891 (create_variant_part_from): Take a VEC instead of a tree for
892 variant_list. Adjust accordingly.
893 (gnat_to_gnu_entity): Adjust for changes to previous functions.
895 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
897 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
899 (components_to_record): Likewise.
900 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
901 * gcc-interface/utils.c (max_size): Likewise.
902 (build_vms_descriptor32): Likewise.
903 (build_vms_descriptor): Likewise.
905 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
907 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
908 (build_subst_list): Return a VEC instead of a tree.
909 (build_variant_list): Take a VEC for subst_list. Adjust
911 (create_field_decl_from): Likewise.
912 (create_variant_part_from): Likewise.
913 (copy_and_substitute_in_size): Likewise.
914 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
915 Free the built vector.
917 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
919 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
920 allocator for large imported objects.
922 2010-08-05 Robert Dewar <dewar@adacore.com>
924 * gnat1drv.adb: Minor reformatting.
926 2010-08-05 Ed Schonberg <schonberg@adacore.com>
928 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
929 instantiation, process its body before the spec of the main unit,
930 because it may contain subprograms invoked in the spec of main.
931 * einfo.ads: Add documention of delayed freeze.
933 2010-08-05 Vincent Celier <celier@adacore.com>
935 * prj-nmsc.adb (Process_Linker): Take into account new values for
936 attribute Response_File_Format.
937 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
938 GCC_Object_List and GCC_Option_List.
940 2010-08-05 Ed Schonberg <schonberg@adacore.com>
942 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
943 selected component that denotes a discriminant if it is the
944 discriminant of a component of an unconstrained record type.
946 2010-08-05 Ed Schonberg <schonberg@adacore.com>
948 * exp_util.adb (Insert_Actions): If the action appears within a
949 conditional expression that is already analyzed, insert action further
952 2010-08-05 Robert Dewar <dewar@adacore.com>
954 * exp_ch4.adb: Minor reformatting.
956 2010-08-05 Thomas Quinot <quinot@adacore.com>
958 * exp_ch4.adb: Minor reformatting
959 * gnat1drv.adb: Minor reformatting.
960 Minor code reorganization (use Nkind_In).
962 2010-08-05 Ed Schonberg <schonberg@adacore.com>
964 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
965 determine whether the expression in an address clause for an
966 initialized object must be constant. Code moved from freeze.adb.
967 (Remove_Side_Effects): When the temporary is initialized with a
968 reference, indicate that the temporary is a constant as done in all
970 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
971 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
972 If object does not need a constant address, remove side effects from
973 address expression, so it is elaborated at the point of the address
974 clause and not at the freeze point of the object, so that elaboration
977 2010-08-05 Vincent Celier <celier@adacore.com>
979 * prj.adb (Is_Compilable): Return False for header files of non Ada
982 2010-08-05 Emmanuel Briot <briot@adacore.com>
984 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
985 exec directory as a warning rather than an error.
987 2010-08-05 Thomas Quinot <quinot@adacore.com>
989 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
992 2010-08-05 Steve Baird <baird@adacore.com>
994 * exp_util.adb (Remove_Side_Effects): An access value which designates
995 a volatile object of a nonvolatile type is prohibited.
996 Do not call Make_Reference to construct a reference to such an object.
998 2010-08-05 Robert Dewar <dewar@adacore.com>
1000 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
1001 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
1002 a-suewen.adb, a-suewen.ads: New files.
1003 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
1005 * sem_elab.adb: Minor reformatting.
1007 2010-08-05 Arnaud Charlet <charlet@adacore.com>
1009 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
1010 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
1011 in case of null Comp.
1013 2010-08-05 Robert Dewar <dewar@adacore.com>
1015 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
1017 2010-08-05 Gary Dismukes <dismukes@adacore.com>
1019 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
1020 nested access type whose designated type has tasks or is a protected
1021 object when the restrictions No_Task_Hierarchy or
1022 No_Local_Protected_Objects apply. Add ??? comment.
1023 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
1024 type is not a library-level type and No_Local_Protected_Objects applies.
1025 (Analyze_Task_Type): Give a warning when a task type is not a
1026 library-level type and No_Task_Hierarchy applies.
1028 2010-08-05 Arnaud Charlet <charlet@adacore.com>
1030 * sem.adb: Minor reformatting
1031 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
1034 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
1036 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
1038 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
1039 for the debug-only entity.
1040 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
1042 2010-08-03 Joseph Myers <joseph@codesourcery.com>
1044 * gcc-interface/lang-specs.h: Don't pass -a options.
1046 2010-07-28 Joseph Myers <joseph@codesourcery.com>
1048 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
1049 options. Check canonical_option_num_elements on options copied.
1051 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1053 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
1054 return value type. Don't check for missing arguments here.
1056 2010-07-27 Joseph Myers <joseph@codesourcery.com>
1058 * gcc-interface/misc.c (gnat_option_lang_mask): New.
1059 (gnat_init_options): Update prototype. Reconstruct argv array
1060 from decoded options.
1062 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
1064 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
1065 case, merge the alias set of the old pointer type.
1067 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
1069 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
1070 and recurse only for multidimensional array types instead.
1072 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
1075 * gcc-interface/utils.c (convert): Fix thinko in test.
1076 (unchecked_convert): When converting from a scalar type to a type with
1077 a different size, pad to have the same size on both sides.
1079 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
1081 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
1082 equality for the component type of array types.
1084 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1086 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1087 * gcc-interface/trans.c: Likewise.
1088 * gcc-interface/utils.c: Likewise.
1089 * gcc-interface/utils2.c: Likewise.
1091 2010-07-13 Laurent GUERBY <laurent@guerby.net>
1094 * gcc-interface/targtyps.c: Include tm_p.h.
1095 * gcc-interface/Make-lang.in: Update dependencies.
1097 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
1099 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
1102 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1104 * gcc-interface/utils.c: Include diagnostic-core.h in every file
1105 that includes toplev.h.
1107 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
1109 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
1110 Branch to common code handling the alignment of discrete types.
1111 <E_Signed_Integer_Type>: Likewise.
1112 <E_Modular_Integer_Type>: Likewise.
1114 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1116 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
1117 (gnat_handle_option): Allocate only one element for gnat_argv.
1118 (gnat_init): Do not populate gnat_argv.
1120 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1122 * gcc-interface/trans.c: Do not include tree-flow.h.
1123 * gcc-interface/Make-lang.in: Adjust dependencies.
1125 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1127 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
1128 of a TREE_LIST. Update comment.
1129 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
1130 Adjust call to gnat_build_constructor.
1131 (Attribute_to_gnu): Likewise.
1132 (gnat_to_gnu): Likewise.
1133 (pos_to_constructor): Likewise.
1134 (extract_values): Likewise.
1135 * gcc-interface/utils.c (build_template): Likewise.
1136 (convert_vms_descriptor64): Likewise.
1137 (convert_vms_descriptor32): Likewise.
1138 (convert_to_fat_pointer): Likewise.
1139 (convert): Likewise.
1140 (unchecked_convert): Likewise.
1141 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
1142 * gcc-interface/utils2.c (build_allocator): Likewise.
1143 (fill_vms_descriptor): Likewise.
1144 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
1145 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
1146 instead of TREE_LISTs.
1148 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1150 * gcc-interface/misc.c: Do not include except.h.
1151 * gcc-interface/Make-lang.in: Update dependencies.
1153 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
1155 * gcc-interface/trans.c: Include tree-flow.h.
1156 (gnu_switch_label_stack): Delete.
1157 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
1158 its associated block cannot fall through. Do not emit the final label
1159 if no cases branch to it.
1160 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
1162 2010-06-23 Thomas Quinot <quinot@adacore.com>
1164 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
1165 reference to a protected subprogram outside of the protected's scope,
1166 ensure the corresponding external subprogram is frozen before the
1169 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1171 * sem_prag.adb: Fix typo in error message.
1172 * sem.adb: Refine previous change.
1174 2010-06-23 Robert Dewar <dewar@adacore.com>
1176 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
1177 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
1178 Implement Ada 2012 string encoding packages.
1180 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1182 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
1183 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
1184 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
1185 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
1187 * gcc-interface/Makefile.in: Enable use of above files.
1189 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1191 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
1192 of address clauses if if Ignore_Rep_Clauses is active.
1193 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
1194 remove address clause from tree so that it does not reach the backend.
1196 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1198 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
1199 expand 'Valid from user code in CodePeer mode, will be handled by the
1202 2010-06-23 Bob Duff <duff@adacore.com>
1204 * g-comlin.ads: Minor comment improvements.
1206 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1208 * sem_res.adb (Uses_SS): The expression that initializes a controlled
1209 component of a record type may be a user-defined operator that is
1210 rewritten as a function call.
1212 2010-06-23 Bob Duff <duff@adacore.com>
1214 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
1216 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
1218 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
1219 label to the new sequence of statements. Set the sloc of the raise
1220 statement onto the new goto statements.
1222 2010-06-23 Robert Dewar <dewar@adacore.com>
1224 * a-stuten.ads, a-stuten.adb: New files.
1225 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
1226 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
1228 2010-06-23 Robert Dewar <dewar@adacore.com>
1230 * gnat_ugn.texi: Add documentation of -gnat12 switch
1231 Add documentation of -gnatX switch.
1233 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1235 * inline.ads: Include the current Ada_Version in the info for pending
1236 instance bodies, so that declaration and body are compiled with the
1238 * inline.adb: Move with_clause for Opt to spec.
1239 * sem_ch12.adb (Analyze_Package_Instantiation,
1240 Analyze_Subprogram_Instantiation): Save current Ada_Version in
1241 Pending_Instantiation information.
1242 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
1243 Inline_Package_Body): Use the Ada_Version present in the body
1246 2010-06-23 Robert Dewar <dewar@adacore.com>
1248 * usage.adb: Add documentation for -gnat12 switch.
1249 * errout.ads: Add VMS alias entry for -gnat12 switch
1250 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
1251 Add documentation for pragma Extensions_Allowed.
1252 * opt.ads: Add entry for Ada 2012 mode.
1253 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
1255 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
1257 * sem_ch13.adb: Add handling for Ada 2012 mode.
1258 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
1259 * switch-c.adb: Add handling for -gnat12 switch.
1260 Implement -gnat2005 and -gnat2012.
1261 * usage.adb: Add documentation for -gnat12 switch.
1262 * vms_data.ads: Add /12 switch for Ada 2012 mode.
1264 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1266 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
1267 No_Task_Hierarchy restriction. Add comment.
1268 * exp_ch9.adb, exp_ch3.adb: Update comments.
1270 2010-06-23 Robert Dewar <dewar@adacore.com>
1272 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
1273 * sem_res.adb: Add comments.
1274 * sem_util.adb: Minor reformatting. Add comments.
1275 Change increment on Actuals_In_Call table.
1276 * opt.ads: Minor: add 'constant'.
1278 2010-06-23 Javier Miranda <miranda@adacore.com>
1280 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
1281 TSD to Null_Address if No_Dispatching_Calls is active.
1283 2010-06-23 Vincent Celier <celier@adacore.com>
1285 * a-comlin.ads: Indicate that use of this package is not supported
1286 during the elaboration of an auto-initialized Stand-Alone Library.
1288 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1290 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
1291 alignment clause on a record type to determine if a component may be
1292 misaligned. The decision must be taken in the back-end where target
1293 alignment information is known.
1295 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1297 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
1298 systematically in CodePeer mode to simplify generated code.
1299 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
1300 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
1301 No_Task_Hierarchy is set instead of crasshing.
1303 2010-06-23 Thomas Quinot <quinot@adacore.com>
1305 * sem_util.adb: Minor code cleanup: test for proper entity instead of
1306 testing just Chars attribute when checking whether a given scope is
1308 * exp_ch4.adb, einfo.adb: Minor reformatting.
1310 2010-06-23 Vincent Celier <celier@adacore.com>
1313 * switch-m.adb (Normalize_Compiler_Switches): Take into account
1314 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
1315 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
1317 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1319 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
1320 operation with a universal real operand, and the right operand is a
1321 range with universal bounds, find unique fixed point that may be
1322 candidate, and warn appropriately.
1324 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1326 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
1327 properly the rare cases where VMS operators are visible through
1328 Extend_System, but the default System is being used and Address is a
1330 * sem_util.adb: Widen predicate Is_VMS_Operator.
1332 2010-06-23 Vincent Celier <celier@adacore.com>
1334 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
1337 2010-06-23 Olivier Hainque <hainque@adacore.com>
1339 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
1340 Interface_Name as foreign. These are GCC builtin imports for
1341 which Ada specific processing doesn't apply.
1343 2010-06-23 Thomas Quinot <quinot@adacore.com>
1345 * sem_ch12.adb: Minor reformatting.
1347 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1349 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
1350 determine whether an intrinsic subprogram is VMS specific.
1352 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
1354 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
1355 is present in the entity.
1357 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1359 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
1360 Fix handling of parameters.
1361 Add protection against unexpected cases.
1362 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
1363 access level, since "A" suffix is already used elsewhere. Similarly,
1364 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
1367 2010-06-23 Thomas Quinot <quinot@adacore.com>
1369 * sem_util.adb, sem_util.ads: Minor reformatting.
1371 2010-06-23 Vincent Celier <celier@adacore.com>
1373 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
1374 the previous behavior of gprclean when there are missing files.
1376 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1378 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
1379 generic body is not a fatal error.
1380 (Mark_Context): Handle properly names of child units.
1381 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
1384 2010-06-23 Vincent Celier <celier@adacore.com>
1386 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
1389 2010-06-23 Bob Duff <duff@adacore.com>
1391 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
1392 Memory_Space, because CPU_Time doesn't seem to provide any significant
1393 speed advantage in practice. Cleanup: Get rid of constant
1394 Default_Optimization; doesn't seem to add anything. Use case
1395 statements instead of if statements; seems cleaner.
1397 2010-06-23 Olivier Hainque <hainque@adacore.com>
1399 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
1400 Wshadow instead of Wextra to guard warning on absence of internal
1401 builtin decl for an import. Fix use of quote in warning text.
1402 (intrin_arglists_compatible_p): Remove processing of integer trailing
1403 args on the Ada side. Fix use of literal > in warning text.
1404 (intrin_return_compatible_p): Never warn on "function imported as
1405 procedure". Defer the void/void case to the common type compatibility
1407 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
1408 of GCC builtin imports.
1410 2010-06-23 Olivier Hainque <hainque@adacore.com>
1412 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
1414 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
1415 functions, helpers for ...
1416 (intrin_profiles_compatible_p): New function, replacement for ...
1417 (compatible_signatures_p): Removed.
1418 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
1419 attempt to bind an unregistered builtin function. When we have
1420 one, use it and warn on profile incompatibilities.
1422 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1424 * gcc-interface/Make-lang.in: Update dependencies.
1426 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1428 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
1429 for a coextension in an object declaration is a concatenation, treat
1430 coextension as dynamic.
1432 2010-06-23 Javier Miranda <miranda@adacore.com>
1434 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
1435 internal entities are added to the scope of the tagged type.
1436 (Derive_Subprograms): Do not stop derivation when we find the first
1437 internal entity that has attribute Interface_Alias. After the change
1438 done to Override_Dispatching_Operations it is no longer true that
1439 these primirives are always located at the end of the list of
1441 * einfo.ads (Primitive_Operations): Add documentation.
1442 * exp_disp.adb (Write_DT): Improve output adding to the name of the
1443 primitive a prefix indicating its corresponding tagged type.
1444 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
1445 entity covers the primitive of an interface that is not an ancestor of
1446 this tagged type then the new primitive is added at the end of the list
1447 of primitives. Required to fulfill the C++ ABI.
1449 2010-06-23 Javier Miranda <miranda@adacore.com>
1451 * atree.ads (Set_Reporting_Proc): New subprogram.
1452 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
1453 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
1454 to routines of package Scil_ll by indirect call to the registered
1456 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
1457 that is invoked when a node is allocated, replaced or rewritten.
1458 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
1459 the SCIL node. Used as argument for Set_Reporting_Proc.
1460 (Initialize): Register Copy_SCIL_Node as the reporting routine that
1461 is invoked by atree.
1463 2010-06-23 Thomas Quinot <quinot@adacore.com>
1465 * sem_ch3.ads: Minor reformatting.
1467 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1469 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
1470 always analyze the generic body and instance, because it may be needed
1472 (Mark_Context): Prepend the with clauses for needed generic units, so
1473 they appear in a better order for CodePeer.
1474 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
1476 2010-06-23 Emmanuel Briot <briot@adacore.com>
1478 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
1480 2010-06-23 Robert Dewar <dewar@adacore.com>
1482 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
1484 2010-06-23 Thomas Quinot <quinot@adacore.com>
1486 * a-tags.ads: Fix description of TSD structure.
1488 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1490 * sem_ch12.adb (Mark_Context): When indicating that the body of a
1491 generic unit is needed prior to the unit containing an instantiation,
1492 search recursively the context of the generic to add other generic
1493 bodies that may be instantiated indirectly through the current instance.
1495 2010-06-23 Robert Dewar <dewar@adacore.com>
1497 * freeze.adb: Minor reformatting.
1499 2010-06-23 Bob Duff <duff@adacore.com>
1501 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
1503 2010-06-23 Vincent Celier <celier@adacore.com>
1505 * make.adb (Compile_Sources): Complete previous change.
1507 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1509 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
1510 Constrained extra formal.
1512 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1514 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
1515 Initialize_Scalars are enabled, compile the generated equality function
1516 for a composite type with full checks enabled, so that validity checks
1517 are performed on individual components.
1519 2010-06-23 Emmanuel Briot <briot@adacore.com>
1521 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
1522 Missing_Source_Files.
1524 2010-06-23 Robert Dewar <dewar@adacore.com>
1526 * exp_ch3.adb, exp_util.adb: Minor reformatting.
1528 2010-06-23 Jose Ruiz <ruiz@adacore.com>
1530 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
1531 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
1532 Clock (without delays) use a run time which is properly initialized.
1534 2010-06-23 Vincent Celier <celier@adacore.com>
1536 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
1537 when -f -u and a main is specified on the command line. However,
1538 attempt to compile even when the ALI file is read-only when
1539 Must_Compile is True.
1541 2010-06-23 Thomas Quinot <quinot@adacore.com>
1543 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
1545 2010-06-23 Javier Miranda <miranda@adacore.com>
1547 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
1548 entities for parent types that are interfaces. Needed in generics to
1549 handle formals that implement interfaces.
1550 (Derive_Subprograms): Add assertion for derivation of tagged types that
1551 do not cover interfaces. For generics, complete code that handles
1552 derivation of type that covers interfaces because the previous
1553 condition was weak (it required only name consistency; arguments were
1554 not checked). Add new code to locate primitives covering interfaces
1555 defined in generic units or instantiatons.
1556 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
1557 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
1558 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
1559 interfaces that are parents of the type because they share the primary
1561 (Register_Primitive): Do not register primitives of interfaces that
1562 are parents of the type.
1563 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
1564 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
1565 primitives skip primitives of interfaces that are parents of the type.
1567 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1569 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
1570 attribute cannot be constant-folded if an index type is a formal type,
1571 or is derived from one.
1572 * checks.adb (Determine_Range): ditto.
1574 2010-06-23 Arnaud Charlet <charlet@adacore.com>
1576 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
1578 2010-06-23 Bob Duff <duff@adacore.com>
1580 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
1581 (Insert): Disallow nul characters.
1582 (misc output routines): Assert no nul characters.
1584 2010-06-23 Ed Schonberg <schonberg@adacore.com>
1586 * exp_ch4.adb: Use predefined unsigned type in all cases.
1588 2010-06-23 Bob Duff <duff@adacore.com>
1590 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
1591 * g-pehage.ads: Minor comment fixes.
1592 * g-pehage.adb: Minor: Add some additional debugging printouts under
1595 2010-06-23 Robert Dewar <dewar@adacore.com>
1597 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
1598 (Worse_Choice): Always prefer Pure/Preelab.
1600 2010-06-23 Vincent Celier <celier@adacore.com>
1602 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
1604 2010-06-23 Robert Dewar <dewar@adacore.com>
1606 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
1607 checking returns in generic case.
1608 (Check_Missing_Return): New procedure.
1610 2010-06-23 Robert Dewar <dewar@adacore.com>
1612 * bindgen.adb, switch-b.adb: Minor reformatting.
1614 2010-06-23 Javier Miranda <miranda@adacore.com>
1616 * frontend.adb (Frontend): Add call to initialize the new package
1618 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
1620 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
1621 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
1623 * exp_util.adb (Insert_Actions): Remove code for
1624 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
1625 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
1626 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
1627 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
1628 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
1629 * sinfo.ads (SCIL_Related_Node): Field removed.
1630 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
1631 (N_SCIL_Tag_Init): Node removed.
1632 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
1633 (Check_SCIL_Node): New implementation.
1634 (Find_SCIL_Node): Removed.
1635 * sem.adb (Analyze): Remove management of
1636 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
1637 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
1639 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
1640 Set_SCIL_Related_Node and avoid adding the SCIL node before the
1641 referenced node using Insert_Action because this is not longer required.
1642 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
1643 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
1644 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to Adjust_SCIL_Node
1645 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
1646 because we no longer require to generate the SCIL node before the call.
1647 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
1648 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
1649 nodes before the referenced node using Insert_Action because this
1650 is not longer required.
1651 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
1652 update the SCIL_Node field.
1653 * sprint.adb (Sprint_Node_Actual): Remove code for
1654 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
1655 * treepr.adb (Print_Node): Print the SCIL node field (if available).
1656 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
1657 SCIL_Tag_Init nodes.
1658 * scil_ll.ads, scil_ll.adb: New files.
1659 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
1662 2010-06-23 Robert Dewar <dewar@adacore.com>
1664 * sem_ch6.adb: Minor reformatting.
1666 2010-06-23 Doug Rupp <rupp@adacore.com>
1668 * bindusg.adb (Display): Write -Hnn line.
1669 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
1671 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
1672 valid values to 32 and 64.
1673 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
1674 ENABLE, DISABLE as valid settings.
1675 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
1676 * opt.ads (Heap_Size): New global variable.
1677 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
1678 TARGET_MALLOC64 check. Fix comment.
1680 2010-06-23 Robert Dewar <dewar@adacore.com>
1682 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
1683 reformatting. Add comments.
1684 * errout.adb (Finalize): Properly adjust warning count when deleting
1687 2010-06-22 Robert Dewar <dewar@adacore.com>
1689 * errout.adb (Finalize): Set Prev pointers.
1690 (Finalize): Delete continuations for deletion by warnings off(str).
1691 * erroutc.ads: Add Prev pointer to error message structure.
1693 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1695 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
1696 child unit, examine context of parent units to locate instantiated
1697 generics whose bodies may be needed.
1698 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
1699 with_clause for the instantiated generic, examine the context of its
1700 parents, to set Withed_Body flag, so that it can be visited earlier.
1701 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
1702 an unsigned type, use a type of the proper size for the intermediate
1703 value, to prevent alignment problems on unchecked conversion.
1705 2010-06-22 Geert Bosch <bosch@adacore.com>
1707 * s-rannum.ads Change Generator type to be self-referential to allow
1708 Random to update its argument. Use "in" mode for the generator in the
1709 Reset procedures to allow them to be called from the Ada.Numerics
1710 packages without tricks.
1711 * s-rannum.adb: Use the self-referencing argument to get write access
1712 to the internal state of the random generator.
1713 * a-nudira.ads: Make Generator a derived type of
1714 System.Random_Numbers.Generator.
1715 * a-nudira.adb: Remove use of 'Unrestricted_Access.
1716 Put subprograms in alpha order and add headers.
1717 * g-mbdira.ads: Change Generator type to be self-referential.
1718 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
1720 2010-06-22 Robert Dewar <dewar@adacore.com>
1722 * freeze.adb: Minor reformatting
1723 Minor code reorganization (use Nkind_In and Ekind_In).
1725 2010-06-22 Bob Duff <duff@adacore.com>
1727 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
1728 -gnatc when a file is compiled that we cannot generate code for, not
1729 helpful and confusing.
1731 2010-06-22 Vincent Celier <celier@adacore.com>
1733 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
1736 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1738 * s-rannum.adb: Replace constants with commented symbols.
1739 * s-rannum.ads: Explain significance of the initial value of the data
1742 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1744 * a-ngcoty.adb: Clarify comment.
1746 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1748 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
1749 expansion for indexing packed arrays with small power-of-2 component
1750 sizes when the target is AAMP.
1751 (Expand_Packed_Element_Reference): Return without expansion for
1752 indexing packed arrays with small power-of-2 component sizes when the
1755 2010-06-22 Geert Bosch <bosch@adacore.com>
1757 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
1760 2010-06-22 Robert Dewar <dewar@adacore.com>
1762 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
1765 2010-06-22 Doug Rupp <rupp@adacore.com>
1767 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
1769 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
1770 (pragma Ident): Add a default ident string in the private part.
1772 2010-06-22 Robert Dewar <dewar@adacore.com>
1774 * cstand.adb: Minor reformatting.
1776 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1778 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
1779 recognize the Shift and Rotation intrinsics that are known to the
1780 compiler but have no interface name.
1782 2010-06-22 Geert Bosch <bosch@adacore.com>
1784 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
1785 scaling in case of overflow or NaN results.
1787 2010-06-22 Robert Dewar <dewar@adacore.com>
1789 * cstand.adb: Complete previous change.
1790 * g-dirope.ads: Add comment.
1791 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
1793 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1795 * cstand.adb: Add tree nodes for pragma Pack on string types.
1797 2010-06-22 Javier Miranda <miranda@adacore.com>
1799 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
1800 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
1801 formal of a primitive.
1802 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
1803 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
1804 formal of a primitive.
1805 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
1806 to obtain the last formal of a primitive.
1808 2010-06-22 Geert Bosch <bosch@adacore.com>
1810 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
1811 depending on __EMX__ or MSDOS being defined.
1812 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
1813 * a-excpol-abort.adb: Update comment indicating users of the file.
1814 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
1816 * env.c: Remove empty conditional for MSDOS.
1817 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
1820 2010-06-22 Robert Dewar <dewar@adacore.com>
1822 * s-rannum.adb: Minor reformatting.
1824 2010-06-22 Javier Miranda <miranda@adacore.com>
1826 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
1827 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
1828 package Sem_Util to package Sem_Aux.
1830 2010-06-22 Javier Miranda <miranda@adacore.com>
1832 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
1833 remove useless restriction on imported routines when building the
1836 2010-06-22 Robert Dewar <dewar@adacore.com>
1838 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
1841 2010-06-22 Javier Miranda <miranda@adacore.com>
1843 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
1844 generic subprogram declarations to ensure proper context. Add missing
1845 support for generic actuals.
1846 (Try_Primitive_Operation): Add missing support for concurrent types that
1847 have no Corresponding_Record_Type. Required to diagnose errors compiling
1848 generics or when compiling with no code generation (-gnatc).
1849 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
1850 the corresponding record type.
1851 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
1852 documentation. Do minimum decoration when processing a primitive of a
1853 concurrent tagged type that covers interfaces. Required to diagnose
1854 errors in the Object.Operation notation compiling generics or under
1856 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
1857 propagation of attribute Interface_List to the corresponding record.
1858 (Expand_N_Task_Type_Declaration): Code cleanup.
1859 (Expand_N_Protected_Type_Declaration): Code cleanup.
1861 2010-06-22 Matthew Heaney <heaney@adacore.com>
1863 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
1865 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1867 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
1868 that is able to produce all representable floating-point numbers in the
1869 unit interval. Remove template parameter Shift_Right, no longer used.
1870 * gnat_rm.texi: Document the period of the pseudo-random number
1871 generator under the description of its algorithm.
1872 * gcc-interface/Make-lang.in: Update dependencies.
1874 2010-06-22 Thomas Quinot <quinot@adacore.com>
1876 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
1877 reference to discriminant (can be an expanded name as well as an
1880 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1882 * exp_ch6.adb: Clarify comment.
1884 2010-06-22 Geert Bosch <bosch@adacore.com>
1886 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
1887 with decimal small as decimal types, avoiding floating-point arithmetic.
1888 (Has_Decimal_Small): New function.
1889 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
1891 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
1892 callers to call the new function in Einfo that takes the entity as
1895 2010-06-22 Robert Dewar <dewar@adacore.com>
1897 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
1899 2010-06-22 Thomas Quinot <quinot@adacore.com>
1901 * sem_elab.adb: Minor reformatting.
1903 2010-06-22 Vincent Celier <celier@adacore.com>
1905 * gnatsym.adb: Put the object files in the table in increasing
1906 aphabetical order of base names.
1908 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1910 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
1911 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
1912 the corresponding discriminal within a record declaration.
1914 2010-06-22 Thomas Quinot <quinot@adacore.com>
1916 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
1917 expression referring to a discriminal of the type of the aggregate (not
1918 a discriminal of some other unrelated type), and the prefix in the
1919 generated selected component must come from Lhs, not Obj.
1921 2010-06-22 Thomas Quinot <quinot@adacore.com>
1923 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
1924 when to freeze the parent type.
1926 2010-06-22 Robert Dewar <dewar@adacore.com>
1928 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
1929 exp_aggr.adb: Minor reformatting.
1930 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
1931 GNAT.MBSS_Float_Random.
1932 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
1934 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
1936 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
1937 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
1938 (Random_Float_Template, Random): New method of creating
1939 uniform floating-point variables that allow the creation of all machine
1942 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
1944 2010-06-22 Gary Dismukes <dismukes@adacore.com>
1946 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
1947 to abstract targets to check that the type is tagged and comes from
1948 source, rather than only testing for targets of interface types. Remove
1951 2010-06-22 Vincent Celier <celier@adacore.com>
1953 * vms_data.ads: Modify the declarations of qualifiers
1954 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
1957 2010-06-22 Ed Schonberg <schonberg@adacore.com>
1959 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
1960 expansion is disabled.
1962 2010-06-22 Robert Dewar <dewar@adacore.com>
1964 * makeusg.adb: Minor reformatting.
1966 2010-06-22 Robert Dewar <dewar@adacore.com>
1968 * types.ads: (Dint): Removed, no longer used anywhere.
1969 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
1970 (UI_Mul): Avoid use of UI_From_Dint.
1971 (UI_From_Dint): Removed, not used.
1972 * uintp.ads (UI_From_Dint): Removed, not used.
1973 (Uint_Min/Max_Simple_Mul): New constants.
1975 2010-06-22 Vincent Celier <celier@adacore.com>
1977 * clean.adb (Parse_Cmd_Line): Recognize switch
1978 --unchecked-shared-lib-imports.
1979 (Usage): Add line for switch --unchecked-shared-lib-imports
1980 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
1981 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
1982 moved from GPR_Util.
1983 * switch-m.adb (Scan_Make_Switches): Recognize switch
1984 --unchecked-shared-lib-imports.
1985 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
1986 * gnat_ugn.texi: Add documentation for new switch
1987 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
1989 2010-06-22 Javier Miranda <miranda@adacore.com>
1991 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
1992 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
1993 this patch replaces duplication of code that traverses the chain of
1994 aliased primitives by a call to routine Ultimate_Alias that
1995 provides this functionality.
1997 2010-06-22 Arnaud Charlet <charlet@adacore.com>
1999 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
2000 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
2003 2010-06-22 Thomas Quinot <quinot@adacore.com>
2005 * einfo.ads: Minor reformatting.
2007 2010-06-22 Javier Miranda <miranda@adacore.com>
2009 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
2010 eliminated primitives.
2011 (Make_DT): Avoid referencing eliminated primitives.
2012 (Register_Primitive): Do not register eliminated primitives in the
2013 dispatch table. Required to add this functionality when the program is
2014 compiled without static dispatch tables (-gnatd.t)
2016 2010-06-22 Emmanuel Briot <briot@adacore.com>
2018 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
2019 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
2020 warnings on use of internal GNAT units.
2022 2010-06-22 Jose Ruiz <ruiz@adacore.com>
2024 * s-taprop-vxworks.adb (Set_Priority): Update comments.
2026 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2028 * s-rannum.adb: Make stylistic change to remove mystery constant in
2029 Extract_Value. Image_Numeral_Length: new symbolic constant.
2031 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2033 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
2034 Is_Synchronized_Interface, Is_Task_Interface into computable
2035 predicates, to free three flags in entity nodes.
2036 * sem_ch3.adb: Remove setting of these flags.
2038 2010-06-22 Robert Dewar <dewar@adacore.com>
2040 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
2042 * s-taprop-vxworks.adb: Add comment for Set_Priority.
2043 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
2044 * projects.texi: Move @cindex to the left margin, since otherwise we
2045 are missing entries in the index.
2047 2010-06-22 Emmanuel Briot <briot@adacore.com>
2049 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
2050 packages from the GNAT hierarchy instead of System when possible.
2051 * gcc-interface/Make-lang.in: Update dependencies.
2053 2010-06-22 Jose Ruiz <ruiz@adacore.com>
2055 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
2056 previously in place to reorder the ready queue when a task drops its
2057 priority due to the loss of inherited priority.
2059 2010-06-22 Vincent Celier <celier@adacore.com>
2061 * projects.texi: Minor spelling error fixes.
2064 2010-06-22 Emmanuel Briot <briot@adacore.com>
2066 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
2067 warnings for some with clauses.
2069 2010-06-22 Robert Dewar <dewar@adacore.com>
2071 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
2072 test to catch more cases where first subtype is the results we want.
2073 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
2074 error case, since Errout will now handle this correctly.
2075 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
2076 Update dependencies.
2078 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2080 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
2081 when calling Make_Temporary.
2083 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2085 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
2086 subprogram can be associated with an entry body.
2088 2010-06-22 Robert Dewar <dewar@adacore.com>
2090 * scos.ads: Add note on membership test handling.
2092 2010-06-22 Vincent Celier <celier@adacore.com>
2094 * projects.texi: Minor spelling fixes.
2097 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
2099 * s-rannum.adb: Correct off-by-one error in Extract_Value.
2101 2010-06-22 Vincent Celier <celier@adacore.com>
2103 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
2105 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
2106 gcc command if it is too long.
2108 2010-06-22 Robert Dewar <dewar@adacore.com>
2110 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
2112 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2114 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
2115 calling Make_Temporary.
2117 2010-06-22 Robert Dewar <dewar@adacore.com>
2119 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
2121 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2123 * sem_res.adb: Additional special-case for VMS.
2125 2010-06-22 Vincent Celier <celier@adacore.com>
2127 * gnatsym.adb: Minor comment fix.
2129 2010-06-22 Vincent Celier <celier@adacore.com>
2131 * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
2133 2010-06-22 Robert Dewar <dewar@adacore.com>
2135 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
2136 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
2137 Ada 95 mode as an implementation defined attribute.
2139 2010-06-22 Vincent Celier <celier@adacore.com>
2141 * bindusg.adb (Display): Update line for -R
2142 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
2143 generated files when -R is used.
2145 2010-06-22 Vincent Celier <celier@adacore.com>
2147 * prj-nmsc.adb (Lib_Data_Table): New table.
2148 (Check_Library_Attributes): Check if the same library name is used in
2149 two different projects that do not extend each other.
2151 2010-06-22 Robert Dewar <dewar@adacore.com>
2153 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
2155 2010-06-22 Vincent Celier <celier@adacore.com>
2157 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
2158 empty, make it the current working directory.
2160 2010-06-22 Thomas Quinot <quinot@adacore.com>
2162 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
2163 private type with discriminants, make sure the parent type is frozen.
2165 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
2167 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
2168 with packed array references specially.
2169 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
2170 to a component of a bit packed array if it is the prefix of 'Bit.
2171 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
2172 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
2173 'Bit reference, where the prefix involves a packed array reference.
2174 (Get_Base_And_Bit_Offset): New helper, extracted from...
2175 (Expand_Packed_Address_Reference): ...here. Call above procedure to
2176 get the outer object and offset expression.
2178 2010-06-22 Thomas Quinot <quinot@adacore.com>
2180 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
2181 * einfo.adb (Related_Expression, Set_Related_Expression): Add
2184 2010-06-22 Javier Miranda <miranda@adacore.com>
2186 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
2187 reorganization to properly check if the operation has been inherited as
2188 an abstract operation.
2190 2010-06-22 Ed Falis <falis@adacore.com>
2192 * s-osinte-vxworks.ads: Complete previous change.
2194 2010-06-22 Thomas Quinot <quinot@adacore.com>
2196 * sem_res.adb: Add comment.
2197 * projects.texi, gnat_ugn.texi: Remove macro.
2199 2010-06-22 Vincent Celier <celier@adacore.com>
2201 * prj-attr.adb: Remove project level attribute Main_Language.
2203 2010-06-22 Robert Dewar <dewar@adacore.com>
2205 * switch-b.adb, osint-b.adb: Minor reformatting.
2207 2010-06-22 Pascal Obry <obry@adacore.com>
2209 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
2210 vector if previous send was not fully successful. If only part of
2211 the vector data was sent, we exit the loop.
2213 2010-06-22 Thomas Quinot <quinot@adacore.com>
2215 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
2216 error reporting with generic types.
2218 2010-06-22 Thomas Quinot <quinot@adacore.com>
2220 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
2221 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
2222 vms_data.ads: Add a new command line switch -A to gnatbind to output
2223 the list of all ALI files for the partition.
2225 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2227 * s-osinte-vxworks.ads: Fix casing.
2228 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
2229 change: Interfaces.C does not provide a long_long type.
2231 2010-06-22 Emmanuel Briot <briot@adacore.com>
2233 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
2234 native user's guide, since this document contains the two versions.
2235 * gcc-interface/Make-lang.in: Update doc dependencies.
2237 2010-06-22 Robert Dewar <dewar@adacore.com>
2239 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
2241 2010-06-22 Emmanuel Briot <briot@adacore.com>
2243 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
2244 not build this file on its own (only through gnat_ugn.texi).
2245 Remove macro definitions and insert simpler version in gnat_ugn.texi.
2247 2010-06-22 Robert Dewar <dewar@adacore.com>
2249 * ali-util.ads: Minor comment update.
2250 * g-socthi-mingw.adb: Minor reformatting.
2252 2010-06-22 Ed Falis <falis@adacore.com>
2254 * s-osinte-vxworks.ads: take sigset_t definition from System.VxWorks.Ext
2255 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
2256 for specific versions of VxWorks.
2258 2010-06-22 Emmanuel Briot <briot@adacore.com>
2260 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
2261 related sections from user's guide and reference manual, since they
2262 have now been merged together into a separate document (projects.texi).
2263 This removes a lot of duplication where attributes where described
2265 The grammar for the project files is now in each of the sections
2266 (packages,expressions,...) instead of being duplicates in two other
2267 sections (one in the user's guide that contained the full grammar,
2268 and various sections in the rm that contained extracts of the same
2270 Added the full list of all supported attributes, since existing lists
2272 Rename "associative array" into "indexed attribute"
2273 Remove sections that were duplicates ("External References in
2274 Project Files" and "External Values", and "Project Extensions"
2275 for instance). The list of valid packages in project files is now in
2278 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2280 * sem_ch3.adb (Add_Internal_Interface_Entities): If
2281 Find_Primitive_Covering_Interface does not find the operation, it may
2282 be because of a name conflict between the inherited operation and a
2283 local non-overloadable name. In that case look for the operation among
2284 the primitive operations of the type. This search must succeed
2285 regardless of visibility.
2287 2010-06-22 Pascal Obry <obry@adacore.com>
2289 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
2290 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
2293 2010-06-22 Robert Dewar <dewar@adacore.com>
2295 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
2297 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
2299 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2301 * s-intman-vxworks.ads: Code clean up.
2303 2010-06-22 Thomas Quinot <quinot@adacore.com>
2305 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
2306 dereference, construct actual subtype of designated object to generate
2307 proper bounds checks.
2309 2010-06-22 Thomas Quinot <quinot@adacore.com>
2311 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
2312 Read_Withed_ALIs, which is more descriptive.
2314 2010-06-22 Pascal Obry <obry@adacore.com>
2316 * g-sothco.ads: Minor reformatting.
2317 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
2318 C_Sendmsg implementation.
2319 (C_Sendmsg): Do not use lock (not needed).
2320 (C_Recvmsg): Likewise and also do not wait for incoming data.
2322 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2324 * uintp.adb: Fix scope error in operator call.
2326 2010-06-22 Vincent Celier <celier@adacore.com>
2328 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
2329 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
2330 autoconfiguration is needed, fail indicating that no config project
2331 file can be found, as there is no autoconfiguration on VMS.
2333 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2335 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
2336 for an operator in a functional notation, when operands are universal.
2338 2010-06-22 Arnaud Charlet <charlet@adacore.com>
2340 * gcc-interface/Make-lang.in: Update dependencies.
2342 2010-06-22 Robert Dewar <dewar@adacore.com>
2344 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
2346 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
2347 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
2349 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
2352 2010-06-22 Vincent Celier <celier@adacore.com>
2354 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
2355 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
2357 2010-06-22 Pascal Obry <obry@adacore.com>
2359 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
2361 (C_Recvmsg): Make sure the routine is atomic. Also fully
2362 fill vectors in the proper order.
2363 (C_Sendmsg): Make sure the routine is atomic.
2365 2010-06-22 Robert Dewar <dewar@adacore.com>
2367 * sem_ch8.adb: Update comment.
2368 * sem_res.adb: Minor code reorganization (use Ekind_In).
2370 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2372 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
2373 name is a call, use the number of actuals to determine whether this is
2374 a binary or unary operator, rather than relying on later information
2375 to resolve the overload.
2377 2010-06-22 Robert Dewar <dewar@adacore.com>
2379 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
2381 2010-06-22 Robert Dewar <dewar@adacore.com>
2383 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
2384 * sem_eval.adb: Minor reformatting.
2386 2010-06-22 Vincent Celier <celier@adacore.com>
2388 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
2389 to gnatlink, except on Open VMS.
2390 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
2391 object directories if -nostdlib is used.
2393 2010-06-22 Robert Dewar <dewar@adacore.com>
2395 * sem_util.adb (Is_Delegate): Put in proper alpha order.
2396 * sem_eval.adb: Minor reformatting.
2398 2010-06-22 Robert Dewar <dewar@adacore.com>
2400 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
2401 * exp_aggr.adb: Minor comment changes and reformatting.
2402 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha order
2403 * sem_util.ads: Add some missing pragma Inline's (efficiency issue only)
2405 2010-06-22 Thomas Quinot <quinot@adacore.com>
2407 * sem_util.adb (Build_Actual_Subtype): Record original expression in
2408 Related_Expression attribute of the constructed subtype.
2409 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
2410 Node24 on types for...
2411 (Related_Expression): Make attribute available on types as well.
2413 2010-06-22 Gary Dismukes <dismukes@adacore.com>
2415 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead of
2416 Directly_Designated_Type when the type argument is an access type.
2417 (Find_Interface_Tag): Retrieve Designated_Type instead of
2418 Directly_Designated_Type when the type argument is an access type.
2419 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
2420 Directly_Designated_Type of each access discriminant.
2421 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
2422 instead of Directly_Designated_Type when the operand and target types
2425 2010-06-22 Thomas Quinot <quinot@adacore.com>
2427 * exp_aggr.adb (Flatten): Return False if one choice is statically
2428 known to be out of bounds.
2430 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2432 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
2433 a parameterless function call, preserve parentheses of original
2434 expression, for proper handling by pretty printer.
2435 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
2436 procedure, to handle quietly identifiers that have no entity names.
2437 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
2438 elsif_part is missing, it has been rewritten as a nested if, and there
2439 is no useful information on the current value of the variable.
2441 2010-06-22 Gary Dismukes <dismukes@adacore.com>
2443 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
2444 discriminals to the current scope.
2445 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
2446 scope, which could overwrite a different already set value.
2448 2010-06-22 Ed Schonberg <schonberg@adacore.com>
2450 * sem_res.adb (Valid_Conversion): If expression is a predefined
2451 operator, use sloc of type of interpretation to improve error message
2452 when operand is of some derived type.
2453 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
2455 2010-06-22 Emmanuel Briot <briot@adacore.com>
2457 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
2458 that it can set out parameters as well. When a process has died, reset
2459 its Input_Fd to Invalid_Fd, so that when using multiple processes we
2460 can find out which process has died.
2462 2010-06-22 Thomas Quinot <quinot@adacore.com>
2464 * sem_eval.adb (Find_Universal_Operator_Type): New
2465 subprogram to identify the operand type of an operator on universal
2466 operands, when an explicit scope indication is present. Diagnose the
2467 case where such a call is ambiguous.
2468 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
2469 Use the above to identify the operand type so it can be properly frozen.
2470 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
2471 type, done in an arbitrary, possibly incorrect type (the presence of
2472 some numeric type in the scope is checked for legality, but when more
2473 than one such type is in the scope, we just pick a random one, not
2474 necessarily the expected one).
2475 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
2478 2010-06-22 Robert Dewar <dewar@adacore.com>
2480 * sem_eval.adb: Minor reformatting.
2482 2010-06-22 Robert Dewar <dewar@adacore.com>
2484 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
2485 Expression_With_Actions to clean up the code generated when folding
2486 constant expressions.
2488 2010-06-22 Vincent Celier <celier@adacore.com>
2490 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
2493 2010-06-22 Vincent Celier <celier@adacore.com>
2495 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
2496 found, check if it's path has aready been found, whatever its index.
2498 2010-06-22 Robert Dewar <dewar@adacore.com>
2500 * atree.adb, gnatbind.adb: Minor reformatting.
2501 Minor code reorganization.
2503 2010-06-21 Robert Dewar <dewar@adacore.com>
2505 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
2506 known at compile time.
2508 2010-06-21 Gary Dismukes <dismukes@adacore.com>
2510 * atree.adb: Fix comment typo.
2512 2010-06-21 Ed Schonberg <schonberg@adacore.com>
2514 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
2515 whether a universal arithmetic expression in a conversion, which is
2516 rewritten from a function call with an expanded name, is ambiguous.
2518 2010-06-21 Vincent Celier <celier@adacore.com>
2520 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
2521 source files in specified list of sources.
2522 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
2524 (Add_Source): Set the Location of the new source
2525 (Process_Exceptions_File_Based): Call Add_Source with the Location
2526 (Get_Sources_From_File): If an exception is found, set its Listed to
2528 (Find_Sources): When Source_Files is specified, if an exception is
2529 found, set its Listed to True. Remove any exception that is not in a
2530 specified list of sources.
2531 * prj.ads (Source_Data): New component Location
2533 2010-06-21 Vincent Celier <celier@adacore.com>
2535 * gnatbind.adb (Closure_Sources): Global table, moved from block.
2537 2010-06-21 Thomas Quinot <quinot@adacore.com>
2539 * sem_res.adb: Minor reformatting.
2540 * atree.adb: New debugging hook "rr" for node rewrites.
2542 2010-06-21 Robert Dewar <dewar@adacore.com>
2544 * g-expect.ads, g-expect.adb: Minor reformatting.
2546 2010-06-21 Emmanuel Briot <briot@adacore.com>
2548 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
2550 2010-06-21 Arnaud Charlet <charlet@adacore.com>
2552 * gcc-interface/Make-lang.in: Update dependencies.
2554 2010-06-21 Thomas Quinot <quinot@adacore.com>
2556 * bindgen.ads: Update comments.
2558 2010-06-21 Vincent Celier <celier@adacore.com>
2560 * gnatbind.adb: Suppress dupicates when listing the sources in the
2561 closure (switch -R).
2563 2010-06-21 Emmanuel Briot <briot@adacore.com>
2565 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
2568 2010-06-21 Emmanuel Briot <briot@adacore.com>
2570 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
2572 (Expect_Internal): No longer raises an exception, so that it can set
2573 out parameters as well. When a process has died, reset its Input_Fd
2574 to Invalid_Fd, so that when using multiple processes we can find out
2575 which process has died.
2577 2010-06-21 Robert Dewar <dewar@adacore.com>
2579 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
2580 checks.adb, sem_res.adb: Minor reformatting. Add comments.
2582 2010-06-21 Ed Schonberg <schonberg@adacore.com>
2584 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
2585 rederivation associated with a full declaration in a private part, and
2586 there is a partial view that derives the same parent subprogram, the
2587 new entity does not become visible. This check must be applied to
2588 interface operations as well.
2590 2010-06-21 Thomas Quinot <quinot@adacore.com>
2592 * checks.adb: Add comments.
2593 * prj-nmsc.adb: Minor reformatting.
2595 2010-06-21 Thomas Quinot <quinot@adacore.com>
2597 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
2598 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
2599 extract bounds, to ensure that we get the proper captured values,
2600 rather than an expression that may have changed value since the point
2601 where the subtype was elaborated.
2602 (Find_Body_Discriminal): New utility subprogram to share code between...
2603 (Eval_Attribute): For the case of a subtype bound that references a
2604 discriminant of the current concurrent type, insert appropriate
2605 discriminal reference.
2606 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
2607 requeue to an entry in a family in the current task, use corresponding
2609 (Analyze_Accept_Statement): Rely on expansion of attribute references
2610 to insert proper discriminal references in range check for entry in
2613 2010-06-21 Emmanuel Briot <briot@adacore.com>
2615 * s-regpat.adb (Compile): Fix handling of big patterns.
2617 2010-06-21 Robert Dewar <dewar@adacore.com>
2619 * a-tifiio.adb: Minor reformatting.
2621 2010-06-21 Pascal Obry <obry@adacore.com>
2623 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
2626 2010-06-21 Javier Miranda <miranda@adacore.com>
2628 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
2631 2010-06-21 Ed Schonberg <schonberg@adacore.com>
2633 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
2634 to hold the result, indicate that the target of the declaration does
2635 not need an initialization, to prevent spurious errors when
2636 Initialize_Scalars is enabled.
2638 2010-06-21 Ed Schonberg <schonberg@adacore.com>
2640 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
2641 Fore is not bound by line length. The Fore parameter of the internal
2642 procedure that performs the operation is an integer.
2644 2010-06-21 Thomas Quinot <quinot@adacore.com>
2646 * sem_res.adb, checks.adb: Minor reformatting.
2648 2010-06-21 Emmanuel Briot <briot@adacore.com>
2650 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
2652 (Insert_Operator_Before): New subprogram, avoids duplicated code
2653 (Compile): Avoid doing two compilations when the pattern matcher ends
2656 2010-06-21 Emmanuel Briot <briot@adacore.com>
2658 * s-regpat.adb: Improve debug traces
2659 (Dump): Change output format to keep it smaller.
2661 2010-06-21 Javier Miranda <miranda@adacore.com>
2663 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
2664 output to the output file when this routine completes its work.
2666 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
2668 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
2669 for loop. Call build_constructor_from_list directly in the CICO case.
2671 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2673 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
2674 declaration appears in the same unit and ealier than the renamed
2675 entity, retain generated body to prevent order-of-elaboration issues in
2678 2010-06-18 Arnaud Charlet <charlet@adacore.com>
2680 * s-tpoben.adb: Update comments.
2682 2010-06-18 Robert Dewar <dewar@adacore.com>
2684 * debug.adb: Minor comment change.
2686 2010-06-18 Javier Miranda <miranda@adacore.com>
2688 * exp_cg.adb: Code clean up.
2689 * debug.adb: Complete documentation of switch -gnatd.Z.
2690 * gcc-interface/misc.c (callgraph_info_file): Declare.
2692 2010-06-18 Javier Miranda <miranda@adacore.com>
2694 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
2696 2010-06-18 Thomas Quinot <quinot@adacore.com>
2698 * sprint.ads: Minor reformatting.
2699 * output.ads: Update obsolete comment.
2701 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2703 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
2704 an external intrinsic operation (e.g. a GCC numeric function) indicate
2705 that the renaming entity has the same characteristics, so a call to it
2706 is properly expanded.
2708 2010-06-18 Javier Miranda <miranda@adacore.com>
2710 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
2711 support for dispatch table/callgraph info generation.
2712 * gcc-interface/Make-lang.in: Update dependencies.
2714 2010-06-18 Robert Dewar <dewar@adacore.com>
2716 * exp_ch6.adb: Minor reformatting.
2717 * gnatname.adb: Add comment.
2719 2010-06-18 Vincent Celier <celier@adacore.com>
2721 * gnatname.adb (Scan_Args): When --and is used, make sure that the
2722 dynamic tables in the newly allocated Argument_Data are properly
2725 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
2727 * gnat1drv.adb: Fix comment.
2729 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2731 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
2732 renaming, re-expand the call with the renamed subprogram if that one
2733 is marked inlined as well.
2735 2010-06-18 Gary Dismukes <dismukes@adacore.com>
2737 * gnat1drv.adb (Adjust_Global_Switches): Enable
2738 Use_Expression_With_Actions for AAMP and VM targets.
2740 2010-06-18 Vincent Celier <celier@adacore.com>
2742 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
2744 2010-06-18 Thomas Quinot <quinot@adacore.com>
2746 * exp_ch4.adb: Minor reformatting.
2748 2010-06-18 Javier Miranda <miranda@adacore.com>
2750 * debug.ads Add documentation on -gnatd.Z.
2752 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2754 * sem_elim.adb: Proper error message on improperly eliminated instances
2756 2010-06-18 Vincent Celier <celier@adacore.com>
2758 * prj.ads (Response_File_Format): New value GCC.
2760 2010-06-18 Thomas Quinot <quinot@adacore.com>
2762 * gnat1drv.adb: Minor reformatting.
2764 2010-06-18 Robert Dewar <dewar@adacore.com>
2766 * make.adb, sem_cat.adb: Minor reformatting.
2767 * sem_eval.adb: Fix typos.
2769 2010-06-18 Pascal Obry <obry@adacore.com>
2771 * prj-nmsc.adb: Fix source filenames casing in debug output.
2773 2010-06-18 Robert Dewar <dewar@adacore.com>
2775 * gnatcmd.adb: Minor reformatting.
2777 2010-06-18 Robert Dewar <dewar@adacore.com>
2779 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
2780 condition and both sub-expressions are static (and result is selected
2783 2010-06-18 Robert Dewar <dewar@adacore.com>
2785 * g-pehage.adb: Minor reformatting
2787 2010-06-18 Pascal Obry <obry@adacore.com>
2789 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
2792 2010-06-18 Arnaud Charlet <charlet@adacore.com>
2794 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
2795 dependencies. Fix target pairs on darwin.
2796 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
2798 2010-06-18 Pascal Obry <obry@adacore.com>
2800 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
2802 2010-06-18 Vincent Celier <celier@adacore.com>
2804 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
2805 configuration pragmas file and, if -U is not used, for a local one.
2807 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2809 * sem_elim.adb (Check_Eliminated): Use full information on entity name
2810 when it is given in the pragma by a selected component.
2811 (Check_For_Eliminated_Subprogram): Do no emit error if within a
2812 instance body that is itself within a generic unit.
2813 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
2814 eliminated, mark as well the anonymous subprogram that is its alias
2815 and appears within the wrapper package.
2817 2010-06-18 Bob Duff <duff@adacore.com>
2819 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
2820 Raise an exception if the output file cannot be opened. Add comments.
2822 2010-06-18 Thomas Quinot <quinot@adacore.com>
2824 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
2825 not illegal per E.2.2(7) if it occurs in the private part of a
2828 2010-06-18 Arnaud Charlet <charlet@adacore.com>
2830 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
2831 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
2832 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
2833 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
2834 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
2835 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
2836 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
2837 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
2838 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
2839 errout.ads: Update comments. Minor reformatting.
2841 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
2842 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
2843 a-strunb.adb (Big_String. Big_String_Access): New type.
2845 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
2846 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
2847 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
2849 2010-06-18 Geert Bosch <bosch@adacore.com>
2851 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
2854 2010-06-18 Robert Dewar <dewar@adacore.com>
2856 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
2859 2010-06-18 Robert Dewar <dewar@adacore.com>
2861 * sprint.adb: Minor format change for N_Expression_With_Actions.
2862 * repinfo.adb: Minor reformatting.
2864 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2866 * sem_elim.adb (Check_Eliminated): If within a subunit, use
2867 Defining_Entity to obtain the name of the entity in the proper body, to
2868 properly handle both separate packages and subprograms.
2870 2010-06-18 Emmanuel Briot <briot@adacore.com>
2872 * prj-nmsc.adb (Check_File): New parameter Display_Path.
2874 2010-06-18 Thomas Quinot <quinot@adacore.com>
2876 * g-socket.adb, g-socket.ads (Null_Selector): New object.
2878 2010-06-18 Pascal Obry <obry@adacore.com>
2880 * gnat_ugn.texi: Minor clarification.
2882 2010-06-18 Emmanuel Briot <briot@adacore.com>
2884 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
2885 code when using the project dir as the source dir.
2886 (Search_Directories): use the normalized name for the source directory,
2887 where symbolic names have potentially been resolved.
2889 2010-06-18 Robert Dewar <dewar@adacore.com>
2891 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
2892 when we create N_Expression_With_Actions node.
2893 (Expand_Short_Circuit): Ditto.
2895 2010-06-18 Robert Dewar <dewar@adacore.com>
2897 * exp_util.adb: Minor reformatting.
2899 2010-06-18 Thomas Quinot <quinot@adacore.com>
2901 * types.ads: Clean up obsolete comments
2902 * tbuild.adb: Minor reformatting.
2903 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
2904 exp_strm.adb, aa_drive.adb: Minor reformatting.
2905 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
2906 intrinsic with an Interface_Name denotes an imported back-end builtin,
2907 and must be rewritten into a call, not left in the tree as an operator,
2908 so return False in that case.
2910 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
2912 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
2914 2010-06-18 Robert Dewar <dewar@adacore.com>
2916 * scos.ads: Add proposed output for case expression
2918 2010-06-18 Jose Ruiz <ruiz@adacore.com>
2920 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
2921 RTSS modules, we need to use the Microsoft linker.
2923 2010-06-18 Robert Dewar <dewar@adacore.com>
2925 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
2926 expression (cannot count on a particular branch being executed).
2927 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
2928 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
2929 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
2930 within case expression.
2931 * expander.adb (Expand): Add call to Expand_N_Case_Expression
2932 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
2933 (P_Case_Expression): New procedure
2934 (P_Case_Expression_Alternative): New procedure
2935 * par.adb (P_Case_Expression): New procedure
2936 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
2938 * sem.adb (Analyze): Add call to Analyze_Case_Expression
2939 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
2940 this is a documentation change only.
2941 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
2942 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
2944 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
2945 * sem_res.adb (Resolve_Case_Expression): New procedure.
2946 * sem_scil.adb (Find_SCIL_Node): Add processing for
2947 N_Case_Expression_Alternative.
2948 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
2949 (N_Case_Expression_Alternative): New node.
2950 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
2951 N_Case_Expression and N_Case_Expression_Alternative.
2953 2010-06-18 Robert Dewar <dewar@adacore.com>
2955 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
2956 * gnat1drv.adb: Fix typo.
2958 2010-06-18 Robert Dewar <dewar@adacore.com>
2960 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
2962 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
2963 gnat style for -gnatg.
2964 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
2966 2010-06-18 Thomas Quinot <quinot@adacore.com>
2968 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
2970 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
2973 2010-06-18 Robert Dewar <dewar@adacore.com>
2975 * sprint.adb: Minor change in output format for expression wi actions.
2976 * par-ch3.adb: Minor code reorganization. Minor reformatting.
2977 * sem_ch5.adb: Minor comment fix.
2979 2010-06-18 Robert Dewar <dewar@adacore.com>
2981 * debug.adb: New debug flag -gnatd.L to control
2982 Back_End_Handles_Limited_Types.
2983 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
2984 limited case if Back_End_Handles_Limited_Types is True.
2985 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
2986 simplify expansion if Use_Expression_With_Actions is True.
2987 * gnat1drv.adb (Adjust_Global_Switches): Set
2988 Back_End_Handles_Limited_Types.
2989 * opt.ads (Back_End_Handles_Limited_Types): New flag.
2991 2010-06-18 Ed Schonberg <schonberg@adacore.com>
2993 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
2994 intrinsic operator if expansion is not enabled, because in an
2995 instantiation the original operator must be present to verify the
2996 legality of the operation.
2998 2010-06-18 Robert Dewar <dewar@adacore.com>
3000 * exp_disp.adb, sem_ch12.adb: Minor reformatting
3002 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3004 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
3005 the class-wide type for a private extension, and the completion is a
3006 subtype, set the type of the class-wide type to the base type of the
3009 2010-06-18 Robert Dewar <dewar@adacore.com>
3011 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
3012 sem_intr.adb, sem_eval.adb: Minor reformatting
3014 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3016 * sem_type.adb (Is_Ancestor): If either type is private, examine full
3019 2010-06-18 Thomas Quinot <quinot@adacore.com>
3021 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
3022 parameter rather than IN OUT.
3024 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3026 * exp_ch6.adb: Add extra guard.
3028 2010-06-18 Gary Dismukes <dismukes@adacore.com>
3030 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
3031 accessibility level of a function call from the level of the innermost
3032 enclosing dynamic scope.
3033 (Innermost_Master_Scope_Depth): New function to find the depth of the
3034 nearest dynamic scope enclosing a node.
3036 2010-06-18 Tristan Gingold <gingold@adacore.com>
3038 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
3040 2010-06-18 Thomas Quinot <quinot@adacore.com>
3042 * g-socket.ads: Minor reformatting.
3044 2010-06-18 Vincent Celier <celier@adacore.com>
3046 * make.adb (Must_Compile): New Boolean global variable
3047 (Main_On_Command_Line): New Boolean global variable
3048 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
3049 even when the project is externally built.
3050 (Start_Compile_If_Possible): Compile in -aL directories if
3051 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
3052 when the project is externally built.
3053 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
3054 invoked with -f -u and one or several mains on the command line.
3055 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main
3056 is specified on the command line.
3058 2010-06-18 Ed Schonberg <schonberg@adacore.com>
3060 * sem_ch6.adb (Build_Body_For_Inline): Handle extended_return_statements
3061 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
3062 containing extented_return statements.
3063 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
3064 constrained, do not build subtype declaration.
3066 2010-06-18 Robert Dewar <dewar@adacore.com>
3068 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
3069 Warn on assigning to packed atomic component.
3071 2010-06-18 Robert Dewar <dewar@adacore.com>
3073 * sem_util.ads: Minor reformatting
3074 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
3075 Expression_With_Actions).
3076 * snames.ads-tmpl: Minor comment fix
3078 2010-06-18 Robert Dewar <dewar@adacore.com>
3080 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
3081 (Set_Imported): Use Import_Interface_Present to control message output
3082 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
3083 * gnat_rm.texi: Document that we can have pragma Import and pragma
3084 Interface for the same subprogram.
3086 2010-06-18 Robert Dewar <dewar@adacore.com>
3088 * lib-xref.adb (Generate_Reference): Fix bad reference to
3089 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
3091 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
3093 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
3095 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
3096 Use set_gnu_expr_location_from_node to set location information on the
3099 2010-06-17 Arnaud Charlet <charlet@adacore.com>
3101 * gcc-interface/Make-lang.in: Update dependencies.
3103 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3105 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
3108 2010-06-17 Robert Dewar <dewar@adacore.com>
3110 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
3111 style check messages.
3112 * sem_res.adb (Resolve_Call): Don't call
3113 Check_For_Eliminated_Subprogram if we are analyzing within a spec
3116 2010-06-17 Robert Dewar <dewar@adacore.com>
3118 * debug.adb: Add documentation for debug flags .X and .Y
3119 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
3120 Use_Expression_With_Actions.
3121 * gnat1drv.adb (Adjust_Global_Switches): Set
3122 Use_Expression_With_Actions.
3123 * opt.ads (Use_Expression_With_Actions): New switch.
3125 2010-06-17 Robert Dewar <dewar@adacore.com>
3127 * exp_intr.adb: Minor code reorganization (use UI_Max)
3128 * sem_intr.adb: use underlying type to check legality.
3129 * einfo.adb (Known_Static_Esize): False for generic types
3130 (Known_Static_RM_Size): False for generic types
3131 * einfo.ads (Known_Static_Esize): False for generic types
3132 (Known_Static_RM_Size): False for generic types
3134 2010-06-17 Robert Dewar <dewar@adacore.com>
3136 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
3138 2010-06-17 Robert Dewar <dewar@adacore.com>
3140 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
3141 node when expanding short circuit form with actions present for right
3143 * exp_ch4.adb: Minor reformatting
3144 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node if
3145 right opeand has actions present, and debug flag -gnatd.X is set.
3146 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
3148 * nlists.adb (Prepend_List): New procedure
3149 (Prepend_List_To): New procedure
3150 * nlists.ads (Prepend_List): New procedure
3151 (Prepend_List_To): New procedure
3152 * sem.adb: Add processing for Expression_With_Actions
3153 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
3154 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
3155 * sem_res.adb: Add processing for Expression_With_Actions.
3156 * sem_scil.adb: Add processing for Expression_With_Actions
3157 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
3158 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
3160 2010-06-17 Doug Rupp <rupp@adacore.com>
3162 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
3163 involved both have underlying integer types.
3164 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
3165 to an intrinsic operator when the operand types or sizes are not
3167 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
3168 64/32 Address/Integer works.
3170 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3172 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
3173 that it marks a unit as needed by a spec only if the corresponding
3174 instantiation appears in that spec (and not in the corresponding body).
3175 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
3176 in the pragma Eliminate has been parsed as a child unit, but the
3177 current compilation unit is in fact the parent in which the subunit is
3180 2010-06-17 Vincent Celier <celier@adacore.com>
3182 * gnat_rm.texi: Fix typo
3184 2010-06-17 Robert Dewar <dewar@adacore.com>
3186 * sem_util.adb: Minor reformatting
3188 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3190 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
3191 instance, the clause now denotes the instance body. Traverse the
3192 corresponding spec because there may be no other dependence that will
3193 force the traversal of its own context.
3195 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3197 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
3198 Install_Limited_Context_Clauses, to determine whether a limited_with in
3199 some parent of the current unit designates some other parent, in which
3200 case the limited_with clause must not be installed.
3201 (In_Context): Refine test.
3203 2010-06-17 Gary Dismukes <dismukes@adacore.com>
3205 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
3206 type with a dispatching equality operator that is overridden (for a
3207 tagged full type), don't include the overridden equality in the list of
3208 primitives. The overridden equality is detected by testing for an
3209 Aliased field that references the overriding equality.
3211 2010-06-17 Robert Dewar <dewar@adacore.com>
3213 * freeze.adb: Minor reformatting.
3215 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
3217 * gnat_ugn.texi: Add a section introducing gdbserver.
3219 2010-06-17 Thomas Quinot <quinot@adacore.com>
3221 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
3224 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3226 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
3227 constrained discriminated parent that is a private type.
3228 (Analyze_Record_Aggregate): when collecting inherited discriminants,
3229 handle properly an ancestor type that is a constrained private type.
3231 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3233 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
3234 protected, use the protected_subprogram_body only if the original
3235 subprogram has not been eliminated.
3237 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3239 * freeze.adb (Freeze_Expression): The designated type of an
3240 access_to_suprogram type can only be frozen if all types in its profile
3243 2010-06-17 Robert Dewar <dewar@adacore.com>
3245 * par.adb: Minor comment fix
3246 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
3248 2010-06-17 Doug Rupp <rupp@adacore.com>
3250 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
3251 change Address to Short_Address in functions where both must be the
3252 same size for intrinsics to work.
3254 2010-06-17 Thomas Quinot <quinot@adacore.com>
3256 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
3257 not denote a (private) component of a protected object.
3259 2010-06-17 Bob Duff <duff@adacore.com>
3261 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
3264 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
3266 * gnat_ugn.texi: Update the documentation about GDB re: exception
3269 2010-06-17 Arnaud Charlet <charlet@adacore.com>
3271 * gnatvsn.ads: Bump to 4.6 version.
3273 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3275 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
3276 designated type of the generated pointer is the type of the original
3277 expression, not that of the function call itself, because the return
3278 type may be an untagged derived type and the function may be an
3279 inherited operation.
3281 2010-06-17 Robert Dewar <dewar@adacore.com>
3283 * exp_ch4.adb: Minor reformatting.
3285 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3287 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
3288 N_Component_Association nodes, to indicate that a component association
3289 of an extension aggregate denotes the value of a discriminant of an
3290 ancestor type that has been constrained by the derivation.
3291 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
3292 double expansion of the aggregate appearing in a context that delays
3293 expansion, to prevent double insertion of discriminant values when the
3294 aggregate is reanalyzed.
3296 2010-06-17 Arnaud Charlet <charlet@adacore.com>
3298 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
3299 Allocator as the Related_Node of Return_Obj_Access in call to
3300 Make_Temporary below as this would create a sort of infinite
3303 2010-06-17 Ben Brosgol <brosgol@adacore.com>
3305 * gnat_ugn.texi: Update gnatcheck doc.
3307 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3309 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
3310 incomplete view of the type that is not tagged, and the full type is a
3311 tagged extension, create class_wide type now, and warn that the
3312 incomplete view should be tagged as well.
3314 2010-06-17 Vincent Celier <celier@adacore.com>
3316 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
3317 Update the last line of the usage, indicating what commands do not
3318 accept project file switches.
3319 * vms_conv.adb: Do not issue usage line for GNAT SYNC
3320 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
3322 * gnat_ugn.texi: Document the relaxed rules for library directories in
3323 externally built library projects.
3325 2010-06-17 Doug Rupp <rupp@adacore.com>
3327 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
3329 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
3330 * gcc-interface/Makefile.in: Update VMS target pairs.
3332 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
3334 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
3335 compatible with Windows NT 4.0 which doesn't provide this function.
3337 2010-06-17 Vincent Celier <celier@adacore.com>
3339 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
3340 different timestamps but the checksum is the same, issue a short
3343 2010-06-17 Arnaud Charlet <charlet@adacore.com>
3345 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
3346 it means that we cannot reset interrupt handlers since this would
3347 require potentially sending the abort signal to the Server_Task.
3349 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3351 * exp_ch4.adb: expand NOT for VMS types.
3352 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
3354 2010-06-17 Sergey Rybin <rybin@adacore.com>
3356 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
3357 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
3360 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3362 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
3363 protected operation if the subprogram has been eliminated.
3365 2010-06-17 Vincent Celier <celier@adacore.com>
3367 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
3368 directories associated with a library to be any directory when the
3369 library project is externally built.
3371 2010-06-17 Vincent Celier <celier@adacore.com>
3373 * make.adb (Check): If switch -m is used, deallocate the memory that
3374 may be allocated when computing the checksum.
3376 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
3378 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
3379 (C_Sendmsg): Likewise.
3381 2010-06-17 Thomas Quinot <quinot@adacore.com>
3383 * sem_res.adb: Update comments.
3385 2010-06-17 Vincent Celier <celier@adacore.com>
3387 * back_end.adb (Scan_Compiler_Arguments): Process last argument
3389 2010-06-17 Robert Dewar <dewar@adacore.com>
3391 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
3392 * layout.adb, freeze.adb: Use Make_Temporary.
3394 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
3396 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
3397 .NET/JVM normally as this is now perfectly supported by the backend.
3399 2010-06-17 Pascal Obry <obry@adacore.com>
3401 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
3403 2010-06-17 Vincent Celier <celier@adacore.com>
3405 * make.adb (Collect_Arguments_And_Compile): Create include path file
3406 only when -x is specified.
3408 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
3410 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
3411 Objects_Path, defaulted to True. Only create include path file if
3412 Include_Path is True, only create objects path file if Objects_Path is
3414 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
3415 Objects_Path, defaulted to True.
3416 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
3419 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3421 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
3422 determine whether it has the controlling type, when the formal is an
3425 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
3427 * s-crtl.ads (ssize_t): New type.
3428 (read): Fix signature.
3430 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
3431 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3432 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3433 (C_Sendmsg): Likewise.
3434 * g-socthi.adb (Syscall_Recvmsg): Likewise.
3435 (Syscall_Sendmsg): Likewise.
3436 (C_Recvmsg): Likewise.
3437 (C_Sendmsg): Likewise.
3438 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
3439 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3440 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3441 (C_Sendmsg): Likewise.
3442 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
3443 (C_Sendmsg): Likewise.
3444 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
3445 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3446 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3447 (C_Sendmsg): Likewise.
3448 * g-socthi-vms.adb (C_Recvmsg): Likewise.
3449 (C_Sendmsg): Likewise.
3450 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
3451 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
3452 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
3453 (C_Sendmsg): Likewise.
3454 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
3455 (C_Sendmsg): Likewise.
3456 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
3457 (Write): Likewise to call 'write'.
3458 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
3459 (Write): Use correct type to call System.CRTL.write.
3460 * s-tasdeb.adb (Write): Likewise.
3462 2010-06-17 Vincent Celier <celier@adacore.com>
3464 * prj-proc.adb (Copy_Package_Declarations): Change argument name
3465 Naming_Restricted to Restricted. If Restricted is True, do not copy the
3466 value of attribute Linker_Options.
3468 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
3470 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
3471 (Case_Statement_to_gnu): Adjust.
3472 (Loop_Statement_to_gnu): Likewise.
3473 (Subprogram_Body_to_gnu): Likewise.
3474 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3475 (Compilation_Unit_to_gnu): Likewise.
3477 2010-06-17 Robert Dewar <dewar@adacore.com>
3479 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
3480 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
3481 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
3482 sem_dist.adb, sem_util.adb: Use Make_Temporary
3483 * itypes.ads, tbuild.ads: Minor comment update
3484 * exp_ch9.adb, exp_dist.adb: Minor reformatting
3486 2010-06-17 Thomas Quinot <quinot@adacore.com>
3488 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
3490 2010-06-17 Robert Dewar <dewar@adacore.com>
3492 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
3494 2010-06-17 Thomas Quinot <quinot@adacore.com>
3496 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
3498 2010-06-17 Robert Dewar <dewar@adacore.com>
3500 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
3501 * tbuild.ads (Make_Temporary): More comment updates
3502 * tbuild.adb: Minor reformatting
3504 2010-06-17 Robert Dewar <dewar@adacore.com>
3506 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
3507 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
3509 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
3511 (Make_Temporary): Add more extensive documentation
3513 2010-06-17 Robert Dewar <dewar@adacore.com>
3515 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
3516 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
3517 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
3518 where the slice's actions are inserted.
3519 (Decompose_Expr): Account for possible rewriting of slice bounds
3520 resulting from side effects suppression caused by the above freezing,
3521 so that folding of bounds is preserved by such rewriting.
3523 2010-06-17 Robert Dewar <dewar@adacore.com>
3525 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
3526 * freeze.adb (Freeze_Record_Type): Add call to
3527 Check_Record_Representation_Clause.
3528 * sem_ch13.adb (Check_Record_Representation_Clause): New function
3529 (Analyze_Record_Representation_Clause): Split out overlap code into this
3531 (Check_Component_Overlap): Moved inside
3532 Check_Record_Representation_Clause.
3533 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
3535 2010-06-17 Robert Dewar <dewar@adacore.com>
3537 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
3539 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
3540 sem_eval.adb: Use Ekind_In
3542 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3544 * sem_ch8.adb: better error message for illegal inherited discriminant
3546 2010-06-17 Vincent Celier <celier@adacore.com>
3548 * bindusg.adb: Remove lines for -A and -C
3549 * gnat_ugn.texi: Remove all documentation and examples of switches -A
3550 and -C for gnatbind and gnatlink.
3551 * gnatlink.adb (Usage): Remove lines for -A and -C
3552 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
3554 * gcc-interface/Make-lang.in: Update dependencies.
3556 2010-06-17 Vincent Celier <celier@adacore.com>
3558 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
3559 local Argument_List variable Args.
3560 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
3562 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
3563 for subsequent switches in Args.
3564 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
3566 * gcc-interface/Make-lang.in: Update dependencies.
3568 2010-06-17 Robert Dewar <dewar@adacore.com>
3570 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
3571 Equivalent_Type to match documentation.
3573 2010-06-17 Robert Dewar <dewar@adacore.com>
3575 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
3576 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
3577 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
3579 2010-06-17 Thomas Quinot <quinot@adacore.com>
3581 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
3583 2010-06-17 Thomas Quinot <quinot@adacore.com>
3585 * freeze.adb (Freeze_Expression): Short circuit operators are valid
3586 freeze node insertion points.
3588 2010-06-17 Robert Dewar <dewar@adacore.com>
3590 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
3591 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
3593 2010-06-17 Gary Dismukes <dismukes@adacore.com>
3595 * layout.adb (Layout_Type): Broaden test for setting an array type's
3596 Component_Size to include all scalar types, not just discrete types
3597 (components of real types were missed).
3598 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
3599 on the itype created for an index (consistent with Make_Index and
3600 avoids possible Assert_Failures).
3602 2010-06-17 Robert Dewar <dewar@adacore.com>
3604 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
3605 * einfo.adb: Minor code reformatting (use Ekind_In)
3607 2010-06-17 Robert Dewar <dewar@adacore.com>
3609 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
3612 2010-06-17 Vincent Celier <celier@adacore.com>
3614 * back_end.adb: Minor comment updates
3615 * switch-c.adb: Remove dependencies on gcc C sources
3616 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
3619 2010-06-17 Ed Schonberg <schonberg@adacore.com>
3621 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
3622 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
3623 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
3624 Remove use of Node field in SCOs table
3625 (Output_Header): Set 'd' to initially disable pragma entry
3626 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
3627 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
3628 Use C2 field of pragma decision header to indicate enabled.
3629 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
3630 * gcc-interface/Make-lang.in: Update dependencies.
3632 2010-06-17 Vincent Celier <celier@adacore.com>
3634 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
3635 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
3636 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
3637 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
3639 * switch-c.adb: Copied a number of global declarations from back_end.adb
3640 (Len_Arg): New function copied from back_end.adb
3641 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
3642 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
3643 Switch_Subsequently_Cancelled.
3644 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
3645 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
3646 with -lexc on Tru64.
3648 2010-06-17 Robert Dewar <dewar@adacore.com>
3650 * prj.ads, prj.adb: Minor reformatting
3652 2010-06-17 Thomas Quinot <quinot@adacore.com>
3654 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
3655 CP line for a disabled pragma.
3657 2010-06-17 Emmanuel Briot <briot@adacore.com>
3659 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
3661 (Process_Declarative_Item): An invalid value in an typed variable
3662 declaration is no longer always fatal.
3664 2010-06-16 Arnaud Charlet <charlet@adacore.com>
3666 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
3667 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
3670 2010-06-16 Javier Miranda <miranda@adacore.com>
3672 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
3673 node referenced by the SCIL node of dispatching "=" to skip the tags
3676 2010-06-16 Ed Schonberg <schonberg@adacore.com>
3678 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
3679 to prevent cascaded errors and compilation aborts.
3681 2010-06-16 Robert Dewar <dewar@adacore.com>
3683 * back_end.adb (Switch_Subsequently_Cancelled): New function
3684 Move declarations to package body level to support this change
3685 * back_end.ads (Switch_Subsequently_Cancelled): New function
3686 * gnat_ugn.texi: Document -gnat-p switch
3687 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
3688 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
3689 * usage.adb: Add line for -gnat-p switch
3690 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
3692 2010-06-16 Robert Dewar <dewar@adacore.com>
3694 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
3697 2010-06-16 Robert Dewar <dewar@adacore.com>
3699 * exp_disp.adb: Minor reformatting
3701 2010-06-16 Ed Schonberg <schonberg@adacore.com>
3703 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
3704 base type only if it was not previously created for the partial view.
3706 2010-06-16 Thomas Quinot <quinot@adacore.com>
3708 * tbuild.ads: Minor comment fix
3710 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
3712 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
3713 (gnu_except_ptr_stack): Change type to VEC. Update comment.
3714 (gnu_elab_proc_stack): Likewise.
3715 (gnu_return_label_stack): Likewise.
3716 (gnu_loop_label_stack): Likewise.
3717 (gnu_switch_label_stack): Likewise.
3718 (gnu_constraint_label_stack): Likewise.
3719 (gnu_storage_error_label_stack): Likewise.
3720 (gnu_program_error_label_stack): Likewise.
3721 (push_exception_label_stack): Take a VEC ** instead of a tree *.
3722 (push_stack): Likewise. Remove unused second parameter. Update
3724 (pop_stack): Take a VEC * instead of a tree *. Update callers.
3725 (gigi): Initialize stacks as VECs.
3726 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
3727 (Case_Statement_to_gnu): Likewise.
3728 (Subprogram_Body_to_gnu): Likewise.
3729 (call_to_gnu): Likewise.
3730 (Exception_Handler_to_gnu_sjlj): Likewise.
3731 (gnat_to_gnu): Likewise.
3732 (get_exception_label): Likewise.
3734 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3736 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
3737 anonymous base generated when the parent is a constrained discriminated
3738 type, propagate interface list to first subtype because it may appear
3739 in a current instance within the extension part of the derived type
3740 declaration, and its own subtype declaration has not been elaborated
3742 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
3743 determine whether it has the controlling type.
3745 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
3747 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
3748 raise of CE, SE and PE have the reason correctly set and are properly
3749 expanded before stopping the expansions of .NET/JVM exceptions.
3751 2010-06-14 Robert Dewar <dewar@adacore.com>
3753 * opt.ads (Check_Policy_List): Add some clarifying comments
3754 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
3755 on rewritten Assert pragma.
3757 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3759 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
3760 controlled operations, so that they will be treated as overriding even
3761 if the overridden subprogram is marked Is_Hidden, as long as the
3762 overridden subprogram's parent subprogram is not hidden.
3764 2010-06-14 Robert Dewar <dewar@adacore.com>
3766 * debug.adb: Entry for gnatw.d no longer specific for while loops
3767 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
3768 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
3769 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
3770 new calling sequence to include test for EXIT WHEN.
3771 (Analyze_Exit_Statement): Chain EXIT statement into exit statement chain
3772 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
3774 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
3776 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
3777 PRAGMA, not to pragma identifier).
3778 (Next_Exit_Statement): New attribute of N_Exit_Statement node
3780 2010-06-14 Robert Dewar <dewar@adacore.com>
3782 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
3785 2010-06-14 Robert Dewar <dewar@adacore.com>
3787 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
3788 missing pragma argument identifier.
3790 2010-06-14 Robert Dewar <dewar@adacore.com>
3792 * atree.ads, atree.adb (Ekind_In): New functions.
3794 2010-06-14 Robert Dewar <dewar@adacore.com>
3796 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
3798 2010-06-14 Robert Dewar <dewar@adacore.com>
3800 * usage.adb (Usage): Redo documentation of -gnatwa.
3802 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3804 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
3805 an untagged incomplete type that is a limited view.
3807 2010-06-14 Sergey Rybin <rybin@adacore.com>
3809 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
3812 2010-06-14 Thomas Quinot <quinot@adacore.com>
3814 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
3815 factoring duplicated code between...
3816 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
3817 * a-envvar.ads: Minor reformatting
3819 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3821 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
3823 (Scan_ALI): Take into account new Visibility field.
3824 (Visibility_Kind): New type.
3825 (Xref_Entity_Record): Replace Lib field by Visibility.
3827 * gcc-interface/Make-lang.in: Update dependencies.
3829 2010-06-14 Pascal Obry <obry@adacore.com>
3831 * raise.h: Remove unused defintions.
3833 2010-06-14 Bob Duff <duff@adacore.com>
3835 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
3836 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
3837 the incorrect error "proper body expected".
3838 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
3839 allowed here" error in case of subunits, which was triggered by the
3840 above change to P_Subunit.
3842 2010-06-14 Sergey Rybin <rybin@adacore.com>
3844 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
3846 2010-06-14 Thomas Quinot <quinot@adacore.com>
3848 * lib-util.adb: Minor code reorganization.
3850 2010-06-14 Robert Dewar <dewar@adacore.com>
3852 * ali.adb (Scan_ALI): Implement reading and storing of N lines
3853 (Known_ALI_Lines): Add entry for 'N' (notes)
3854 * ali.ads (Notes): New table to store Notes information
3855 * alloc.ads: Add entries for Notes table
3856 * lib-util.adb (Write_Info_Int): New procedure
3857 (Write_Info_Slit): New procedure
3858 (Write_Info_Uint): New procedure
3859 * lib-util.ads (Write_Info_Int): New procedure
3860 (Write_Info_Slit): New procedure
3861 (Write_Info_Uint): New procedure
3862 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
3863 * lib-writ.ads: Update documentation for N (Notes) lines
3864 * lib.adb (Store_Note): New procedure
3865 * lib.ads (Notes): New table
3866 (Store_Note): New procedure
3867 * sem_prag.adb: Call Store_Note for affected pragmas
3869 2010-06-14 Thomas Quinot <quinot@adacore.com>
3871 * socket.c: Fix wrong condition in #ifdef
3872 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
3873 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
3874 because on VMS this type is a 32-bit pointer which is not compatible
3875 with the default for C pointers for code compiled with gcc on that
3878 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3880 * sem_util (Is_VMS_Operator): New predicate to determine whether an
3881 operator is an intrinsic operator declared in the DEC system extension.
3882 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
3883 if the operator is a VMS intrinsic.
3884 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
3885 constant-folded if the operands are signed and the operator is a VMS
3888 2010-06-14 Robert Dewar <dewar@adacore.com>
3890 * g-socket.adb, gnatcmd.adb: Minor reformatting.
3892 2010-06-14 Pascal Obry <obry@adacore.com>
3894 * s-finimp.adb: Fix typo.
3895 * raise.h: Remove duplicate blank line.
3897 2010-06-14 Vincent Celier <celier@adacore.com>
3899 * prj-nmsc.adb (Add_Sources): Always set the object file and the
3900 switches file names, as the configuration of the language may change
3901 in an extending project.
3902 (Process_Naming_Scheme): For sources of projects that are extended, set
3903 the configuration of the language from the highest extending project
3904 where the language is declared.
3906 2010-06-14 Gary Dismukes <dismukes@adacore.com>
3908 * sem_res.adb (Resolve_Call): For infinite recursion check, test
3909 whether the called subprogram is inherited from a containing subprogram.
3910 (Same_Or_Aliased_Subprograms): New function
3912 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3914 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
3915 use-visible, check whether it is a primitive for more than one type.
3917 2010-06-14 Robert Dewar <dewar@adacore.com>
3919 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
3921 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
3922 Has_Pragma_Unmodified flag.
3924 2010-06-14 Thomas Quinot <quinot@adacore.com>
3926 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
3927 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
3928 now done in GNAT.Sockets if necessary.
3929 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
3930 Ensure mutual exclusion for netdb operations if the target platform
3932 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating struct
3933 hostent as an opaque type to improve portability.
3934 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
3935 gethostbyYYY using proprietary VxWorks API so that a uniform interface
3936 is available for the Ada side.
3937 * gcc-interface/Makefile.in: Remove g-sttsne-*
3938 * gcc-interface/Make-lang.in: Update dependencies.
3940 2010-06-14 Vincent Celier <celier@adacore.com>
3942 * gnatcmd.adb (Mapping_File): New function.
3944 2010-06-14 Javier Miranda <miranda@adacore.com>
3946 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
3948 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3950 * ali.adb: Fix typo.
3951 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
3953 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3955 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
3958 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
3959 the context does not have a homonym of the selector, emit default
3962 2010-06-14 Robert Dewar <dewar@adacore.com>
3964 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
3967 2010-06-14 Arnaud Charlet <charlet@adacore.com>
3969 * lib-xref.ads: Doc updates:
3970 - Allocate 'Q' for #include entity kind
3972 - Allocate 'g' for regular macros
3973 - Allocate 'G' for function-like macros
3975 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3977 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
3978 Indicates that there is an instantiation in the current unit that
3979 loaded the body of the unit denoted by the with_clause.
3980 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
3981 whether a with_clause in the current context denotes the unit that
3982 holds the generic declaration, and mark the with_clause accordingly.
3983 (Instantiate_Package_Body): call Mark_Context.
3984 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
3985 whether a given body should be traversed before the spec of the main
3988 2010-06-14 Ed Falis <falis@adacore.com>
3990 * sysdep.c: Fix 653 build against vThreads headers.
3992 2010-06-14 Robert Dewar <dewar@adacore.com>
3994 * sinfo.ads: Minor reformatting.
3996 2010-06-14 Ed Schonberg <schonberg@adacore.com>
3998 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
3999 the spec has been generated for a body without spec that carries an
4000 Inline_Always pragma.
4002 2010-06-14 Arnaud Charlet <charlet@adacore.com>
4004 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
4007 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
4009 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
4010 declaration for VMs, as those are useless and might lead to duplicated
4011 local variable names in the generated code.
4012 * gcc-interface/Make-lang.in: Update dependencies.
4014 2010-06-14 Robert Dewar <dewar@adacore.com>
4016 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
4018 2010-06-14 Robert Dewar <dewar@adacore.com>
4020 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
4021 is renamed as Has_Following_Address_Clause.
4022 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
4023 to allow the caller to avoid Initialize_Scalars having an effect.
4024 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
4025 scalars with an address clause specified.
4026 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
4027 to allow the caller to avoid Initialize_Scalars having an effect.
4028 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
4029 (where it was called Has_Address_Clause).
4030 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
4031 (where it was called Has_Address_Clause).
4032 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
4033 problems for Initialize_Scalars (since we no longer initialize objects
4034 with an address clause.
4036 2010-06-14 Robert Dewar <dewar@adacore.com>
4038 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
4041 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4043 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
4044 on the entity of an implicitly generated postcondition procedure.
4046 2010-06-14 Thomas Quinot <quinot@adacore.com>
4048 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
4049 Discriminant_Constraint elist from full view to private view.
4051 2010-06-14 Robert Dewar <dewar@adacore.com>
4053 * sem_res.adb: Minor reformatting.
4055 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4057 * sem.adb: New version of unit traversal.
4059 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
4060 within a generic unit in the table of delayed calls.
4062 2010-06-14 Robert Dewar <dewar@adacore.com>
4064 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
4066 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4068 * sem_ch12.adb (Save_References): If an identifier has been rewritten
4069 during analysis as an explicit dereference, keep the reference implicit
4070 in the generic, but preserve the entity if global. This prevents
4071 malformed generic trees in the presence of some nested generics.
4073 2010-06-14 Sergey Rybin <rybin@adacore.com>
4075 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
4076 tool with '-files=' option. Also fix some small errors (wrong brackets)
4078 2010-06-14 Vincent Celier <celier@adacore.com>
4080 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
4081 the ALI files on the command line.
4083 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
4084 the same value as the parameter of the same name.
4085 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
4087 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
4088 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
4089 emit version symbols only for the units of the library.
4090 (Gen_Versions_C): Ditto.
4092 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4094 * sem_ch4.adb: Fix typo.
4096 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
4098 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
4099 vector IO doesn't work at default value properly.
4101 2010-06-14 Doug Rupp <rupp@adacore.com>
4103 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
4105 2010-06-14 Vincent Celier <celier@adacore.com>
4107 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
4108 sources of the project if a switch -files= is used.
4110 2010-06-14 Thomas Quinot <quinot@adacore.com>
4112 * exp_attr.adb: Minor reformatting.
4114 2010-06-14 Gary Dismukes <dismukes@adacore.com>
4116 * gnat_ugn.texi: Minor typo fixes and wording changes.
4118 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4120 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
4121 prefixed form, do not re-analyze first actual, which may need an
4122 implicit dereference.
4123 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
4124 prefixed notation, the analysis will rewrite the node, and possible
4125 errors appear in the rewritten name of the node.
4126 * sem_res.adb: If a call is ambiguous because its first parameter is
4127 an overloaded call, report list of candidates, to clarify ambiguity of
4130 2010-06-14 Doug Rupp <rupp@adacore.com>
4132 * s-auxdec-vms-alpha.adb: New package body implementing legacy
4133 VAX instructions with Asm insertions.
4134 * s-auxdec-vms_64.ads: Inline VAX queue functions
4135 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
4136 that show up only on VMS.
4137 * gcc-interface/Makefile.in: Provide translation for
4138 s-auxdec-vms-alpha.adb.
4140 2010-06-14 Olivier Hainque <hainque@adacore.com>
4142 * initialize.c (VxWorks section): Update comments.
4144 2010-06-14 Robert Dewar <dewar@adacore.com>
4146 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
4148 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
4150 * init.c: Code clean up.
4152 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4154 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
4155 not insert address clause in table for later validation if type of
4156 entity is generic, to prevent possible spurious errors.
4158 * sem_ch8.adb: Code clean up.
4160 2010-06-14 Ben Brosgol <brosgol@adacore.com>
4162 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
4163 texi2pdf and texi2html.
4164 Document how to change scheduling properties on HP-UX.
4166 2010-06-14 Thomas Quinot <quinot@adacore.com>
4168 * g-socket.ads: Remove misleading comments.
4170 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
4172 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
4173 CLI_Target as this prevents proper detection of exported names
4174 duplicates when the exported language is different to CIL.
4175 (Process_Interface_Name): Add check for CIL convention exports,
4176 replacing the old one from Check_Duplicated_Export_Name.
4178 2010-06-14 Matthew Heaney <heaney@adacore.com>
4180 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
4181 and new last satisfy constraints.
4182 (Delete_Last): prevent overflow for subtraction of index values
4183 (To_Vector): prevent overflow for addition of index values
4185 2010-06-14 Ed Schonberg <schonberg@adacore.com>
4187 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
4188 rewritten call, preserve the resulting type to prevent spurious errors,
4189 when the call is implicitly dereferenced in the context of an in-out
4192 * checks.adb (Apply_Discriminant_Check): If the target of the
4193 assignment is a renaming of a heap object, create constrained type for
4196 2010-06-14 Pascal Obry <obry@adacore.com>
4198 * prj-proc.adb: Fix copy of object directory for extending projects.
4200 2010-06-14 Jose Ruiz <ruiz@adacore.com>
4202 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
4203 (__gnat_install_handler, PowerPC linux): Activate the alternative
4206 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
4208 * gnat_rm.texi: Move to GFDL version 1.3.
4209 * gnat-style.texi: Ditto.
4210 * gnat_ugn.texi: Ditto.
4212 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
4215 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
4218 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
4220 * gcc-interface/utils.c (update_pointer_to): Initialize last.
4222 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
4224 * gcc-interface/ada-tree.h: Fix formatting nits.
4226 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4228 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
4230 (init_dummy_type): Likewise.
4231 (gnat_pushlevel): Likewise.
4233 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
4234 (Subprogram_Body_to_gnu): Likewise.
4235 (Compilation_Unit_to_gnu): Likewise.
4236 (start_stmt_group): Likewise.
4237 (extract_encoding): Likewise.
4238 (decode_name): Likewise.
4240 * gcc-interface/misc.c (gnat_printable_name): Likewise.
4242 * gcc-interface/decl.c (annotate_value): Likewise.
4244 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
4246 (struct lang_decl): Likewise.
4247 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
4248 (SET_DECL_LANG_SPECIFIC): Likewise.
4250 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
4252 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
4253 * gcc-interface/lang-specs.h: Likewise.
4255 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
4258 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
4260 2010-06-01 Arnaud Charlet <charlet@adacore.com>
4262 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
4264 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
4266 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
4267 TYPE_DECL of the equivalent type instead of building a new one.
4269 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
4271 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
4272 Fix nits in comments.
4273 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
4274 * gcc-interface/trans.c (gigi): Likewise.
4275 (Attribute_to_gnu): Likewise.
4276 (Case_Statement_to_gnu): Likewise.
4277 (gnat_to_gnu): Adjust warning message.
4278 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
4279 (build_vms_descriptor32): Likewise.
4281 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
4283 * gcc-interface/decl.c: Pretend to be a backend file by undefining
4284 IN_GCC_FRONTEND (still need rtl.h here).
4286 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4288 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
4289 (gigi): Adjust call to set_stack_check_libfunc.
4291 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
4293 * gcc-interface/utils.c: Do not include rtl.h.
4295 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
4297 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
4298 and gimple.h. Explain why rtl.h has to be included.
4299 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
4300 * gcc-interface/targtyps.c: Do not include tm_p.h
4301 * gcc-interface/utils2.c: Do not include flags.h.
4302 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
4303 and explain why it has to be included.
4304 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
4306 Include function.h and explain why. Explain why except.h is included.
4307 (enumerate_modes): Remove unused function.
4308 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
4309 * gcc-interface/Make-lang.in: Update dependencies.
4311 2010-05-25 Joseph Myers <joseph@codesourcery.com>
4313 * gcc-interface/misc.c (internal_error_function): Add context
4314 parameter. Use it to access show_column flag and instead of using
4315 global_dc. Call warn_if_plugins.
4316 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
4318 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
4320 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
4321 * gcc-interface/trans.c (unshare_save_expr): Delete.
4322 (gigi): Do not unshare trees under SAVE_EXPRs here.
4324 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
4326 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
4328 * gcc-interface/utils.c (build_function_stub): Likewise.
4330 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4332 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
4333 for Wuninitialized without -O.
4335 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
4337 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
4338 ADT_exception_data_name_id.
4339 (exception_data_name_id): New define.
4340 * gcc-interface/trans.c (gigi): Initialize it.
4341 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
4342 exception type for standard exception definitions. Do not make them
4344 <E_Record_Type>: Equate fields of types associated with an exception
4345 definition to those of the standard exception type.
4347 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
4349 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
4351 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
4353 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
4354 code, improve comments and fix formatting nits.
4356 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
4358 * gcc-interface/utils.c (update_pointer_to): Return early if the old
4359 pointer already points to the new type. Chain the old pointer and its
4360 variants at the end of new pointer's chain after updating them.
4362 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
4364 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
4365 built for interfaces.
4366 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
4367 imported_p instead of Is_Imported when considering constants.
4368 Do not promote alignment of exported objects.
4369 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
4371 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
4373 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
4374 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
4375 constants really constant.
4376 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
4378 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
4380 * gcc-interface/decl.c (make_aligning_type): Declare the type.
4382 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
4384 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
4385 expressions of variant part of record types declared at library level.
4387 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
4389 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
4390 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
4391 (rest_of_record_type_compilation): Adjust call to create_field_decl.
4392 (make_descriptor_field): Likewise and pass correctly typed constants.
4393 (build_unc_object_type): Likewise.
4394 (unchecked_convert): Likewise.
4395 * gcc-interface/decl.c (elaborate_expression_2): New static function.
4396 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
4397 Adjust call to create_field_decl.
4398 (make_aligning_type): Likewise.
4399 (make_packable_type): Likewise.
4400 (maybe_pad_type): Likewise.
4401 (gnat_to_gnu_field): Likewise.
4402 (components_to_record): Likewise.
4403 (create_field_decl_from): Likewise.
4404 (create_variant_part_from): Remove superfluous test.
4405 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
4407 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
4409 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
4410 (build_unc_object_type_from_ptr): Likewise.
4411 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
4412 and pass it to create_type_decl. Declare the type. Simplify.
4413 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
4414 it to build_unc_object_type.
4415 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
4416 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
4417 (gnat_to_gnu): Likewise.
4418 * gcc-interface/utils2.c (build_allocator): Likewise.
4420 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
4423 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
4425 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4427 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
4429 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
4432 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
4434 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
4436 * gnathtml.pl: Use 755 as mask for new directories.
4438 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
4440 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
4441 constant constructors before taking their address.
4443 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
4445 * exp_dbug.ads: Fix outdated description. Mention link between XVS
4447 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
4448 XVZ variable as unit size of XVS type.
4449 (maybe_pad_type): Likewise.
4451 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
4453 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
4454 use memmove if the array type is bit-packed.
4456 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
4458 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
4459 build_common_tree_nodes.
4461 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
4463 * gsocket.h: Make sure that winsock2.h is included before windows.h.
4465 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
4467 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
4470 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
4472 * uintp.h (UI_Lt): Declare.
4473 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
4474 computation in sizetype.
4475 <E_Array_Subtype>: Use unified handling for all index types. Do not
4476 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
4478 (annotate_value): Change test for negative values.
4479 (validate_size): Apply test for negative values on GNAT nodes.
4480 (set_rm_size): Likewise.
4481 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
4482 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
4483 for negative values.
4484 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
4485 (builtin_type_for_size): Adjust definition of signed_size_type_node.
4486 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
4487 lengths against zero.
4489 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
4491 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
4492 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
4493 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
4494 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
4495 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
4496 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
4498 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
4499 flag_signed_char. Tag sizetype with "size_type" moniker.
4500 * gcc-interface/trans.c (gigi): Add standard_character parameter.
4501 Remove useless built-in types. Equate unsigned_char_type_node to
4502 Standard.Character. Use it instead of char_type_node throughout.
4503 (Attribute_to_gnu): Likewise.
4504 (gnat_to_gnu): Likewise.
4505 * gcc-interface/utils2.c (build_call_raise): Likewise.
4507 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
4509 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
4510 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
4511 (sbitsize_one_node): New macro.
4512 (sbitsize_unit_node): Likewise.
4513 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
4514 latent bug in the computation of subrange_p. Fold wider_p predicate.
4515 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
4516 the final comparison.
4517 (make_aligning_type): Build real negation and use sizetype throughout
4518 the offset computation.
4519 (maybe_pad_type): Do not issue the warning when the new size expression
4521 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
4522 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
4524 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
4526 (gnat_to_gnu) <N_Free_Statement>: Likewise.
4527 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
4528 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
4529 constants in sizetype. Remove dead code and tweak comments. Generate
4530 equality instead of inequality comparisons for zero length tests.
4532 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4534 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
4535 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
4536 <object>: Do not create the fake PARM_DECL if no debug info is needed.
4537 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
4538 purposes if no debug info is needed.
4539 Fix formatting. Reorder and add comments.
4540 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
4541 variable and remove obsolete comment.
4542 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
4543 (convert_vms_descriptor32): Likewise.
4544 (convert): Remove dead code.
4545 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
4546 the reference to the P_ARRAY pointer.
4547 <POINTER_TYPE>: Likewise.
4548 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
4549 (gnat_init_decl_processing): Delete, move contents to...
4550 * gcc-interface/misc.c (gnat_init): ...here.
4552 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4554 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
4555 calls. Return true for conversion from a record subtype to its type.
4557 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4559 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
4560 lieu of integer_type_node for boolean operations.
4561 (choices_to_gnu): Likewise.
4562 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
4563 (Loop_Statement_to_gnu): Likewise.
4564 (establish_gnat_vms_condition_handler): Likewise.
4565 (Exception_Handler_to_gnu_sjlj): Likewise.
4566 (gnat_to_gnu): Likewise.
4567 (build_unary_op_trapv): Likewise.
4568 (build_binary_op_trapv): Likewise.
4569 (emit_range_check): Likewise.
4570 (emit_index_check): Likewise.
4571 (convert_with_check): Likewise.
4572 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
4573 (convert_vms_descriptor32): Likewise.
4574 (convert_vms_descriptor): Likewise.
4575 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
4576 (compare_arrays): Use boolean instead of integer constants.
4577 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
4578 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
4580 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
4581 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
4582 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
4583 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
4584 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
4585 for boolean operations.
4586 (fill_vms_descriptor): Likewise. Fix formatting nits.
4588 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4590 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
4591 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
4593 (LOOP_STMT_COND): ...this.
4594 (LOOP_STMT_BOTTOM_COND_P): New flag.
4595 (LOOP_STMT_TOP_UPDATE_P): Likewise.
4596 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
4597 (can_equal_min_val_p): New static inline function.
4598 (can_equal_max_val_p): Likewise.
4599 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
4600 new LOOP_STMT semantics. Use two different strategies depending on
4601 whether optimization is enabled to translate the loop.
4602 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
4604 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4606 * uintp.adb (UI_From_Dint): Remove useless code.
4607 (UI_From_Int): Likewise.
4608 * uintp.h: Reorder declarations.
4609 (UI_From_gnu): Declare.
4610 (UI_Base): Likewise.
4611 (Vector_Template): Likewise.
4612 (Vector_To_Uint): Likewise.
4615 * gcc-interface/gigi.h: Tweak comments.
4616 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
4617 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
4619 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
4620 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
4621 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
4622 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
4625 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
4627 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
4629 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
4630 (smaller_form_type_p): ...this. Change parameter and variable names.
4631 (call_to_gnu): Use the nominal type of the parameter to create the
4632 temporary if it's a smaller form of the actual type.
4633 (addressable_p): Return false if the actual type is integral and its
4634 size is greater than that of the expected type.
4636 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4638 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
4639 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
4640 (process_attributes): Delete.
4641 (post_error_ne_num): Change parameter name.
4642 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
4643 with -g3. Remove a couple of obsolete lines. Minor tweaks.
4644 If type annotating mode, operate on trees to compute the adjustment to
4645 the sizes of tagged types. Fix long line.
4646 (cannot_be_superflat_p): Tweak head comment.
4647 (annotate_value): Fold local constant.
4648 (set_rm_size): Fix long line.
4649 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
4650 (Attribute_to_gnu): Fix long line.
4651 <Attr_Size>: Remove useless assertion.
4652 Reorder statements. Use size_binop routine.
4653 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
4654 Create local variables for the label and the test. Tweak comments.
4655 (Subprogram_Body_to_gnu): Reset cfun to NULL.
4656 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
4657 (process_inlined_subprograms): Integrate into...
4658 (Compilation_Unit_to_gnu): ...this.
4659 (gnat_to_gnu): Fix long line.
4660 (post_error_ne_num): Change parameter name.
4661 * gcc-interface/utils.c (process_attributes): Static-ify.
4662 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
4663 (create_type_decl): Add comment.
4664 (create_var_decl_1): Process the attributes after adding the VAR_DECL
4665 to the current binding level.
4666 (create_subprog_decl): Likewise for the FUNCTION_DECL.
4667 (end_subprog_body): Do not reset cfun to NULL.
4668 (build_vms_descriptor32): Fix long line.
4669 (build_vms_descriptor): Likewise.
4670 (handle_nonnull_attribute): Likewise.
4671 (convert_vms_descriptor64): Likewise.
4672 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
4673 (gnat_protect_expr): Fix thinko.
4675 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4677 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
4678 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
4679 before translating the top-level node.
4680 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
4681 <N_Object_Declaration>: Likewise.
4682 <N_Assignment_Statement>: Likewise.
4683 <N_Unchecked_Type_Conversion>: Likewise.
4684 (call_to_gnu): Remove kludge.
4685 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
4686 associated with user returns to be preserved.
4687 (gnat_to_gnu): Add special code to deal with boolean rvalues.
4688 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
4690 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
4691 <INDIRECT_REF>: Call build_fold_indirect_ref.
4693 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
4695 * g-socket.adb: A target can have multiple missing errno's. This
4696 will result in multiple errno's being defined as -1. Because of this
4697 we can not use a case but must use a series of if's to avoid
4698 a duplicate case error in GNAT.Sockets.Resolve_Error.
4700 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4702 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
4703 a statement. Otherwise, if at top-level, push the processing of the
4704 elaboration routine. In the misaligned case, issue the error messages
4705 again on entry and create the temporary explicitly. Do not issue them
4707 For a function call, emit the range check if necessary.
4708 In the copy-in copy-out case, create the temporary for the return
4710 Do not unnecessarily convert by-ref parameters to the formal's type.
4711 Remove obsolete guards in conditions.
4712 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
4713 target to call_to_gnu in all cases.
4714 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
4715 (addressable_p) <CONSTRUCTOR>: Return false if not static.
4716 <COMPOUND_EXPR>: New case.
4717 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
4718 expression if it has unconstrained array type.
4719 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
4720 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
4723 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4725 * gcc-interface/trans.c (gigi): Do not start statement group.
4726 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
4727 Start statement group and push binding level here...
4728 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
4729 Do not push fake contexts at top level. Remove redundant code.
4730 (call_to_gnu): Rename a local variable and constify another.
4731 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
4732 (set_current_block_context): Set it as the group's block.
4733 (gnat_init_decl_processing): Delete unrelated init code.
4734 (end_subprog_body): Use NULL_TREE.
4736 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4738 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
4739 side-effects of actual parameters before the call.
4741 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
4743 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
4745 (set_rm_size): Reorder and remove obsolete test.
4747 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
4749 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
4750 (gigi): Adjust ATTRIBUTE_UNUSED markers.
4751 * gcc-interface/gadaint.h: New file.
4752 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
4753 (__gnat_to_canonical_file_spec): Remove declaration.
4754 (number_names): Delete.
4755 (number_files): Likewise.
4757 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
4760 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
4762 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
4764 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
4765 Ekind. Return early for class-wide types. Do not compute initializer
4766 unless necessary. Reuse the tree for an associated class-wide type
4767 only if processing its root type.
4769 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
4771 * gsocket.h: Run-time can no longer be built without network
4772 OS headers available. Changing RTEMS GNAT build procedure to
4773 reflect this and letting run-time build use network .h files.
4775 2010-04-13 Duncan Sands <baldrick@free.fr>
4777 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
4778 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
4780 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
4782 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
4783 (parent_name_id): New macro.
4784 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
4785 * gcc-interface/trans.c (gigi): Initialize it.
4786 (lvalue_required_p) <N_Type_Conversion>: New case.
4787 <N_Qualified_Expression>: Likewise.
4788 <N_Allocator>: Likewise.
4789 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
4791 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
4793 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
4794 (DECL_CONST_ADDRESS_P): New macro.
4795 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
4796 (SAME_FIELD_P): Likewise.
4797 * gcc-interface/decl.c (constructor_address_p): New static function.
4798 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
4799 the return value of above function.
4800 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
4801 passed by reference.
4802 <E_Record_Subtype>: Likewise.
4803 Set TREE_ADDRESSABLE on the type if it passed by reference.
4804 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
4805 (create_field_decl_from): Likewise.
4806 (substitute_in_type): Likewise.
4807 (purpose_member_field): Use SAME_FIELD_P.
4808 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
4809 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
4810 parameter and adjust recursive calls.
4811 <N_Explicit_Dereference>: New case.
4812 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
4813 Adjust calls to lvalue_required_p. Do not return the initializer of a
4814 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
4815 (call_to_gnu): Delay issuing error message for a misaligned actual and
4816 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
4817 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
4818 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
4819 type is passed by reference.
4820 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
4821 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
4822 (build_simple_component_ref): Use SAME_FIELD_P.
4824 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
4826 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
4827 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
4828 front-end's predicate Is_By_Reference_Type. Use consistent order and
4829 remove ??? comment. Use original conversion in all cases, if any.
4830 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
4831 (convert): Use local copy in more cases.
4832 <INDIRECT_REF>: Remove deactivated code.
4833 (unchecked_convert): Use a couple of local copies.
4835 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
4837 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
4839 (lvalue_required_p) <N_Attribute_Reference>: Call it.
4840 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
4841 folding the result only if lvalue_required_for_attribute_p is true.
4842 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
4843 typed constant to build_component_ref.
4844 (unchecked_convert): Likewise.
4845 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
4846 (build_allocator): Likewise.
4848 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
4850 * gcc-interface/utils2.c (build_cond_expr): Take the address and
4851 dereference if the result type is passed by reference.
4853 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
4855 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
4856 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
4857 goto to the next statement.
4859 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
4861 * gcc-interface/gigi.h (maybe_variable): Delete.
4862 (protect_multiple_eval): Likewise.
4863 (maybe_stabilize_reference): Likewise.
4864 (gnat_save_expr): Declare.
4865 (gnat_protect_expr): Likewise.
4866 (gnat_stabilize_reference): Likewise.
4867 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
4868 gnat_stabilize_reference.
4869 (maybe_variable): Delete.
4870 (elaborate_expression_1): Use gnat_save_expr.
4871 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
4872 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
4873 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
4874 <N_Slice>: Use gnat_protect_exp.
4875 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
4876 <N_In>: Use gnat_protect_expr.
4877 Pass NULL to gnat_stabilize_reference.
4878 (build_unary_op_trapv): Use gnat_protect_expr.
4879 (build_binary_op_trapv): Likewise.
4880 (emit_range_check): Likewise.
4881 (emit_index_check): Likewise.
4882 (convert_with_check): Likewise.
4883 (protect_multiple_eval): Move to utils2.c file.
4884 (maybe_stabilize_reference): Merge into...
4885 (gnat_stabilize_reference): ...this. Move to utils2.c file.
4886 (gnat_stabilize_reference_1): Likewise.
4887 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
4888 instead of protect_multiple_eval.
4889 * gcc-interface/utils2.c (compare_arrays): Likewise.
4890 (nonbinary_modular_operation): Likewise.
4891 (maybe_wrap_malloc): Likewise.
4892 (build_allocator): Likewise.
4893 (gnat_save_expr): New function.
4894 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
4895 in common cases. Propagate TREE_READONLY onto dereferences.
4896 (gnat_stabilize_reference_1): Move from trans.c file.
4897 (gnat_stabilize_reference): Likewise.
4899 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
4901 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
4902 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
4903 node. Use the type of the operand to set TREE_READONLY.
4904 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
4905 _REF node. Do not overwrite TREE_READONLY.
4906 (call_to_gnu): Rename local variable and fix various nits. In the
4907 copy-in/copy-out case, build the SAVE_EXPR manually.
4908 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
4909 and fold the computations.
4910 (protect_multiple_eval): Always save entire fat pointers.
4911 (maybe_stabilize_reference): Minor tweaks.
4912 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
4913 tcc_type and tcc_statement.
4914 * gcc-interface/utils.c (convert_to_fat_pointer): Call
4915 protect_multiple_eval in lieu of save_expr.
4916 (convert): Minor tweaks.
4917 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
4918 (builtin_type_for_size): Call gnat_type_for_size directly.
4919 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
4920 (contains_null_expr): Likewise
4921 (gnat_build_constructor): Do not call it.
4922 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
4923 instead of gnat_stabilize_reference to protect the operands.
4924 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
4926 (maybe_wrap_malloc): Likewise.
4927 (build_allocator): Likewise.
4928 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
4929 (gnat_mark_addressable): Rename parameter.
4931 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
4933 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
4934 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
4935 (TYPE_RETURNS_BY_REF_P): Rename into.
4936 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
4937 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
4938 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
4939 (build_return_expr): Likewise.
4940 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
4941 Rename local variables. If the return Mechanism is By_Reference, pass
4942 return_by_invisible_ref_p to create_subprog_type instead of toggling
4943 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
4944 the mechanism. Use regular return for contrained types with non-static
4945 size and return by invisible reference for unconstrained return types
4946 with default discriminants. Update comment.
4947 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
4948 returns by invisible reference, turn the RESULT_DECL into a pointer.
4949 Do not handle DECL_BY_REF_P in the CICO case here.
4950 (call_to_gnu): Remove code handling return by target pointer. For a
4951 function call, if the return type has non-constant size, generate the
4952 assignment with an INIT_EXPR.
4953 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
4954 If the function returns by invisible reference, build the copy return
4956 (add_decl_expr): Initialize the variable with an INIT_EXPR.
4957 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
4958 Adjust for renaming of macros. Copy the node only when necessary.
4959 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
4960 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
4961 (convert_from_reference): Delete.
4962 (is_byref_result): Likewise.
4963 (gnat_genericize_r): Likewise.
4964 (gnat_genericize): Likewise.
4965 (end_subprog_body): Do not call gnat_genericize.
4966 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
4967 (build_return_expr): Adjust parameter names, logic and comment.
4969 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
4971 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
4972 if the size is small enough. Propagate the alignment if there is an
4973 alignment clause on the original array type.
4974 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
4975 Deal with under-aligned packed array types. Copy the size onto the
4976 justified modular type and don't lay it out again. Likewise for the
4977 padding type built for other under-aligned subtypes.
4978 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
4981 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
4983 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
4984 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
4986 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
4988 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
4989 do not set the result type if there is a specified target and do not
4990 convert the result in any cases.
4991 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
4992 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
4994 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
4996 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
4998 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
5001 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
5002 pointer base types are variant of each other. Apply special treatment
5003 for null to fat pointer types in all cases.
5005 2010-01-28 Pascal Obry <obry@adacore.com>
5007 * s-win32.ads: Add some missing constants.
5009 2010-01-28 Vincent Celier <celier@adacore.com>
5011 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
5014 2010-01-28 Robert Dewar <dewar@adacore.com>
5016 * gnat_rm.texi: Minor correction
5018 2010-01-27 Pascal Obry <obry@adacore.com>
5020 * g-awk.adb: ensure that an AWK session is reusable.
5022 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
5024 * g-regist.adb (For_Every_Key): Fix previous change.
5027 2010-01-27 Thomas Quinot <quinot@adacore.com>
5029 * lib-writ.ads: Current version of spec for new N (note) ALI lines
5031 2010-01-27 Yannick Moy <moy@adacore.com>
5033 * a-cdlili.adb (Insert): Correct exception message when cursor
5034 designates wrong list.
5036 2010-01-27 Vincent Celier <celier@adacore.com>
5038 * gnatcmd.adb: When there is only one main specified, the package
5039 support Switches (<main>) and attribute Switches is specified for the
5040 main, use these switches, instead of Default_Switches ("Ada").
5042 2010-01-27 Robert Dewar <dewar@adacore.com>
5044 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
5046 * exp_disp.adb: Minor reformatting
5048 2010-01-27 Tristan Gingold <gingold@adacore.com>
5050 * seh_init.c: Use __ImageBase instead of _ImageBase.
5052 2010-01-27 Javier Miranda <miranda@adacore.com>
5054 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
5055 profile of interface thunks. The type of the controlling formal is now
5056 the covered interface type (instead of the target tagged type).
5058 2010-01-27 Sergey Rybin <rybin@adacore.com>
5060 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
5062 2010-01-27 Robert Dewar <dewar@adacore.com>
5064 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
5065 changed from Expr to N.
5067 2010-01-26 Thomas Quinot <quinot@adacore.com>
5069 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
5070 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
5073 2010-01-26 Vincent Celier <celier@adacore.com>
5075 * prj-attr.adb: Add new attribute Library_Install_Name_Option
5076 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
5077 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5078 attributes Run_Path_Option and Library_Install_Name_Option.
5079 * prj.ads (Project_Configuration): Replace component
5080 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
5081 component Library_Install_Name_Option.
5082 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
5083 Replace Run_Path_Origin_Supported with Run_Path_Origin
5085 2010-01-26 Ed Schonberg <schonberg@adacore.com>
5087 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
5088 is not hidden by a homograph declared in another actual package.
5090 2010-01-26 Robert Dewar <dewar@adacore.com>
5092 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
5093 decisions for pragmas Assert, Check, Precondition, Postcondition if
5095 * scos.ads: Update comments.
5096 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
5097 Also remove obsolete code for CT (exit point) SCOs.
5099 2010-01-26 Thomas Quinot <quinot@adacore.com>
5101 * switch-c.adb: Fix handling of -gnatz*
5103 2010-01-26 Robert Dewar <dewar@adacore.com>
5105 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
5106 qualifiers for FOR/WHILE loops
5107 * scos.ads: Use separate type letters F/W for for/while loops
5109 2010-01-26 Robert Dewar <dewar@adacore.com>
5111 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
5112 entries per line, one for each statement in the sequence).
5113 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
5114 size from 100 to 10_000 for SC_Array to avoid any real possibility of
5115 overflow. Output decisions in for loops.
5116 Exclude labels from CS lines.
5117 * scos.ads: Clarify that label is not included in the entry point
5119 2010-01-26 Robert Dewar <dewar@adacore.com>
5121 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
5122 format of statement sequence SCO entries (one location/statement).
5123 * put_scos.adb (Put_SCOs): Implement new format of CS lines
5124 * scos.ads: Update comments.
5125 * sem_eval.adb: Minor reformatting.
5127 2010-01-26 Robert Dewar <dewar@adacore.com>
5129 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
5130 (Extend_Statement_Sequence): New procedures
5131 (Traverse_Declarations_Or_Statements): New handling for exits.
5133 2010-01-26 Robert Dewar <dewar@adacore.com>
5135 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
5138 2010-01-26 Robert Dewar <dewar@adacore.com>
5140 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
5141 * scos.ads: Clarify handling of logical operators
5143 2010-01-26 Arnaud Charlet <charlet@adacore.com>
5145 * s-tpoben.adb: Update comments.
5147 2010-01-26 Robert Dewar <dewar@adacore.com>
5149 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
5152 2010-01-26 Robert Dewar <dewar@adacore.com>
5154 * scos.ads: Clean up documentation, remove obsolete XOR references
5155 2010-01-26 Vincent Celier <celier@adacore.com>
5157 * gnat_ugn.texi: Complete documentation on the restrictions for
5158 combined options in -gnatxxx switches.
5161 2010-01-26 Arnaud Charlet <charlet@adacore.com>
5163 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
5164 a controlled operation, abort is already deferred at this point, so we
5165 need to use Defer_Abort_Nestable.
5167 2010-01-26 Vincent Celier <celier@adacore.com>
5169 * prj-conf.adb (Get_Config_Switches): Check for a default language for
5170 a project extending a project with no languages.
5172 2010-01-26 Vincent Celier <celier@adacore.com>
5174 * switch-c.adb (Scan_Front_End_Switches): Take into account options
5175 that follow -gnatef.
5176 Allow -gnateG to be followed by other options.
5178 2010-01-26 Robert Dewar <dewar@adacore.com>
5180 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
5181 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
5184 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
5186 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
5187 that allows to iterate over all subkeys of a key.
5189 2010-01-26 Ed Falis <falis@adacore.com>
5191 * sysdep.c: enable NFS for VxWorks MILS
5192 * env.c: enable __gnat_environ for VxWorks MILS
5193 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
5195 2010-01-25 Bob Duff <duff@adacore.com>
5197 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
5198 is an internally-generated positional aggregate, and the bounds are
5199 already correctly set. We don't want to overwrite those bounds with
5200 bounds determined by context.
5202 2010-01-25 Robert Dewar <dewar@adacore.com>
5204 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
5205 exp_ch9.adb, g-sechas.ads: Minor reformatting.
5207 2010-01-25 Thomas Quinot <quinot@adacore.com>
5209 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
5210 integer type) before subtracting 1, otherwise the computation may wrap
5211 (because size_t is modular) and cause the conversion to fail.
5213 2010-01-25 Ed Falis <falis@adacore.com>
5215 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
5217 2010-01-25 Vincent Celier <celier@adacore.com>
5219 * prj-attr.adb: New attribute Run_Path_Origin_Required
5220 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
5221 attribute Run_Path_Origin_Required.
5222 * prj.ads (Project_Configuration): New component
5223 Run_Path_Origin_Supported.
5224 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
5226 2010-01-25 Ed Schonberg <schonberg@adacore.com>
5228 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
5229 have errors, do not continue resolution of the aggregate.
5230 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
5231 the array type indicates an error.
5233 2010-01-25 Bob Duff <duff@adacore.com>
5235 * sinfo.ads: Minor comment fixes.
5237 2010-01-25 Bob Duff <duff@adacore.com>
5239 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
5241 2010-01-25 Arnaud Charlet <charlet@adacore.com>
5243 * gnatvsn.ads (Current_Year): Update.
5245 2010-01-25 Florian Villoing <villoing@adacore.com>
5247 * gnat_ugn.texi: Fix typo.
5249 2010-01-25 Thomas Quinot <quinot@adacore.com>
5251 * scos.ads: Update specification.
5253 2010-01-25 Ed Schonberg <schonberg@adacore.com>
5255 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
5256 enclosing subprogram has no previous spec, attach postcondition
5257 procedure to the defining entity for the body.
5259 2010-01-25 Ed Schonberg <schonberg@adacore.com>
5261 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
5262 initialization procedure of the ancestor part of an extension aggregate
5263 if it is an interface type.
5265 2010-01-25 Vincent Celier <celier@adacore.com>
5267 * gnatlink.adb (Process_Binder_File): The directory for the shared
5268 version of libgcc in the run path options is found in the subdirectory
5269 indicated by __gnat_default_libgcc_subdir.
5270 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
5273 2010-01-25 Ed Schonberg <schonberg@adacore.com>
5275 * sem_prag.adb: More flexible pragma Annotate.
5277 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
5279 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
5280 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
5282 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
5284 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
5286 2010-01-18 Jan Hubicka <jh@suse.cz>
5289 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
5290 unit local variables.
5292 2010-01-17 Laurent GUERBY <laurent@guerby.net>
5294 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
5296 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
5298 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
5299 * system-linux-armeb.ads, system-linux-armel.ads: New files.
5301 2010-01-09 Simon Wright <simon@pushface.org>
5304 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
5309 Copyright (C) 2010 Free Software Foundation, Inc.
5311 Copying and distribution of this file, with or without modification,
5312 are permitted in any medium without royalty provided the copyright
5313 notice and this notice are preserved.